Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

display popup programmatically

886705Mar 13 2012 — edited Mar 13 2012
Hi All,

I am using adf11g.In my page i am using one XXX button.
in the action of that XXX button,i am calling one method.in that method i wrote code to call popup programmatically.
when i click XXX button,the popup is not calling .

Below is my code.
In jsff page:
----------------

<af:commandToolbarButton text="#{UIMessage['LABEL_REJECT_BUTTON']}"
id="ctb11"
disabled="#{bindings.CoaStatus.inputValue == 'A' ? true : bindings.CoaStatus.inputValue == 'R' ? true : false }"
action="#{COAStructureBean.rejectStatus}"
rendered="#{bindings.CoaAppDate.inputValue == null and bindings.CoaStatus.attributeValue == 'C' ? true : false}">
<af:setActionListener from="#{'J'}"
to="#{requestScope.recordStatus}"/>
</af:commandToolbarButton>



<af:popup id="p1" binding="#{COAStructureBean.bind_PopUp}"
partialTriggers="ctb11" contentDelivery="immediate">
<af:dialog id="d1" titleIconSource="/Images/info.png" type="yesNo"
title="Information"
dialogListener="#{COAStructureBean.deleteRejectRecord}">
<af:panelGroupLayout id="pgl21" inlineStyle="width:247px;"
layout="horizontal" valign="top">
<af:outputText value="Are You Sure, You Want To Delete?" id="ot41"
inlineStyle="font-weight:bold;" noWrap="true"/>
</af:panelGroupLayout>
</af:dialog>
</af:popup>


In Java Bean:
------------------

FacesContext context = FacesContext.getCurrentInstance();
String popUp=this.getBind_PopUp().getClientId(context);
System.out.println("pop up id----------------->"+popUp);
ADFUtils.addPartialTarget(bind_PopUp);
ExtendedRenderKitService erks =Service.getRenderKitService(context, ExtendedRenderKitService.class);
erks.addScript(context, "AdfPage.PAGE.findComponent(+popUp+).show();");

but when i click button,popup is not calling.
Please give me the solution.


Thanks in advance,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2012
Added on Mar 13 2012
19 comments
6,250 views