Sunday 29 December 2013

How to get the cursor defaualtally

Posted by Саша 02:30, under | No comments


How to get the cursor defaualtally? How to get the cursor defaualtally?

If we have three or more text fields and i want the cursor placed on the first textbox by default using rich-faces?
and this my code please help to solve this problem
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facele...
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">


<script type="text/javascript">


document.the_form.u_input.focus();

</script>

<body bgcolor="#FFFFFF">



<h:form name="the_form">


<h:inputText type="text" NAME="u_input" onfocus="document.the_form.u_input.focus... />

</h:form>
</body>

</ui:composition>

this is the code i have written in rich-faces

can any one help me and in advance thank you














0 коммент.:

Post a Comment