I have a situation where I would like to have a selectDate component, but not a textfield to manually enter a date. I've tried a few approaches and non have had the desired result. The main issue is that without a textfield, this component appears to not know where to place itself and just places itself in the upper left corner.
My initial thought was that I would have a hidden field that is updated by the selectDate component. When that hidden field fires an onchange, a4j's support would fire off updating my model. It would then, reRender my <h:outputText field showing the appropriate date.
Any other suggestions?
Looking at the javascript code generated, you should be able to define a div with id=datepicker and it will be used to draw this component.
Hope this helps.
-Joseph