Render phase of a popup in adf?

Hi guys
I use a adf pop up to display an applet:
<af:popup>
<af:dialog>
<f:verbatim>
<applet .... />
</f:verbatim>
</af:dialog>
</af:popup>
The popup is triggered by command button using showPopUpBehavior. Strangely when the popup is displayed and the applet is created, there are two instance of applet is created at the same time.
Is this because of different render phase of adf dialog ? (normally if the applet is displayed right inside the web page, it runs fine).
Any suggestion?
Thank you very much
Best regards
K.

Hello,
I have the same issue, with one more thing, ie flashes when opening popup. And also creates two instances. I don't know why.
Regards,
Jelena

Similar Messages

  • Npe when using popup inside adf table column

    hi i have a popup witch is inside adf column table but when i click the button i get this npe error
    <af:column id="c7" headerText="Action">
                  <af:commandButton text="Add" id="cb2">
                    <af:showPopupBehavior popupId="p1" triggerType="click"/>
                  </af:commandButton>
                  <af:panelGroupLayout id="pgl2" inlineStyle="width:1042px;"
                                       layout="horizontal" valign="middle"
                                       halign="right">
                    <af:popup id="p1" contentDelivery="lazyUncached">
                      <af:dialog id="d1" type="cancel">
                        <af:region value="#{bindings.usrtaskflowdefinition1.regionModel}"
                                   id="r1"/>
                      </af:dialog>
                    </af:popup>
                    <af:commandButton text="Cancel" id="cb1" rendered="false"/>
                    <af:commandButton text="Remove" id="cb3" visible="false"/>
                  </af:panelGroupLayout>
                </af:column>
    am geting this NPE ERROR
    <FacesCtrlSearchBinding> <release> ADFv: release():: Release all resources.
    <ADFLogger> <end> ADF web request
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
        at com.sun.el.parser.AstValue.getValue(Unknown Source)
        at com.sun.el.parser.AstEqual.getValue(Unknown Source)
        at com.sun.el.parser.AstOr.getValue(Unknown Source)
        at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
        at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.getBooleanProperty(UIXComponentBase.java:1204)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.isRendered(UIXComponentBase.java:423)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:810)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:263)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at oracle.adf.view.rich.component.fragment.UIXRegion.validateChildrenImpl(UIXRegion.java:634)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1422)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1358)
        at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
        at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
        at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
        at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:407)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
        at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
        at sun.reflect.GeneratedMethodAccessor357.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
        ... 87 more
    <QueryCollection> <finalize> [4342] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4343] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
    <QueryCollection> <finalize> [4344] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
    <ControllerState> <finalizeRequest> ADFc: Request number [9] for session [14gycvxp1h_] has been finalized.
    <QueryCollection> <finalize> [4345] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
    <RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Attempting to release RootViewPort request lock on 14gycvxp1h_0
    <QueryCollection> <finalize> [4346] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
    <QueryCollection> <finalize> [4347] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
    <RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Successfully released RootViewPort request lock on 14gycvxp1h_0
    <QueryCollection> <finalize> [4348] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
    <QueryCollection> <finalize> [4349] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
    <Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
    <QueryCollection> <finalize> [4350] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
    <QueryCollection> <finalize> [4351] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4352] ##### QueryCollection.finl no RowFilter
    <Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
    <QueryCollection> <finalize> [4353] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4354] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4355] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4356] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4357] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4358] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4359] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4360] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4361] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4362] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4363] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4364] ##### QueryCollection.finl no RowFilter
    <AbstractExecutionContext> <getECForJDBC> adding new ECForJDBC null to set of listeners for this context
    <WatchingDocumentChangeNotifier> <run> decide if checkUsingListeners should run. loopCnt: 0 changeInterval: 60000 originalChangeInterval: 60000 forceCheckForUpdate: false notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
    <WatchingDocumentChangeNotifier> <checkUsingListeners> BEGIN checkUsingListeners for notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
    <WatchingDocumentChangeNotifier> <checkUsingListeners> notifier processing file: C:\Users\10017134\App

    Caused by: java.lang.NullPointerException
        at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
    It seems that problem is caused by af:query or quickquery component(or underlying view object or view criteria).
    Maybe you can drop BTF as static region directly to your page and see if this will run correctly?
    YES i have try stll does not work
    So then this is not related with "npe when using popup inside adf table column"  
    Dario

  • How to modified a URL showed in a Render phase from the Action phase.

    Hi all,
    I have a problem with a URL showed when I pass from action phase to render phase. Next I explain that problem.
    I'm using a Weblogic Portal 10.3., Java Portlet and Spring. My portlet contains two controllers (A and B). The controller A receive an action and depending of a parameter, shows a viewA (which is managed by A controller) or viewB (managed by B controller). To do that I use a ParameterHandlerMapping of SpringFramework, which if an action parameter is A, the portlet use Controller A and use controller B if an action parameter is B.
    Next I show you a Controller A method which receive an action:
    @ActionMapping(params={"action=A","execAction=redirection","pg"})
    public void accionIrFichaDispositivo(ActionRequest req, ActionResponse resp,
    @ModelAttribute("listadoVozForm") ListadoVozForm form,
    @RequestParam("pg") String paramPg) throws PortletException, IOException{
    if(pg.equals("Hola")){
    }else{
    resp.setRenderParameter("action", "B");
    In a Render Phase, which is managed by Controller B, the URL contains the value of action parameter: action=A.
    How can I modified that action parameter to show action=B?..
    Regards..

    Hello,
    What you are seeing is the expected behavior; the URL in the browser will be the action URL (with action=A) even though the portlet is setting a render parameter action=B in the action phase. There's nothing "wrong" with this; the "B" controller will get run because the render parameter "action=B" exists, even though it isn't what is displayed in the browser. In general, it is best to not be concerned about what parameters are in the browser's URL, as the portal framework is managing all the parameters for you on the server-side.
    If you really want the browser's displayed URL to not be the action URL, there is a feature built in to WLP 10.3.2 and later versions which will cause the browser to do a redirect to the render URL just after the action phase runs. This will make the browser display the "action=B" in the URL, but the redirect will also double the number of requests the server must handle, so consider if you really need the browser's URL to display the current render URL. To turn this feature on, modify the entry for your portlet in the WEB-INF/portlet.xml file to add a container runtime option "com.oracle.portlet.redirectAfterAction", like this:
        <portlet>
            <portlet-name>sampleRedirectAfterAction</portlet-name>
            <portlet-class>
                portlets.jsr286.SampleRedirectAfterAction
            </portlet-class>
            <supports>
                <mime-type>text/html</mime-type>
                <portlet-mode>view</portlet-mode>
            </supports>
            <portlet-info>
                <title>Redirect After Action Sample</title>
            </portlet-info>
            <container-runtime-option>
                <name>com.oracle.portlet.redirectAfterAction</name>
                <value>true</value>
            </container-runtime-option>
            <container-runtime-option>
                <name>com.oracle.portlet.suppressWsrpOptimisticRender</name>
                <value>true</value>
            </container-runtime-option>
        </portlet>The "suppressWsrpOptimisticRender" runtime option is recommended as a performance enhancement for any portlets being run over WSRP which also have the "redirectAfterAction" option, however, if you are running your portlets over WSRP you won't be seeing the render parameters in the browser's URL in any recognizable form anyway.
    Kevin

  • Input list of values resizing popup in adf?

    I have a screen for example.
    [http://2.bp.blogspot.com/_YeFnEaxTQCI/SloGR7HW6II/AAAAAAAAAKM/3-QP8OrYhns/s1600-h/lovbug2.jpg]
    and need to change the width of the popup the input list of values.
    I am a novice in adf.
    I need help
    sorry for my English

    Thanks Puthanampatti..
    Problem here is how to execute the methods because
    1) I have to set two bind parameters
    2) Not able to catch the action/action listner on button click
    Pls. pass your suggestions.
    Thanks
    Kanika

  • Close popup in adf

    Hi,
    I am using Jdeveloper 11.1.1.4 and ADF-BC in my project.
    In one of my modules,I open a taskflow as a popup.
    Popup has two buttons Ok and Cancel. On click of cancel,I want to show an adf message and then close the popup.
    On click of Ok,I directly close the task flow popup.
    But on cancel,I need to show a message and then only close.[Wait until user clicks on 'Ok' in adf message which is invoked on cancel]
    How to achieve this...
    Please advice..
    Regards,
    Praveen

    Hi
    set autoCancel to disabled for popup
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_popup.html

  • JTree icons render as defaults when popup is shown

    I'm having trouble with JTree. When I right click to show a popup, the JTree nodes are not renderered with the icons that I sent in my specialized renderer. Instead they have the default icons. When the popup disappears they revert back to my special icons. I have a specialized renderer, and editor attached to the tree. I have tried turning of the editor, but it still happens. Has anyone seen this before?
    I looked in the DefaultTreeCellEditor, to see if where it was getting the icon, and I found determineOffset() method that calls getLeafIcon(), getOpenIcon(), and getClosedIcon() which are set to the defaults. My tree is more complex that leaf, open, closed icons. Some leaves have different icons depending on their type. I was wondering if somehow it was getting those icons from there.

    Are your treeCellRenderer, treeCellEditor extends from the DefaultTreeCellRenderer / Editor ?
    If yes, you can overwrite those methods.
    There are also the UI manager can force the default icons used.

  • Command button doesn't render properly with customized images in ADF 11g

    Hi all,
    I have these elements in the .css file:
    /** button **/
    .AFButtonServerText:alias {
    background-color:#daebf2;
    color:#000000;
    font-size:100%;
    font-family:Luxi Sans, Dialog;
    vertical-align:middle;
    -ora-text-antialias:true;
    .AFButtonServerTextDisabled:alias {
    background-color:#f5f5e4;
    color:#aaaaaa;
    font-size:100%;
    font-family:Luxi Sans, Dialog;
    vertical-align:middle;
    -ora-text-antialias:true;
    .AFButtonStartIcon:alias {
    /*content:url(/skins/images/buttonStart.gif); */
    content: url("images/buttonStart.gif");
    width:8px;
    height:20px;
    .AFButtonStartIcon:alias:rtl {
    /*content:url(/skins/images/buttonEnd.gif); */
    content: url("images/buttonEnd.gif");
    width:8px;
    height:20px;
    .AFButtonEndIcon:alias {
    /*content:url(/skins/images/buttonEnd.gif); */
    content: url("images/buttonEnd.gif");
    width:8px;
    height:20px;
    .AFButtonEndIcon:alias:rtl {
    /*content:url(/skins/images/buttonStart.gif); */
    content: url("images/buttonStart.gif");
    width:8px;
    height:20px;
    .AFButtonTopBackgroundIcon:alias {
    /*content:url(/skins/images/buttonTop.gif); */
    content: url("images/buttonTop.gif");
    width:1px;
    height:2px;
    .AFButtonTopBackgroundIcon:alias:rtl {
    /*content:url(/skins/images/buttonTop.gif); */
    content: url("images/buttonTop.gif");
    width:1px;
    height:2px;
    .AFButtonBottomBackgroundIcon:alias {
    /*content:url(/skins/images/buttonBottom.gif); */
    content: url("images/buttonBottom.gif");
    width:1px;
    height:2px;
    .AFButtonBottomBackgroundIcon:alias:rtl {
    /*content:url(/skins/images/buttonBottom.gif); */
    content: url("images/buttonBottom.gif");
    width:1px;
    height:2px;
    I am expecting to get some round corners in the button, but it fails in 11g. This only happens in ADF 11g, in 10g, it works. I use JDEV 11.1.1.4.0 and <tr:commandButton> in the UI. What have I possibly missed?
    Thanks.
    Shawn
    Edited by: shawn_abc on May 17, 2012 3:52 PM
    Edited by: shawn_abc on May 17, 2012 3:56 PM

    Hi Frank,
    Yes, I was searching in this url previously: http://myfaces.apache.org/trinidad/skin-selectors.html and couldn't find it either. Is there any way to achieve what I intend to do like using af|commandButton?
    Thanks,
    Shawn

  • Open new browser popup window in an portlet application

    Hi all,
    I want to open a popup browser window from a portlet application.
    I found this in Oracle portlet bridge documentation:
    +ADF Faces Dialog Framework is not supported. If your application includes any buttons or icons that launch secondary browser windows, the contents of the new windows are not displayed properly when the application is run as a portlet. As such, you should avoid using these components if you plan to portletize your application. Examples of components that launch secondary windows are:
    <tr:inputDate>
    <tr:inputColor>
    <tr:popup>
    the useWindow attribute of <af:commandButton>
    +
    Is there any solution to it? Should I look at using javascript to open the popup browser window?

    Hi guys,
    Thanks for your answer,
    I tried the af:popup and it should work properly.
    However I have a problem with the popup itself and applet as my post here:
    Render phase of a popup in adf?
    When I put the applet in a popup, when the popup is displayed, two instance of the same applet is created at the same time.
    I don't know whether it is a problem with the popup life cycle or not?

  • ADF Popup not showing at fragment load

    Hi,
    I am calling a bean method in getter of command link at the load by binding it to a command link defined in bean, so when this fragment is called from other fragment then
    in this method i m doing some checks ,and based on particular condition i have popup.show but it doesnt show the popup and code is not raising any exception.
        public RichCommandLink getC1() {
            populatedata();
            return c1;
      Now in populatedata ,I have popup shown for some conditions but when fragment is getting called for first time it doesnt show the popup ,but same populatedata is called from button on the fragment 
      so when i click on button ,this popup is shown properly.
    So as I understand first time getC1 gets fired when fragment was getting loaded ,so how to make sure popup is displayed during that ..
    public void populatedata()
    if ....
                        System.out.println("showing popup");                   
                       RichPopup.PopupHints p2 = new RichPopup.PopupHints();                   
                         p1.show(p2);
                        System.out.println("after showing popup");
    In logs i see both system out messages , can you guys suggest me how to get this popup displayed when fragment loading for first time and getter for c1 is getting fired.
    Jdeveloper version :11.1.2.3.0
    Regards,

    Hi,
    have you debugged the method call to prove that it is called at all? Instead of a component binding as a trigger, can you try a value property e.g. on a hidden output text component?
    Since you are on JDeveloper 11g R2, the use of JSF 2 system events also becomes possible. The system event would be added to a component on the fragment (e.g. the fragment root layout container) and then listen for the render pre-render phase.
    see: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/108-triggerpopupinregion-1994836.pdf
    Frank

  • Popup + before phase listener + commandlink issue

    All,
    I have a before phase listener configured on a page to open a popup and it works pretty well i.e. the popup gets opened when the page is loaded. Now i want to show the same popup when the user clicks on the commandLink. So i configured the commandLink to have a showPopupbehaviour as its child. The issue is when i click on the command link the popup is not getting opened. However if i remove the call to the before phase listener (), the popup is getting invoked from the command link.
    Please advice whats wrong in this case ? Ideally both should be working independently.
    I tried setting the immediate and auto submit also but no effect.
    thnks
    Jdev 11.1.1.5

    Hi,
    using af:showPopupBehavior issues a request to the server, which then also is handled by your phase listener. So you need to add some logic to your phase listener to not process its action when the command button is pressed. You can e.g. set the command button to partialSubmit = true and then check if the request is a partial request AdfContext.getCurrentInstance().isPartialRequest(facesContext) This way the phase listener opens the popup when a page loades but no longer after.
    Frank

  • Render a pdf in ShowOneTab component in ADF

    Hi
    I am trying to render a inline pdf in a ADF page on click of a tab.
    i have used iframe and embed tags to render the pdf's inline. but the problem is that i do not have control on the location in which iframe object is rendered (the iframe is always being generated at the top of the page), moreover the iframe tag is executing everytime, i want it to be displyed only when the pdf tab is selected.
    i tried putting in the following scriptlet codes:
    <%if (condition)==true){%>
    -create iframe
    <%}%>
    2. <%if (condition)==true){
    out.print("<iframe>")......
    %>
    but both the methods dont render any pdf.
    am i missing something here?
    is it the problem with my PPR handling ?( I have tried addPartialTarget() api with every possible combination. )
    please help me solve this problem .
    Pradeep

    Hi Frank,
    I figured out a way to do render pdf in showOneTab :-).
    create a panelBox component in the showDetailItem component and place the embed tag inside the panel box. set the partial trigger as ShowOneTab for showDetailItem. the inline pdf is rendered only when the pdf tab is selected.
    here is the code for that.
    <af:showDetailItem text="Show PDF"
    binding="#{backing_PdfPage.showPdf}"
    id="showPdf">
    <af:panelBox binding="#{backing_PdfPage.myPanel}"
    id="myPanel" rendered="true"
    background="transparent"
    partialTriggers="showOneTab">
    <f:verbatim>
    <embed src="../report.pdf" height="400" width="700"/>
    </f:verbatim>
    </af:panelBox>
    </af:showDetailItem>
    i have hardcoded the value for pdf in the src parameter of embed, the request time is also working.

  • How to create JSF UIComponent tree before rendering phase?

    Hello,
    The JSF lifecycle create the JSF UIComponent tree (I mean : parsing the JSP to buid the JSF component tree) during the restore phase if the request is a postback else during the render phase.
    In my application, I need to link JSF component with error message (coming from business layer) like :
    FacesContext.getCurrentInstance().addMessage("form1:v1", new FacesMessage("Test!"));To do that, the JSF component with the Id"form1:v1" must exist! And that not the case if the request is not a postback.
    A solution should be to build the JSF component tree just before the rendered phase by implementing the a custom PhaseListener. But i dont know how to force JSF to build the JSF component tree?
    Is it possible? Other solution?
    Thanks!
    JPL

    Sniff! no answer!
    May be I have to explain more my issue?
    JPL

  • UIViewRoot not available in beforeRenderResponse phase

    Hi all,
    I am trying to change the attribute of some of my component present in my jsf page before they get rendered. For this I have written a phaseListner which iterates through all the child components of UIViewRoot before render response phase. I can get desired component and is able to change the component attribute/property. But this works only for the page which has been posted back. If a page is transfered to a new page, I can't get the component tree of the UIViewRoot of a new page in before Render phase. But the component tree is available during the render response phase.
    It is possible for me by any means to get component tree of UIViewRoot in before render response phase when page is resulted from another page.(ie. non-postback page)
    Thanks for your help in advance

    The default NavigationHandler finally invokes ViewHandler.createView().
    The structure of the component tree returned by createView() is implementation dependent.
    The specification says:
    The UIViewRoot instance returned by the createView() method must minimally
    contain a single UIViewRoot provided by the JSF implementation, which must
    encapsulate any implementation-specific component management that is required.
    Optionally, a JSF implementation�s ViewHandler may support the automatic
    population of the returned UIViewRoot with additional components, perhaps based
    on some external metadata description.

  • JSF global messages - generic render

    Hi, in JSF when have global messages displayed inline.
    I would like to go for each message in messages and check its type.
    From its message type, if its info, display a blue background. If error type message, display the message background to say pink red (i.e another color)
    Thinking it can be done generically in a render phase. Some code sample on how to do this by overwriting and providing the message render enchancements
    Thanks
    Abraham

    use errorStyle/errorClass or fatalStyle/fatalClass and so on ...

  • FacesContext.addMessage on a  af:popup window

    Hi, How can we show a user friendly message on a af:popup window?
    Specifically what should be the id value first argument to the method -> facesContext.addMessage(mybutton.getClientId(context), message);
    If I give af:popup id value it is not displaying the message. If I give dialog id value (d1) it is displaying message in the background. I want the message to be in the foreground.
    Below is the partial code from JSF:
    <af:popup id="uploadAFile" autoCancel="disabled">
    <af:dialog id="d1" contentWidth="320" contentHeight="150"
    type="okCancel"
    title="Upload Document" styleClass="AFStretchWidth"
    dialogListener="#{backingBeanScope.DlgLsner.onDialogAction}"
    clientComponent="true">
    <p>
    <af:inputFile label="Upload File" id="if1"
    value="#{backingBeanScope.FileUpload.uploadedFile}"/>
    <af:commandButton text="Upload" id="uploadButton"
    action="#{backingBeanScope.FileUpload.doUpLoad}"
    />
    </p>
    </af:dialog>
    </af:popup>
    Thank you,
    VJ
    JDeveloper 11.1.1.4

    VJ wrote:
    Hi, How can we show a user friendly message on a af:popup window?
    Specifically what should be the id value first argument to the method -> facesContext.addMessage(mybutton.getClientId(context), message);
    If I give af:popup id value it is not displaying the message. If I give dialog id value (d1) it is displaying message in the background. I want the message to be in the foreground.
    Below is the partial code from JSF:
    <af:popup id="uploadAFile" autoCancel="disabled">
    <af:dialog id="d1" contentWidth="320" contentHeight="150"
    type="okCancel"
    title="Upload Document" styleClass="AFStretchWidth"
    dialogListener="#{backingBeanScope.DlgLsner.onDialogAction}"
    clientComponent="true">
    <p>
    <af:inputFile label="Upload File" id="if1"
    value="#{backingBeanScope.FileUpload.uploadedFile}"/>
    <af:commandButton text="Upload" id="uploadButton"
    action="#{backingBeanScope.FileUpload.doUpLoad}"
    />
    </p>
    </af:dialog>
    </af:popup>
    Thank you,
    VJ
    JDeveloper 11.1.1.4I think you just want to display message for this use this command
    FacesContext fctx = FacesContext.getCurrentInstance();
                FacesMessage message = new FacesMessage("Hello World");
                fctx.addMessage(null, message);if you want to display popups then follow the link http://baigsorcl.blogspot.com/2010/03/creating-and-displaying-popups-in-adf.html

Maybe you are looking for