JavaScript Inside JSF

i want to add javascript Calendar inside JSF , can any one give me advice about where to get it and how i embed it inside JSF ?Thanks for everybody
[161 byte] By [eng_abdelhaleema] at [2007-11-27 9:44:31]
# 1

U can refer each componet is identified in its Id in JSF

but to identify a component on the generated html code the component is prefixed with parent id also

suppose

<h:form id="one">

<h:inputText id="text"/>

</h:form>

to identify inputText in javascript it should accessed by

document.getElementById("one:text");

if no id is given to form and components then default things are used

document.getElementById("_id0:_id0");

veerjaa at 2007-7-12 23:51:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Odd answer .. Did you understand his question?Anyway, there are several ready-to-use JSF calendar components available. For example the Tomahawk's t:inputCalendar. See http://myfaces.apache.org/tomahawk/calendar.html
BalusCa at 2007-7-12 23:51:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...