setting focus on a component when a dialog is closed

UI Components for JSF
Post Reply
opydn
Posts: 4
Joined: 20 Jun 2010, 20:03

20 Jun 2010, 20:20

i've tried writing some code to oncomplete attribute of select button like:

Code: Select all

<p:dialog header="Geldiği Yer" widgetVar="geldigiYerDlg" modal="true" fixedCenter="true"
                      effect="FADE" effectDuration="0.25">
                <p:dataTable var="item" value="..." scrollable="true" height="200px"
                             selection="..." dynamic="true" selectionMode="single"
                             loadingMessage="Yükleniyor...">
                    <p:column filterBy="..." width="500">
                        <f:facet name="header">
                            <h:outputText value="Geldiği Yer"/>
                        </f:facet>
                        <h:outputText value="..."/>
                    </p:column>
                </p:dataTable>
                    <p:commandButton value="Aktar" actionListener="..." oncomplete="geldigiYerDlg.hide(); document.getElementById('konusuTxt').focus();"
                                 update="..." async="true"/>
            </p:dialog>
didn't work.if i remove effect tags it works.What can i do?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests