1 2 Previous Next 15 Replies Latest reply on Jan 22, 2009 5:00 AM by abuit Go to original post
      • 15. Re: HtmlCalendar <rich:calendar>, multiple date patterns, bu

        I changed the weird JS hack in the encodebegin.
        I added an HtmlComponentControl to the button, and changed the encodeBegin to the following:

        HtmlComponentControl control = (HtmlComponentControl)this.getButton().getChildren().get(0);
         control.setAttachTo(this.getButton().getClientId(context));
         control.setFor(this.getCalendar().getClientId(context));
         control.setEvent("onclick");
         control.setOperation("switchState");


        Yet the issue remains the same, the position of the popup-calendar-table is way off.

        1 2 Previous Next