Invoke Edit action once I click on Command Link,,,,,, Help me out in

Hi
I am having a datatable , which consists of of ROWS, & Columns
when I click on that command link, it shoud open a property page with all the bean data populated,,,, "I am using the same Add property page for edit also", Now I am modifying the data and click on "Add", Now It should call[b] UpdateQuery ie, ModifyServiceDomain instead of Insert Query "Add ServiceDomain".., Tell me how to do that...
How to solve the above problem..
Java Class:
public class ServiceDomainEventHandler {
    * This method is used to modify a service domain from the Web UI.
    * @return "succuess", if a service domain can be modified successfully,
    *         "failure", if a service domain can not be modified
   public String modifyServiceDomain()
      log.debug( "Into modifyServiceDomain method" );
      String returnStr = "edit_SD";
      FacesContext facesContext = FacesContext.getCurrentInstance();
      ExternalContext externalContext = facesContext.getExternalContext();
      HttpServletRequest request = (HttpServletRequest) externalContext
            .getRequest();
      String serviceDomainName = (String) request
            .getParameter( "serviceDomainName" );
      ServiceDomain servicedomain = null;
      try
         servicedomain = new ServiceDomainDbAccess()
               .getServiceDomainByName( UIConstants.WHICH_DB,
                     serviceDomainName );
      catch (SQLException pe)
         pe.printStackTrace();
      try
         servicedomain = new ServiceDomainMgerImpl().getServiceDomainById(
               UIConstants.WHICH_DB, Integer.parseInt( servicedomain
                     .getId() ) );
         if (servicedomain != null)
            facesContext.getExternalContext().getRequestMap().put(
                  "ServiceDomain", servicedomain );
         else
            log.debug( "Unable to obtain the ServiceDomain!" );
      catch (NrsProvisionException pe)
         returnStr = "failure";
         handleUIErrors( facesContext, pe );
      log.debug( "modifyServiceDomain method return value: " + returnStr );
      return returnStr;
    * This method is used to add a service domain from the Web UI.
    * @return "succuess", if a service domain can be added successfully,
    *         "failure", if a service domain can not be added
   public String addServiceDomain()
      log.debug( "Into addServiceDomain method" );
      String returnStr = "success";
      FacesContext facesContext = FacesContext.getCurrentInstance();
      ExternalContext externalContext = facesContext.getExternalContext();
      Map requestMap = externalContext.getRequestMap();
      ServiceDomain curServiceDomain = (ServiceDomain) requestMap
            .get( "ServiceDomain" );
      try
         new ServiceDomainMgerImpl().addServiceDomain( curServiceDomain );
      catch (NrsProvisionException pe)
         returnStr = "failure";
         handleUIErrors( facesContext, pe );
      log.debug( "addServiceDomain method return value: " + returnStr );
      return returnStr;
Jsp Page:
<%@ page language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
     <f:loadBundle basename="com.nortel.ems.mgmt.nrsm.messages.ServiceDomainMessageBundle" var="bundle"/>
     <%
          String path = request.getContextPath();
          String basePath =
          request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
     %>
     <html>
          <head>
               <base href="<%=basePath%>">
               <link REL="stylesheet" TYPE="text/css" HREF="<%= request.getContextPath()%>/css/nrsStyle.css">
               <title>Service Domain add page</title>
          </head>      
          <body>
          <f:verbatim>
          <div
               style="height:500px;overflow: scroll; margin-top: -2px;margin-bottom: -2px;border: 1px solid #CCCCCC; border-top:none;width:100%">
     </f:verbatim>
               <h:panelGroup id="SDPanel" styleClass="panelGroup">
                    <h:form id="SDForm" >                    
                         <h:panelGroup id="SDSubPanel" >
                           <h:panelGrid id="SDPanelGrid" styleClass="panelGrid"
                                          columnClasses="panelGridCol1,panelGridCol2,panelGridCol3,panelGridCol4"
                                        headerClass="tableHeaders" columns="4">   
                                <f:facet name="header">     
                                     <h:outputText id="SDHead" value="#{bundle.serviceDomainAdd}"/>   
                                </f:facet>                                                
                              <h:message for="SDForm" styleClass="fieldErrors" />
                              <h:outputText id="BlankCol1" value=""/>                                 
                              <h:outputText id="BlankCol2" value=""/>                                 
                              <h:outputText id="BlankCol3" value=""/>                                                               
                                <h:outputText id="SDName" value="#{bundle.serviceDomainName}"/>
                                <h:inputText id="name" value="#{ServiceDomain.name}" />
                              <h:outputText id="Mandatory" value="*"/>                                 
                                <h:message for="name" styleClass="fieldErrors" />
                                <h:outputText id="SDDesc" value="#{bundle.serviceDomainDesc}"/>
                                <h:inputTextarea id="description" value="#{ServiceDomain.description}" />   
                              <h:outputText id="BlankCol4" value=""/>                                 
                                <h:message for="description" styleClass="fieldErrors" />
                           </h:panelGrid>            
                         </h:panelGroup>
               <h:panelGroup styleClass="buttonpanelright">
                    <h:commandButton id="AddSD" action="#{ServiceDomainEventHandler.addServiceDomain}" value="#{bundle.serviceDomainSave}"/>
                         <h:commandButton id="CancelSD" action="#{ServiceDomainEventHandler.cancel}" value="#{bundle.serviceDomainCancel}" />
               </h:panelGroup>
          </h:form>
     </h:panelGroup>
     <h:outputText id="SDMandatoryIndicator" styleClass="mandatory" value="#{bundle.mandatory}"/>
     <f:verbatim>
          </div>
     </f:verbatim>
     </body>
     </html>
</f:view>[code[/code]]

update your adobe reader here, http://get.adobe.com/reader/
untick unwanted tag-along ware.

Similar Messages

