Hello,
two options
maven way
pom = getClass().getClassLoader().getResourceAsStream(
"META-INF/maven/org.apache.myfaces.core/myfaces-impl/pom.properties");
Properties properties = new Properties();
properties.load(pom);
version = properties.getProperty("version");
or java manifest way
Package myPackage = myPackage =
Package.getPackage("org.apache.myfaces.renderkit");
version = myPackage.getImplementationVersion();
Regards
Bernd
Matthias Wessendorf schrieb:
> afaik there is no implicit #{myfaces} bean, that has infos like that.
> would be interesting, though.
>
> can you file a jira ticket on that ?
>
> -M
>
> On Wed, Oct 8, 2008 at 4:50 PM, <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> is it possible to get Myfaces version from jsf page/java code?
>>
>> Perhaps something similar to #{a4j.version}?
>>
>> --
>> Jiri Pejchal
>>
>>
>
>
>