For now jQuery timepicker component is invoked wit click on input.
This is timepicker config:
<script>
...
oScript.text += "var timeId = '#' + '<portlet:namespace/>' + '_time';";
oScript.text += "$j(timeId).timePicker({startTime:new Date(0, 0, 0, 0, 0, 0), step: 30});";
...
</script>
This is jsp part for timepicker(input with specific id):
<input id="<portlet:namespace/>_time" name="time" size="6" autocomplete="off" value="${eventTime}"
<img id="time-img" class="ui-timepicker" src="${eventTimeImage}" alt="..." title="..."/>
So this works OK.
If to handle click on img, that js error sad, that id "is not defined", but id is the same as rendered in resulting HTML
This is modified code for IMG tag,in order to invoke timepicker:
<img id="time-img" onClick="jQuery(<portlet:namespace/>_time).timePicker({startTime:new Date(0, 0, 0, 0, 0, 0), step: 30});" src="${eventTimeImage}"/>
Tried id with quotation, the same result.
Is it possible for Timepicker at all? i mean invoke it with onClick. Or it's loaded once?