Invoking popup component programmatically

Hi
I am invoking popup component programmatically for that
i have a link
i have added a popup componet inside the af|form (for eg:popup id=p3) and bind the popup to a managed bean with name popup
In the Action property of my commandlink, i have invoked a method in the managed bean( for eg.the method caller() )
In my bean class i have used:-
public class classname{
private RichPopup popup;
public void setPopup(RichPopup popup) {
this.popup = popup;
public RichPopup getPopup() {
return popup;
public String caller() {
showPopup(popup, null);
return null;
public static void showPopup(RichPopup popup, UIComponent component) {
FacesContext context = FacesContext.getCurrentInstance();
String alignId = (component==null) ? null : component.getClientId(context);
StringBuilder script = new StringBuilder();
script.append("var popup = AdfPage.PAGE.findComponent('").append("p3").append("'); ")
.append("if (!popup.isPopupVisible()) { ")
.append("var hints = {}; ");
if (alignId!=null) {
script.append("hints[AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ")
.append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_END; ");
script.append("popup.show(hints);}");
ExtendedRenderKitService erks = Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
erks.addScript(context, script.toString());
But in my page when i clicked the link it doesnot invoke the popup component....
am i missing with something......... please help
Thanks
sudeep

yeah i even tried to call the "showPopup(popup, null);" from the actionlistener of the commandlink but no invoke........
as u suggested http://ifelix.blogspot.com/2010/11/how-to-invoke-popup-component.html i followed this ........
and my jsff
<af:column sortProperty="contractFileName" sortable="false" id="c10"
headerText="Contract File Name" width="166">
<af:commandLink text="#{row.bindings.contractFileName.inputValue}"
id="cl2" partialSubmit="true"
actionListener="#{selContractName.OnClickOfContract}"
binding="#{selContractName.conName}"
action="#{selContractName.caller}">
</af:commandLink>
</af:column>
Edited by: SKD on Sep 12, 2011 7:02 PM

Similar Messages

  • Error in Invoking peoplesoft component interfaces from BPEL process

    I developed a sample bpel process to invoke peoplesoft component interfaces.
    I followed the steps mentioned in the document.
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28997/bpel_pm.htm#CDEICHJB
    When I run the BPEL process, I got the following error.
    http://127.0.0.1:8888/orainfra/wsil/adapters/applications/LOCATION_invoke.wsdl?wsdl [ LOCATIONPortType::LOCATION(input_LOCATION,output_LOCATION) ] - WSIF JCA Execute of operation 'LOCATION' failed due to: Error in parsing the input document.; nested exception is:
         javax.resource.ResourceException: Error in parsing the input document
    I found the following message in the log located at <ORACLE_HOME>/adapters/C:\product\10.1.3.1\OracleAS_1\adapters\application\config\jca_sample\log.
    Tue, 29 Jan 2008 18:30:47.0963 EST - Thread[WorkExecutorWorkerThread-2,5,main] [info ] [IWAF JCA PeopleSoft] IWAFManagedConnection for PeopleSoft:ica_psft has listener registered: com.evermind.server.connector.ConnectionContext@170d1b3
    Tue, 29 Jan 2008 18:30:48.0307 EST - Thread[WorkExecutorWorkerThread-2,5,main] [info ] [IWAF JCA PeopleSoft] Local transaction not supported by underlying adapter.
    Tue, 29 Jan 2008 18:30:48.0307 EST - Thread[WorkExecutorWorkerThread-2,5,main] [info ] [IWAF JCA PeopleSoft] IWAFManagedConnection for PeopleSoft:ica_psft dispatch event 2
    Tue, 29 Jan 2008 18:30:48.0307 EST - Thread[WorkExecutorWorkerThread-2,5,main] [error] [IWAF JCA PeopleSoft] **** Error in parsing the input document.
    oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:205)
         at com.iwaysoftware.idom.XmlDocument.parse(XmlDocument.java:120)
         at com.iwaysoftware.idom.XmlDocument.setRootXML(XmlDocument.java:77)
         at com.ibi.afjca.cci.IWAFInteraction.execProcess(IWAFInteraction.java:195)
         at com.ibi.afjca.cci.IWAFInteraction.exec(IWAFInteraction.java:136)
         at com.ibi.afjca.cci.IWAFInteraction.execute(IWAFInteraction.java:93)
         at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:470)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:431)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:416)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:222)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:736)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:371)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3271)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1697)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:269)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5244)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1083)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:530)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:333)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
         at java.lang.Thread.run(Thread.java:595)
    Tue, 29 Jan 2008 18:30:48.0323 EST - Thread[WorkExecutorWorkerThread-2,5,main] [error] [IWAF JCA PeopleSoft] SOS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Tue, 29 Jan 2008 18:30:48.0323 EST - Thread[WorkExecutorWorkerThread-2,5,main] [error] [IWAF JCA PeopleSoft] oracle.xml.parser.v2.XMLElement@4f9c1a
    Tue, 29 Jan 2008 18:30:48.0323 EST - Thread[WorkExecutorWorkerThread-2,5,main] [error] [IWAF JCA PeopleSoft] EOS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Tue, 29 Jan 2008 18:30:48.0323 EST - Thread[WorkExecutorWorkerThread-2,5,main] [info ] [IWAF JCA PeopleSoft] IWAFManagedConnection for PeopleSoft:ica_psft dispatch event 4
    I am sending the following input to run the bpel process.
    <PS8 SERVICENAME="LOCATION" METHODNAME="LOCATION" LICENSE="test">
    <component perform="browse">LOCATION</component>
    <key name="SETID">SHARE</key>
    <key name="LOCATION">ALBERTA</key></PS8>
    Can anyone help in sending the right input xml to component interface?

    I do the same thing.
    Take wsdl from axis and save it somewhere.
    Then you can create a standard project in Oracle BPEL PM. Create partnerlink, give a name and click on first icon to take your wsdl. It will add some needed code, you answer always yes. Then you can create receive, assign, invoke, assign and callback or similar and deploy it.
    Try it through BPEL Console...
    Ema

  • Setting 'source' of Image component programmatically

    How do you change the source of an mx:Image component
    programmatically in ActionScript?
    I have an image like this:
    <mx:Image id="myImage"
    source="@Embed(source='image1.png')" />
    Then I want to change this in my actionscript to image2.png.
    Why does not the following code work?
    myImage.source = "@Embed(source='image1.png')";
    The image won't load, it just displays a small square icon. I
    am sure that the path is correct because it works when I use the
    Embed statement in the component declaration.
    I appreciate your help!

    The line:
    <mx:Image id="myImage"
    source="@Embed(source='image1.png')" />
    embeds the image into your SWF file at compile time. To
    change the source at run time, you'll try something like:
    myImage.source = "images/image1.png";
    Where images is your folder on the root of web application
    context you're in and image1.png is the image to be loaded.
    Here is from image class help from docs:
    The URL, object, class or string name of a class to load as
    the content. The source property takes the following form:
    source="URLOrPathOrClass"
    source="@Embed(source='PathOrClass')"
    ATTA

  • Adding Teradata source component programmatically in SSIS

    Need help to add a Teradata source component programmatically in SSIS . I am able to add the component but the column info and other metadata is not available for subsequent components. Any documentations or suggestion is needed .

    What kind of source is it? ODBC? Column info appears after you set the columns up.
    Arthur My Blog

  • How to reuse popup component?

    Hi,
    I have a <af:popup> defined in my jspx page which will show up when mouse over the last column in the table. This mouse over popup shows standard information like "Created By", "Creation Date", "Last Updated By", "Last Updated Date". Hence, many other UI pages have the same requirement. So my question is how can reuse this popup component? Currently, its codes in embedded in the jspx page. Here is a code snipplet in the jspx:
    <af:table>
    <af:column sortable="false" headerText="Std Info"
    id="c16">
    <af:image source="/images/activity_status.gif"
    id="i1">
    <af:clientAttribute name="createdBy"
    value="#{row.bindings.CreatedByUser.inputValue}"/>
    <af:clientAttribute name="creationDate"
    value="#{row.bindings.CreationDate.inputValue}"/>
    <af:clientAttribute name="lastUpdatedByUser"
    value="#{row.bindings.LastUpdatedByUser.inputValue}"/>
    <af:clientAttribute name="lastUpdatedDate"
    value="#{row.bindings.LastUpdatedDate.inputValue}"/>
    <af:showPopupBehavior popupId=":::p1"
    triggerType="mouseOver"
    align="endAfter"/>
    </af:image>
    </af:column>
    </af:table>
    *<af:popup id="p1" contentDelivery="lazyUncached"*
    launcherVar="source" eventContext="launcher">
    *<af:panelFormLayout id="pfl1">*
    *<f:facet name="footer"/>*
    *<af:panelLabelAndMessage label="Created By" id="plam1">*
    *<af:outputText value="#{viewScope.createdBy}" id="ot2"/>*
    *</af:panelLabelAndMessage>*
    *<af:panelLabelAndMessage label="Creation Date" id="plam2">*
    *<af:outputText value="#{viewScope.creationDate}"*
    id="ot3"/>
    *</af:panelLabelAndMessage>*
    *<af:panelLabelAndMessage label="Last Updated By"*
    id="plam3">
    *<af:outputText value="#{viewScope.lastUpdatedByUser}"*
    id="ot4"/>
    *</af:panelLabelAndMessage>*
    *<af:panelLabelAndMessage label="Last Updated Date"*
    id="plam4">
    *<af:outputText value="#{viewScope.lastUpdatedDate}"*
    id="ot5"/>
    *</af:panelLabelAndMessage>*
    *</af:panelFormLayout>*
    *<af:setPropertyListener from="#{source.attributes.createdBy}"*
    *to="#{viewScope.createdBy}"*
    *type="popupFetch"/>*
    *<af:setPropertyListener from="#{source.attributes.creationDate}"*
    *to="#{viewScope.creationDate}"*
    *type="popupFetch"/>*
    *<af:setPropertyListener from="#{source.attributes.lastUpdatedByUser}"*
    *to="#{viewScope.lastUpdatedByUser}"*
    *type="popupFetch"/>*
    *<af:setPropertyListener from="#{source.attributes.lastUpdatedDate}"*
    *to="#{viewScope.lastUpdatedDate}"*
    *type="popupFetch"/>*
    *</af:popup>*
    Thanks.
    -Mina

    You can try this too..
    have a popup in a seperate jspx like popup.jspx.
    <af:popup binding="#{backingBeanScope.backing_popup.p1}" id="p1">
    I could open that popup in another jspx page by using subview.
    <f:subview id="popupView">
    <jsp:include page="/popup.jspx"/>
    </f:subview>
    Within command button:
    <af:showPopupBehavior popupId="popupView:p1"/>

  • Alighning Popup component in the center of window

    Hi
    I have following code
    <af:popup id="dialog">
    <af:dialog title="Confirm Delete" type="yesNo" dialogListener="#{DeleteDocumentBean.deleteDocumentHandler}"
    id="d3">
    <af:outputText value="Do you really want to delete the document?" />
    </af:dialog>
    </af:popup>
    if i want my popup component at the center of window what should i do
    i have gone through this link but i didnt find anything useful
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_popup.html
    Regards
    Mayur Mitkari

    Hi,
    you just open the dialog without specifying an align-id or align orientation (just only provide the popup ID in the showPopupBehavior tag added to the command launching the popup)
    Frank

  • Failed to invoke end component

    Hi,
    We were migrated our application from weblogic8.1 to weblogic10.3. We didn’t face any issues during the compile time.
    During run time when we try to access the web service, it throws "Fail to invoke end component" exception.
    Exception details are as follows:
    <testcase time="0.281" classname="com.db.gmrisk.security.gmprofile.service.UserPortalServiceTest" name="testGetUserByEmail">
        <error message="Failed to invoke end component com.db.gm.derivs.ss.xstatic.impl.service.soap.profile.UserPortalBean (POJO), operation=getUserByEmail
     -&gt; Failed to invoke method
    " type="java.lang.RuntimeException">java.lang.RuntimeException: Failed to invoke end component com.db.gm.derivs.ss.xstatic.impl.service.soap.profile.UserPortalBean (POJO), operation=getUserByEmail
     -&gt; Failed to invoke method
          at com.db.gmrisk.security.gmprofile.service.UserPortalService.getUserByEmail(UserPortalService.java:196)
          at com.db.gmrisk.security.gmprofile.service.UserPortalServiceTest.testGetUserByEmail(UserPortalServiceTest.java:46)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
          at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
          at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
          at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
          at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
    Any one please help us to resolve this issue.
    - Jai

    Hi,
    To overcome this ERROR, please make sure that Services --> <DataSource> --> Configuration --> Transaction "Set XA Transaction Timeout" is enabled.

  • Tomahawk popup component problem

    How can i rewrite popup component or write my custom component for renders a popup which displays on not a mouse event - i need by button click event. Anybody can help me ?
    Thnx

    I was use <jp:popupBox> and put into <t:dataTable> which has <h:inputText> and <h:selectBooleanCheckbox> in rows - they are not save value, they set null in my Bean. I am reading about it in forums look at that
    http://www.mail-archive.com/[email protected]/msg18007.html in this post talking about jenia problem (" I just got a response on the Jenia forum. It currently isn't possible
    to put an input box in a popup box, but it is being worked on.")

  • [svn:cairngorm3:] 21050: Popup: The default behavior when an Event. CLOSE is dispatched through the popup component should be preventable

    Revision: 21050
    Revision: 21050
    Author:   [email protected]
    Date:     2011-04-09 16:22:58 -0700 (Sat, 09 Apr 2011)
    Log Message:
    Popup: The default behavior when an Event.CLOSE is dispatched through the popup component should be preventable
    https://bugs.adobe.com/jira/browse/CGM-59
    Popup: The write-only behaviors property can not be used with states
    https://bugs.adobe.com/jira/browse/CGM-55
    Ticket Links:
        http://bugs.adobe.com/jira/browse/CGM-59
        http://bugs.adobe.com/jira/browse/CGM-55
    Modified Paths:
        cairngorm3/trunk/libraries/Popup/src/com/adobe/cairngorm/popup/PopUpBase.as
        cairngorm3/trunk/libraries/Popup/test/com/adobe/cairngorm/popup/PopUpBaseTest.as
        cairngorm3/trunk/libraries/PopupTest/.actionScriptProperties
    Added Paths:
        cairngorm3/trunk/libraries/PopupTest/html-template/
        cairngorm3/trunk/libraries/PopupTest/html-template/index.template.html
        cairngorm3/trunk/libraries/PopupTest/html-template/playerProductInstall.swf
        cairngorm3/trunk/libraries/PopupTest/html-template/swfobject.js

    Hi Shweta,
    as i discussed with you to update the script code
    <html><script> function closeWindow( ){       top.close( );     }                  </script><body><form> The application was logged off successfully. <br><input type="button" value="close window" onclick="closeWindow( );" /></ form></body></html>
    in sicf transaction for your component.
    it will work (close the window).
    dont forget to give me points
    all the best...
    Rgds,
    Mahesh.Gattu

  • Trying to create a popup component

    I'm creating a DataChoiser component that looks like edit field along with button to popup date choiser panel. This panel is wery simple, but my problem in this:
    When I'm trying to popup my panel it seems to be right, but panel don't hides when I'm clicking anywhere else not in this panel, but I need this.
    Here is code that shows popup panel, it's wery short and I hope you can help me with this.
    DateChoiserPnl pnl = new DateChoiserPnl();
         // Calculating coords of popup component to be shown
         Point myLoc = getLocationOnScreen();
         int myWidth = getWidth();
         int myHeight = dateTxt.getHeight();
         Dimension pnlSize = pnl.getPreferredSize();
         int x = myLoc.x + myWidth - pnlSize.width;
         int y = myLoc.y + myHeight;
         if (popup != null) {
         popup.hide();
         popup = null;
         popup = pupFact.getPopup(this.getParent(), pnl, x, y);
         popup.show();
    pupFact is object of type PopupFactory and popup is object of type Popup
    Oleg

    I have new question here, maybe somebody knows this: when I'm adding new FocusListener to my popup panel it doesn't fire focusLost to my listener, maybe it's problem of panel? Then how can I figure out when my panel losts focus?

  • Issue invoking Popup as Declarative component on mouseHover

    Hi,
    My use case is to show a popup and display some more details on the Popup on mouseHover on a tree of Links. (Something similar to tooltip but little more advanced)
    Since this Popup is reused in many UIs, I created a Declarative component (DC).
    Unfortunately when I try to link this declarative component to the <af:showPopupBehavior of a link component, id of the DC is not recognized as a valid "popupId"?
    <af:showPopupBehavior popupId="infoPopup" triggerType="mouseHover"/>
    Kindly let me know if there's a work around or any alternate ways to achieve this.
    Thanks in advance,
    Paskal Sanil

    Hi,
    try declarativecompid:popupid
    like
    <af:showPopupBehavior popupId="declarativeCompId:infoPopup" triggerType="mouseHover"/>Else you can use javascript to open popup manually using client listener.
    http://sameh-nassar.blogspot.in/2010/02/javascript-functions-sample.html
    Regards,
    Edited by: Santosh Vaza on Aug 8, 2012 12:36 PM

  • How to invoke popup from managed bean

    Hi Can anyone give me idea for invoking a pop-up from method in the managed bean plz,
    Here my coding,
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" binding="#{backingBeanScope.backing_untitled5.d1}">
    <af:form id="f1" binding="#{backingBeanScope.backing_untitled5.f1}">
    <af:commandButton text="commandButton 2"
    binding="#{backingBeanScope.backing_untitled5.cb2}"
    id="cb2"
    action="#{backingBeanScope.backing_untitled5.cb2_action}"/>
    </af:form>
    <af:popup binding="#{backingBeanScope.backing_untitled5.p1}" id="p1">
    <af:panelWindow binding="#{backingBeanScope.backing_untitled5.pw1}"
    id="pw1"/>
    </af:popup>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_untitled5-->
    </jsp:root>
    Managed bean coding,
    import javax.faces.context.FacesContext;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.RichPanelWindow;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
    import org.apache.myfaces.trinidad.util.Service;
    public class Untitled5 {
    private RichForm f1;
    private RichDocument d1;
    private RichPopup p1;
    private RichPanelWindow pw1;
    private RichCommandButton cb2;
    public void setF1(RichForm f1) {
    this.f1 = f1;
    public RichForm getF1() {
    return f1;
    public void setD1(RichDocument d1) {
    this.d1 = d1;
    public RichDocument getD1() {
    return d1;
    public void setP1(RichPopup p1) {
    this.p1 = p1;
    public RichPopup getP1() {
    return p1;
    public void setPw1(RichPanelWindow pw1) {
    this.pw1 = pw1;
    public RichPanelWindow getPw1() {
    return pw1;
    public void setCb2(RichCommandButton cb2) {
    this.cb2 = cb2;
    public RichCommandButton getCb2() {
    return cb2;
    public String cb2_action() {      .
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService extRenderKitSrvc =
    Service.getRenderKitService(context, ExtendedRenderKitService.class);
    extRenderKitSrvc.addScript(context,"AdfPage.PAGE.findComponent('" + p1 + "').show();");
    return null;
    looking for ur reply
    Regards,
    Tom

    If you are using JDev 11.1.1.3, then in a managed bean method use the following to show or hide the popup:
    RichPopup.PopupHints hints = ...<set_the_hints>...;
    p1.show(hints);
    // or
    p1.hide();If you are using an older JDev 11g, then use the following:
       * Hides a popup.
       * @param popup Popup to be hidden.
      public static void hidePopup(RichPopup popup) {
        FacesContext context = FacesContext.getCurrentInstance();
        String popupId = popup.getClientId(context);
        StringBuilder script = new StringBuilder();
        script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ")
              .append("if (popup.isPopupVisible()) { ")
              .append("popup.hide();}");
        ExtendedRenderKitService erks =
          Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
        erks.addScript(context, script.toString());
       * Shows a popup.
       * @param popup Popup to be shown
      public static void showPopup(RichPopup popup) {
        showPopup(popup, null);
       * Shows a popup alligned to the start of specified UI component.
       * @param popup Popup to be shown
       * @param component UI component to allign to
      public static void showPopup(RichPopup popup, UIComponent component) {
        FacesContext context = FacesContext.getCurrentInstance();
        String popupId = popup.getClientId(context);
        String alignId = (component==null) ? null : component.getClientId(context);
        StringBuilder script = new StringBuilder();
        script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ")
              .append("if (!popup.isPopupVisible()) { ")
              .append("var hints = {}; ");
        if (alignId!=null) {
          script.append("hints[AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ")
                .append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_START; ");
        script.append("popup.show(hints);}");
        ExtendedRenderKitService erks =
          Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
        erks.addScript(context, script.toString());
      }You can find these methods in the Steve Muench's utility class JSFUtils.
    Dimitar
    Edited by: Dimitar Dimitrov on Nov 15, 2010 2:59 PM

  • Problem while invoking popup from backing bean

    I am invoking a popup from backing bean method.
    The same backing bean method has the business logic which depends on the data collected from popup(user enters some data on popup).
    So I need the business logic to be executed after popup comes up.
    The popup is coming after the execution of return statement in backing bean method . How do i make popup trigger at earlier point in the method.
    <af:commandToolbarButton text="#{corePostupgradeuiBundle.SIGN_OFF_MIG}"
    id="socb52"
    partialSubmit="true"
    actionListener="#{viewScope.signoffBean.signOffAgents}"
    partialTriggers="t3"/>
    public void signOffAgents(ActionEvent event) throws SQLException {
    DCBindingContainer bc =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding summaryIter =
    bc.findIteratorBinding("Signoff1Iterator");
    showPopup("credentials"); //will get credential details from user and store in credential Bean
    //Following logic uses the data collected from popup
    EMCredentialReference credRef= credentialBean.getCredReference();
    submitJOb(credRef);
    public static void showPopup(String popupId) {
    FacesContext context = FacesContext.getCurrentInstance();
    StringBuilder script = new StringBuilder();
    script.append("AdfPage.PAGE.findComponent(\"").append(popupId).append("\").show();");
    ExtendedRenderKitService erks =
    Service.getService(context.getRenderKit(),
    ExtendedRenderKitService.class);
    erks.addScript(context, script.toString());
    UIComponent component = context.getViewRoot().findComponent(popupId);
    RequestContext.getCurrentInstance().addPartialTarget(component);
    }

    Well, your work flow is wrong.
    What you try to accomplish should work out of the box as
    1) user hit toolbar button
    2) this opens a popup "credentials" which have listeners for ok and cancel
    3) use fills in data in popup and hit ok or cancel
    4) one of the listeners gets fired
    5a) if OK listener you do your business logic
    5b) if cancel you do something else
    So all you have to do is the use a af:af:showPopupBehavioron the toolbar button, add a popup canel listener (if you need to act on canel) dependign on your popup design (dialog or simple button) add the appropriate listeners and in the listener method so your business logic.
    Timo

  • Invoking popup with taskflow train accepting parameters from a  region

    Hi All,
    I would like to know the best practice to implement the following use case. Jdeveloper used is Jdev11g.
    I have a taskflow DND as a region. The refresh property is set to if needed so that region is loaded when the input parameter is changed. The region displays the table and the contents of the table is modified in a another task flow train which is DND as a region in a popup and the popup is invoked on button click. The taskflow train in the popup accepts input paramters and the refresh is set to if Needed. The popup has to be closed at the end of task flow and also the parent region should be refreshed to reflect the updated value.
         I was not able to control the order of execution of action listener of button(to set the parameters required task flow) and show popup behavior( to invoke the popup). Show pop up behavior is executed before action listener and hence the parameters are not properly passed to the task flow.
    Here are few queries:
    1.To work around the above problem, we implemented a client listener to find and show the pop up.Is this the right way to do it?.
    2.Also at the end of the taskflow train taskFlowReturn returns to head of the task flow and the popup still remains in the window. We implemented a region navigation listener to identify the end of the task flow and hide the popup(is this right?).
    3.To refresh the parent region we find the component in the view tree and do region.getRegionModel().refresh(FacesContext.getCurrentInstance())( is this the right way to do it).
    4. The parameters are not passed properly when the table from which popup with taskflow train is invoked is the detail table of Master-detail relationship.
    Regards,
    Prakash

    Hi,
    this document describes best practices
    http://www.oracle.com/technology/products/adf/patterns/11.1.1.1.0/popupregionpattern.pdf
    Frank

  • NoSuchMethodError when invoking EJB Component  From BPM Process

    Hi,
    I created BPM process which contains global creation activity and user interactive activity and catalogued ejb component. In user interactive activity i wrote the Process Business Language to invoke Remote EJB deployed in weblogic server. When i tried to execute user interactive activity, i got the following exception.
    Caused by: java.lang.NoSuchMethodError: weblogic.kernel.KernelStatus.isThinIIOPClient()Z
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:192)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
         at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:191)
         at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:201)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at weblogic.jndi.internal.ServerNamingNode_921_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:374)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at fuego.jndi.FaultTolerantContext.lookup(FaultTolerantContext.java:515)
         at fuego.connector.impl.BaseRemoteConnector.getReferencedObject(BaseRemoteConnector.java:116)
         at fuego.connector.impl.BaseRemoteConnector.getReferencedObject(BaseRemoteConnector.java:107)
         at fuego.ejb.EJBConnector.getEJBHome(EJBConnector.java:62)
         at fuego.ejb.EJBConnector.getEJBHome(EJBConnector.java:52)
         at fuego.ejb.EJBConnector.getResource(EJBConnector.java:101)
         at fuego.ejb.EJBConnector.getResource(EJBConnector.java:91)
         at fuego.ejb.EJBConnector.getResource(EJBConnector.java:79)
         at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:276)
         at fuego.connector.EJBHelper.getEJBHome(EJBHelper.java:36)
         at fuego.connector.EJBHelper.getEJBHome(EJBHelper.java:30)
         at fuego.ejb.EJBHome.locate(EJBHome.java:119)
         at OrderManagement.SampleOrderProcess.Default_1_0.Instance.CIL_submitOrder(Instance.xcdl:1)
         at OrderManagement.SampleOrderProcess.Default_1_0.Instance.CIL_submitOrder(Instance.xcdl)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512)
    what i noticed here is in Oracle BPM Studio there is weblogic jar file which contains Kernel status file. The KernelStatus file do not have "isThinIIOPClient method". But in wlclient jar file there is Kernel status class which contains "isThinIIOPClient" method.
    How can I override the weblogic.jar and wlclient.jar for Oracle BPM?
    Please help me to resolve this problem.
    Thanks and Regards
    Mahesh Babu

    I resolved the above issue by generating ejb2.1 session bean and ejb2.1 client. But When i tried to invoke ejb2.1 session bean from process using Process Business Language, it throws the following exception.
    Task failed.
    Caused by: Task '0' in activity '/SampleOrderProcess#Default-1.0/Interactive[SubmitOrder]' for instance '/SampleOrderProcess#Default-1.0/1/0' could not be successfully executed. The task failed while executing method 'submitOrder'.
    Caused by: The method 'CIL_submitOrder' from class 'OrderManagement.SampleOrderProcess.Default_1_0.Instance' could not be successfully executed.
    Caused by: java.lang.IncompatibleClassChangeError
    Caused by: fuego.lang.ComponentExecutionException: The method 'CIL_submitOrder' from class 'OrderManagement.SampleOrderProcess.Default_1_0.Instance' could not be successfully executed.
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273)
         at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219)
         at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
         at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
         at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:425)
         at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
         at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:501)
         at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:454)
         at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
         at fuego.server.AbstractProcessBean$48.execute(AbstractProcessBean.java:3184)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
         at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3188)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:585)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: java.lang.IncompatibleClassChangeError
         at OrderManagement.SampleOrderProcess.Default_1_0.Instance.CIL_submitOrder(Instance.xcdl:5)
         at OrderManagement.SampleOrderProcess.Default_1_0.Instance.CIL_submitOrder(Instance.xcdl)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512)
         ... 34 more
    Please help me to resolve this issue.
    Thanks and Regards
    Mahesh Babu

