ADF Table and Command Link

Hi,
I am using version 11.1.1.5.0;
I am facing an issue with a commandLink held in a table column and it's actionListener not firing ahead of the selectionListener of the table.
The selectionListener of the table call a method in the backing bean to show/hide like a toggle affect. When the commadLink is visible and selected there is an actionListener to execute another method but the tables selectionListener takes precedence and the commandLink is hidden.
Any suggestions?
Regards
Sun-E

JSF Fragment code:
<af:table value="#{bindings.clearedConditionsVO1.collectionModel}"
var="row" rows="#{bindings.clearedConditionsVO1.rangeSize}"
id="t4" rowSelection="single" styleClass="conTable"
columnStretching="column:col2" horizontalGridVisible="false"
verticalGridVisible="false" fetchSize="100"
*selectionListener="#{pageFlowScope.consRIBean.cleConSelListner}"*
contentDelivery="immediate" rowBandingInterval="0"
autoHeightRows="100">
<af:column id="col2">
<af:panelGroupLayout id="pgl59" layout="vertical"
styleClass="conditionsIter2" valign="top">
<af:panelGroupLayout id="panelGroupLayout16" layout="vertical">
<af:outputText id="outputText9" value="Affected plot(s):"
styleClass="outstanding_right"/>
<af:outputText value="#{row.bindings.Clearedplots.inputValue}"
id="outputText10" styleClass="conText"/>
</af:panelGroupLayout>
<af:panelGroupLayout id="pgl63" layout="horizontal"
styleClass="gap1"
rendered="#{row.exCol eq 'true' ? 'true' : 'false'}">
<af:outputText id="ot35" value="Creation date:"C
<af:panelGroupLayout id="pgl64" layout="horizontal"
styleClass="APdpr"
rendered="#{row.exCol eq 'true' ? 'true' : 'false'}">
<af:panelGroupLayout id="pgl65" layout="horizontal"
halign="left">
<af:outputText value="contact: #{row.bindings.Contact.inputValue}"
id="ot37" styleClass="conText"/>
</af:panelGroupLayout>
<af:panelGroupLayout id="pgl66" layout="horizontal"
halign="right">
<af:image source="/images/arwlink_arrow.png" id="i7"
shortDesc="back"/>
<af:commandLink text="Contact" id="cl18"
styleClass="arwlink"
          *actionListener="#{pageFlowScope.consRIBean.openPopUp}">*
<af:setPropertyListener from="#{row.ConditionRiId}"
to="#{pageFlowScope.conditionRIiD}"
type="action"/>
</af:commandLink>
</af:panelGroupLayout>
</af:panelGroupLayout>
<af:outputText value="Job Ref: #{row.bindings.FusionJobId.inputValue}"
id="ot38"
rendered="#{row.exCol eq 'true' ? 'true' : 'false'}"
styleClass="conText"/>
<af:spacer width="10" height="10" id="s24"/>
<af:panelGroupLayout id="pgl60"
rendered="#{row.exCol eq 'true' ? 'false' : 'true'}">
<af:image source="/images/arwlink_add.png" id="i8"
shortDesc="Read more"/>
<af:commandLink text="Read more" id="cl11"
styleClass="arwlink"
action="#{pageFlowScope.consRIBean.showClearConCollection}">
<af:setPropertyListener from="#{row.ConditionRiId}"
to="#{pageFlowScope.conditionRIiD}"
type="action"/>
</af:commandLink>
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:panelGroupLayout>
<af:panelGroupLayout id="pgl68" styleClass="conditionsIter4"
layout="vertical" valign="top"
rendered="#{row.exCol eq 'true' ? 'true' : 'false'}">
<af:outputText value="Documents tagged to this condition:"
id="ot39" styleClass="DocCons"/>
<af:panelGroupLayout id="pgl69" styleClass="gap1">
<af:image source="/images/arwlink_arrow.png" id="i9"
shortDesc="Send"/>
<af:commandLink text="Send now" id="cl12" styleClass="arwlink"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:panelGroupLayout>
<af:spacer height="15" id="s13"/>
</af:column>
</af:table>
</af:panelGroupLayout>