  • Popup is not getting launched click on command link in table column value

    Hi
    We have a scenario where we bring the pop-up clicking on command link in the table column value. It was working fine before but from last few labels this is not working.
    Here is the code snippet that we are using,
    <af:table>
    <af:column>
    <af:commandLink>
    <af:outputText value=”product name” />
    <af:showPopupBehavior TriggerType=”click” PopupId=”::p1”/>
    <af:commandLink>
    </af:column>
    </table>
    <af:popup id=”p1”>
    <af:dialog>
    </af:dialog>
    </af:popup>
    Thanks,
    Nagesh

    It is important to set partialSubmit="true" in the <af:commandLink> tag. A full submit will be made otherwise and the popup will not show. Use also tryggerType="action" instead of triggerType="click" and use the proper chararcter case of the tag attribute names. Try with this:
    <af:commandLink text="product name" partialSubmit="true">
      <af:showPopupBehavior popupId="::p1" triggerType="action"/>
    </af:commandLink>Dimitar

  • JS RangeError exception happens after click a command link in Chrome22

    Hi,
    I am using JDev 11.1.1.4. I got an JS exception after click a command link. Following is my steps.
    1. use chrome(V22) to access my app
    2. refresh page
    3. click a command link(with action property) in UI which can jump to another page
    Result: nothing happens, and since then click any command link does not work(page does not refresh and no reqeust is sent). But command button still works.
    If we do not refresh page, this does not happens.
    This case occurs always in Chrome and occasionaly occurs in FF.
    Troubleshoot:
    after refresh page, an ajax request is sent in ADF js framework. Respense is recieved and callback funtion is executed. Excetpion happens during callback function executing period.
    Watch call stack, the exception happens during removeComponent(name is like this) funtion.
    And finally, an exception is caught. Here is detal of exception:
    Excetption: RangeError, type: stack_overflow, stack: undefined.
    Any one got this case?
    Please give some help and guidance.
    Thanks

    Hi,
    if you have a customer support contract, can you file a service request with support and provide a test case ? Also, worth trying this with JDeveloper 11.1.1.6 first
    Frank

  • Can we create an Eloqua cookie for a user if we just know his email address and they have not clicked an email link or filled out an Eloqua form?

    Scenario:
    When a visitor comes to our website and creates a login, we are pushing their profile information to Eloqua via the Eloqua web services api. However, because they have not filled out an Eloqua form or clicked through an email, their page visit activity is not synced with their profile information in Eloqua because they don't have an Eloqua cookie yet (for first time visitors only).
    I know you can integrate an external form with an Eloqua form (which will then create the Eloqua cookie automatically) but because this is a login form for our website, we don't want to send secure information (such as passwords) over to Eloqua.
    Is there a way to create the Eloqua cookie using the web services api and/or javascript or is this a missing feature?

