myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: Print version of Myfaces library
Date Thu, 09 Oct 2008 13:38:43 GMT
+1 on java manifest way

On Thu, Oct 9, 2008 at 3:36 PM, Bernd Bohmann <bernd.bohmann@atanion.com> wrote:
> 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,  <jiri.pejchal@gmail.com> wrote:
>>> Hi,
>>>
>>> is it possible to get Myfaces version from jsf page/java code?
>>>
>>> Perhaps something similar to #{a4j.version}?
>>>
>>> --
>>> Jiri Pejchal
>>>
>>>
>>
>>
>>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Mime
View raw message