简体   繁体   中英

css file version with jsf 1.2

In reference to the question css file with version appending , is there any way to use JSF builtin resource library versioning in JSF 1.2?

The tags <h:outputStylesheet> and <h:outputScript> are not available in JSF 1.2.

AFAIK jsf1.2 doesn't support version appending.

For our application we have implemented this mechanism manually by means of a system property.

<link href="/gcdm/style/basic_#{g:getSystemProperty('cssVersion','1.0')}.css" rel="stylesheet" type="text/css" media="all" />

For g: details you can refer this link

Now with every release we just update the System Property and put in the new css file.

Hope this helps!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM