Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

i18n value in sling include

$
0
0

I am unable to get I18n value in sling include content in 404.jsp/default.jsp.

 

Basically I am including a 404 page ( based on some template ) into sling/servlet/errorhandler/default.jsp like

<sling:include path="/content/mysite/en/errorpage" />

 

I am able to see the included error page in case of 404. But the i18n value that are used in errorpage is not applied, instead i am getting the sling:key as the value itself.

The standalone page (if i directly open the page instead of going thru 404 error ) shows correct i18n value

I am using i18n as:

 

ResourceBundle i18n = slingRequest.getResourceBundle(locale);

or

I18n i18n1= new I18n(slingRequest);

 

Please suggest if i m doing something wrong.


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>