Issue regarding Progress Indicator on table row selection

Hi Team,
I have overridden onSelectionListener on a table. On click of any record in the table I am performing some operation which takes few seconds to execute. So, I have to show a processing bar on click of any records in the table till the execution completes. I have added a .gif image as the progress Indicator and referring this in the client attribute of the output text in the columns in the table.
--Code added for the output text in table column
<af:column sortProperty="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.name}"
sortable="false" headerText="#{emqacerts_uiBundle.TAG_NUMBER}" id="c9"
filterable="true" align="center"
inlineStyle="#{row.sn_status eq 'PRINT'?'background-color:#c4ff94;' : row.sn_status eq 'DRAFT'? 'background-color:#ffefa3;':'background-color:#ffffff;'}">
<af:inputText value="#{row.bindings.TagNumber.inputValue}"
label="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.label}"
required="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.mandatory}"
columns="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.displayWidth}"
maximumLength="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.precision}"
shortDesc="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.tooltip}"
id="it6" clientComponent="true">
<f:validator binding="#{row.bindings.TagNumber.validator}"/>
<af:clientAttribute name="loadingIndicatorId"
value="#{backing_Pages_MainPage.loadingIndicatorId}"/>
<af:clientListener method="showWhenBusy" type="click"/>
</af:inputText>
</af:column>--Code in the backing bean
public void setLoadingBox(RichPanelBox loadingBox) {
this.loadingBox = loadingBox;
public RichPanelBox getLoadingBox() {
return loadingBox;
public String getLoadingIndicatorId() {
return getLoadingBox().getClientId(FacesContext.getCurrentInstance());
}--Code in the jsff page for the image
<af:panelBox text="#{emqacerts_uiBundle.PROCESSINGPLEASEWAIT}" id="pb10" clientComponent="true"
binding="#{backing_Pages_MainPage.loadingBox}" inlineStyle="display:none;"
titleHalign="center" background="dark" showDisclosure="false" ramp="highlight">
<af:panelGroupLayout id="pgl5" layout="horizontal" halign="center">
<af:spacer width="60" height="10" id="s1"/>
<af:image source="/images/progress.gif" id="i1"/>
</af:panelGroupLayout>
</af:panelBox>--JavaScript
<af:resource type="javascript">
//Global variable to hold the component ref.
var loadingIndicatorComponent;
function showWhenBusy(event) {
//get the dialog or other component we want to show and hide
var componentId = event.getSource().getProperty('loadingIndicatorId');
loadingIndicatorComponent = AdfPage.PAGE.findComponent(componentId);
if (loadingIndicatorComponent != null) {
AdfPage.PAGE.addBusyStateListener(loadingIndicatorComponent, handleBusyStateCallback);
event.preventUserInput();
else {
AdfLogger.LOGGER.logMessage(AdfLogger.SEVERE, "Requested indicator compoenent not found");
function handleBusyStateCallback(event) {
if (loadingIndicatorComponent != null) {
// Check is this is a dialog as
// this needs different treatment
var isDialog = (loadingIndicatorComponent.getComponentType() == "oracle.adf.RichPopup");
if (event.isBusy()) {
if (isDialog) {
loadingIndicatorComponent.show();
else {
loadingIndicatorComponentId = AdfAgent.AGENT.getElementById(loadingIndicatorComponent.getClientId());
loadingIndicatorComponentId.style.display = "inherit";
else {
if (isDialog) {
loadingIndicatorComponent.hide();
else {
loadingIndicatorComponentId = AdfAgent.AGENT.getElementById(loadingIndicatorComponent.getClientId());
loadingIndicatorComponentId.style.display = "none";
AdfPage.PAGE.removeBusyStateListener(loadingIndicatorComponent, handleBusyState);
</af:resource>My problem is, if I click on any record in the table for first time, progress bar is not displayed. But from second click of any record, it starts displaying.
If anyone has any idea on this then please let me know what the issue is.
Thanks in advance,
Kavitha

Hi John,
Thanks for your quick reply. I tried using af|statusIndicator component. But this doesnt disable the components on the page while the server is busy.
Is there any way to disable the page/make the page read only when the processing is happening ?
Thanks in advance,
Kavitha

Similar Messages

  • Small issue with custom table cell editor and unwanted table row selection

    I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
    My TreeComboBox component:
    public class TreeComboBox extends JPanel implements MouseListener {
        private JTextField itemField;
        private TreeModel treeModel;
        private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
        private Object selectedItem;
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
        public TreeComboBox(TreeModel treeModel) {
            this(treeModel, null);
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public TreeComboBox(TreeModel treeModel, Object selectedItem) {
            this.treeModel = treeModel;
            this.selectedItem = selectedItem;
            initComponents();
         * Returns the current drop-down tree model.
         * @return the current <code>TreeModel</code> instance.
        public TreeModel getTreeModel() {
            return treeModel;
         * Sets the tree model.
         * @param treeModel a <code>TreeModel</code> instance.
        public void setTreeModel(TreeModel treeModel) {
            this.treeModel = treeModel;
         * Returns the selected item from the drop-down selector.
         * @return the selected tree object.
        public Object getSelectedItem() {
            return selectedItem;
         * Sets the selected item in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public void setSelectedItem(Object selectedItem) {
            this.selectedItem = selectedItem;
            String text = selectedItem != null ? selectedItem.toString() : "";
            itemField.setText(text);
            setToolTipText(text);
         * Overridden to enable/disable all child components.
         * @param enabled flat to enable or disable this component.
        public void setEnabled(boolean enabled) {
            itemField.setEnabled(enabled);
            super.setEnabled(enabled);
        public void addActionListener(ActionListener listener) {
            actionListeners.add(listener);
        public void removeActionListener(ActionListener listener) {
            actionListeners.remove(listener);
        // MouseListener implementation
        public void mouseClicked(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
            showPopup();
        private void initComponents() {
            setLayout(new GridBagLayout());
            itemField = new JTextField();
            itemField.setEditable(false);
            itemField.setText(selectedItem != null ? selectedItem.toString() : "");
            itemField.addMouseListener(this);
            add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
        private void showPopup() {
            final TreePopup popup = new TreePopup();
            final TreeComboBox tcb = this;
            final int x = itemField.getX();
            final int y = itemField.getY() + itemField.getHeight();
            int width = itemField.getWidth() + popupButton.getWidth();
            Dimension prefSize = popup.getPreferredSize();
            prefSize.width = width;
            popup.setPreferredSize(prefSize);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    popup.show(tcb, x, y);
                    popup.requestFocusInWindow();
        private void fireActionPerformed() {
            ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
            for (ActionListener listener : actionListeners) {
                listener.actionPerformed(e);
        private class TreePopup extends JPopupMenu {
            private JTree tree;
            private JScrollPane scrollPane;
            public TreePopup() {
                initComponents();
                initData();
            private void initData() {
                if (treeModel != null) {
                    tree.setModel(treeModel);
            private void initComponents() {
                setFocusable(true);
                setFocusCycleRoot(true);
                tree = new JTree();
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setFocusable(true);
                tree.setFocusCycleRoot(true);
                tree.addTreeSelectionListener(new TreeSelectionListener() {
                    public void valueChanged(TreeSelectionEvent e) {
                        tree_valueChanged(e);
                scrollPane = new JScrollPane(tree);
                add(scrollPane);
            private void tree_valueChanged(TreeSelectionEvent e) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
                setSelectedItem(node.getUserObject());
                fireActionPerformed();
                this.setVisible(false);
    }My TreeComboBoxTableCellEditor:
    public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
        protected TreeComboBox treeComboBox;
        protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
        public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
            this.treeComboBox = treeComboBox;
            treeComboBox.addActionListener(this);
        public Object getCellEditorValue() {
            return treeComboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            treeComboBox.setSelectedItem(value);
            return treeComboBox;
        public void actionPerformed(ActionEvent e) {
            stopCellEditing();
    }Any thoughts?
    Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
    Edited by: MiseryMachine on Apr 3, 2008 1:27 PM

    As I said, you have to have empty context elements before additional rows will be open for input.
    For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
    data itab type standard table of sflight.
    do 5 times.
      append initial line to itab.
    enddo.
    context_node->bind_table( itab ).
    The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table.

  • Is it possible to enable/disable table row selection?

    I have a situation where a user can add rows to a "selection" table with a value that is used to perform a query to get a collection of objects associated with that value. Once those objects are available, a second "results" table will be populated with the row(s) returned. When the value is entered in the selection table, a web service call is made to perform the query and return the results. This may take a few moments and I am displaying an indeterminate progress indicator for the selection table row involved to indicate that the data is not yet available - the progress indicator is included as a column in the row; each row has its own indicator. Once the results are received the indicator is hidden to indicate the query for that row has completed. The user may enter as many rows in the selection table as they wish so there is a distinct possibility of multiple queries being executed at a given time. I have also attached a row selection listener to the selection table such that when a given row is selected, the results table will display the corresponding associated row(s).
    What I'd like to be able to do is somehow temporarily disable the selection of any row that has a query in progress, while leaving other rows whose queries have completed be selectable. Once the query completes, the row can then become selectable, thus allowing for the results to be loaded and displayed in the results table. The way it works right now, if the row is selected while the query is still in progress, nothing is displayed (obviously), but then the row has to be re-selected after the query has completed to see the results. This is a viable (though undesirable) solution/workaround if there is at least one other row in the table. However, if the row is the only row in the table and has been selected, it cannot be re-selected (there's no other row to select to allow for re-selection). To boil it down, what I'd like to do is prevent the selection of the row until the query for that row is complete.
    After perusing the JavaFX 2.2 API, I'm not seeing any obvious way to achieve this effect. If anyone has any solutions, suggestions, etc. on how this could be done I'd appreciate it greatly.

    Here's an [url https://github.com/james-d/Conditionally-selectable-table]example. As predicted, keyboard navigation fails if the keyboard presses would result in an unselectable item being selected using the default selection model. The best workaround I can see for this is to register event filters for the appropriate keyboard strokes, as in the previously referenced thread.
    Update: That code won't run in the current (ea b90) release of JavaFX 8.0, and probably a few recent releases; it will however run in the final release (and it runs in JDK 7). See [url https://javafx-jira.kenai.com/browse/RT-30593]RT-30593
    Edited by: James_D on May 22, 2013 7:51 PM

  • [SOLVED :)] Need help with adf table row selection

    Hi,
    In my application I am displaying results in a table. The DisplayRow property of table is set to Selected
    There are Next and Back buttons which help user to view details associated to the next/previous rows.
    I am using ADF 11g
    When user clicks Next or Previous button, then the selection of the row should also gets updated
    To achieve this i wrote below piece of code:
    this.tblS.getSelectedRowKeys().clear();+
    this.tblS.setRowIndex(count);+
    RowKeySet rks =  tblS.getSelectedRowKeys();+
    rks.add(tblS.getRowKey());+
    rks =  tblS.getSelectedRowKeys();+
    ISSUE:_
    When i run application and click Next/Previous Button, all functionalities do take place properly, but a null pointer exception is also thrown._+
    If i remove DisplayRow property of table from Selected to Default, every thing works good and no Exception is thrown_+       
    But as records in my table are going to be around 50-60 everytime, i need to set DisplayRow property of table to Selected.
    Is there any way to achieve this? Solve this problem?
    Some more details:_
    I am using a POJO class to create DataController. This DataController is having a view Object which is used to create results table.
    I have defined Primary key for my POJO Data Controller.
    Here is code of xml file:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.52.5"+
    id="ProductListBean" Package="xxadf.mm.resources"
    BeanClass="xxadf.mm.resources.ProductListBean"
    isJavaBased="true">
    +<Attribute Name="Product" Type="java.lang.String" PrimaryKey="true"/>+
    +<Attribute Name="Stock" Type="java.lang.String"/>+
    +<Attribute Name="Rate" Type="java.lang.String"/>+
    +<Attribute Name="Accuracy" Type="java.lang.String"/>+
    +<Attribute Name="Details" Type="java.lang.String"/>+
    +<ConstructorMethod IsCollection="true"+
    Type="xxadf.mm.resources.ProductListBean"
    BeanClass="xxadf.mm.resources.ProductListBean"
    id="ProductListBean"/>
    +</JavaBean>+
    Error Log:*
    SEVERE: Server Exception during PPR, #1
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:200)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:506)
    at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:414)
    at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:392)
    at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:517)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:458)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:618)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:392)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:641)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.access$100(ShowDetailItemRenderer.java:31)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:491)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:464)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer._encodeChildren(ShowDetailItemRenderer.java:406)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.encodeAll(ShowDetailItemRenderer.java:114)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:1523)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.access$500(PanelTabbedRenderer.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:969)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:920)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer._renderTabBody(PanelTabbedRenderer.java:519)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.encodeAll(PanelTabbedRenderer.java:233)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:221)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:820)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    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.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    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)
    Please Help I have been struggling with this issue for long.
    Thanks and Regards
    Manav Ratra
    Edited by: user11255144 on Feb 8, 2010 5:33 AM

    Hi Arun,
    Thanks for replying.
    Actually in my application there is one result table and a section that is displaying complete details of the product selectd in result table.
    The next/previous buttons are not binded with result table.
    What I am doing is, I am puuliing data from VO and displaying it on form, whenever any of these buttons is clicked.
    As soon as these buttons are clicked data is coming up, but selection state of table is not getting updated.
    So to update selection state i wrote piece of code described in my previous post.
    Everything works fine if displayRow property of table is not set to selected.
    If i set display row property of table to selected, then i get a null pointer exception with message log defined in previous post.
    Although NPE is thrown, yet all data is properly fetched and table selection is also updated. But am not able to get how this NPE is coming and hpw to fix it .
    (I need to keep displayRow = selected, for all other cases NPE is not thrown)
    Please help..
    Thanks and Regards
    Manav Ratra

  • How do i keep my table row selected when i come back to the same page?

    I have have the following issue.
    I have a table with many rows. I select one row and click the button which takes me to another page. From that page when i click the back button which takes me back to previous page but the problem is that the row is no longer selected. How would i fix this problem?
    Any idea, suggestion or sample code will be appreciated.
    Thanks
    Nahman

    Here you go..
    1. To Get the selected Rows:
      DATA: TV          TYPE REF TO CL_HTMLB_TABLEVIEW,
             LT_FORMS TYPE TIHTTPNVP,
            TABLE_EVENT TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
        tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request
                                          name    = 'tableView'
                                          id      = 'tvX' ).
        IF tv IS NOT INITIAL.
          table_event = tv->data.
          clear selectedRowIndexTable.
          selectedRowIndexTable = table_event->PREVSELECTEDROWINDEXTABLE.
          if table_event->event_type eq CL_HTMLB_EVENT_TABLEVIEW=>CO_ROW_SELECTION.
            read table selectedRowIndexTable with key table_line = table_event->ROW_INDEX
              transporting no fields.
            if sy-subrc eq 0.
              delete selectedRowIndexTable index sy-tabix.
            else.
              field-symbols <i> type i.
              append initial line to selectedRowIndexTable assigning <i>.
              <i> = table_event->ROW_INDEX.
            endif.
          endif.
        ENDIF.
      ENDIF.
    <b>Page attribute:</b>
    selectedRowIndexTable     TYPE     INT4_TABLE
    2. To store the selected row index into Server side cookie...
          CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>SET_SERVER_COOKIE
            EXPORTING
              NAME                  = 'select_row'
              APPLICATION_NAME      = 'NONE'
              APPLICATION_NAMESPACE = 'NONE'
              USERNAME              = SY-UNAME
              SESSION_ID            = 'NONE'
              DATA_VALUE            = selectedRowIndexTable
              DATA_NAME             = 'sbsp'
              EXPIRY_TIME_REL       = 3600.
    3. Get the value from Server side cookie..
          CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>GET_SERVER_COOKIE
            EXPORTING
              NAME                  = 'select_row'
              APPLICATION_NAME      = 'NONE'
              APPLICATION_NAMESPACE = 'NONE'
              USERNAME              = SY-UNAME
              SESSION_ID            = 'NONE'
              DATA_NAME             = 'sbsp'
            CHANGING
              DATA_VALUE            = selectedRowIndexTable.
    Hope this will help you...
    <b>* Reward each useful answer</b>
    Raja T

  • Issue with progress indicator in oracle forms

    Thread moved from Forms
    Hi all,i have developed a new custom form,I have 3 windows in my form.When i am opening first window and closing,this works fine but when i opening second window and try to close it Progress indicator pops up.There's nothing much of a coding part in my button which brings up the 2nd window
    When-button-pressed
    SHOW_WINDOW('POINSPECT');
         GO_BLOCK('POINSPECT');I have searched the forums and Google but it brought up nothing.I have changed the pre-form trigger and in app-custom body.
    Can anyone suggest me where i am doing wrong.
    Any help is appreciated,
    Thanks in advance!!

    Hi Prakash,
    Do not use Data Binding tab to bind the Drop down,
    Select Specify Item Values
    There in binding tab specify binding and there are few more options to specify Item Text and Item Value.
    Please find the below screenshot for the same.
    Thanks & regards,
    Rajkamal.

  • ADF Faces 10g af:table row selection using SHIFT Key

    Hello,
    Is there a simple way in 10G af:table with multiple selection facet to enable selecting multiple rows of a table by selecting one row, holding the SHIFT key down, selecting another row way down, and having all the rows in the middle be automatically selected?
    So, this is essentially equivalent to "Select Range" Capability.
    Thank you for any information.

    I think the simple answer to your question is, no.
    In 11g, I think the answer is, yes; but you probably already knew that.
    You might consider altering the keySet associated with the table related to the multi-select checkbox facet. You could have some section above the table that selects these check boxes based on some entered filter criteria. The keySet is a little weird though. You might check out its usage in SRDemo Application Module Impl class code which deletes over this keyset, and work backwards from there.

  • Web Dynpro table row selection

    All,
    I have a table that I have built from a Bapi return after a search method within my application.  However, I display the table but when I select a row in the table all the results disappear.  The table skeleton is still there however.
    Also I know the results are still there (I did not invalidate the node) because when I change the display results number the table is populated again with the row highlighted that I just selected.  This tell me that the row is correctly selected so I do not understand why the elements disappear when I select a new row.
    Has anyone seen this before and/or know what I should do to keep this from happening.
    regards,
    Clint

    Clint,
    Are you setting visible row count ( visibleRowCount) to the table on your selection() . Check that one?
    I never seen that kind of behaviour. Check your table size, whenever it disappears from the table.
    Regards,
    Sridhar

  • Problem with multiple table row selection

    Hi all
           I have a rfc which fetches me a bunch of records and displays them in a table,say A.
           I have to select multiple records from this table and hit a button to navigate to next screen..where I will review the selected entries from table A..
           Cardinality is 0..N,Selection cardinality is 1..N.
    and selection mode as "multi"
    But I am not able to select multiple entries in tableA..
    Pl send me some sample code which would help me solving this issue...
    Thanks in advance

    hi,
    this is the code i have written.
    int size = wdContext.nodeHeader().size();
           IPrivateGetView.IItemElement e1 = wdContext.createItemElement("instance");
           for(int i=0;i<size;i++)
           if(wdContext.nodeHeader().isMultiSelected(i))
               e1.setDel(wdContext.nodeHeader().getHeaderElementAt(i).getDel());
                wdContext.nodeItem().addElement(e1);
    // i am trying to add the selected rows from one table to another table.
    By using above logic i couldn't select more than one row.
    Can u help me how to select more than one row and add them to another table.
    Thanks in advance.

  • Table rows selection using checkboxes

    I have a standard Table UI element with multi selection property set to "none".Selection of rows is handled by a checkbox column.
    The client requirement is to be able to select multiple rows using shift key.(for ex, user checks 1st row,presses shift key and then checks 10th row,all 10 items have to be selected).How can we achieve this??

    Hi,
    Unfortunately, this is not possible as you cannot know whether user presses SHIFT key or not. You can achieve this in the following way:
    create an Action for check box and in onAction of checkbox, check if there is any row(check box value) is already selected or not. If it is selected, then create a popup to confirm, if the user wants to select all the rows till that or not. Then based ok/no you can select all the rows or not.
    Hope this helps u,
    Regards,
    Kiran

  • Panel form in view mode when table row select

    Dear All,
    I have a table and a detail form(created by dragging the vo in form).
    by default when i select the row in af:table then the detail form is in edit mode. I want to have default view mode(panel form fields to be uneditable) and an edit button in the panelform when the user clicks the edit button then panelform fields should be in editable and other operation buttons(create,createInsert,commit,rollback,execute) to be visible.
    Any pointers to this type of problem.??
    Regards,
    Santosh.
    jdeveloper 11.1.1.4.0
    Edited by: Santosh Vaza on May 20, 2011 12:31 PM

    I'm not aware of a component which dose this out of the box. You can however implement a method in a bean which goes through the component tree beginning from your panel form and set all editable components to disable until you click the edit button. Then you use a similar method to set all components back to enabled.
    Timo

  • Table row selection not working

    Hi,
    I have a context node for a table of value nodes - APTDATES2 (  superclass CL_BSP_WD_CONTEXT_NODE_TV ),  bound to a custom controller context node,
    which I am displaying via the following on the .htm  page :
      <chtmlb:configTable
                           xml                   = "<%= lv_xml %>"
                           id="appt2"
                           headerText = "Available Appointments"
                           navigationMode="BYPAGE"
                           table="//APTDATES2/Table"
                           visibleRowCount = "12"
                           allRowsEditable = "TRUE"
                           downloadToExcel = "FALSE"
                           personalizable = "FALSE"
                           onRowSelection        = "select"
                           selectionMode   = "<%= APTDATES2->selection_mode %>"
                           selectedRowIndex      = "<%= APTDATES2->selected_index %>"
                           selectedRowIndexTable = "<%= APTDATES2->selection_tab %>"
                           showNoMatchText = "TRUE"
                           width="100%"
                           visibleFirstRow       = "<%= APTDATES2->visible_first_row_index %>"
                           HEIGHT = "10"/>
    My problem is that I cannot click in the left-hand column to select a row on the table - it is not  triggering any events (not even triggering a round-trip  - confirmed this by putting a break-point in the view implementation DO_HANDLE_DATA ).   Have similarly checked that APTDATES2->SELECTION_MODE
    contains SINGLESELECT.
    What am I missing ?

    I am able to fix it using a managed variable for the selectionState. Here is the code:
    <af:table emptyText="No items were found"
    value="#{backing_UpdateResult.resultList}"
    var="row"
    rows="10"
    binding="#{backing_UpdateResult.resultsTable}"
    selectionState="="#{backing_UpdateResult.tableSelectionState}"
    id="resultsTable"
    >
    In the backing bean I have a property variable like:
    private RowKeySet tableSelectionState;
    public RowKeySet getTableSelectionState() {
    if (tableSelectionState == null) {
    tableSelectionState = new RowKeySet();
    tableSelectionState.getKeySet().add("0");
    return tableSelectionState;
    }

  • Issues with POWL action buttons and row selection after Support Packs

    We recently applied ECC 603 Support Stack 16 to our environment and are having problems with some SAP standard POWL lists (example is KYKOP-OPS-MM-PO-W: Purchase Orders for Goods Receipt).  In fact all of the POWL lists that we are using are behaving the same way.  There are 2 changes that have happened after moving to this stack.
    1.  In order to select a row in the list, we now have to press ctrl + click, previously, just clicking the the row would select it and fire the OnLeadSelection
    2.  All of the Action Buttons in the POWL lists are disabled.
    I have debugged the Feeder Class /KYK/CL_MM_FEEDER_PO and see in th GetActions method and see that the ls_actions-enabled is getting set to true, but for some reason the buttons are disabled when the list is rendered.
    I've checked a side-effects report from OSS and have come up empty handed.  Has anyone else run into this?
    Eric

    I have found an OSS note that addresses this problem.  This problem will effect anyone who is using ALV for ABAP WebDynpro after applying BASIS Support Pack 20 for 7.0.  The OSS note is 1363334.  Question Answered.

  • CIF issue u201CNo data in table TRFCQDATA selected (internal )u201D

    Hi SAP Gurus,
    I am facing CIF issue in R/3 quality system after this system has been refreshed with production. When i try to activate the integration model for any data, the inbound queues are failing with status "u201CNo data in table TRFCQDATA selected (internal )u201D. When i try to delete this queue and activate the integration model the same is getting activated. But seems like activation is not happening as expected. Please advise on how do resolve this issue of u201CNo data in table TRFCQDATA selected (internal )u201D.
    I have been looking into the SAP note 961154 for the resolution. But when we tried the same implementing and it thrown up an error message saying that its applicable to DB2 database .We are having IBM hardware with Linux and oracle database. Please any one of you know what SAP note is applicable in that case. I am  not sure of what needs to be maintained in that tabe TRFCQDATA and the significance of the same.
    Based on your replies, i am thinking of reaching out the SAP by raising an OSS note.
    Thanks in Advance.
    Jagadeesh

    Hi,
    The destination in SMQR should either be empty or pointing to a destination on the local system. If you configure it with a destination pointing to other system, then you will get this problem, because the data is only available on the local system and the inbound luws should only be processed on this local system.                                                                               
    Please check the note no 369007, specifically question 11  to ensure you have the correct settings.Also go through the note description and answers to other questions and see if it helps.                                                                               
    Also check the following notes:                                                                               
    697884 - Queues in SMQ2 are not processed.                             
    524419 - Procedure for large-scale queue jams.                         
    523974 - Inbound/outbound queues are not processed.                    
    527481 - tRFC or qRFC calls are not processed.                         
    564612 - FAQ, Q+A, SM59, RFC destination, RFC error                                                                               
    I hope I could help.
    Regards,
    Tibor

  • Insert table row - moving Selection

    Have a table row selected and new data is inserted and the table rows are moving down. When first row is NOT selected and new table row has fired inserted, the selection row programatically moves down.
    However if the first row is selected, and new data is added to the first row, the first and second row are selected even tho its programatically should work, just like if the row selected was second, third etc...
    What's up with the first table row selected and new data inserted into the first table row to cause selection unions, even tho programatically it shouldn't?
    Thanks
    Abraham Khalil

    After the row being inserted, have you tried
    table.setRowSelectionInterval(row1,row2)?
    And in case it is the first row,
    table.setRowSelectionInterval(0,0);
    And you can even scroll to show the selection if you want by call
    table.scrollRectToVisible(getCellRect(selectedRow, 0, true));
    which will show the selectedRow
    HTH
    Bing
              

Maybe you are looking for

  • How to over write VBBE data when Delivery is created if at the time of SO creation stock blocking is there

    Hi, I want to know how to over write VBBE data after delivery creation if stock blocking is there at the time of SO creation. That means I want my confirmed delivery quantity to over write the SO quantity in VBBE table after delivery creation. Please

  • I cannot display my desktop on my tv

    I am trying to view my laptop screen on my tv.  I am using an HDMI cable and a belkin adapter that I bought from apple.  The desktop screen appears but my icons do not.  I am trying to watch a video from my laptop onto my tv.

  • HP DV6 recovery discs

    My son left my xd card in my HP DV6 laptop last night. He shut it down, and when it was turned back on the laptop goes into a recovery start program. It turns off and goes right back into it when I turn it back on. I have two recovery discs for the l

  • Setting "javaplugin.maxHeapSize" at System level deployment

    Hi all, I'm trying to change the default value for the "javaplugin.maxHeapSize" parameter. By default it is always 96m, but I need to configure it to 256m.: ....java.vm.version = 1.5.0_06-b05 javaplugin.maxHeapSize = 96m javaplugin.nodotversion = 150

  • SRM - SUS, EBP,CCM,2007 Delta

    Hi Gururs, Could you please let me know what is meant by SUS, EBP, CCM and 2007 Delta - all these are related to SRM As i'm new and learning SRM i'd like to know the basic idea of the above Regards Bala +91 98861 23202