Forum Stats

  • 3,759,907 Users
  • 2,251,613 Discussions
  • 7,870,862 Comments

Discussions

Refresh issue in Springboard component which is in jspx page

Abrar Hussain
Abrar Hussain Member Posts: 22 Red Ribbon
edited Sep 21, 2021 12:06PM in JDeveloper and ADF

Hi,

1. I have three taskflows as a region in three <af:showDetailItem> component of a Springboard as below

2) In Attendance icon's Taskflow, I have put a Refresh button whose code is

 public void refreshPage(){

FacesContext fc = FacesContext.getCurrentInstance();

String refreshpage = fc.getViewRoot().getViewId();

ViewHandler ViewH = fc.getApplication().getViewHandler();

UIViewRoot UIV = ViewH.createView(fc,refreshpage);

UIV.setViewId(refreshpage);

fc.setViewRoot(UIV);

}


3) Attendance page is as below

Now, Springboard is in strip mode, when i click on that highlighted Refresh button whose code is above, entire page is getting refreshed and springboard is changing to grid mode, with no attendance details visible.

When i click on that refresh button, I only want to refresh Attendance.jsff page of Attendance Taskflow but not the entire springboard.jspx page.


How can i achieve this requirement?


Thanks

Abrar

Tagged:

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,566 Red Diamond

    May I ask why you don't just ppr the container inside the showDetailItem?

    What exactly do you mean by refresh?

    The way you do it the whole page is refreshed. Have you debugged the code?

    Timo


  • Abrar Hussain
    Abrar Hussain Member Posts: 22 Red Ribbon

    Hi Timo,

    Yes, By using the above code i am refreshing the entire page as some nested components are not getting refreshed properly. I am required to use the above code for complete page refresh.

    When i refresh the page, i dont want springboard to be refreshed and dont want to change it to grid mode.

    Thanks

    Abrar

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,566 Red Diamond

    When you refresh the whole page you get what you get now.

    You should only refresh the layout container inside the showDetailItem. That should be enough, at least from your description.


    Timo