Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Make f:param a ValueHolder so that a converter can be used on the value #1431

Closed
glassfishrobot opened this issue Oct 22, 2016 · 3 comments
Closed

Comments

@glassfishrobot
Copy link

Here's an easy one for 2.3 (hopefully). It has already been solved in OmniFaces.

Language file:

footer.copyright=© {0} Company, LLC. All Rights Reserved.

Facelet template:

<h:outputFormat value="#{messages['footer.copyright']}" escape="false">
    <f:param value="#{now}">
        <f:convertDateTime pattern="yyyy" type="date"/>
    </f:param>
</h:outputFormat>

Intended output:

© 2016 Company, LLC. All Rights Reserved.

Error that I get instead:

<f:convertDateTime> Parent not an instance of ValueHolder: javax.faces.component.UIParameter@10e350f

When I change f:param to o:param (OmniFaces), problem solved.

http://showcase.omnifaces.org/components/param

@glassfishrobot
Copy link
Author

Reported by rdelaplante

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1431

@glassfishrobot
Copy link
Author

Closing this as this issue is migrated to jakartaee/faces#1431

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant