10 Replies Latest reply on Nov 19, 2008 9:57 AM by Yurii Kartsev

    Calendar and Tooltip problem

    Jason Long Master

      I get a null pointer error if I place a tool tip inside the calendar tag.

      <rich:calendar id="#{id}"
       value="#{value}"
       popup="true"
       datePattern="MM.dd.yyyy"
       buttonIcon="/images/general/1X1.jpg"
       inputClass="#{width}">
       <rich:toolTip rendered="#{! empty errorFieldMessage}">
       <h:message for="#{id}" />
       </rich:toolTip>
      </rich:calendar>
      


      I would like for this message to be displayed over my input field. Previous to this I was using the title parameter to display tootips on input fields, but this is superior.

      Please advise.

      Also is it possible to render the icon as a separate component? The way I lay out my forms calls for relocation of the icon. Currently I am using a 1X1 transparent image with a text field that is not editable so the my layout is not changed. With Seam selectDate below the layout of the icon is able to be controlled.

      <h:inputText id="checkinDate" value="#{booking.checkinDate}" required="true">
       <s:convertDateTime pattern="MM/dd/yyyy"/>
       </h:inputText>
       <s:selectDate for="checkinDate">
       <h:graphicImage url="img/dtpick.gif" style="margin-left:5px;cursor:pointer"/>
       </s:selectDate>


      Actually if it were able to funtion the way the seam date selection worked as an option then both of my problems would be solved.