myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joris Kimpe <>
Subject [TRINIDAD] panelPopup set focus on load
Date Wed, 18 Jun 2008 09:39:38 GMT

I have a table containing in each cell of a column a panelPopup.  This
panelPopup contains a tr:inputText wich needs to have to focus when the
popup is loaded.  How can I do this?  I think I need to develop some
javascript, but the id of the inputText contains some id.  Is this for each
cell the same?  Or how can I do this?

This is how my jsf page looks like:
<tr:panelPopup onclick="setCurrentSelectedDate('#{row.dateString}')"
								title="create #{row.dateStringForTitle}  " modal="true" 
								position="relative" rendered="#row.isCreationAllowed}">
        <tr:outputLabel value="Time"/>
        <tr:inputText id="time" value="#{backingBean.time}"
maximumLength="8" immediate="true">
            <tr:convertDateTime type="time" timeStyle="medium"/>

This is my generated html:
<!--Start: org.apache.myfaces.trinidad.Input["timej_id_4"]-->
class="x25" size="30" maxlength="8" type="text">
<!--Start: org.apache.myfaces.trinidad.Input["timej_id_4"]-->

View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message