Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [faces-dev] EE 10 Platform TCK + Faces test failure: Why would GlassFish 7 throw com.sun.faces.application.view.ViewHandlingStrategyNotFoundException during com.sun.faces.application.view.MultiViewHandler.getViewDeclarationLanguage() call ?

Hi,

On Tue, May 3, 2022 at 8:12 PM Scott Marlow <smarlow@xxxxxxxxxx> wrote:

 Should ejblitejsf_vehicle.jsp [2] be converted to an xhtml file? 

Yes indeed. That would be the easiest thing. Alternatively it can be just a .java file as well.

If yes, what should the equivalent xhtml file contain?

I think something like this should work:

<!DOCTYPE html>
<html>
    <head><title>#{param['testName']}_from_ejblitejsf</title></head>
    <body>
            #{client.status} #{client.reason}
    </body>
</html>
 
If Faces tags are needed in other cases, you could use e.g.

<html
    xmlns:f="jakarta.faces.core"
    xmlns:h="jakarta.faces.html"
>
....
</html>

Do we need to remove the managed-bean* properties from faces-config.xml [3]?

Yes, they have to be removed. They can be replaced with an equivalent CDI bean.

E.g. something like:

@Named
@RequestScoped
public class Client {

    @Inject @ManagedProperty("#{param.testName}")
    private String testName;
   
    @Inject @ManagedProperty("#{facesContext.externalContext.requestContextPath}")
    private String moduleName;

    private String status;
    private String reason;
    private Boolean injectionSupported = true;
    
    // + getters/setters
}

Hope this helps.

Kind regards,
Arjan Tijms


 

Scott

[1] https://gist.github.com/scottmarlow/d21103118ae3e86c25db76261b3a49ff
[2] https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/common/vehicle/ejblitejsf/ejblitejsf_vehicle.jsp#L26
[3] https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/common/vehicle/ejblitejsf/faces-config.xml

On 5/3/22 10:11 AM, Scott Marlow wrote:

Also reported via https://github.com/eclipse-ee4j/mojarra/issues/5084

On 5/3/22 9:36 AM, Scott Marlow wrote:

BCC: Platform TCK mailing list.

Does anyone know how to determine the reason why GlassFish 7 (with Mojarra 4.0.0-M7-RELEASE) throws com.sun.faces.application.view.ViewHandlingStrategyNotFoundException during com.sun.faces.application.view.MultiViewHandler.getViewDeclarationLanguage() call [1]?  This is easy to recreate locally by running the (EE 10) Platform TCK locally against ejb30/lite/appexception/singleton/annotated tests (see "Steps to recreate locally" near end of [1]).

Scott


_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev

Back to the top