on 07-22-2010 4:52 PM
Hi,
I'd like to know what is the behaviour of the Web DynPro when an user presses the Reload button on the browser.
I'm asking this because I designed a WDP that has a view with some input fields, two button and a table to show the result of a search operation based on the content of the input fields.
Some of the input fields are text inputs and others are dropdown list controls. In some cases, e.g. after having performed a search, if I hit the Reload button the content of one dropdown list was shown in another dropdown list.
The dropdown lists and the other input fields are bound to some context attributes and nodes.
I'm trying to figure out why the WDP is kept in this 'dirty state' when the page is reloaded.
Thanks,
Pietro.
Hi Pietro,
a reload of the Browser causes every time a reload of WDJ-Application. That means the content in the wdDoInit-Method is executed and the UI-Input elements are in initial state.
If you want to store the selection in the Input fields and droodowns the only way is to store that in the session.
Here is an example to do that.
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, "ABC", "someValue");
Than you have to read this in the init-Methods.
WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, "ABC");
Regards
Gunter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.