this._preferredLang = defaultLang;
}
this.pageContext.setAttribute(this.getCtxName(), survey);
// fetch image
if (null != this.getCtxImageUrl() && null != survey.getImageId()) {
ImageResource resource = (ImageResource) resourceManager.loadResource(survey.getImageId());
if (null != this.getImageDimension() && null != resource.getImagePath(this.getImageDimension())) {
this.pageContext.setAttribute(this.getCtxImageUrl(), resource.getImagePath(this.getImageDimension()));
} else {
this.pageContext.setAttribute(this.getCtxImageUrl(), resource.getImagePath("0"));
}
}
if (null != this.getVotedParamName()) {
boolean voted = CheckVotingUtil.isSurveyVoted(survey, (HttpServletRequest) this.pageContext.getRequest());
this.pageContext.setAttribute(this.getVotedParamName(), new Boolean(voted));