Similar Messages

  • JOINING local table and DB Link table performance

    Hellou everybody,
    can somebody tell me how it is work in Oracle DB when you want to join some local table and DB Link table for example:
    Select a.col1, b.col2
    from local_table a , remote_table@dblink b
    where a.key = b.key;
    and when I use DRIVING_SITE hint and the all data from remote table is transforming (pushing) into my DB (in some temporar space), it will transform although Indexes from remote table?
    So when I use some JOINS, this joins will be fast enought? Will they using remote table indexes to query the data or not?
    Thank you for response.
    Zoffob

    user10708026 wrote:
    Is it as simple as:No. Use:
    UPDATE  habitationalsupplement live_hab
       SET  primaryheatingapparatuscode = (
                                           SELECT  hab_backup.primaryheatingapparatuscode
                                             FROM  habitationalsupplement@backupdb hab_backup
                                             WHERE hab_backup.itemobjectid = live_hab.itemobjectid
                                               AND hab_backup.itemversionnumber = live_hab.itemversionnumber
      WHERE (itemobjectid,itemversionnumber) IN (
                                                 SELECT  hab_backup.itemobjectid,
                                                         hab_backup.itemversionnumber
                                                   FROM  habitationalsupplement@backupdb hab_backup
    /SY.

  • Asigning Reports, specific tables and Url links to the Role

    Hello Gurus,
    could you please tell me the procedure of asigning Reports, specific tables and Url links in the role.actually i know the process of assigning T-Codes to the role but i dont know the procedure for reports and url links and tables...
    i hope u people will respond positively.
    Cheers.......
    srinivas.korva

    Hi Srinivas,
    "i want to add only one particular table not all tables", you can do this using a Custom Transaction Code, the following are the steps to do it:
    1) goto se93, give a unique name, say zxxx
    2)Enter SE16 into the transaction field and select the flag the ‘skip initial screen’ field:
    3)On the lower portion of the screen, enter the following information:
    Name of screen field: DATABROWSE-TABLENAME
    Value: Enter the name of the table you want to browse with
    4)save it.
    5) Now add the transaction zxxx in th role, and assign it to the user.
    With this, when user executes the transaction, he/she will be able to see only the perticular table you added.
    "in PFCG what is the use of Exper mode for profile generation. what is the difference between general profile generation and expert mode profile generation".
    Expert mode has 3 options:
    1) Delete and recreate profile and authorizations---This will completely delete the old profile and add only  the new once.
    2) Edit old status----It will edit the old values
    3) Read old status and merge with new data----This will add the new values aithout actually disturbing the old ones.
    Hope it helps.
    Please award points if it is useful.
    Thanks & Regards,
    Santosh

  • JSF Command Button and Command Links

    The main page of my JSF application has a Save button and Command Links. After making any changes on the main page the user should click Save before using any of the Links. Most of the time almost all users do this. However, some users are making changes then clicking a Link, thereby losing their changes.
    I could always execute my save method in the backing bean when a link is clicked, but, most of the time this would be doing a lot of processing which usually would not be necessry.
    Is their some way to check if any changes have been made and then doing the save only when necessary?
    Regards,
    Al Malin

    Anybody?
    What would be beneficial is something like this. If somehow it could be determined if any of the JSF fields on the page were modified. Then, in the backing bean method that handles the ActionEvents for the links, I would check if changes were made and, if so, call my save method.
    In other words is it possible to determine, in the backing bean, whether or not JSF fields have changed?
    Regards,
    Al Malin

  • JDev 11g TP4: ADF tables and ADF form pop-ups PPR?

    I was hoping somebody could help me with the following please.
    I'm currently having a bit of an issue with ADF tables and ADF forms embedded in a pop-up, where the wrong record is shown in the popup. I suspect it's a PPR problem but am unsure. My scenario:
    1) I have the following table:
    CREATE TABLE "CHRIS_MUIR_DELETE_ME" (
    "ID" NUMBER(5,0)
    "SOME_COLUMN" VARCHAR2(20 BYTE)
    CONSTRAINT "CHRIS_MUIR_DELETE_ME_PK" PRIMARY KEY ("ID"));2) I have a default ADF BC EO/VO combination for this table.
    3) I have an ADF Faces RC page with a read-only table based on this VO:
    <af:table value="#{bindings.ChrisMuirDeleteMeView.collectionModel}" var="row"
       rows="#{bindings.ChrisMuirDeleteMeView.rangeSize}"
       emptyText="#{bindings.ChrisMuirDeleteMeView.viewable ? 'No rows yet.' : 'Access Denied.'}"
       fetchSize="#{bindings.ChrisMuirDeleteMeView.rangeSize}"
       selectedRowKeys="#{bindings.ChrisMuirDeleteMeView.collectionModel.selectedRow}"
       selectionListener="#{bindings.ChrisMuirDeleteMeView.collectionModel.makeCurrent}"
       rowSelection="single" partialTriggers="myDialog">
      <af:column sortProperty="Id" sortable="false"
        headerText="#{bindings.ChrisMuirDeleteMeView.hints.Id.label}">
         <af:outputText value="#{row.Id}">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.ChrisMuirDeleteMeView.hints.Id.format}"/>
         </af:outputText>
      </af:column>
      <af:column sortProperty="SomeColumn" sortable="false"
         headerText="#{bindings.ChrisMuirDeleteMeView.hints.SomeColumn.label}">
        <af:outputText value="#{row.SomeColumn}"/>
      </af:column>
    </af:table>Note that rowSelection is set to "single".
    3) The page also includes a popup-dialog combo that shows the same data from the table (ie. they're based on the same VO) as an ADF Input Form:
    <af:popup id="myPopUp">
      <af:dialog type="okCancel" id="myDialog">
         <af:panelFormLayout>
            <af:inputText value="#{bindings.Id.inputValue}"
                label="#{bindings.Id.hints.label}"
                required="#{bindings.Id.hints.mandatory}">
               <f:validator binding="#{bindings.Id.validator}"/>
               <af:convertNumber groupingUsed="false" pattern="#{bindings.Id.format}"/>
            </af:inputText>
            <af:inputText value="#{bindings.SomeColumn.inputValue}"
                label="#{bindings.SomeColumn.hints.label}"
                required="#{bindings.SomeColumn.hints.mandatory}"/>
            </af:inputText>
         </af:panelFormLayout>
      </af:dialog>
    </af:popup>Note that the table's partialTriggers is set to the id of the dialog. This implies on return from the dialog, the table will update itself to reflect any changes.
    4) I have a data bound Create commandButton, + a simple Edit commandButton. The Edit button includes an <af:showPopupBehavior> to display the popup:
    <af:commandButton
        actionListener="#{bindings.Create.execute}" text="Create"
        disabled="#{!bindings.Create.enabled}"
        partialTriggers="table1"/>
    <af:commandButton text="Edit">
        <af:showPopupBehavior popupId="myPopUp"/>
    </af:commandButton>If you run the form with the following steps, you can reproduce my issue:
    1) Click the create button, this will create a blank record in the <af:table>
    2) Click the edit button and give the 2 fields values, press ok. Note this is reflected back in the table.
    3) Click the create button, you will now see another blank record in the <af:table>. Note that the current row selection highlight is on the new record.
    4) In the table select the original record, then the Edit button. Oddly the input form is showing the blank record, not the original record even though we selected it in the <af:table>
    This implies to me that I have to hook up a PPR event such that the fields on the popup know to update themselves when the user selects a new row in the table.
    I've tried setting the partialTriggers property for the popup, dialog and individual fields on the popup page to the table id, but this doesn't seem to work.
    Does anybody have any suggestions on how I'm meant to hook up the partialTriggers in this case? I'm at a bit of a loss to know what to do to solve this issue. Is it possible the table selectionListener isn't working?
    Thanks for your help in advance.
    Regards,
    CM.

    G'day gang
    This morning I had a chance to play with Pavle's suggestions, specifically the popup contentDelivery option, and it's solved the issue. Specifically changing the contentDelivery option to lazyUncached was the golden solution.
    As the popup component help states, the default functionality is: "lazy -- the default strategy described above. The content isn't loaded until you show the popup once, but then is cached."
    ....cached being the issue I was seeing.....
    While the lazyUncached options states: "lazyUncached -- the content isn't loaded until you show the popup, and then is re-fetched every subsequent time you show the popup. Use this strategy if the popup shows data that can become stale."
    The nasty thing about the lazy option is the fact that in the dialog it can show the previous cached result (even though you've selected a different record), and you can even appear to edit that cached result in the dialog, but when you press okay in the dialog and return to the previous table, it's updated the record you selected, not the cached result.
    Confusing, but not a bug if you understand the popup contentDelivery options.
    Frank, if you'd like it, I have the simple test case available to send you. But as it's not a bug I wont send it to you unless requested.
    Thanks to both of you for your assistance with this one. Once again your help is much appreciated! :)
    I'll take time out to blog about this in the next few weeks to assist others.
    Thanks & regards,
    CM.

  • Refresh adf table and selection row

    Hi,
    I create web application. I have created entity Users from MySQL database and managed Bean. In this managed Bean (sessionScope) is method for connection to database and method for adding new row (data) in database. It works.
    I have 2 problems.
    The first.
    I have form for adding User and commandButton Add.
    How I can refresh (update) adf table after executing SQL command (in commandButton Add) ? Now I must reconnect session.
    The second problem:
    I want to show a panel with data from one row from adf table.
    How I can selection this row in popup ?
    My table:
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  selectionListener="#{userController.selectedUser}"> ---- Here I have problem.
                                            <af:column sortProperty="#{user.user_id}"
                                                       sortable="false"
                                                       headerText="ID"                            
                                                       id="c11" width="33">
                                                <af:commandLink id="ot34" text="#{user.user_id}">
                                                    <af:showPopupBehavior popupId="p4" triggerType="action"/>
                                                </af:commandLink>
                                            </af:column>
                                            <af:column sortProperty="#{user.firstname}"
                                                       sortable="false"
                                                       headerText="Firstname"
                                                       id="c20" width="111">
                                                <af:outputText value="#{user.firstname}" id="ot27"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.lastname}"
                                                       sortable="false"
                                                       headerText="Lastname"
                                                       id="c12">
                                                <af:outputText value="#{user.lastname}" id="ot31"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.address}"
                                                       sortable="false"
                                                       headerText="Address"
                                                       id="c9" width="95">
                                                <af:outputText value="#{user.address}" id="ot32"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.city}"
                                                       sortable="false"
                                                       headerText="#City"
                                                       id="c10" width="76">
                                                <af:outputText value="#{user.city}" id="ot33"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.username}"
                                                       sortable="false"
                                                       headerText="Username"
                                                       id="c7" width="102">
                                                <af:outputText value="#{user.username}" id="ot29"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.email}"
                                                       sortable="false"
                                                       headerText="E-mail"
                                                       id="c21" width="106">
                                                <af:outputText value="#{user.email}" id="ot28"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.regdate}"
                                                       sortable="false"
                                                       headerText="Registration"
                                                       id="c8" width="108">
                                                <af:outputText value="#{user.regdate}" id="ot30">
                                                    <af:convertDateTime pattern="#{user.regdate}"/>
                                                </af:outputText>
                                            </af:column>
                                        </af:table>userController is name managed Bean.
    users is list of users.
    My panel window (popup):
    <af:popup childCreation="deferred" autoCancel="disabled" id="p4">
                                        <af:panelWindow id="pw9" title="Delete user">
                                            <af:panelFormLayout id="pfl6">
                                                <af:panelLabelAndMessage label="ID:"
                                                                         id="plam16">
                                                    <af:outputText value="#{userController.selectedUser.user_id}" id="ot50"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Firstname:"
                                                                         id="plam17">
                                                    <af:outputText value="#{userController.selectedUser.firstname}" id="ot51"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Lastname:"
                                                                         id="plam18">
                                                    <af:outputText value="#{userController.selectedUser.lastname}" id="ot52"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Address:"
                                                                         id="plam19">
                                                    <af:outputText value="#{userController.selectedUser.address}" id="ot53"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="City:" id="plam20">
                                                    <af:outputText value="#{userController.selectedUser.city}" id="ot54"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Username:"
                                                                         id="plam21">
                                                    <af:outputText value="#{userController.selectedUser.username}" id="ot55"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="E-mail:" id="plam22">
                                                    <af:outputText value="#{userController.selectedUser.email}" id="ot56"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Registration:"
                                                                         id="plam23">
                                                    <af:outputText value="#{userController.selectedUser.regdate}" id="ot57">
                                                        <af:convertDateTime pattern="#{userController.selectedUser.regdate}"/>
                                                    </af:outputText>
                                                </af:panelLabelAndMessage>
                                            </af:panelFormLayout>
                                            <af:commandButton text="Delete" id="cb18"
                                                              inlineStyle="width:80pt; margin:10px 0px 0px 0px;"/>
                                        </af:panelWindow>
                                    </af:popup>When I cut out row: selectionListener="#{userController.selectedUser}
    Popup (for deleting user) looks like this:
    http://imageshack.us/photo/my-images/404/popupc.jpg/
    I need to get the outputs from <af:outputText> in this popup.
    Thanks for help.
    Edited by: user9202624 on 26.2.2013 7:52

    thanks for answer.
    I added partialTriggers in af:table
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  partialTriggers="::t1" >What next ? What should I do next ? Sry, I'm newbie in adf and jDev.
    Edited by: user9202624 on 26.2.2013 8:55

  • Dynamic datatable and command link

    I'm having a problem creating CommandLink's automatically. What we have is a tag, which can contain a set of data. We need this on several locations, so we have to create a datatable dynamically. When you press a link, it should be possible to retrieve the ID of the component on that specific row.
    The problem is, we can create the table with the necessary data. When I construct the column with the ID (and the link), it fails.
    Code:
    HtmlCommandLink link = new HtmlCommandLink();
    Application app = FacesContext.getCurrentInstance().getApplication();
    ELContext elContext = FacesContext.getCurrentInstance().getELContext();
    ValueExpression ve = app.getExpressionFactory().createValueExpression(elContext,"${" + TABLE_VAR_NAME + "." + property + "}", Object.class);
    link.setValueExpression("value", ve);
    link.getAttributes().put("rowId", ve.getExpressionString() );
    link.addActionListener(
        new ActionListener(){
         public void processAction(ActionEvent arg0)
              throws AbortProcessingException {
              LOG.info(">>>>>>>>>>>>> Linked pushed !!"  +
              arg0.getComponent().getAttributes().get("rowId"));
    selectColumn.getChildren().add(link);
    datatable.getChildren().add(selectColumn);The rowId is always #{row.code}, instead of the actual data. Is there a way to create a command link dynamically, press it and retrieve the ID of that field? That expression should be evaluated at runtime and added to the datatable, but that doesn't happen apparently.

    I've read your article, but I didn't find anything I could use. Facing a deadline and don't really have time to try out multiple (possible) solutions. The problem is that all the examples I can find point to MethodBinding, but I don't need that. I just need to get the ID of the row that was clicked, nothing more.
    This works fine:
    link.setValueExpression("value", ve);I don't see why the other expression isn't evaluated.
    I can do getParent().getParent() to get a reference to the DataTable, but the datamodel on that object is empty btw.

  • ADF table and ADF form on the same view object

    Hi,
    As per the ADF demos available on ADF site, I created a jsf page with 2 panels. One panel is an ADF table based on a view object. And the other panel is and ADF form based on the same view object. My requirement is that as I scroll through the records in the ADF table, the ADF Form should dynamically display the details of the record in the ADF table. My understanding is that this should be automatic. However, its not working as expected. What have I missed?

    Hi,
    Apply PPR for form that displays details.
    Like :
    <af:table id="t3">
    </af:table>
    <af:panelFormLayout id="pfl2" partialTriggers="t3">
    </af:panelFormLayout >

  • Output Link and Command link problem

    I have this command link that I want to redirect to a certain url, a complete one with the Http://www.webpage.com.. and its value is Goto This Page..
    lets say I want it to pass through a certain backing bean before redirecting how am i supposed to do it...?
    before it was this simple:
                   <h:outputLink  value="http://www.wepbage.com">
                        <h:outputText value="Go to this page"/>
                   </h:outputLink> but this could says that the action attribute is not valid for an outputLink..
    thanks in advance.. :)

    Here's the stack trace but i can't seem to find which particular thing is causing this..
    16:30:33,921 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
    threw exception
    java.lang.IllegalStateException: Cannot forward after response has been committe
    d
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
    ispatcher.java:313)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
    patcher.java:301)
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatc
    h(ServletExternalContextImpl.java:415)
    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV
    iewHandlerImpl.java:234)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
    352)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Exte
    nsionsFilter.java:92)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Exte
    nsionsFilter.java:92)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Exte
    nsionsFilter.java:122)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
    lter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
    yAssociationValve.java:175)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
    torBase.java:432)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
    e.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
    kerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    here's the bean
    public void link(){
             HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
             try {
                  searchController.setNewSearch(true);
                  response.sendRedirect("http://www.shipserv.com");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         }

  • JDBC BUG WITH SYNONYM TABLES AND DB-LINK

    I have created a database link within my schema.
    Then i have created a synonym for a table in the linked database.
    When using metadata.getColumns() for the synonym table there
    are no columns returned.
    When using metadata.getTables() the synonym table is included in
    the list.
    Driver: Oracle 8.1.5 Thin
    Is this a kown bug.
    Any workarounds available.
    null

    Hi togehter,
    soory for my delayed answer. I was ill.
    I created my scenario but it doesn#t work.
    This is my input:
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:SAKRJOIN.resultSet xmlns:ns="urn:sap.com:jdbcAdapter">
    <row>
    <MANDT>100</MANDT>
    <LIFNR>146128</LIFNR>
    <BUKRS>41</BUKRS>
    <row>
    <MANDT>100</MANDT>
    <LIFNR>146128</LIFNR>
    <BUKRS>42</BUKRS>
    </row>
    <row>
    <MANDT>100</MANDT>
    <LIFNR>146129</LIFNR>
    <BUKRS>42</BUKRS>
    </row>
    </ns:SAKRJOIN.resultSet>
    This is my target:
    IDOC Element CREMAS.CREMAS05 1..unbounded
    BEGIN Attribut xsd:string required
    EDI_DC40 Element EDI_DC40.CREMAS.CREMAS05 1
    E1LFA1M Element CREMAS05.E1LFA1M 1
    SEGMENT Attribut xsd:string required
    MSGFN Element xsd:string 0..1 maxLength="3"
    LIFNR Element xsd:string 0..1 maxLength="10"
    ANRED Element xsd:string 0..1 maxLength="15"
    If I mapped the field row to the target field IDOC I create three IDOCs, but I want only one IDOC per <LIFNR>. In this example I want to see two IDOCs. One for 146128 and one for 146129.
    If I mapped <LIFNR> -> split by value (valuechanged) in field IDOC I get only one IDOC.
    Whats wrong ?
    I tried
    lifnr>sort>splitbyvalue(valuechange)->collapse context->IDOC
    Now I get three once again.
    Kind regards
    Wolfgang

  • ADF Tables and 508 Accessibility Complience

    How can I apply the 'headers' attribute to individual cells in an ADF table or, as an alternative apply the 'scope' attribute to row and column headers so that my screen reader, currently MS Narrator, will read the contents of each cell?

    Yes, I have verified that accessibility-mode is set to 'screenReader' - each row and column is also rendered with a 'select' control. I see that in the generated HTML for the table the scope="col" attribute for each header is being set but not "scope=row" for each row. I've also tried the NVDA screen reader as well - it can 'occasionally' read the contents of each cell using the keyboard arrow keys but it will not read column or row header names - so for large tables a vision impaired user wouldn't know the context for each cell value.
    To bring up another point, without the capability of inserting a 'headers' attribute for cell, a table containing multi-layer headings would be impossible for a screen reader to read.
    I've also noticed that for single one choice controls the screen reader does not read the label and control widget type until after the select event is generated - usually by pressing the down arrow key. Text entry controls work as expected.

  • Detailed layered ADF tables and reports; CSV

    I have implemented this http://kuba.zilp.pl/?id=361 to produce CSV files from view objects and BC's. This worked fine when dealing with one simple queried View object. I have hit a wall because my data and queries have become more involved. Example:
    Sponsor 112234
    Item Qty Site Cost Description
    NSN 0000-00-000-0003 122 122 $0.00 SCDR TST
    NSN 0000-00-000-0003 30 PHL $0.00 SCDR TST
    Total Cost for 112234: $0.00
    Sponsor ARMY-TACOM
    Item Qty Site Cost Description
    C/P (*0000) 29742 1 PHL $100.00 PUMP, BRONZE
    C/P (*0000) 320 01434 02 1 PHL $10.00 POWER SWITCH
    C/P (*0000) 320 01437 01 1 PHL $10.00 SWITCH, WATER DRAIN
    C/P (*0000) 321 30671 01 1 PHL $2,637.18 SAMPLING, MEASURE
    C/P (*0000) 321 30676 1 PHL $10.00 HOUSING, VIBRATOR
    View the above data as ONE table, and not TWO seperate tables.
    In this example, I am showing all the info. for EACH sponsor.
    Is is possible to create ONE table/View Object to give me this information? And can an HTML report be produced from that View Object?
    Thanks.

    Hi,
    sure, you can create read-only VO that are based on SQL queriesincluding one to many tables. If you need the Views to be updateable then you create Entities for each table and createa VO on top of that
    Frank

  • Problem with af:table and view links

    I want to display a table with data from a database table called PERSON, so I'm using af:table tag.
    The PERSON table has the next fields:
    PERSON_CODE
    PERSON_NAME
    PERSON_COD_STATE
    The field PERSON_STATE is a foreign key to other table called PERSON_STATE:
    PERSON_COD_STATE
    DESCRIPTION
    I've created a view to get data from PERSON table (personView). Because I want to show the person state description in the af:table , I've created another view to get data from PERSON_STATE table (personStateView). And I've also created a view link between personView and personStateView.
    In the column of the af:table that represents the person state I drop the field 'description' of the state view linked to the person view.
    When I run the JSP the state is not shown properly. All the persons are shown with the same state.
    When testing directly with the application module, the view link works properly.
    Does view links work inside a af:table?
    I'm working with ADF 10g.
    Thanks

    Thanks for your reply.
    The second alternative works, but I would be interested in the first one (using a view link).
    The foreign key is defined properly:
    PERSON.PERSON_CODE is a primary key.
    PERSON.PERSON_COD_STATE is a foreign key.
    PERSON_STATE.PERSON_COD_STATE is a primary key.
    I have created a view link based on that foreign key.
    When usign af:table to show the records of PERSON table, all the data of PersonView is properly shown. But the STATE of the person is not ok. It seems as the view link is not working.
    Why?
    Thanks

  • Problem with ADF Table and doDML method.

    HI,
    I have a problem with ADF Trinidad Table. I have one search form and which i click on search button the result is coming it's working fine, And when i click on CreateInsert button to insert a new row it's adding after entering all the data into the table when i click on button on the page i am getting error like
    Messages for this page are listed below.
    Error     
    Missing mandatory attributes for a row with key oracle.jbo.Key[1 ] of type AppModule.CmSubscribersView1
    Error     
    Attribute Name in AppModule.CmSubscribersView1 is required
    Error     
    Attribute CreatedBy in AppModule.CmSubscribersView1 is required
    Error     
    Attribute CreationDate in AppModule.CmSubscribersView1 is required
    Here Created By and Creation Date are not available in the table i need to set these data from back end for that i have used doDML() method in the entity object and i written the logic but this method not even invoking as i couldn't able to see the logs in the server.
    protected void doDML(int operation, TransactionEvent e) {
    super.doDML(operation, e);
    System.out.println("^^^^^^^^^^^^^^^^66666Inside entity object^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");
    // AppModuleImpl am=new AppModuleImpl();
    // Number userID= am.getUserId();
    //System.out.println("User id in the Entity Object Is: "+userID);
    oracle.jbo.domain.Date dt = new Date();
    if(operation ==DML_INSERT){
    EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
    CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
    Number n=new Number(1599);
    newSubscribers.setCreatedBy(n);
    newSubscribers.setCreationDate(dt);
    newSubscribers.setLastUpdateDate(dt);
    newSubscribers.setLastUpdatedBy(n);
    But still the same problem can any one help me inthis.
    Regards,
    Edited by: user5802014 on Aug 21, 2009 2:04 PM

    Hi,
    Modify your method to call super.doDML() after initialization of mandatory attributes as below:
    protected void doDML(int operation, TransactionEvent e) {
         oracle.jbo.domain.Date dt = new Date();
         if(operation ==DML_INSERT){
              //PRE-INSERT code begins     
           EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
           CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
           Number n=new Number(1599);
           newSubscribers.setCreatedBy(n);
           newSubscribers.setCreationDate(dt);
           newSubscribers.setLastUpdateDate(dt);
           newSubscribers.setLastUpdatedBy(n);
           //PRE-INSERT code ends
           super.doDML(operation, e);
           //POST-INSERT code if any
         }else
            super.doDML(operation, e);
    }Sireesha

  • ADF tree with command link

    Hello,
    I have a menu build with a tree and a region. When I click a link from the tree the region populate a page with another dinamic tree based on a session variable that refresh each time that i click a link from the first tree. After click the link I have a flow that has an executewithparams method and the page that will show the second tree.
    My problem is that the second tree doesn't refresh its branches at my first click on the link but on the second yes and I receive :
    <NavigationPaneRenderer><_renderContent> Warning: There are no items to render for this level
    <FormRenderer><setupEncodingContext> Multiple forms detected on viewId: /pages/index.jspx. Rich client currently has some limitations in dealing with multiple forms.
    I have set the autorefresh for the iterator but I haven't success.
    Can anyone help me?
    Thank you.

    Hi Frank,
    It's true that my execute with params method accessthe session scope attribute directly but in my page fragmet i haven't af:form
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <!--oracle-jdev-comment:preferred-managed-bean-name:backing_doc-->
    <af:panelGroupLayout id="pgl2">
    <c:set var="viewcontrollerBundle"
    value="#{adfBundle['.main.view.ViewControllerBundleMain']}"/>
    <af:panelGroupLayout id="pgl1" layout="vertical">
    <af:panelBox text="#{sessionScope.OrgMeniuId eq 920 ? viewcontrollerBundle.1 : viewcontrollerBundle.2}"
    id="pb1" styleClass="AFStretchWidth"
    binding="#{backing_doc.pb1}">
    <f:facet name="toolbar"/>
    <af:tree value="#{bindings.DocVO2.treeModel}" var="node"
    selectionListener="#{bindings.DocVO2.treeModel.makeCurrent}"
    rowSelection="single" id="t1" binding="#{backing_doc.t1}"
    fetchSize="-1" styleClass="AFStretchWidth"
    inlineStyle="font-size:small;">
    <f:facet name="nodeStamp">
    <af:group id="g1" binding="#{backing_doc.g1}">
    <af:commandLink id="cl1"
    text="#{node.Desc}#{node.DescOp}"
    action="#{backing_doc.ActionIdLink}"
    actionListener="#{backing_doc.discloseItem}"
    binding="#{backing_doc.cl1}" immediate="true"
    partialTriggers="::pb1">
    <af:setActionListener from="#{node.IdOp != null ? node.IdOp : node.Id}"
    to="#{sessionScope.backing_doc.actionId}"/>
    <f:attribute name="node" value="#{node}"/>
    <af:setActionListener from="#{node.IdOp != null ? node.DescOp : node.Desc}"
    to="#{sessionScope.OrgDocDesc}"/>
    <af:clientListener method="onDownload" type="action"/>
    </af:commandLink>
    <af:resource type="javascript">
    function onDownload(evt){ evt.noResponseExpected(); }
    </af:resource>
    </af:group>
    </f:facet>
    </af:tree>
    </af:panelBox>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </jsp:root>

Maybe you are looking for