ADF partialTrigger -v- AJAX

Hi,
I have the following in an application
<af:selectOneChoice id="cobs" value="#{cobBean.cob}" immediate="true" label="Class of Business" autoSubmit="true">
<f:selectItems value="#{cobBean.cobs}"/>
</af:selectOneChoice>
<af:selectOneChoice id="ets" value="#{errorTypeBean.errorType}" immediate="true" partialTriggers="cobs"
label="Class of Business">
<f:selectItems value="#{errorTypeBean.errorTypes}"/>
</af:selectOneChoice>
When I change cobs, it will update ets based on the selection in cobs.
My question is...does using partial triggers with immediate="true" have exactly the same behaviour as AJAX - i.e. does it perform an Asynchronous request to the server for the same values.
In IE, when viewing a page (Yahoo Mail) I know uses AJAX, when a request is made, the globe in the top right hand corner does not spin meaning the page has not been refreshed. However, when I use ADF tags, the globe does spin - indicating the page has been refreshed.
Please could you confirm the behaviour of a partial trigger - I have seen a blog that suggests they implement Ajax and should not refresh the page, but I am not convinced.
Regards

Hi,
My question is...does using partial triggers with immediate="true" have exactly the same behaviour as AJAX - i.e. does it perform an Asynchronous request to the server for the same values.
immediate= true only means that the JSF lifecycle is bypassed. The internal communication in ADF Faces is not Ajax but uses hidden iFrame (which is why the right corner icon keeps spinning).
More information:
http://www.oracle.com/technology/tech/java/newsletter/articles/ajaxweb2/ajax_web20_without_ajax.html
Frank

