[
https://issues.apache.org/jira/browse/TOBAGO-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566598#action_12566598
]
Volker Weber commented on TOBAGO-615:
-------------------------------------
There is already a focus attribute on tx:in, set focus="true" at the element
which should get the focus.
If this did not meets your requirements maybe we should interpret focus="false"
like you describe the nofocus="true".
> it would be nice to configure tc/tx:in not to grab focus on load
> ----------------------------------------------------------------
>
> Key: TOBAGO-615
> URL: https://issues.apache.org/jira/browse/TOBAGO-615
> Project: MyFaces Tobago
> Issue Type: Improvement
> Components: Facelets
> Affects Versions: 1.0.14
> Environment: jdk 1.4
> facelets / templates
> Reporter: Rainer Rohloff
>
> When using facelets with templates an input field in the template should be
> marked as "nofocus". So the content of the application receives the focus.
> layout.xhtml
> ...
> <tc:page>
> <f:facet name="layout">
> <tc:gridLayout border="0" columns="170px;*"
> margin="0px" rows="50px;*" cellspacing="0" />
> </f:facet>
> <tx:in label="Search" value="searchBean.serach" nofocus="true">
> ...
> <ui:insert name="Content">
> </ui:insert>
> ...
> main.xhtml
> <ui:composition template="layout.xhtml">
> <ui:define name="Content">
> <tc:box >
> <f:facet name="layout">
> <tc:gridLayout columns="1*;1*"
> rows="fixed;fixed;fixed;fixed;fixed;fixed;fixed;fixed;fixed;*" />
> </f:facet>
> should get the focus --> <tx:in label="Input" value="#{appBean.value}" />
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.