[JAVASERVERFACES_SPEC_PUBLIC-1213] f:viewParam doesn't work when using xmlns:f="http://xmlns.jcp.org/jsf/core" Created: 06/Aug/13  Updated: 24/Aug/15  Resolved: 03/Sep/14

Status: Closed
Project: javaserverfaces-spec-public
Component/s: None
Affects Version/s: 2.2
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: irinipaci Assignee: Manfred Riem
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

JavaEE 7 maven web application with JSF 2.2
GlassFish Server Open Source Edition 4.0 (build 89)


Issue Links:
Duplicate
duplicates JAVASERVERFACES-2868 f:viewParam and f:viewAction not work... Closed
is duplicated by JAVAEETUTORIAL-238 NullPoint error in chapter 8.5 Compo... Closed

 Description   

Given

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <f:metadata>
        <f:viewParam name="id" value="#{myBean.id}" />
    </f:metadata>
</html>

myBean.id will never be populated. However, changing the xmlns to the following fixes it:

      xmlns:f="http://java.sun.com/jsf/core"

Glassfish 4 should support the new xmlns for an EE7 project (JSF version 2.2).



 Comments   
Comment by Ed Burns [ 01/Aug/14 ]

Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

Comment by Manfred Riem [ 01/Aug/14 ]

Setting priority to Critical

Generated at Sun Sep 25 04:32:35 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.