Similar Messages

  • ADF RC support for IE 8 & FF 3?

    Hi!
    I wonder if ADF RC will support new generation of popular browsers? While ADF RC is still in "tech preview" phase, it is aimed to current browsers (IE 7 & FF 2). But, it is expected that new browsers will "go live" during Q2 (MS announced IE 8 for summer, while FF is now in beta 5 phase pointing to conclusion that it will be ready to go in similar time-frame as IE 8).
    So, the question is: will ADF RC, in TP4 or R1, support the new browsers?
    PaKo

    Hello Pavle,
    I think you should calm down a little bit, take a deep breath and think rationally about what you're asking here. Let take care of all the points, one by one:
    Jan pointed out that even 10g is not certified for current browsers (more than 1.5 years from release and with market share of more than 40%), and you agree with him.
    You must put that in context also. ADF Faces 10g evolution is pretty much dead, beside some maintenance fixes. ADF Faces was given to Apache a while back as project Trinidad, actively maintained by Oracle, that supports Firefox 2 and IE 7 and did so for a while. Comparing ADF Faces 10g status with ADF Faces RC at this time is unfair. It's going to be more legitimate if and only if all the following hold true:
    1. FF3 and IE8 goes in production before the code grant to Apache RCF;
    2. At that time ADF Faces RC is not yet FF3 and IE8 certified;
    3. The code maintenance on ADF Faces RC stop or drastically slow down after the code grant.
    customers that we are working with during the beta is that none of them yet has the plan to standardize on IE8 or FF3
    Sorry to tell you, but that's pretty true (although quite irrelevant imho). standardize either if we go right down to the semantics here would meant that they would force the usage of either, hence why I find it irrelevant. On the other hand, if the meaning was that no customer actively plan to support IE8 and FF3, then I agree that something is wrong, especially for widely public applications.
    Second, as I pointed out, the ADF 11g rich-ajax-based components are unpleasantly slow on "current" browsers.
    Actually the performances are ok. Not great, I agree, but ok, unless you have Firebug running, then yes it get sluggish. However, to ADF Faces RC defense, even GMail dislikes Firebug now and warns you if you're using it.
    So, what you say sounds like logical contradiction to me: you are developing the platform for "new wave" apps while you refuse to make it compatible with new browsers that are just aimed for that "new wave"???
    As far as I know, Frank never said anything like that. What would you like, have Frank say something like "Yes, we certify that it's going to work! They're in beta, we have no clue when they're going to get in production, we have no clue what is going to change in their API by then, they might be more bugged than Netscape 1.0 alpha, but hey! It's going to work for sure! You can put Oracle's reputation on that!"... please... Oracle developers are still working on fixing issues, improving performances and functionalities for current browser and maybe add support for other current browser like maybe Safari or Opera which, although having small market shares, do have larger market shares than IE8 and FF3 for now. Once either of those browsers get RC maybe I'll give more credits to your complains, but for now I think you should be more aware of some market and management realities. Whining about hypothetical situation that might potentially arise in an uncertain future is not very constructive imho.
    Is there any way that we can, beside this forum, influence the Oracle strategy? I personally think that there are some issues on that side...
    Well, once JDeveloper 11g goes in production (or beta, dunno, I'm not an Oracle support expert), then there's always Metalink.
    My 2¢,
    ~ Simon

  • How to implement ajax at ADF table column or ADF table column button.

    I want to use ajax in table column selection. I have two table. One is master table and second one is detailed table. I have requirement to click master table column and display data in detail table column against the master table column.
    let assume i have two tables 1.
    <af:form id="f1">
    <af:panelSplitter id="ps1" orientation="vertical">
    <f:facet name="first">
    <af:table value="#{radionBean.generatedData}" var="item" columnSelection="single" rowBandingInterval="0"
    id="tableData">
    <af:column sortable="false" selected="true" headerText="Ticket No" align="start" id="c1">
    <af:outputText value="#{item.ticketno}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="Requestor" align="start" id="c2">
    <af:outputText value="#{item.requestor}" id="ot2"/>
    </af:column>
    <af:commandButton text="More" id="cb1" action="#{radionBean.myrow}">
    <f:ajax execute="@this" render=":f1:detailTableData"/>
    <f:setPropertyActionListener target="#{radionBean.currentrow}" value="#{item}"/>
    </af:commandButton>
    </af:column>
    </af:table>
    </f:facet>
    Second table
    <f:facet name="second">
    <af:table value="#{radionBean.detailData}" var="itemdet" rowBandingInterval="0"
    id="detailTableData">
    <af:column sortable="false" headerText="Ticket No" align="start" id="c21">
    <af:outputText value="#{itemdet.ticketno}" id="ot21"/>
    </af:column>
    <af:column sortable="false" headerText="Date" align="start" id="c22">
    <af:outputText value="#{itemdet.date}" id="ot22"/>
    </af:column>
    </af:table>
    </f:facet>
    </af:panelSplitter>
    </af:form>
    The above is my two table when i run the program i have this exception
    <UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled
    <FaceletViewHandlingStrategy> <handleRenderException> Error Rendering View[untitled1.jsf]
    java.lang.IllegalArgumentException
         at org.apache.myfaces.trinidad.component.UIXComponentBase.findComponent(UIXComponentBase.java:708)
         at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.getResolvedId(AjaxBehaviorRenderer.java:279)
         at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.appendIds(AjaxBehaviorRenderer.java:269)
         at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.buildAjaxCommand(AjaxBehaviorRenderer.java:214)
         at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.getScript(AjaxBehaviorRenderer.java:86)
         at javax.faces.component.behavior.ClientBehaviorBase.getScript(ClientBehaviorBase.java:103)
         at oracle.adf.view.rich.render.RichRenderer._encodeClientBehaviors(RichRenderer.java:3740)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1409)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adf.view.rich.render.RichRenderer.encodeChildInContext(RichRenderer.java:3118)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1468)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:166)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:2803)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:2433)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:1634)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:560)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$EncodeChildVisitCallback.visit(InvokeOnComponentUtils.java:116)
         at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:531)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._visitFacetAsStretched(PanelSplitterRenderer.java:393)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._visitFacet(PanelSplitterRenderer.java:371)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.visitChildrenForEncodingImpl(PanelSplitterRenderer.java:338)
         at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.visitChildrenForEncodingImpl(DecorativeBoxRenderer.java:214)
         at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacetAsStretched(PanelStretchLayoutRenderer.java:856)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacet(PanelStretchLayoutRenderer.java:834)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.visitChildrenForEncodingImpl(PanelStretchLayoutRenderer.java:793)
         at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2404)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.render.CoreRenderer.visitChildrenForEncoding(CoreRenderer.java:228)
         at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncodingImpl(RichRenderer.java:2421)
         at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2404)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.render.CoreRenderer.visitChildrenForEncoding(CoreRenderer.java:228)
         at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncodingImpl(RichRenderer.java:2421)
         at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2404)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXDocument.visitTree(UIXDocument.java:82)
         at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:487)
         at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils.renderChild(InvokeOnComponentUtils.java:42)
         at oracle.adfinternal.view.faces.streaming.StreamingDataManager._pprComponent(StreamingDataManager.java:756)
         at oracle.adfinternal.view.faces.streaming.StreamingDataManager.execute(StreamingDataManager.java:525)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer._encodeStreamingResponse(DocumentRenderer.java:3713)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1475)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at oracle.adfinternal.view.faces.context.PartialViewContextImpl._processRender(PartialViewContextImpl.java:321)
         at oracle.adfinternal.view.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:152)
         at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:974)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652)
         at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
         at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
         at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
         at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1027)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
         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:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         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:136)
         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)
    Please reply this.......
    THANK YOU IN AN ADVANCE
    Regards
    Muhammad Khurram
    Edited by: 912134 on Feb 3, 2012 4:28 AM

    I don't think you need the f:ajax tag - you should be able to do the synchronization between the tables with the built-in partial page refresh functionality.
    Just define the partialTrigger property of the second table to point to the firsttable.
    http://docs.oracle.com/cd/E16162_01/web.1112/e16181/af_ppr.htm#BGBEGIDF

  • Issue with the partialTrigger on ADF Table

    Jdeveloper Version 11.1.2.3.0
    I have replicated issue with partialTrigger on the table component. Sample application can be downloaded from here . It needs HR schema to run.
    In below sample pageFragment, I can try refreshing adf table in two ways
    1. Set addEmployee button's id in partialTrigger of ADFTable component.
    2. Set addEmployee button's id in partialTrigger of PanelBox component.
    Note the difference - 1st one doesn't work where as 2nd works fine. Do we have any additional constraints when refreshing ADF table using
    partialTrigger ?
    I replicated the usecase in below example :
    PageFragment Structure -
    PanelBox                         
    |                              
    |__ ADF Table                         
    |                              
    |__toolbar facet                    
    |                              
    |__ addEmployee button                
    PageFragment Code
    <af:panelBox text="PanelBox2" id="pb1">
    <f:facet name="toolbar">
    <af:commandButton actionListener="#{bindings.addEmployee.execute}" text="addEmployee2"
    disabled="#{!bindings.addEmployee.enabled}" id="cb1" partialSubmit="true"/>
    </f:facet>
    <af:table value="#{bindings.EmployeesView1.collectionModel}" var="row" rows="#{bindings.EmployeesView1.rangeSize}"
    emptyText="#{bindings.EmployeesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.EmployeesView1.rangeSize}" rowBandingInterval="0"
    selectedRowKeys="#{bindings.EmployeesView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.EmployeesView1.collectionModel.makeCurrent}" rowSelection="single" id="t1"
    displayRow="selected" partialTriggers="::cb1" styleClass="AFStretchWidth">
    <af:column sortProperty="#{bindings.EmployeesView1.hints.EmployeeId.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.EmployeeId.label}" id="c1">
    <af:inputText value="#{row.bindings.EmployeeId.inputValue}"
    label="#{bindings.EmployeesView1.hints.EmployeeId.label}"
    required="#{bindings.EmployeesView1.hints.EmployeeId.mandatory}"
    columns="#{bindings.EmployeesView1.hints.EmployeeId.displayWidth}"
    maximumLength="#{bindings.EmployeesView1.hints.EmployeeId.precision}"
    shortDesc="#{bindings.EmployeesView1.hints.EmployeeId.tooltip}" id="it1">
    <f:validator binding="#{row.bindings.EmployeeId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.EmployeeId.format}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmployeesView1.hints.FirstName.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.FirstName.label}" id="c2">
    <af:inputText value="#{row.bindings.FirstName.inputValue}"
    label="#{bindings.EmployeesView1.hints.FirstName.label}"
    required="#{bindings.EmployeesView1.hints.FirstName.mandatory}"
    columns="#{bindings.EmployeesView1.hints.FirstName.displayWidth}"
    maximumLength="#{bindings.EmployeesView1.hints.FirstName.precision}"
    shortDesc="#{bindings.EmployeesView1.hints.FirstName.tooltip}" id="it2">
    <f:validator binding="#{row.bindings.FirstName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmployeesView1.hints.LastName.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.LastName.label}" id="c3">
    <af:inputText value="#{row.bindings.LastName.inputValue}"
    label="#{bindings.EmployeesView1.hints.LastName.label}"
    required="#{bindings.EmployeesView1.hints.LastName.mandatory}"
    columns="#{bindings.EmployeesView1.hints.LastName.displayWidth}"
    maximumLength="#{bindings.EmployeesView1.hints.LastName.precision}"
    shortDesc="#{bindings.EmployeesView1.hints.LastName.tooltip}" id="it3">
    <f:validator binding="#{row.bindings.LastName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmployeesView1.hints.DepartmentId.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.DepartmentId.label}" id="c11">
    <af:selectOneChoice value="#{row.bindings.DepartmentId.inputValue}" label="#{row.bindings.DepartmentId.label}"
    required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
    shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}" id="soc1">
    <f:selectItems value="#{row.bindings.DepartmentId.items}" id="si1"/>
    </af:selectOneChoice>
    </af:column>
    </af:table>
    </af:panelBox>
    Thanks,
    Rajdeep

    Hi Frank,
    Indeed it worked. But I have two queries now :
    1. We are adding employee record using a method called through method action Binding. So shouldn't the bindings be aware of the same .. i mean sychonization of binding layer should happen when method action binding is used ?
    2. Why it works when i apply partialTrigger on panelBox ? Why "employeesViewImpl" code is not required when I apply partialTrigger on panelBox ? Is it a concept that iterator is reexecuted when you refresh parent component ?
    Thanks,
    Rajdeep

  • Ajax auto-suggest with adf

    Hi..
    I am trying to implement ajax auto-suggest using the example @ http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html
    After trying it, i realised the auto-suggest component does not work in firefox, but only in IE. Also when using IE 7, the auto-suggest pop up.screen. does not display directly under the textbox.. but rather away from it..unlike what we see in the example.
    Is there any other ways to implement autosuggest that work in both firefox and IE using ADF?
    thanks

    The limitation on browsers is a function of the ajax library used, namely https://blueprints.dev.java.net/bpcatalog/distDrops.html, not ADF. I would suggest finding a similar library that supports the browsers you wish to use.
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is it possible to use AJAX for onblur method -- ADF

    Is it possible to execute a javascript action method for (onblur,onclick etc.,) using AJAX?
    For example according to the selection made in a list box, some fields are hidden or rendered. This is done with out any javascript code written in ADF using AJAX.
    Like wise for onblur etc., can we use AJAX?
    I want to save the record when I tab out from the last field of the record.
    Please let me know how I can do this.
    Thanks,
    venki

    Hi,
    I think the easiest way out of this is to use a commit button on the page, give it an ID and then look it up using document.getElementById("form:Id");. submit this handle (note that buttons are rendered as links). This doesn't require an Ajax call
    Frank

  • AJAX Integration with ADF Components

    Please help me integrate AJAX with ADf Components
    Thanks in advance
    A sample code would be useful.

    Hi,
    Hope these links can help you
    http://www.oracle.com/technology/pub/articles/cioroianu-ajax-data.html
    http://www.oracle.com/technology/pub/articles/vohra-ajax.html
    http://www.oracle.com/technology/pub/articles/nimphius-ajax.html
    http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html
    EronYang

  • Calling Ajax from ADF tags

    Hi,
    I posted a problem on calling ajax from ADF tag.
    The link is
    Calling Ajax from ADF tags
    please can any body look into the issue and help me out.
    thanks
    Manjunath
    Edited by: user10568495 on Feb 11, 2009 1:22 AM

    Thanks for the suggestion, i will be following up the original thread.
    thnx
    Manjunath
    Edited by: user10568495 on Feb 11, 2009 1:58 AM

  • ADF Ajax ,How to show loading/busy status, Here is my solution.

    1- Set an "id" for property of form.
    2- Set Partial Triggers to "your form id" for property of command button.
    3- Set Partial Submit to "True" for property of command button.
    4- Add client listener to your command button.
    5- Add your javascript to your page.
    <div id="loader"></div>
    <af:commandButton actionListener="#bindings.collectDataUsingStoredProcedure.execute}"
    text="Kaydet"
    disabled="#{!bindings.collectDataUsingStoredProcedure.enabled}"
    id="cmdkaydet" partialTriggers="myform"
    partialSubmit="true">
    <af:clientListener method="Ajax" type="action"/>
    </af:commandButton>
    and my javascript here;
    function Ajax(action){
    document.getElementById("loader").innerHTML = "<img src='./busy.gif'></img>";
    req = new XMLHttpRequest();
    retrieveURL("#");
    function retrieveURL(url) {
    if (window.XMLHttpRequest) { // Non-IE browsers
    req = new XMLHttpRequest();
    req.onreadystatechange = processStateChange;
    try {
    req.open("GET", url, true);
    } catch (e) {
    alert(e);
    req.send(null);
    } else if (window.ActiveXObject) { // IE
    req = new ActiveXObject("Microsoft.XMLHTTP");
    if (req) {
    req.onreadystatechange = processStateChange;
    req.open("GET", url, true);
    req.send();
    function unloadimg(){
    document.getElementById("loader").innerHTML = "";
    function processStateChange() {
    if (req.readyState == 4) { // Complete
    if (req.status == 200) { // OK response
    //document.getElementById("loader").innerHTML = req.responseText;
    setTimeout ("unloadimg();",500);
    return;
    } else {
    alert("Problem: " + req.statusText);
    Mucahid Uslu
    Message was edited by:
    Mücahid Uslu
    null

    Hi,
    couples of issues here
    1. You should mention that this solution works with JDveloper 11, not 10.1.3 as people would suspect on this forum
    2. ADF Faces RC is only supported for IE7 and FF 2.0 (and upwards later on). This means that there no longer is a need to differentiate between the browers to issue a XmHttprequest
    A more straight forward solution would be
    - Execute the ADF binding from a method action and set the command button to blocking
    - From your JavaScript, display a image that shows an animated busy icon
    - From the managed bean that contains the method action, call the ExtendedRenderService to call another script on the page to hide the busy image
    You can also use some HTML text instead of the image to indicate the "busy"
    Frank

  • ADF BC + ADF Faces 10.1.3.3: Ajax with ADF.

    Hi Comunity
    I developed a ADF Faces page with AJAX funcionality, im not using others frameworks like icefaces or richfaces i develop the ajax code by my self. I try to add dinamic html tags in a table incrementing row by row, when i combined a div with a binding value like id#{status.index} the finaly results is the same the value not printed in the page.
    Any sugestions.¿?.

    Hi Peter
    I had the same problem a few weeks ago.
    The limitation is that JSF 1.1 does not allow the mix and match of HTML and JSf components. I found the solution using af:script to print html tag combined with #{status.index} value like this:
    <afh:script id="script1" generatesContent="true" text="document.write('&lt;p id=id#{status.index}>...&lt;/p>');"/>
    I works great for me.
    Good Luck.

  • Value Change Listener and field disable property in Ajax ADF component

    Hi. I have used the Ajax ADF component in my application. It is working fine but I am unable to implement the ValuechangeListener property and disable property for this component. Can someone please help and tell me how i can implement these properties for the component? Thanks in advance.

    Hi,
    I have no clue of what you are talking about.
    Frank

  • Auto suggest  AJAX component for ADF 10g: source code needed

    Dear all,
    Duncan Mills has posted a very useful article in http://www.oracle.com/technology/products/jdev/tips/mills/ajaxautosuggest/ajaxautosuggest.html about how to incoroporate an AJAX iput text field that can operate like Google search. This components derives from Sun Java blueprints.
    The URL to download the jar of this component is [http://otn.oracle.com/products/jdev/tips/mills/AjaxAutoSuggest/textfield.jar|http://otn.oracle.com/products/jdev/tips/mills/AjaxAutoSuggest/textfield.jar]
    I have managed to incorporate it in my ADF pages, but to my disappointment, this component does not work well with non-english character set.
    I have verified this from a Sun forum thread at [http://forums.sun.com/thread.jspa?threadID=787270&tstart=0|http://forums.sun.com/thread.jspa?threadID=787270&tstart=0]
    The jar file contains only the class files. Does anybody have the source code so I can amend it to work with UTF-8 charactes?
    My email is [email protected]
    Thanks
    Dimitris

    I have tried it, but when I create a tag library out of the Sun bluprint components, all my ADF pages display an error message that the JSF core tag laibraries are not installed

  • Inserting custom JQUERY inside in-built AJAX code of ADF

    Hello,
    I am using a JQUERY plugin for fancy select boxes in ADF. Once we perform any AJAX calls in the page, the JQUERY plugin does not work. So we need to add our JQUERY methods inside the AJAX codes to make it work. Can someone tell us where can we locate the AJAX files used in ADF.
    Any help on this would be highly appreciated.
    Thanks!
    Ank

    Hello,
    Thanks for the help but it did not help me. Let me explain you what I am trying to do:
    I am using a JQUERY plugin for <select> boxes which we call as "selectOneChoice" components. The JQUERY plugin converts normal selectOneChoice to an image based stylized selectOneChoice one.
    So I am using the JQUERY method as:
    $(document).ready(function() {
    $('select').selectbox();
    Problems that I am facing:
    This does not work on the first load of the page.
    If I click any Search button or reset link or any other buttons, the plugin goes off from the selectOneChoice boxes.
    The plugin also does not work for modal pop up which we call as af:popup.
    Please help me with the resolution.
    Thanks,
    Ank

  • AJAX in ADF

    Hi
    Can you provide me an example of AJAX in ADF.
    I have seen the example in http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html
    In that , he says to download a jar , but I want to write according to my appplication requirement.
    Please Help me
    Thanks.

    Maybe it will be better if you'll tell us what you actually want your application to do - this way we can tell you how to achieve it with ADF Faces.
    Note that ADF Faces gives you a lot of Ajax type behaviors out of the box.
    See:
    http://technology.amis.nl/blog/?p=1211
    http://www.oracle.com/technology/obe/obe1013jdev/10131/trinidad/adf_faces_trinidad.htm

  • AJAX component in ADF 11g

    Within the 150+ components I see there are components called inputListOfValues and inputComboboxListofValues where autocompelete functionality can be added to filter the results. As this handles some functionality that I want, it is not desired to go to a popup dialog to search for results to populate that input field. Is there a component that is similar to a google suggest that will be developed in the future? If not, what would be the best way of creating a component with this feature? I want to be able to have it show up in the component palette in JDeveloper and when I drag that component onto a page I can bind it to a data control and pass it a couple of parameters.
    I have created components like this using other MVC frameworks and using freemarker templates but haven't found a good way of creating a component like this in ADF.
    Thanks!

    Hi,
    this component is planned for a future release. It can be programmed with a combination of javaScript and managed beans in ADF Faces today. Before you ask, no there is no how-to on this, but I am working with a smart consultant in France who got this working to a large degree. So its just a remaining polish and documentation that needs some time to make it available in ADF
    Frank

Maybe you are looking for

  • How to change field in runtime at update query

    hi buddys i have to change the particular field during runtime how is it possible sample :           UPDATE zmpq_qcchk_hdr            SET (field) = i_hdr-ind1 WHERE            zcust = i_hdr-zcust AND zns = i_hdr-zns AND            zpgma = i_hdr-zpgma

  • Moving itunes library to mobile hdd?

    i moved the complete library to another place, and wnat itunes to recognize the new folder as the home folder. and the plasylists should also be recognized. on my mac, i just change the adress of my home music folder. this option doesn't seem to work

  • Moving webservice to production

    Dear All, I have created a client proxy using the webservice created by webmethods in Development client, also created port using lpconfig in development, everything seems to work fine but now i came to know that the WSDL file URL of webmethods quali

  • OCM Profiles web page

    Hello, When will Oracle add the 11g OCM profiles to the OCM profiles web page? By the way, there's a problem with the layout on [http://www.oracle.com/technology/ocm/index.html] Thanks

  • Nested movie clips and actionscript

    I have this code set up: /* This is to get the rollover menu movie clip */ this.profile_button.onRollOver = function(){ profile_button.gotoAndStop("on"); /* This is to get rid of the rollover menu */ this.profile_button.onRollOut = function(){ profil