Problem in refreshing popup

ADF11g :
I have problem in refreshing popup.
On main page there is one table and in one column of that table i put commandImageLink .on click of that image i supposed to open one popup where i am displaying info result.
on first click of that image i am able to show result correctly but if i change the row and try to click image again i am not able to show new result .it is showing old one.Onclick i checked new result values are retrived by server but not reflecting on popup.
One more thing which i observerd is that at first time when i click image it goes to action method and then open popup but at next click it opens popup fisrt and then call action method.
<af:column sortable="false" headerText="Actions"
rendered="true" width="50">
<af:panelGroupLayout layout="horizontal">
<af:commandImageLink icon="/image/info.jpg"
shortDesc="Info"
partialSubmit="true" action="#{IssueActionBean.refresh_ContentRevisionInfo1}"
launchListener="#{IssueActionBean.getRevisionLauncherListener}">
<af:showPopupBehavior popupId="::popupinfo"
triggerType="click"/>
</af:commandImageLink>
<af:commandImageLink icon="/image/checkinout.jpeg"
shortDesc="Check in/out">
<af:showPopupBehavior popupId="::popupMenu"
triggerType="action"
align="beforeStart"/>
</af:commandImageLink>
</af:panelGroupLayout>
</af:column>
</af:table>
<af:popup id="popupinfo" popupFetchListener="#{IssueActionBean.getfetchRevisionLauncherListener}">
<af:panelWindow title="Content Information"
inlineStyle="width:600px; height:500px;">
<af:table value="#{bindings.documentRevisions.collectionModel}"
var="row" id="popupinfo1"
rows="#{bindings.documentRevisions.rangeSize}"
emptyText="#{bindings.documentRevisions.viewable ? 'No rows yet.' : 'Access Denied.'}"
fetchSize="#{bindings.documentRevisions.rangeSize}"
selectedRowKeys="#{bindings.documentRevisions.collectionModel.selectedRow}"
selectionListener="#{bindings.documentRevisions.collectionModel.makeCurrent}"
rowSelection="single"
inlineStyle="width:750px; height:250px; margin:20px;">
<af:column sortProperty="revLable" sortable="true"
headerText="#{res['contentInformation.revision']}">
<af:outputText value="#{row.revLable}">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.documentRevisions.hints.revLable.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="releaseDate"
sortable="true"
headerText="#{res['contentInformation.rDate']}">
<af:outputText value="#{row.releaseDate}">
<af:convertDateTime pattern="#{bindings.documentRevisions.hints.releaseDate.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="expirationDate"
sortable="true"
headerText="#{res['contentInformation.eDate']}">
<af:outputText value="#{row.expirationDate}">
<af:convertDateTime pattern="#{bindings.documentRevisions.hints.expirationDate.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="status" sortable="true"
headerText="#{res['contentInformation.status']}">
<af:outputText value="#{row.status}"/>
</af:column>
<af:column sortProperty="did" sortable="true"
headerText="#{ res['contentInformation.did']}">
<af:outputText value="#{row.did}">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.documentRevisions.hints.did.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="docName" sortable="true"
headerText="#{res['contentInformation.docName']}">
<af:goLink destination="#{row.docURL}" text="#{row.docName}"
targetFrame="_blank"/>
</af:column>
<af:column sortProperty="docURL" sortable="true"
headerText="#{bindings.documentRevisions.hints.docURL.label}">
<af:outputText value="#{row.docURL}"/>
</af:column>
</af:table>
<af:panelFormLayout>
</af:panelFormLayout>
</af:panelWindow>
</af:popup>
public String refresh_ContentRevisionInfo1() {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute();
bindings.refresh();
DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("documentRevisionsIterator");
iterBind.executeQuery();
iterBind.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
return null;
public void getRevisionLauncherListener(LaunchEvent launchEvent) {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute();
bindings.refresh();
DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("documentRevisionsIterator");
iterBind.executeQuery();
iterBind.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
Thanks for all Help.
Jaydeep

You are in the wrong forum. This is the the forum for the [Application Express development tool|http://apex.oracle.com]. You want a JDeveloper/ADF forum.

Similar Messages

  • Problem in refreshing the data of the UI element Table

    Hi Experts,
    I am having a problem.
    I have a screen which displays list of variants in table ( variant name , variant desc )
    I am binding the entries of table in WDDOINIT method.
    but when i go back to selection screen view and come back to display variants view, WDDOINIT is not triggering.
    Now if i move the code written in WDDOINIT method to WDDOMODIFYVIEW method, its not retaining the lead selection as the binding happens on every server round trip. if i check with First_time = 'X'. its same as that of having it in WDDOINIT method.
    How do i overcome this problem of refreshing the table data.
    any clue is highly appreciated.
    Regards,
    Ajay

    hi Ajay ,
    create a custom controller for this and when u want to move from selection screen view to display variant ,
    call method of this custom controller
    DATA lo_edit TYPE REF TO ig_edit .
    lo_edit =   wd_this->get_edit_ctr( ).
      lo_edit->edit1(
    here I am calling the edit1 method of my custom controller named EDIT.
    try to move code of ur WDDOINIT here.
    it shud help
    rgds,
    amit

  • Problem with refresh of snapshot

    I am facing one problem with refresh of a snapshot. In the front end (developed in D2K) there is a PL/SQL code written which loops through user_snapshots and refreshes each snapshots one by one.
    With one particular snapshot its giving the error. I traced the session and found the problematic snapshot. I tried to refresh the same snapshot with some other user with DBA role granted to it and its working fine.
    Now I logged in to SQL Plus with the user Z0000 ( This is the user with which the application user logs in to the application) and tried to rerfresh the snapshot. Its giving me ORA-03113 end-of-file on communication channel. Then I granted DBA role to user Z000 and then tried to refresh its again giving the same error.
    I tried with many different users and its working fine.
    Any ideas where could be the problem.
    Thanks
    Sidhu
    Database is 10gR2 on AIX 5.3
    Message was edited by:
    Sidhu

    Hi,
    did you try to do it locally?
    Maybe a possible problem on the network.
    This issue remembers me a bug on older versions.
    It is strange on a 10.2
    Acr

  • Problem in refreshing JTree inside Jscrollpane on Button click

    hi sir,
    i have problem in refreshing JTree on Button click inside JscrollPane
    Actually I am removing scrollPane from panel and then again creating tree inside scrollpane and adding it to Jpanel but the tree is not shown inside scrollpane. here is the dummy code.
    please help me.
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.tree.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    public class Test
    public static void main(String[] args)
         JFrame jf=new TestTreeRefresh();
         jf.addWindowListener( new
         WindowAdapter()
         public void windowClosing(WindowEvent e )
         System.exit(0);
         jf.setVisible(true);
    class TestTreeRefresh extends JFrame
         DefaultMutableTreeNode top;
    JTree tree;
         JScrollPane treeView;
         JPanel jp=new JPanel();
         JButton jb= new JButton("Refresh");
    TestTreeRefresh()
    setTitle("TestTree");
    setSize(500,500);
    getContentPane().setLayout(null);
    jp.setBounds(new Rectangle(1,1,490,490));
    jp.setLayout(null);
    top =new DefaultMutableTreeNode("The Java Series");
    createNodes(top);
    tree = new JTree(top);
    treeView = new JScrollPane(tree);
    treeView.setBounds(new Rectangle(50,50,200,200));
    jb.setBounds(new Rectangle(50,300,100,50));
    jb.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
              jp.remove(treeView);
              top =new DefaultMutableTreeNode("The Java ");
    createNodes(top);
              tree = new JTree(top);
                   treeView = new JScrollPane(tree);
                   treeView.setBounds(new Rectangle(50,50,200,200));
                   jp.add(treeView);     
                   jp.repaint();     
    jp.add(jb);     
    jp.add(treeView);
    getContentPane().add(jp);
    private void createNodes(DefaultMutableTreeNode top) {
    DefaultMutableTreeNode category = null;
    DefaultMutableTreeNode book = null;
    category = new DefaultMutableTreeNode("Books for Java Programmers");
    top.add(category);
    book = new DefaultMutableTreeNode("The Java Tutorial: A Short Course on the Basics");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Tutorial Continued: The Rest of the JDK");
    category.add(book);
    book = new DefaultMutableTreeNode("The JFC Swing Tutorial: A Guide to Constructing GUIs");
    category.add(book);
    book = new DefaultMutableTreeNode("Effective Java Programming Language Guide");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Programming Language");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Developers Almanac");
    category.add(book);
    category = new DefaultMutableTreeNode("Books for Java Implementers");
    top.add(category);
    book = new DefaultMutableTreeNode("The Java Virtual Machine Specification");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Language Specification");
    category.add(book);
    }

    hi sir ,
    thaks for u'r suggession.Its working fine but the
    properties of the previous tree were not working
    after setModel() property .like action at leaf node
    is not working,I'm sorry but I don't understand. I think you are saying that the problem is solved but I can read it to mean that you still have a problem.
    If you still have a problem then please post some code (using the [code] tags of course).

  • Wwsto_api_session: problems on refresh

    Hi,
    I have a portlet [pl/sql based].
    In package of this portlet (procedure show) I am working with the session objects:
    1. Load the session object, using load_session method.
    2. Manipulate the attributes of the session object by using the set_attribute methods.
    3. Save session, using save_session method.
    Then I access the portlet for the first time.
    But on refresh page,which include the portlet, and procedure show of the portlet executes, the session variables are null.
    Please, help me!
    Sorry for my English, Sergei

    Hi!
    Addition to previous queston "wwsto_api_session: problems on refresh"
    Does anybody can help me?
    Oracle 9 iAS R2
    procedure show(...);
    declare
    l_session portal.wwsto_api_session;
    counter number ;
    begin
    l_session:=portal.wwsto_api_session.load_session('domain','subdomain');
    counter:=l_session.get_attribute_as_number('counter');
    htp.p('counter='||counter);
    counter:=counter+1;
    l_session.set_attribute('counter',counter);
    l_session.save_session;
    end;
    end;
    Text of the procedure got from books, oracle guides.
    What's wrong?
    Sergei.

  • Problem in refreshing

    Hi ,
    i am facing a problem of refreshing a query.
    my query is using a user inputn variable for fiscal yr and on the basis of fiscal year it return a variable say 01.04.2007-30.04.200 .
    but the problemm is wen i first enter the value of fiscal year in query it shows perfect data but as soon as i change the value of variable let say if i make it 2006 from 2007 it gives me the same data its not refreshing the data plz letme know y is it happning,
    thnks

    hi m refreshing it ..still
    WHEN 'ZC00000N25'. " variable
        LOOP AT i_t_var_range INTO loc_var_range
          WHERE vnam = '0P_FYEAR'. " fiscal variable
          CLEAR l_s_range.
          l_s_range-low(4) = loc_var_range-low(4) + 1  .
          l_s_range-low+4(4) = '0101'   .
          l_s_range-sign = 'I'.
          l_s_range-opt =  'BT'.
          l_s_range-high(4) = loc_var_range-low(4) + 1.
          l_s_range-high+4(4) = '0331'.
          APPEND l_s_range TO e_t_range.
           CLEAR : l_s_range , i_t_var_range.
          EXIT .
        ENDLOOP .

  • Problem of refreshing a tree in web dynpro java

    hi all,
    I'm facing a problem for refreshing a tree in web dynpro java for SAP HR.
    I created a viewset with 2 cells( 1 view for each).
    In the 1st view I created a droplistbyindex to select the unit ID and in the 2nd view ( defaut=false)  I called a method to populate my tree according to my selection in the 1st view ( method called in wdInit).
    When I make the first selection everything is ok.
    But when I select another unit ID, the tree is not changed and I know the context is well changed according to my selection.
    So I think the method is executed only the first the view is called.
    In this case, how can I refresh my tree on real-time?
    Thanks for your help
    Yimin

    May be u can write the code wdDoModify instead.
    -Ashutosh

  • [Solved] Problem in refreshing the iterators

    Hi All -
    I am facing problem in refreshing the iterators on the page / retaining the values in the view when refreshing the region (a task flow dropped as region).
    I have two ShowDetailItems in tabbed regions as Tab1 and Tab2. Tab1 has a task flow, having page with Transient VOs, as region and same
    is the case with Tab2. As per my requirement I have to navigate between Tabs and have to refresh the regions in the Tabs through bean as below.
    this.homeRegion.refresh(FacesContext.getCurrentInstance());
    But in doing so i.e. navigating from Tab1 to Tab2 and coming back to Tab1, I lose the data in the Tab1.
    The problem is my bean associated with the page of the task flow in Tab1 does not get called when I refresh the
    region. And also the iterators lose their values when I come back to TAb1.
    I thought if I could reload the page or execute the iterators somehow when I refresh the region in the Tab, I would be able
    to fix the issue.
    Please help. I have been trying to figure it out for quite some time.
    Best -
    Rohit
    Edited by: Rohit Makkad on May 13, 2010 12:52 AM

    Hi All -
    I somehow overcame the issue. In my Tab2 region task flow I had set Transaction property as "Always Begin New Transaction" because of which when I go to the Tab2 the Tab1 was losing its values in the transient VO.
    For now, I reset the Transaction property of Tab2 to its default value and could navigate between different tabs with refreshing them everytime on disclosure event and still able to retain values in the transient VO.
    - Rohit

  • ValueChangeListener not refreshing Popup correctly

    I am using JDeveloper 11.1.1.6
    My use case has a screen with an ADF table. From this table the user clicks a button to add a row to the table. A popup form is presented. The primary key for the new row is a field that is formatted based on certain attributes selected by the user. The user will select a value from a selectOneChoice menu. The intention is for the application to then generate and display the primary key value in the popup. The user will then continue to enter the rest of their entries in the popup and then submit the popup to add the row to the DB. The selectOneChoice field in the form is as follows. Note it does include a value change listener and autosubmit:
    <af:selectOneChoice value="#{bindings.Field1.inputValue}"
    label="#{bindings.Field1.label}"
    required="#{bindings.Field1.hints.mandatory}"
    shortDesc="#{bindings.Field1.hints.tooltip}"
    binding="#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.soc9}"
    id="soc9" autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.onField1Change}"
    valuePassThru="true">
    <f:selectItems value="#{bindings.Field1.items}"
    binding="#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.si9}"
    id="si9"/>
    </af:selectOneChoice>
    The primary key field is updated via a partial trigger. It is defined in the form as follows:
    <af:inputText value="#{bindings.PrimaryKeyField.inputValue}"
    label="#{bindings.PrimaryKeyField.hints.label}"
    required="#{bindings.PrimaryKeyField.hints.mandatory}"
    columns="#{bindings.PrimaryKeyField.hints.displayWidth}"
    maximumLength="#{bindings.PrimaryKeyField.hints.precision}"
    shortDesc="#{bindings.PrimaryKeyField.hints.tooltip}"
    binding="#{backingBeanScope.backing_ui_pages_MyPage_updateDatabase.it4}"
    id="it4" partialTriggers="soc9" readOnly="true">
    <f:validator binding="#{bindings.PrimaryKeyField.validator}"/>
    </af:inputText>
    The code in my backing bean for the value change listener is as follows:
    public void onField1Change(ValueChangeEvent valueChangeEvent) {
    BindingContainer bindings = getBindings();
    DCIteratorBinding dciter =
    (DCIteratorBinding)bindings.get("Container1Iterator");
    ContainerVORowImpl containerDispatchRow =
    (ContainerVORowImpl)dciter.getCurrentRow();
    Integer number =
    (Integer) valueChangeEvent.getNewValue();
    Number field1Number =
    new Number(number.intValue());*/
    String primaryKey1Number = computed value from another method
    containerDispatchRow.setPrimaryKeyField(primaryKey1Number);
    System.out.println("onField1Change() -- Reservation number: " +
    containerDispatchRow.getPrimaryKeyField());
    I am having 2 problems with the above mentioned components.
    First of all the "valueChangeEvent.getNewValue()" is returning the index number of the record selected in the selectOneChoice as opposed to the actual Number value of the row. The selectOneChoice contains a drop down of numbers (which may or may not start at 1).
    The second issue I am having is the primaryKeyField is not correctly displaying when refreshing the popup . My method computes the correct value and the System.out.println correctly displays my value. For some reason when the popup is refreshed instead of displaying my newly computed primaryKeyField, it is displaying the primaryKeyField associated with the first record in the Interator Binding (dciter)

    I use this code to get hte real data in a valueChangeListener
        public void StatusChangedListener(ValueChangeEvent valueChangeEvent)
            BindingContext lBindingContext = BindingContext.getCurrent();
            BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
            JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("Status");
            int newindex = (Integer) valueChangeEvent.getNewValue();
            Object row = list.getDisplayData();  // load the data
            Row lFromList = (Row)list.getValueFromList(newindex);
            Object lAttribute = lFromList.getAttribute("Value");
            String newVal = (String) lAttribute;
            // Work with the value here
        }Next you should add a ppr from inside your valueChangeListener to the PK field as the one from the UI might already be worked on.
    // PPR refresh a jsf component
    AdfFacesContext.getCurrentInstance().addPartialTarget(UIComponent);Timo

  • Could not Refresh  Popup  Iterators located in region by using TP3

    Hi i have the following problem which appears when i switched to TP3:
    I have a create form, which i included as a region in a page.
    I create a new row in a caller page by using createInsert operation.
    The problem is that when i open the popup, create form is not refreshed with a newly created row as it expected. The form is positioned on the last selected row (before execute create) in a caller page
    As it seems region iterator is not refreshed and the newly created row is not inserted inside the iterator.
    Is it necessary programmatically to do region iterators refresh and how ?
    If not programmatic iterators refresh is needed as i mean it should be , where is the problem?
    In TP2 that was working.
    Regards,
    Krasimir
    Message was edited by:
    K.Penev

    HI Frank , actually the problem is more general:
    It consists of inability of synchronizing different regions iterators.
    For example , if i have a search form placed in a region, and an edit or summary form for example, placed in another region (which points to the same view object),
    <f:view>
    <af:document>
    <af:form>
    <af:region value="#{bindings.staffSearchDR.regionModel}"
    id="staffSearchDR"/>
    <af:region value="#{bindings.staffSummaryDR.regionModel}"
    id="staffSummaryDR" partialTriggers="staffSearchDR"/>
    </af:form>
    </af:document>
    </f:view>
    the iterators in different regions are not getting synchronized (That was working in TP2). I tried to synchronize the iterators on the following way:
    BindingContainer bc = ADFFacesUtils.findBindingContainer(pageDefName);
    DCIteratorBinding iter = (DCIteratorBinding)bc.get(iteratorName);
    iter.setCurrentRowWithKey(rowKey);
    And that is working , but i cannot refresh JSF Components, even by using partialTriggers or AdfFacesContext.addPartialTarget() method
    Can you help me with this?
    Krasimir

  • Problem while refreshing the data for the second time using excel services in sharepoint 2013...

    Hi,
    I have migrated my Sharepoint from 2010 to 2013.I am able to get the data at the first time of refresh when I click on refresh for the second time I am getting the empty the sheet.
    below find the flow of refresh
    First Refresh
    On Click of refresh open the workbook with excel services and return the session id.
    Using that session I am invoking RefrehAsync method of excel services
    After refresh completed I am setting the calculation of workbook as automatic(to calculate the formulas) using the same session id
    After setting the calculation as Automatic I am setting the calculation type as full(recalculate) using the same session id.
    Now I am able to see the data
    Second Refresh
    After clicking on refresh instead of opening the workbook I am using the session id(already opened workbook) and setting the calculation type as manual
    I am following the same process from refresh(RefreshAsync) as I have followed in first refresh.
    This time my formulas are not getting calculated because of that I am not able to see the data.
    Could you please let me know that am I missing anything here?
    Is this know issue in Sharepoint2013 excel services as same code is working fine with Sharepoint2010.
    If I close the workbook(session id null) and opens(new session id) for all the refreshes it is working and I am able to see the data.
    Thanks,
    Meenakshi Nagpal
    N.Meenakshi

    I am able to see the data for the second refresh  if I change the data source.If I use the same data source which is used in the first refresh I am not getting the data.Excel services will contact the cubes and calculate the formulas in my workbook.
    Could you please let me know what could be the problem at second refresh while contacting the same data source with same session id?
    Please help me asap.
    Thanks,
    Meenakshi Nagpal
    N.Meenakshi

  • Problem with IE8 popup blocker and Windowless mode

    My team is having popup blocker issue, which is crippling our system where a large range of users are now complaining that their links or buttons will not open in IE7 or IE8 and results in the pop-up blocker message.
    Our Flash application's embed code needed wmode set to windowless ('opaque' or 'transparent') since we need to place floating HTML objects over the Flash application. But all links (within static text content) with target set to '_blank' or a custom name and also all navigateToURL() methods with the same target values are now resulting in IE pop-up blocker message once the window mode was changed to 'opaque' (same result also with 'transparent').
    We have a AS3 work around for the navigateToURL() method but no solutions for 100s of pages of simple HTML content contributed by users that have links as well as our own Flash static-text content with links.
    Here is a simple page created to demonstrate the issue - http://clients.projectmiso.net/photobiz/custom_lightbox/Test_File.html
    And the ActionScript 3 code -
    var clickFunction = function(){
        var targetURL:URLRequest = new URLRequest("http://www.yahoo.com");
        navigateToURL(targetURL, '_blank');
    btn1.addEventListener(MouseEvent.CLICK, clickFunction);

    Hi!
    One thing you could try is to use MOUSE_UP instead of CLICK
    ( tip-source : http://www.actionscript.org/forums/showthread.php3?t=176795 )
    This example uses clickTag parameter (through flashvars) instead of a hardcoded URL inside the flashfile though,
    but I'm sure you get the point:
    clickBtn.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent): void {
    var sURL: String;
    if ((sURL = root.loaderInfo.parameters.clickTag)) {
    navigateToURL(new URLRequest(sURL), "_blank");
    clickBtn.buttonMode = true;
    clickBtn.useHandCursor = true;
    Or you might want to have a look at this workaround :
    Example :  http://apdevblog.com/examples/navigatetourl/
    Info : http://apdevblog.com/problems-using-navigatetourl/
    /Ola

  • Problem with refreshing JFrames and JDialogs

    My program is based on few JDialogs and one JFrame. I'm still changing them, one time one of the JDialogs is visible, other time JFrame. During this change I call dispose() for one window or frame and I create (if it wasn't created before) other component and call setVisible(true) for it. Problem is that sometimes (only sometimes! like 5% of calls) my windows appears but they are not refreshing (not showing new objects added to their lists or sth like that) until I resize my window by dragging mouse on the edge of it. Is there anyway to ensure that window will be displayed properly?

    I ran into this problem about a year ago...so I don't really remember but I think a call to validate(), or paint() or repaint() or something like that should do the trick (forgive me for not knowing the exact one but as I said it has been a while). Its been about that year since I stopped coding in java and moved to c#. You want the window to redraw its self what ever that is.

  • Problems with Refresh / Deleting Tracks and Album ...

    There are times when refreshing the Music Player library either won't complete (eg: after you've dropped the phone popping out the battery in the middle of a refresh .. or is that just me?) or deleted tracks and album art won't disappear from the Music library after a refresh.
    These problems are often down to corruption of the library and  the only thing to do is to delete the library files and start over.  Even a hard reset of the phone won't fix this as the files are stored on the card / mass memory.
    To delete the library files:
    - Ensure you can see hidden files in Windows Explorer:
    Windows Explorer .. Tools .. Folder Options .. View
    Select "Show hidden files and folders"
    - Connect the phone to your PC using the USB cable in "Data transfer" mode
    - Find and rename (or delete if you're really brave) files with names like:
    E:\private\101FFC31\mpxv1.mpd
    E:\private\101FFC31\pcv5.mpd
    E:\private\101ffca9\harvesterdb.dat
    (assuming the phone's mass memory / card has been connected as E
    Note that the folder names may be different and the files may have prefixes - eg: mpxv1.mpd could be called abcmpxv1.mpd.  Basically, you need to search under the Private folder for any files that look similar.
    If you rename files - eg: by adding a ".o" to the end of the name - instead of deleting them, you can always just change the name back if you find you need those files back.
    - Refresh the Music Player library
    This will take longer than normal as it's a complete refresh, but it should now work.
    Message Edited by patc on 12-Feb-2009 08:38 AM

    Hi,
    What version of Workspace Manager are you using ? I tested this with 9.2.0.4 and everything worked as expected. I was unable to update the row from the WK2 workspace after refreshing it.
    Please note that after removing WK1, all locks that had been held by the WK1 workspace are dropped. So, when you update the row for a second time, you are actually locking the row that had been merged(which is contained in the TOP workspace) and not the row from the LIVE workspace. So any workspace that references the row from the LIVE workspace, and not the one from the TOP workspace, would be able to update the row.
    This is the case that exists before refreshing WK2. However, after refreshing WK2, it will then use the row from the TOP workspace. Since this row is locked it would be unable update the row.
    Ben

  • Problem with Refreshing the data bound text fields

    Folks,
    First of all, this a GREAT product and I am moving my apps from Eclipse to Studio Creator. I am very impessed with it so far.
    I am gone through most tutorials, but can't help resolve the problem that I am having. I have a page, that lists all the users in a table. When you click on any user, it opens up another page that lists the detail of the specific user you have clicked on. This a typical use in most web applications, right?
    In the user detail page, I open it in "Read" only mode, by setting the "setReadOnly" to true for all text field components. Then users can edit it by clicking "Edit" button. Edit button just changes the "setReadOnly" to false, to allow editing. After editing, they can hit the "Save" button to save the changes. In the save button, I call this code:
    public void prerender() {
            try {
                userID=getSessionBean1().getUserID();
                getSessionBean1().getWeb_userRowSetUserDetail().setObject(1,userID);
                getWeb_userDataProviderUserDetail().refresh();
                info("prerender: Refresh called");
            } catch (Exception ex) {
                error("Error in userForm.prerender():"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.prerender():", ex);
            setReadWrite();
    public String btnSave_action() {
            try {
                getWeb_userDataProviderUserDetail().commitChanges();
                getWeb_userDataProviderUserDetail().refresh();
                info("Data Provider Refreshed in SAVE");
                _readOnly=true;
                form1.discardSubmittedValues("saveVForm");
                info("User Updated New:"+userID);
            } catch (Exception ex) {
                log("Error Description", ex);
            return null;
        public String btnEdit_action() {
            try {
                _readOnly=false;
                //info("User ID Edt="+getSessionBean1().getUserID());
            } catch (Exception ex) {
                error("Error in userForm.btnEdit_action:"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.btnEdit_action():", ex);
            return null;
        private void setReadWrite(){
            // Set read-only to true or false for all text fiels
            this.btnEdit.setVisible(_readOnly);
            this.btnSave.setVisible(!_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_email_client.setReadOnly(_readOnly);
            this.user_email_office.setReadOnly(_readOnly);
            this.user_fname.setReadOnly(_readOnly);
            this.user_lname.setReadOnly(_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_password.setReadOnly(_readOnly);
            this.user_password_conf.setReadOnly(_readOnly);
            this.user_phone_cell.setReadOnly(_readOnly);
            this.user_phone_cell_aac.setReadOnly(_readOnly);
            this.user_phone_client.setReadOnly(_readOnly);
            this.user_phone_home.setReadOnly(_readOnly);
            this.user_phone_office.setReadOnly(_readOnly);
        }When the save button is clicked, the database is updated (as I can verify by looking directly into the database), but the data-bound text fields do not display the new value. YES, I am calling refresh() on data provider? I tried to call refresh in both "preRender()" and "Save" button action event, but that did not help either.
    Please note that the save button also changes the "setReadOnly" back to TRUE for all text fields. That means, users view the page in Read-Only mode after saving. (They have to click on "Edit" button again to edit it). I discovered that if I do not set the text field components in "ReadOnly" mode, then they display the updated value of the fields. But if I change setReadOnly to TRUE, then they display the old values (before the save).
    Any idea what I am doing wrong here?
    Thanks

    Here is my experience with it. I have three text
    boxes to be filled out. They are part of a virtual
    form with an add button as the submit. You can fill
    out the 3 and add them and a node is added to a tree
    component. When you click on a node in the tree
    component (the submit to another virtual form that
    the 3 buttons participate in) the text fields should
    be loaded with the values that they where added with.Hard to tell from this explanation, but if the text fields do not participate in a virtual form, then they are not going to get updated when an action in the virtual form happens. Not sure this is your problem. Like I say, hard to tell from this explanation.
    They will not display the values though...having
    nothing to do with read only. If I disable them
    before hand...they display the updated values. If I
    set their value at the top or bottom of prerender,
    they display the change...if I set the value in an if
    conditional that is hit (I have checked many times)
    in prerender, they will not display the values. If I
    set them in the tree handler anywhere, they will not
    display the values. This is very frustrating and is
    wasting tons of my time...I simply want to load the
    text fields based on the tree node that was
    clicked...I have messed with this for hours and it
    certainly does not work.Well, setting them in the tree handler won't work because the tree handler gets called in the page instance that handles the submit and not the page instance that renders the response.
    Posting your prerender code might help. Also, your action handler.
    >
    >
    - Mark

Maybe you are looking for