Description
I tryed to use image Location in the inputCalendar component but it doens't run.
I developed a method into the class:
org.apache.myfaces.custom.calendar.HtmlCalendarRenderer ; the method is this:
protected static String getImagePath(FacesContext facesContext,UIComponent uiComponent){
String urlImage=HtmlRendererUtils.getImageLocation(uiComponent);
if(urlImage==null || urlImage.trim().length()==0)
return urlImage;
}
and i call this method in the method getLocalizedLanguageScript when i call:
setStringVariable(script,popupCalendarVariable +".initData.imgDir",getImagePath(facesContext,uiComponent));
if i defined a image path i took the images i want, else i took the standard images in the Tomahawk jar.
It seems run good.
Attachments
Attachments
Issue Links
- is related to
-
TOMAHAWK-689 Style attributes do not apply to popup
- Closed