Dynamic src in ui:include ajax not working

Hello,
I'm migrating my application to JSF 2. We are using Richfaces 4 implementation.
We have a need, that a menu item, triggers an Ajax function, that sets a page name (xhtml), and then re renders the output panel, that has an ui:include.
The page is loaded fine, but any ajax in the page loaded does not work. I've read several post saying that this happens because ui:include is not a component, but a Tag handler, and that it's life cycle is different from a component. But I haven't found any solution for this yet !
Any idea on what I need to do ?
Thanks a lot !
John.

I'm 99.9% sure that the only answer is: don't use Ajax in this particular case. Its a menu, menus are used for navigation, let JSF do its regular navigation magic. But since you use Richfaces perhaps a Richfaces specific component can help you out. Such as the Richfaces dropDownMenu I spot in the showcase. If you're already using a richfaces component and you need help with it, try the actual Richfaces forum.
https://community.jboss.org/en/richfaces?view=discussions

Similar Messages

  • JSF : Dynamic link generated by commandLink does not work

    In the following code, without <f:verbatim>, it is giving "Duplicate ID in the view" Exception. But with <f:verbatim>, the links generated by commandLink does not work. Please help me to solve this problem.
    Thank you in advance.
    Regards
    Abdul
    <%-- jsf:pagecode language="java" location="/src/pagecode/eservice/DisplayMoreEServices.java" --%><%-- /jsf:pagecode --%>
    <%@ include file="/includes/g_common_include.jsp" %>
    <%@page import="java.util.Map"%>
    <%@page import="bh.com.cio.egov.EGOVConstants"%>
    <%@page import="javax.portlet.PortletSession"%>
    <%@page language="java"%>
    <%
         PortletSession ses = renderRequest.getPortletSession();
         Map eServiceCatMap = (Map) ses.getAttribute(EGOVConstants.REQ_ESERVICE_LIST_BY_CAT);
         renderRequest.setAttribute(EGOVConstants.REQ_ESERVICE_LIST_BY_CAT,eServiceCatMap);
    %>
    <%@page import="bh.com.cio.egov.vo.EServiceVO"%>
    <f:view>
         <script type="text/javascript">          
              function blinkThis(id, color, timeout)
                   var idElem = document.getElementById(id);
                   if(idElem)
                        idElem.getElementsByTagName('span')[0].style.color = color;
                        setTimeout('switchColor(\'' + id + '\', \'#8A7C5B\', ' + timeout + ')', timeout);
              function switchColor(id, color, timeout)
                   var idElem = document.getElementById(id);
                   if(idElem)
                        idElem.getElementsByTagName('span')[0].style.color = color;
                        setTimeout('blinkThis(\'' + id + '\', \'#FF3030\', ' + timeout + ')', timeout);
         </script>
    <f:loadBundle basename="nls.egovresource" var="nls"/>
    <hx:scriptCollector id="scriptCollector1">
         <h:form id="form2">     
    <f:verbatim>
              <div class="header-top">
                   <h:outputText value='#{nls["eservice_label_title"]}'></h:outputText>
              </div>
              <c:forEach items="${requestScope.REQ_ESERVICE_LIST_BY_CAT}" var="categoryVOs" varStatus="catIndex">
                   <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                             <td> </td>
                             <td class="gray1" height="30px">
                                       <c:out value="${categoryVOs.value.category.categoryName}" escapeXml="false"></c:out>
                             </td>                
                        </tr>
                        <tr>
                             <td width="2">
                                  <div align="right">           
                                       <img src='<%= imageRootDir + "dot.png"%>' width="4" height="1" />
                                  </div>
                             </td>
                             <td width="100%" >
                                  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                       <c:forEach items="${categoryVOs.value.eservice}" var="service" varStatus="serviceIndex">
                                       <%
                                            EServiceVO serviceObj = (EServiceVO) pageContext.getAttribute("service");
                                            String action = null;
                                            int serviceId= -1;
                                            if(serviceObj!=null)
                                                 action = serviceObj.getServiceAction();
                                                 serviceId = serviceObj.getServiceId();
                                            if(action!=null && action.startsWith("$"))
                                       %>
                                       <c:set var="jstl_to_jsf_serviceName" value="${service.serviceName}" scope="request"/>
                                       <c:set var="jstl_to_jsf_url_en" value="${service.serviceAction}" scope="request"/>
                                       <c:set var="jstl_to_jsf_url_ar" value="${service.serviceActionAr}" scope="request"/>
                                       <tr>
                                            <td height="17">                         
                                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">                              
                                                      <tr>
                                                           <td width="95%" id="extMoreCell_${catIndex.index}_${serviceIndex.index}">                                                                      
                                                                <img src='<%= imageRootDir +"arrow1.png"%>' width="15" height="16" border="0"/>
                                                                <h:commandLink styleClass="links menu-txt" action="#{pc_EServiceView.doExternalLinkAction}">
                                            <h:outputText value="#{jstl_to_jsf_serviceName}" styleClass="menu-txt"/>
                                                 <f:param name="PARAM_ESERVICE_URL_EN" value="#{jstl_to_jsf_url_en}"></f:param>
                                                 <f:param name="PARAM_ESERVICE_URL_AR" value="#{jstl_to_jsf_url_ar}"></f:param>
                                                 <f:param name="JSP_ACTION" value="ACT_EXTERNAL_ESERVICE"></f:param>
                                            </h:commandLink>
                                                           </td>
                                                      </tr>                                             
                                                 </table>
                                                 <script type="text/javascript">
                                                      <c:if test="${service.serviceId eq '53'}">
                                                           blinkThis('extMoreCell_7_3', '#FF3030', 1000);
                                                      </c:if>                                        
                                                      <c:if test="${service.serviceId eq '54'}">
                                                           blinkThis('extMoreCell_7_4', '#FF3030', 1000);
                                                      </c:if>     
                                                      <c:if test="${service.serviceId eq '55'}">
                                                           blinkThis('extMoreCell_7_5', '#FF3030', 1000);
                                                      </c:if>          
                                                      <c:if test="${service.serviceId eq '56'}">
                                                           blinkThis('extMoreCell_0_8', '#FF3030', 1000);
                                                      </c:if>     
                                                      <c:if test="${service.serviceId eq '57'}">
                                                           blinkThis('extMoreCell_8_8', '#FF3030', 1000);
                                                      </c:if>     
                                                      <c:if test="${service.serviceId eq '59'}">
                                                           blinkThis('extMoreCell_1_8', '#FF3030', 1000);
                                                      </c:if>     
                                                      <c:if test="${service.serviceId eq '58'}">
                                                           blinkThis('extMoreCell_5_6', '#FF3030', 1000);
                                                      </c:if>     
                                                           <c:if test="${service.serviceId eq '28'}">
                                                           blinkThis('extMoreCell_1_4', '#FF3030', 1000);
                                                      </c:if>     
                                                           <c:if test="${service.serviceId eq '20'}">
                                                           blinkThis('extMoreCell_5_3', '#FF3030', 1000);
                                                      </c:if>     
                                                           <c:if test="${service.serviceId eq '60'}">
                                                           blinkThis('extMoreCell_7_6', '#FF3030', 1000);
                                                      </c:if>     
                                                 </script>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td bgcolor="#FAF9FA" background='<%= imageRootDir + "line-bg-eservices.png"%>'><img src='<%= imageRootDir +"line-bg-eservices.png"%>' width="2" height="1" border="0"/></td>
                                       </tr>     
                                       <%}
                                       else if(action!=null)
                                       %>                                                                                               
                                       <c:set var="jstl_to_jsf_serviceName" value="${service.serviceName}" scope="request"/>
                                       <wps:urlGeneration contentNode="${service.serviceAction}" allowRelativeURL="false" keepNavigationalState="true">
                                       <%
                                       //String urlC = "http://"+renderRequest.getServerName()+":"+renderRequest.getServerPort()+wpsURL;
                                       String urlC = "" + wpsURL;
                                       %>
                                       <c:set var="url" value="<%=urlC%>" scope="request"/>
                                  </wps:urlGeneration>
                                       <tr>
                                            <td height="17">                         
                                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                      <tr>
                                                           <td id="intMoreCell_${catIndex.index}_${serviceIndex.index}">
                                                           <img src='<%= imageRootDir +"arrow1.png"%>' width="15" height="16" border="0"/>     
                                                           <hx:outputLinkEx styleClass="links menu-txt" value="#{url}">
                                                                <h:outputText value="#{jstl_to_jsf_serviceName}" styleClass="menu-txt"></h:outputText>
                                                           </hx:outputLinkEx>
                                                           </td>
                                                      </tr>                                                                                                                             
                                                 </table>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td bgcolor="#FAF9FA" background='<%= imageRootDir + "line-bg-eservices.png"%>' ><img src='<%= imageRootDir +"line-bg-eservices.png"%>' width="2" height="1" border="0"/></td>
                                       </tr>     
                                       <%
                                            %>               
                                       </c:forEach>                                             
                                  </table>
                             </td>
                        </tr>
                   </table>                                                                                                                                                                     
              </c:forEach>
              </br>
              <h:messages styleClass="messages" id="messages1"></h:messages>
              </f:verbatim>     
              </h:form>
         </hx:scriptCollector>
    </f:view>

    1) Throw your code away and use h:dataTable instead of c:forEach to render a table of dynamic size.
    or:
    2) Hand-assign every UIInput and UICommand element inside the loop an unique ID. E.g. "commandLinkId" + loopIndex

  • Dynamic rooting (User Record) setting is not working in Nakisa OrgChart SP3

    Dear All
    The Dynamic rooting setting is not working in the Nakisa OrgChart SP3.
    It is giving an error message - "Cannot find the root of your orgchart. The orgchart box may have been deleted or incorrectly specified, or no valid org structure can be found for the selected effective date. Please change the root of the chart or select another effective date."
    We followed the same steps as given in the Admin guide of SP3 (P.no. 109 - shown below)
    In Orgchart --> General Settings:
    * Select the Org chart root value source.
    User Record: Retrieves the record specified in the next step from the employee data element.
    *Do one of the following to define the org chart root:
    If User Record was selected in the previous step, select the field containing the ID of the required organizational object in the employee data element from the User record field drop-down list. For example, if you wish to root the org chart at the org unit of the logged-in user, select the field containing the org unit ID. Hence, we have selected the Org unit ID.
    Note:
    We had enabled single sign-on with logon tickets
    Retained the standard settings in Security Settings --> Employee Source
    Had provided full authorization to the roles
    If we use the "OrgChart Root" option available in 'Orgchart root value source', the org structure gets displayed correctly from the root object defined.
    As this is an standard functionality, Kindly guide us in resolving the issue.
    Regards
    Ravindra

    Ravindra.
    You don't have to and shouldn't always include the username and password parameters for the SAP Connection string.  When you omit them it will use the user's login credentials.
    Remember though that:
    The SAPRoleMappingConnection will need them included in order to get the details for the user in the first place.
    Without the username and password specified in a connection string you can't click the option to test the connection and result in a successful connection.  Remember unable to connect does not necessarily equate to wrongly configured.
    I've filtered the log file for errors and the following entries were flagged up:
    26 Jun 2012 10:00:06 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 13:13:52 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 13:43:49 ERROR com.nakisa.Logger  - java.lang.reflect.InvocationTargetException
    26 Jun 2012 13:55:09 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 14:32:03 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : The dataelement ( SAPPositionVacancyDataElement ) is not defined.
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : while trying to invoke the method com.nakisa.framework.data.Command.getType() of an object loaded from local variable 'p_cmd'
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : The dataelement ( SAPPositionVacancyDataElement ) is not defined.
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : while trying to invoke the method com.nakisa.framework.data.Command.getType() of an object loaded from local variable 'p_cmd'
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    26 Jun 2012 15:47:48 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    26 Jun 2012 15:47:55 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : The dataelement ( SAPPositionVacancyDataElement ) is not defined.
    26 Jun 2012 15:47:55 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : while trying to invoke the method com.nakisa.framework.data.Command.getType() of an object loaded from local variable 'p_cmd'
    26 Jun 2012 15:47:55 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    At the very least it looks like SAPPositionVacancyDataElement is missing and whilst the other errors around it are unfamiliar I wonder if it might be a good first step to see if you can track down the reference to and existence of this data element?  That being said it looks like your last test occurred well over an hour after this (so you may have already resolved it) and resulted in nothing but information messages.  If that is the case it might be worth "rolling" your log file or manually trimming it to the right time frame when posting it?  Otherwise it can be misleading as people could flag up issues you have already resolved.
    So assuming you haven't tried Luke's suggestion (which should only take a couple of minutes to do) I think you should go back and do so right away .
    Regards,
    Stephen.

  • jsp:include is not working on weblogic

    I have a problem I write the following code
    html>
    <head>
    <script LANGUAGE="javascript" SRC="js/tab.js"></script>
    <LINK href="stylesheets/global.css" type=text/css rel=stylesheet>
    <title>JobSpinner Status</title>
    </head>
    <body class="bodymargin" onload="setpage(1)">
    <jsp:include flush="true" page="JobSpinnerTab.jsp"></jsp:include>
    <form id="loginForm" action="/jobspinner/JobStatus.faces" method="post">
    <input type="hidden" name="loginForm" value="loginForm" />
    <nobr>
    It is working fine on four to five PC we have checked .
    But the problem is that it is not working on a particular weblogic Server 8.1 SP2 .
    Can someone help me .
    Regs
    Amit Verma

    Are other JSP tags working on the page?
    eg
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Java home = <%= System.getProperty("java.home") %><br>Your page might be being interpreted as HTML rather than passed through the JSP engine.

  • Dynamic resizing in JDialog using setSize not working properly on solaris

    can anyone help..
    Dynamic resizing in JDialog using setSize is not working properly on solaris, its work fine on windows.
    i have set Jdialog size to setSize(768,364),
    when i dynamically resizing it to setSize(768,575); it doesn't get change but when i move dialog using mouse it gets refreshed.
    this problem is only happening on solaris not on windows.

    Hi,
    It's only an approach but try a call of validate() or repaint() after re-setting the size of your dialog.
    Cheers, Mathias

  • Dynamic ORACLE_HOME in env variable PATH  not working

    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    user5716448 wrote:
    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.
    open Command Window & issue command belowecho %ORACLE_HOME%COPY  the results, then PASTE all back here                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Jsp:include does not work in 8.1 SP3?

    Hi all,
              I need to include a local file (external to the app) in jsp code. The external file includes an image map which changes very so often. So in order to avoid doing a build everytime, I thought about keeping the image map in a file which can be "included" in the jsp file, making it very dynamic to a change.
              So I have a servlet which will read this file and output the contents to response.getWriter(), which will be included in calling jsp code.
              But the jsp file does not seem to call the servlet at all.
              Here is the code in the jsp file:
              <%
              String sFileUrl = "/Prj/RenderReport?file=OrgChart.html";
              %>
              <jsp:include page="<%=sFileUrl%>" />
              What am I doing wrong? Is this not possible at all?
              Thank you all in advance.

    hi pjoshi,
              <jsp:include page="hello.jsp" /> tag is working fine in weblogic 8.1 sp3.
              I think it might be syntax error in your jsp page.
              This is the syntax to including dynamic files in jsp using <jsp:include page="" />tag as given below.
              <jsp:include page="{relativeURL | <%= expression %>}" flush="true" />
              go through the below link and you will find exact information how to include dynamic files in jsp using <jsp:include page=""/>
              http://java.sun.com/products/jsp/syntax/1.1/syntaxref1112.html
              --Anilkumar kari                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Ajax not working in Chrome

    I am using Ajax and ASP in my dynamic pages to display content.
    However the code works alright in IE but the Ajax and javascript does not function in Chrome.
    Please advise on how to ensure this.

    I can guarantee you the problem isn't with Chrome which is a web standards based browser. 
    The culprit is probably your code.     Got a link?
         Code Validation Tools
         Check CSS - http://jigsaw.w3.org/css-validator/
         Check HTML - http://validator.w3.org/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • APEX 4.0 - AJAX not working with Popup LOV field

    Hello,
    In the application I have built I have three fields which are 'feeded' by selects via a AJAX construction.
    All three fields are based on three others, which are PopUp LOV fields. Up to version 3.2 I had no problems: the fields were 'refreshed' as expected when in the 'parent' field a specific value was entered or choosen by the Popup Lov selector.
    But since the migration to APEX-4 (lin a test-system) all the three fields are not correctly refreshed anymore: two of them give the value 'undefined', the third, which is a select-list shows values, but at the moment I try to click on the select-list down arrow to pick a value, the list is emptied and stays that way.
    More specific about the third field:
    item 1 is a popup-lov defined item in which a user can type a value, but can also choose a value from a popup-lov. Item 2 is based on item-1: it does a select based on the value of item-1 and refreshes a select-list. Item-2 is defined as a select list.
    I got it all working when making item-1 also a select list, but since the list can become very large, I made a Popup lov of it. Most users do know what code they have to enter and in case somebody is not sure, the lov can be used.
    In this forum I came across a problem with AJAX callback, which was answered by Patrick Wolf, saying that in an htmldb_Get ( ... ,0) the last 0 should be replaced by $v('pFlowStepId'), but this did not fix my problem. I have the feeling that the problem is somewhre else, since on first hand, after entering a value in item-1 I see item-2 refreshed with the correct values, but the moment I try to select one item, the list is emptied.....
    I hope I made it clear what my problem is and that somebody can help me, else APEX-3.2 was the latest version for this application....
    Thanks in advance and best regards,
    Jan.
    Edited by: user13110728 on 9-aug-2010 8:44

    Hi Jan,
    the problem is the
    onBlur="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"on P21_GBREKNR. This is getting attached to the HTML input text field but as well the the anchor link which opens the popup. So when you leave the text field the cursor will be put onto the icon to open the Popup LOV. When you press tab another time or leave the anchor link by clicking somewhere the above JavaScript function is fired again. But the problem is that "this" this time points to the anchor and not the text item anymore, so it will return an invalid value when you access this.value in your f_P21_select_kostenposten function which results in an empty result of your on-demand call.
    I still have to investigate why the above JavaScript code is now added to the anchor link as well. But as a workaround, just change your code to
    onChange="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"which is better anyway, because it's just firing when the value really got changed. And because the anchor link can't really be changed, the event will never fire when you leave the anchor. BTW you can use the Application Search feature to search for all your onBlur events. onChange is much better than onBlur because it doesn't fire that often unintended.
    But if you want to use some of the new APEX 4.0 features, you could use the cascading LOV feature of APEX 4 and avoid all this JavaScript and on-demand code which you have written.
    I have changed your application to take use of it.
    1) I changed the LOV query for P21_KOSTENPOST from
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
    order by gbreknr, kostenpostto
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
      and  (:P21_GBREKNR is null or gbreknr = :P21_GBREKNR)
    order by gbreknr, kostenpostas it was in your on-demand process. The query will return all values if P21_GBREKNR is null but will restrict it if the field is filled out.
    2) Set "Cascading LOV Parent Item(s)" to P21_BEDRIJF,P21_GBREKNR Because based on your LOV query I assume "Kostenpost" should be refreshed if one of the two fields gets changed.
    3) Set "Optimize Refresh" to No because one of your parent items (P21_GBREKNR) can contain a null value.
    4) Removed the onBlur/onChange from P21_GBREKNR
    5) Removed the *%null%* from the "Null Return Value" attribute of P21_BEDRIJF, because that will cause a ORA-1722 if someone picks "-- kies: --"
    That's it.
    Have a look at dynamic actions and the "Set Value" action as well, because I think that could remove your other on-demand calls as well without having to write any JavaScript code.
    I will still investigate what's going on with the anchor link in APEX 4.0
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Dynamic Interface in Query String does not work?

    Hi All,
    i have exposed a interface as a webservice with the help of the Define Web Service in Configuration Builder.
    In the SOAP Sender Communication Channel i have checked the options Use Encoded Headers and Use Query String
    The url of the webservice looks like this:
    http://server:50000/XISOAPAdapter/MessageServlet?channel=:BS:CC_SOAP_SENDER&version=3.0&Sender.Service=BS&Interface=http%3A%2F%2Fnamespace.com%2Fabc%2HER%2FGlobal%5EMIOS_GetDetails
    This works which is great, i can now retrieve supplier details with this webservice. Now i want to expose another interface as a webservice. That URL looks like this:
    http://server:50000/XISOAPAdapter/MessageServlet?channel=:BS:CC_SOAP_SENDER&version=3.0&Sender.Service=BS&Interface=http%3A%2F%2Fnamespace.com%2Fabc%2HER%2FGlobal%5EMIOS_EventBooking
    As you can see i have a different interface in the URL's of the Webservices. I want to have both make use of the same Communication Channel which is possible according to [SAP Note 856597|https://websmp130.sap-ag.de/sap(bD1ubCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=856597] See Q: Can I set the interface name dynamically from the client? also in this document : [How to Use the XI 3.0 Soap Adapter|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79]
    The problem is that when i try to call the second web service (EventBooking) that is routes to the mapping of the GetDetails interface, i can see this in SXMB_MONI. Therefore it gives an Error.
    When i try both scenarios in Configuration Builder they both work fine, only the webservice call of EventBooking ends up in the Message Mapping of GetDetail.... Why? And how to solve this?
    Anyone have experience with the feature mentioned in the SAP note?

    After some further examination it seems that both calls are picked up by the same interface. In the RWB both the messages are picked up by the MIOS_GetDetails...
    How can i fix this?

  • Include directive not working in eclipse

    Hello All,
    I am using eclipse dynamic web project. I have the main project by the name of JSPEXAMPLE and then i have intro.jsp under web-inf folder for JSPEXAMPLE. i am trying to include a Header.html file. where do i need to save this html file ? i mean in which folder? JSPEXAMPLE? or WEB-INF? i tried to save the sttaic html file in Web-INF and while running my jsp file it gives me an error.
    intro.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ page session="false" %>
    <%@ page import="java.util.Calendar" %>
    <%@ include file="/Header.html" %>
    <%
         out.println("The time is now " + Calendar.getInstance().getTime());
    %>
    <%@ include file="Footer.html" %>Here is the Header.html and Footer.html
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>WellCome</title>
    </head>
    <body>Footer.html
    </body>
    </html>While runing i get an error that file Header.html is not found but why? i mean i can see it under JSPEXAMPLES/WEB-INF folder
    org.apache.jasper.JasperException: /intro.jsp(5,0) File "/Header.html" not found
    Can anyone help? Thanks
    Message was edited by:
    lrngjava

    I don't know the rules, but in our app we use paths
    that start with "/WEB-INF" for our includes. ie:
    <%@ include
    file='/WEB-INF/a/b/c/partialpage.jspf' %>Presumably it looks for files starting from the base
    directory, not the current directory of your jsp.
    Message was edited by:
    hunter9000thanks for the reply hunter. i tried /WEB-INF/Header.html still gives me error while running on tomcat. i have been searching on google for a while now no success.

  • Dynamically adding a repeating subform is not working in Guided Procedures

    Hi,
    I created an Adobe XML form file (.xdp) with a button and a subform. In the button click event I wrote javascipt to add a new subform. This is working fine from the PDF preview with in the Adobe Live Cycle Designer. 
    Then I used this template in an interactive from Callable object and generated a PDF from the server. The button click is not adding a new subform from this PDF. What could be the problem? Do I have to enable something on the server side?
    Thanks
    Ram

    the credential file is a certificate that Adobe creates allowing different kind of hidden features in Reader. Now as far as I remember a dynamic AND interactive PDF like ability to add/delete rows to a line items table on a PDF requires certified forms which is a special certificate not the one offered for free by SAP for
    - interactive PDF
    - non-interactive PDF
    - dynamic AND non-interactive PDF
    Maybe Matthias Zeller from Adobe or Markus Meisl from SAP in the Interactive Adobe Form forum can tell you where to get that special key

  • Dynamic table in webdynpro interactive form not working. Urgent

    Hi guys,
    I am facing a problem when trying to retreive data entered in interactive form dynamic table.i can get the data entered in non dynamic fields no problem.
    I have a node structure like this
    Root
       Data 1...1 singleton and non tried both
           Table 1...n singleton and non tried both
    In my adobe form i tried adding rows using add instance, and also using add button in webdynpro native. In the same method that adds row i simulated the submit button to create row in WD context! It adds rows but any data entered later is lost. One more thing i have noticed is it sometimes works after adding just one row! Data is passed to context but from next row it doesnt work! What am i missing?
    I also tried adding a button in webdynpro tray and adding the row directly to the context. new row is created in form but any data entered in new rows is lost!
    I am unable to obtain the data entered in Dynamic fields. I thought i would try the xml reading method but the problem is after crating a couple of rows dynamically if i go save pdf locally the new rows are not showing up in the pdf!
    I have seen a post which said using the if_wd_iactive handler to set the form as dynamic but that method is not available in our system! Sorry i am not in front of an SAP system so i cant type exact names!
    I tried using zci update program/ etc etc but i am still struggling at the moment. Any help would be much appreciated! Pls ask if you need more info.
    Regards
    Naresh
    Edited by: naresh dwadasi on Oct 7, 2011 9:05 PM

    problem solved! I had to recreate the form. not sure if i corrupted the webdynpro scripts etc by mistake.

  • Dynamic pdf created in adobe 8 not working in Adobe reader 9

    Hi ,
    I designed dynamic pdf using Adobe 8 livecylce.
    I am able to generate the dynamic pdf with values filled in from the database in Adobe 8 reader,standard and professional versions.
    I recently installed Adobe 9 reader and when I try to generate the dynamic pdf , the pdf if generated but the values of the fields comes as null.
    Is dynamic pdfs created in 8 not compatable with adobe 9 reader? Do I need to redesign the documents in 9 again ?
    Please let me know, I designed a lot of pdf documents using 8 livecycle under the assumption that it is going to work in future versions.
    Thanks,
    Vidya

    Hi,
    I figured our there was a setting to enable/disable  Javascript which caused this issue.
    I was using javascript in the LC 8 for manipulations in the dynamic pdfs.
    I enabled the javascript and now it is working fine.
    Thanks,
    Vidya

  • Dynamic Configuration of Mail-Sender does not work

    Hi,
    we use XI 3.0 SPS 19.
    In my szenario I have a mail sender and I have receiver determination with conditions depending on the mail subject.
    In the condition editor, I selected the context object "SHeaderSUBJECT" to build my condition.
    In the mail communication channel I turned on the Checkbox "adapter specific message attributes".
    But the condition doesn't work!!!
    I wrote a small UDF to get the dynamic configuration of my mail sender-message - but it's NULL.
    If I change my scenario from Mail-Sender to a file-sender, everything works fine (I can select the filename, etc.).
    Is there a problem with dynamic configuration of a mail sender?
    Thx all for your help!
    Regards
    Wolfgang Hummel

    Check also "Variable Transport Binding".
    You see in the SXMB_MONI whether the ASMA is available or not.
    Regards
    Stefan

Maybe you are looking for

  • Deleted the Macappstore and now can't get it back

    I originally deleted the Mac App store when it popped up in the dock a couple of updates ago. I don't do apps and didn't see the need to have it there. Now it turns out you can only get LION from the App store... Since I'm in 10.6.8 I can't re downlo

  • File Download with SSL

    I'm using Tomcat/apache in linux. I am able to upload file via https and http fine. I also am able to download properly thru http. However when I enable ssl and connect to tomcat I can NOT download via https. I'm stuck big time. The prompt asks them

  • Show only 1 product in dynamic list

    Hi all and thank you very much for your help. My question concerns this page: http://www.energywa.co.za/accessories/avr/search.php The list is a dynamic dropdown which gets it's data from a MySQL DB. You will notice that there are some products which

  • Problem with zipping directory

    Running 10.6.8 Directory has EVERYONE R/W access when I try to COMPRESS , I receive a message: The operation can't be completed because you don't have permission to access ".DS_Store". with OK button. It is so annoying and its NOT OK getting this mes

  • Display a odt File in a Swing Panel?

    Hello I need a library to display odt files in a swing panel. I know that open office can be embedded in panels but this does not work for mac and i want my application to be cross plattform. It should also have a commercial license. best regards