Maybe you are looking for

  • Getting Big Headache, What is difference between Flash Lite 3.1 and Flash Player 7

    Hello, I am asking questions about the two similar yet different programs for Pocket PC version only: 1) Which came first, Flash Lite 3.1 or Flash Player 7? 2) If I have both in my Pocket PC, will there be product incompatibility? 3) What is the diff

  • SMART Hard Drive Imminent failure

    Hi, today when I woke up and started my computer it started up with an error message stating that my hard drive was in for imminent failure. I'm not sure exactly how this has happened. I've never dropped my computer, and it has always been sitting on

  • Screen Sharing and Talktalk UK

    Apologies if this duplicates what others have said. I've spent a lot of time trawling through here but I'm wondering particularly if the problem I'm having might be related to talktalk, my dad's provider. 1. I have an intel iMac running leopard. Comc

  • Mac Mini mid 2011 SSD HDD lower upper position

    German Hallo, bin mir nicht sicher wo genau auf welcher Position bei dem Modell MacMini mid 2011 die HDD und SDD angeschlossen werden muss. Für mich reinlogisch gesehen wegen der Wärmeentwicklung müsste die HDD auf der Upper Pos. sein und die SSD auf

  • AME CC crashes on startup

    Today, AME CC has suddenly started crashing on load. It was fine last week, which made me suspect an update, but no Windows updates have occurred since this time. I have uninstalled all 3rd party plugins (as it was initially hanging on Shine.aex) but