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

Primefaces Command Button Ajax Works Only Once
Building an API-driven website with API authentication and users that aren't logged in
How to determine which react view should handle a store event
Using Ajax to update Primefaces datatable
AJAX call following 302 redirect sets origin to null
Ajax post call not calling after idle time of 5 minutes in FF
AngularJS route stuck while loading data
Best Practice for showing Page after Post
WordPress API functions not working at AJAX functions.php call
How to consume a stand alone application installed on azure server through Ajax request
Can't store result from ajax $get
Selenium IDE - AJAX text field not updating
Getting Status code as 406 and content-Type of response header is text/html instead of application/json
django forms ajax get client's data from db
Cant update children of <p:outputPanel>
Ajax & Grails - how to use the params from the model in the success of the Ajax?

Categories

HOME
paypal
dotnetrdf
admin-on-rest
answer-set-programming
dynamics-crm
freepascal
agile
h2
couchdb-2.0
snap.svg
aruco
google-classroom
powershell-v3.0
typeahead
spring-cloud-config
alfresco-share
flat-file
ip-camera
jconsole
raphael
hhvm
novnc
rhmap
lync-2013
pptp
fileinfo
sharp
hibernate-cache
svnkit
reactivemongo
gettext
swagger-editor
xamarin.uitest
readfile
strstr
stereo-3d
bing-translator-api
fastq
worker
jags
goquery
execl
inject
cfeclipse
aescryptoserviceprovider
asteriskami
scriptlet
spinlock
group-concat
android-recyclerview
test-class
rad
paypal-nvp
pyrocms
rspec3
pylearn
gulp-livereload
web-component-tester
musl
ctrlp
line-numbers
method-overriding
emma
aquafold
korma
anjuta
resource-files
crystal-reports-10
uipickerviewcontroller
sqljdbc
windows-mobile-6
transitive-closure-table
git-filter-branch
deploying
flash-cs5.5
fileutils
datacontract
datamember
sendfile
out-of-browser
surefire
scala-2.8
multibyte-functions
filetime
usability-testing
method-signature
standardized

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