    I think what you're asking is how can you link a visitor profile to an Eloqua contact.  An Eloqua cookie is placed on a user's computer by the javascript tracking scripts - this is just a unique id that is used when saving the visitor information to a table in the Eloqua database.  It will be there regardless of whether the user comes from an email or submits a form.  What does happen when a user visits your website from an Eloqua email or submits a form is the visitor profile that has been keeping track of website activity in Eloqua gets linked to an Eloqua contact by email address.
    To make this link happen in your scenario, you can instead of pushing the information through the web services to Eloqua directly as a create contact call, create a form submission through the web services where you can pass through the elqCustomerGUID (the cookie value) along with at least an email address to make the link happen.
    You will need to:
    1. use javascript on your website to pull the elqCustomerGUID from eloqua.  There's code for this in the integration details for individual forms in Eloqua.  It has to be pulled from Eloqua servers because the cookie is a third party cookie.
    2. pass this cookie value to your server so you have it when you make the web services calls to Eloqua to push the contact information over and now make a form submission record (entities through the api Base->Form->*this will be a form submission record*) to create the link in Eloqua.

  • How to set Bind variable on the action of command link

    I have two tables. One is the list of processes and other one is the details of processes with process name as primary key.
    I want to first display the first table which has the list of processes on one page. When I click on perticular process name this process will pass to the bind variable of another table and corresponding details will be shown on other page. can anyone help how I can do this. My code is as follows:
    package model;
    import model.common.BpelDetailsView;
    import oracle.jbo.server.ViewObjectImpl;
    public class BpelDetailsViewImpl extends ViewObjectImpl implements BpelDetailsView {
    * This is the default constructor (do not remove).
    public BpelDetailsViewImpl() {
    * Returns the variable value for bpelnameVar.
    * @return variable value for bpelnameVar
    public String getbpelnameVar() {
    return (String)ensureVariableManager().getVariableValue("bpelnameVar");
    * Sets <code>value</code> for variable bpelnameVar.
    * @param value value to bind as bpelnameVar
    public void setbpelnameVar(String value) {
    ensureVariableManager().setVariableValue("bpelnameVar", value);
    this.executeQuery();
    <af:commandLink id="ot3" text="#{row.BpelName}"
    action="#{DasboardBean.ot3_action}"/>
    public String ot3_action() {
    BpelDetailsViewImpl bdv=new BpelDetailsViewImpl();
    bdv.setbpelnameVar("#{row.BpelName}");
    return "success";
    but its not working at all.
    Its displaying the errors on click of command link.
    javax.servlet.ServletException: java.lang.NullPointerException
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         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:292)
         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:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         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.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:147)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:140)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:364)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:81)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:673)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 34 more
    Caused by: java.lang.NullPointerException
         at oracle.jbo.server.ComponentObjectImpl.ensureVariableManager(ComponentObjectImpl.java:472)
         at model.BpelDetailsViewImpl.setbpelnameVar(BpelDetailsViewImpl.java:32)
         at portal.view.bean.DasboardBean.ot3_action(DasboardBean.java:24)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 54 more

    Hi Shay..
    Thanx for your help...
    I stuck in one more problem. When I run directly the first list page it works fine. I craeted one more page home.jspx where I added a golink with <af:golink id="gl1" text ="List" destination="list.jspx". When I click on link it opens the list page. Now when I clicking on first column its redirecting to list.jspx not to details.jspx.
    What can be the solution for this.

  • On Command Link Action is not Firing

    Hi
    I am using JDev Version 11.1.1.6
    I have command link where i wrote a method in bean for Action. And the same command link has the showpopup behaviour
    My assumption was on click of command link Action method fires first then showpopup behaviour fires next.
    But when i click on command link action method is not firing, only showpopup behaviour is firing .
    is it expected behaviour?
    Many Thanks,
    ~Jagadeesh Badri

    Hi Jagadeesh
    Yes, it is an expected behaviour. The documentation about af:showPopUpBehaviour says that:
    The showPopupBehavior tag cancels the client event defined by the triggerType. Canceling the client event will prevent delivery to the server. This is significant for action events raised by command family components because the server-side action listeners will be ignored. All actionListener method bindings and associated action listeners will not be invoked when the triggerType of "action" is used.
    This means that if you use the triggertype of action, then your action method in the link will be ignored. Maybe if you change the triggerType to 'Click' you will get your actionListener triggered and the popup showed.

  • Skip Validation on command link click

    Hi All ,   
    I am facing a situation as mentioned below
      <af:table value="#{bindings.IssueRepEachUser1.collectionModel}"
                          var="row" rows="#{bindings.IssueRepEachUser1.rangeSize}"
                          emptyText="#{bindings.IssueRepEachUser1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.IssueRepEachUser1.rangeSize}"
                          partialTriggers="::cb2213 ::cb211234 ::cb5 "
                          rowBandingInterval="0" id="t2"    styleClass="IssueRepEachUser1"
                          autoHeightRows="25" columnStretching="last"
                        contentDelivery="whenAvailable" immediate="true"><!--   binding="#{pageFlowScope.ISAHelpRequestBean.issrepeachBind}"-->
                  <af:column sortProperty="RequestId"  sortable="false" headerClass="tableHeader1"   styleClass="tablecolumnRep"   width="100"
                             headerText="#{msg['HelpRequest.RequestId']}"
                             id="c6">
                  <af:commandLink text="#{row.RequestId}" id="cl2"   clientComponent="true"
                partialSubmit="true" styleClass="golinkact" immediate="true"
                actionListener="#{pageFlowScope.ISAHelpRequestBean.getcurrentIssues2}">
                <af:resetActionListener/>
                    </af:commandLink>
                  </af:column>
                <af:column>
                 </af:column>
      </af:table >
       <!-- dragged and dropped the command button into jspx page -->
       <af:commandButton actionListener="#{bindings.getResult.execute}"
                                                 text="getResult" visible="false"
                                                 disabled="#{!bindings.getResult.enabled}"
                                                 id="cb5"/>
        <af:panelFormLayout id="pfl2" ">
       <af:selectOneChoice value=""
                                label="usecase" unselectedLabel=""
                                required="true"
                                shortDesc="#{bindings.XxseUseCaseNameVO1.hints.tooltip}"
                                id="soc3"  autoSubmit="true"
                                valueChangeListener="#{pageFlowScope.Bean.UseCase}">
                  <af:selectOneChoice value=""
                                label="data module" unselectedLabel=""
                                required="true"
                                shortDesc="#{bindings.XxseUseCaseNameVO1.hints.tooltip}"
                                id="soc3"  autoSubmit="true"
                                valueChangeListener="#{pageFlowScope.Bean.DM}">
          <af:commandButton actionListener="#{pageFlowScope.Bean.Submit}"
                                text="#{msg['HelpRequest.submit']}"  visible="#{sessionScope.IsaID eq null }"
                                id="cb2213" styleClass="gocommand"/>
           <af:commandButton actionListener="#{pageFlowScope.Bean.Calcel}"
                                text="#{msg['HelpRequest.submit']}"
                                id="cb211234" />      
       </af:panelFormLayout>
       When I click on the command link in the <af:table> : it should redirect to a new page displaying its equivalent details .
       Issue facing currently :
    When clicked on Command link setting immediate = true  --> not redirecting to the new page and also at the same time page is getting validated the panelform layout for required="true"
    What is going wrong with the above code 
    Any help on this is appreciated.
    Thanks

    "When I click on the command link in the <af:table> : it should redirect to a new page displaying its equivalent details ."
    Do you have page navigation set in the task flow or you are trying something programmatically ?

  • Command Link as a row of a datatable in JSF

    Hi All,
    I am new to JSF. I have a Datatable with n number of rows.
    I would like to have a command Link in each of the rows, so that when i click the command link i should get the data of the entire row in my edit page.
    Can anyone suggest how can i achieve this.
    Regards
    SN

    Hi,
    Do following:
    1- add a datatable in your page and fill it with data comes from database(Assume u have no problem with datatable)
    2- add a column as commandLink in data table. e.g.
    <h:column>
    <f:facet name="header">
    <h:outputText value="name" />
    </f:facet>
    <t:commandLink action="editObject" immediate="true" >
    <h:outputText value="#{theobject.name}" />
    <t:updateActionListener property="#{objectForm.id}" value="#{objectDto.id}" />
    </t:commandLink>
    </h:column>
    in this code:
    "name" is header of column,
    "editObject" is defined in navigation rule to navigate to edit page, lets say object form.
    "theobject.name" the value that mouse gets finger over it!
    "objectForm.id" the pointer to an "id setter" of a managed bean (named objectForm) defined in faces-config.xml. In this setter you can load corresponding data from database
    "objectDto.id" the pointer to an "id getter" of a managed bean (named objectDto) defined in faces-config.xml. this getter return the id of the entity row you clicked on.
    3- Clearly, you need to defined all managed beans, and dont forget to have a customized setter for id of objectForm (setId) to load the entity from database and fill all editable properties(as you like) in this function (setId).
    4- you need a JSF page to redirect to it for editing properties and feed by objectForm
    5- Thats it :)

  • Popup is closed when command link is pressed even after validation exceptio

    Hi Techies,
    I am using JDeveloper 11.1.1.4. I have a sample .jspx page which has a table, a command link and a popup. When the user clicks the command link, the popup gets shown.
    The popup contains af:panelWindow as a direct child. panel window as a panel group layout which contains input box and a command link. The input text has a validation. Now my problem is even though the validation fails If i click the command link in the popup, the popup gets disappeared. Thankfully it is not updated in the database (Infact, the action and actionlisteners themselves are not getting called since the validation fails. Hope this is the expected behaviour) But my question is: could somebody tell my how to prevent the popup from hiding when i click the command link in popup once after the validation fails?
    Regards,
    V. Praveen

    Hi Praveen,
    Can you try with partialSubmit for the command link?
    Also use required partialTriggers as you want to refresh. Do not refresh the popup in your bean code.
    -Prasad

  • Command link in adf pivot table

    Hi,
    I Created one View Object (WrkVOR) Based on below query
    Select Desc1,Desc2 ,Date,Sum(Amount) From populate_wrk Group by Desc1,Desc2 ,Date
    Based on View Object we created pivot table
    Rows - Desc1 ,Desc2
    Column - Date
    Amount will come under each date (Like Matrix report)
    Up to It is working fine
    i added a command link on data(Amount) when i click the command link i am getting below error
    DVT-2015 Slice 1 Exceeds boundary -3
    please help....
    Thanks
    shk

    Hi,
    the real problem of the original poster seems to be <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="createMDM" immediate="true" partialSubmit="true"> having immediate set to true in which case the request goes from restore view to render response. You usually use immediate=true on a command item to cancel an action (bypassing all the other JSF lifecycle steps).
    Peter551059,
    you don't give us much information about your case. So if the problem is IE9 and you verified IE9 is supported for the version of JDeveloper you use, then - in case you have a support contract - my best advise is to file a service request and have support looking at it just in case you hit a defect that should be filed as a bug
    Frank

  • Command link propagating the Faces Message to another page

    Hi,
    I am facing a problem with a message +(message added to FacesContext Queue)+ being propagated from one page to another.
    I have 2 jsp pages. Both these pages when accessed display data loaded from DB. When the user comes to first page and there is no data found a FacesMessage is added to FacesContext and is displayed. There is a command link on this page which performs the navigation to 2nd jsp page.
    Problem* : If the user clicks the link, the same message that was displayed in 1st jsp page is displayed in 2nd jsp page even if the data is present
    FacesContext display messages that are in the same request and clicking on command link creates a new request, so the old message in the FacesContext Queue should be removed and it should not carry forward that message to next jsp
    Please correct me if I am wrong.
    Thanks
    Avner
    Edited by: avner on Jan 31, 2008 8:38 PM

    I don't think you have given us enough to work with here. Try paring down the code to the smallest possible example that still exhibits the problem. Many times that process itself will reveal the issue. If not, post the example here.

  • Command Link doesn't work - may be a bug

    Hi all,
    I'm using JDev 11g. I added two pages to the adfc-config.xml file and a controlFlowCase from one to another. Page1--> Page2 The action name is "aaa".
    And then i added a command link to the Page1 and selected the action name "aaa". Now i'm click the command link, but it doesn't work. I'm shocked. What is the problem? It's so basic thing.
    Erdo

    I'm running just like you said. Here is the error log :
    oracle.jbo.JboException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-29000. Error message parameters are {0=java.lang.NullPointerException, 1=null}
         at oracle.adf.model.binding.DCIteratorBinding.reportException(DCIteratorBinding.java:376)
         at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1693)
         at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1645)
         at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4395)
         at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1647)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1754)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isUpdateable(JUCtrlValueBinding.java:2610)
         at oracle.adfinternal.view.faces.model.AdfELResolver._isReadOnly(AdfELResolver.java:96)
         at oracle.adfinternal.view.faces.model.AdfELResolver.isReadOnly(AdfELResolver.java:112)
         at javax.el.CompositeELResolver.isReadOnly(CompositeELResolver.java:353)
         at com.sun.faces.el.DemuxCompositeELResolver._isReadOnly(DemuxCompositeELResolver.java:290)
         at com.sun.faces.el.DemuxCompositeELResolver.isReadOnly(DemuxCompositeELResolver.java:319)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:340)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1015)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:46)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1491)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1410)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:352)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:187)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
    ...

  • Using command link

    Hi!
    I am usig jdeveloper 11.1.1.5
    I had created a glm0101.jspx,cfs0010.jspx
    I need to use a command link for both the jspx
    say While clicking glm [command link] i need to open glm0101.jspx and by clicking trialbal [command link] i need to open cfs0010.jspx
    If i am not more clear pls visit the site.,
    http://www.4shared.com/photo/Yug2bxeJ/E023.html
    could any body pls help me.,

    if you have a navigation case between your current page and the other pages , then set the action attribute for your command button to the navigation case you defined in page flows.
    http://download.oracle.com/docs/cd/E16162_01/web.1112/e16181/gs_jdev.htm#CHDHCJGG

  • Command Link in ADF table is not working/ PPR event not getting fired

    Hi All,
    I am having ADF Table, in that one column is with command link if click on command link, it is not navigating to corresponding page or method of a bean. If i give same command link out of the table it working fine, this issue i am facing is in IE9.
    if i use IE in compatibility mode the links works fine, even in IE8 version also.
    Browser: IE 9
    Jdev version: 11.1.1.5.0
    I tried all possible things, but nothing workout for me.
    showPopupBehavior not working in IE9 for af:table buttons (jdev11.1.1.5.0)
    Partial page rendering not working in ie9
    Command Link in ADF table is not working
    Thnks

    Hi,
    please file a bug if you have a customer support contract and provide a testcase
    Frank

  • Command links in h:datatable not working

    I have some command links in h:datatable which are not working. When I click the command link all I get is a referesh page(same page is displayed with datatable values as null). But when I put command link outside h:datatable, the navigation takes place properly. Any idea what could be worng

    You can try using t:dataTable from tomahawk.jar, instead of the h:dataTable. Make the following changes in your code.
    1. Add the taglib uri in your JSP as,
    <%@ taglib uri = "http://myfaces.apache.org/tomahawk" prefix="t" %>
    2. Add the tomahawk-1.1.3.jar to your WEB-INF/lib folder.
    3. Instead of using h:dataTable, use t:dataTable.
    4. After the form save your bean's state as,
    </h:form>
    <t:saveState id="viewForm" value="#{stateBean}"/>
    Here, id can be any name and the value should be the name of your bean, how u have used in your JSP.
    I hope this will help you.

Maybe you are looking for

  • Error when creating service product category in Shopping cart

    Hi , When I am creating a shopping cart for service type product category I am getting an error message " Item 1 is created as service item. Please change it to goods". Do I need to do some settings to enable shopping for service type?

  • ADA Logical database

    Hi Experts, I have a requiremt to get the details from the ADA Logical database and extractor to BI. Is it possible to extract the data from ADA LD ? I  possible , It is apperciable if I get the setos to follow . Thanks sai.

  • Trouble figuring out how to use Portrait mode.

    I have a book that I have already contructed in paperback form and now I'm wanting to make it into an ibook using iBooks Author.  My book was originally done in an 8x10 format so I'd like to contruct it in portrait mode.  I would like to be able to m

  • Sorting Video Playlists

    I hope I'm not missing something obvious here. Whenever I create a video playlist, and add to it, the iPod always shows the contents of the playlist in reverse alphabetical order. Is there a way to have the iPod sort video playlist contents alphabeti

  • Before I update, is firefox 27.0.1 compatable with Skype click and call?

    Every time I update Firefox I lose Skype click and call and have to wait weeks for access to it again. I now will not update Firefox until I know it is comparable with Skype click and call. Is firefox 27.0.1 compatable with Skype click and call at th