ajax


p:dialog not showing on oncomplete attribute of ajax


i want to pop up a dialog box on ajax call, i have tried so many ways but i couldn't found the solution. Can anybody help me out thanks.
the xhtml code is given below
<h:body>
<h:form>
<p:selectOneRadio style="margin-left:10px" value="#{newSubBean.selectedEvent}" required="true" layout="pageDirection">
<f:selectItems value="#{newSubBean.events}" var="item" itemValue="#{item.eventId}" itemLabel="#{item.title}" />
<p:ajax event="change" update="dt" oncomplete="PF('sub').show()"></p:ajax>
</p:selectOneRadio>
<p:dialog visible="true" id="dialog" widgetVar="sub" header="Previous Subscriptions" showEffect="explode" hideEffect="bounce">
<p:dataTable id="dt" style="width:800px" value="#{newSubBean.subscribedEventList}"
var="rows">
<f:facet name="header">
<p:outputLabel value="Previous Subscriptions"></p:outputLabel><br/>
<p:outputLabel styleClass="preformatted" value="#{newSubBean.eventName}"></p:outputLabel>
</f:facet>
<p:column headerText="Subscribed Notification">
<p:outputLabel value="#{rows.notificationType.title}"></p:outputLabel>
</p:column>
<p:column headerText="Subscribed Template">
<p:outputLabel value="#{rows.notificationTemplateDetail.title}"></p:outputLabel>
</p:column>
<p:column headerText="Subscription Time">
<p:outputLabel value="#{rows.insertionTimeStamp.getTime().toLocaleString()}"></p:outputLabel>
</p:column>
</p:dataTable>
<p:commandButton value="Close" onclick="PF('sub').hide();"></p:commandButton>
</p:dialog>
</h:form>
</h:body>

Related Links

PageScope after Ajax in grails
soap web service consume with ajax
Ajax Login from MVC
AngularJS not sending scope data to php
Set timeout with Swagger-JS?
laravel 5 ajax authentification
Migration to Wicket 7 - js generated components ajax issues
Error submit form ajax in laravel 4
Create iframe content using django ajax and render_to_string
Using Python 3.4 and Beautiful Soup to handle Ajax Pagination
Node js cant parse stringified json
unable to send post request properly in laravel 5.1
Django-Ajax : Many same load()
Ajax not responding on Node.Js Express server
Update Django Template every 5 seconds Fail
Programatically adding products to a user's remote magento cart

Categories

HOME
arrays
laravel-5
jenkins-plugins
winapi
wildcard
raspbian
puppet
gspread
file-io
websphere-liberty
criteria
cartodb
lagom
gwtp
local
symfony-forms
mod-pagespeed
yeoman-generator
google-openid
ng-show
atlassian-plugin-sdk
ms-access-2007
prestodb
jconsole
sensu
apply
csh
fabric
croppic
katharsis
pptp
web-frontend
ab-initio
pentaho-report-designer
blackboard
pygooglechart
ioc-container
ifstream
ios-ui-automation
superpowered
service-locator
honeysql
css-counter
jboss-esb
ksoap
nodeclipse
ntfs-mft
rkt
cppunit
asmx
email-parsing
tuleap
sgmlreader
jenkins-jira-trigger
bnd
slot
text-classification
react-native-fbsdk
opencpu
shinyjs
garrys-mod
createobject
typhoon
uistackview
chessboard.js
try-finally
pagekit
selecteditem
flexjson
license-key
loose-typing
sonarqube5.3
java.util.calendar
textkit
mptcp
mogrify
ffprobe
findcontrol
subversion-edge
searchkick
musl
pl-i
libsndfile
vcl
config-files
jstack
resource-files
image-zoom
installshield-2009
jqmobi
dynamic-binding
dig
backbone-relational
apache2.2
objcmongodb
android-contextmenu
dynamic-data
cgpath
mozart-mvc
code-conversion
socketstream
xmlslurper
rose-db-object
applicationcontext
for-xml-path
ruby-debug
zend-form-element
pantheios
getresource
recordset
yajl
integer-promotion
soft-keyboard

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App