[richfaces-issues] [JBoss JIRA] Created: (RF-1938) tab ontabenter problem

Tomislav Jakopec (JIRA) jira-events at lists.jboss.org
Thu Jan 17 06:26:16 EST 2008


tab ontabenter problem
----------------------

                 Key: RF-1938
                 URL: http://jira.jboss.com/jira/browse/RF-1938
             Project: RichFaces
          Issue Type: Bug
            Reporter: Tomislav Jakopec


This is my example

<f:view>
	<html>
	<body>
	<h:form id="forma">
		<r:tabPanel switchType="client">
			<r:tab label="first"
				ontabenter="document.getElementById('forma:input1').focus();">
				<t:inputText id="input1" />
			</r:tab>
			<r:tab label="second"
				ontabenter="document.getElementById('forma:input2').focus();">
				<t:inputText id="input2" />
			</r:tab>
		</r:tabPanel>
	</h:form>
	</body>
	</html>
</f:view>

When I click on second tab it doesn't set focus on input2. It set focus on input2 when I press tab second time. Same thing is with firstTab.
So, I have to press tab name twice  to get desirable behavior - setting focus on element. I will like to press tab name once, tabPanel show me pressed tab content and focus element form ontabenter directiv

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list