Hi Yaron,

did you realy need forceId? I strongly dissuade from using this!
Imho forceId makes more problems than it solves,
and i dont know a case in which it is realy needed.

Anyway:

inputCalendar.getAttributes().put("forceId", "cal1");

should do it.

Reagards,
 Volker

2007/4/6, Yaron Spektor <[EMAIL PROTECTED]>:
Hi,
Does anyone know how to use the force id in a component?
I looked for an answer but could not see this even mentioned anywhere...

For example I use this tag:
                <t:inputCalendar id="cal1"
                renderAsPopup="true"
                popupDateFormat="MM/dd/yyyy"
                helpText="MM/DD/YYYY"
                renderPopupButtonAsImage ="true"
                onchange="setDateString('cal1','cal2')"
forceId="true"
                size="7"
                />

And I need id 'cal1' to be forced to true.
When I try and do it with HtmlInputCalendar components I don't have that
option.

HtmlInputCalendar inputCalendar = new HtmlInputCalendar();
  String fullSrcId=idPrefix+"_"+id;
  inputCalendar.setId(fullSrcId);
  inputCalendar.setRenderAsPopup(true);
  inputCalendar.setRenderPopupButtonAsImage(true);
  inputCalendar.setSize(7);
  inputCalendar.setPopupDateFormat("MM/dd/yyyy" );
//FORCE ID???????

Yaron

Reply via email to