One interesting thing to note down is the method attribute with the bookmark property. You create a method in a managed bean and provide it here. So, whenever someone pastes/types the url in browser this method gets invoked giving you the opportunity to update model or set values in pageflowScope or other scopes which might be needed to render the page properly.
But, remember this method will not be called when user navigates to this page from another page by adfc navigation. So, a question arises is how to do the required stuff in such cases which happens through the initializer method. What you can do to resolve this is you can expose your bean as a Data Control and then drop the same method in the unbounded task flow as a method activity. So, instead of directly navigating to the bookmarked activity, navigate to the method call. This way it will be ensured that desired page parameters/model is initialized.
1 comment:
Genial fill someone in on and this post helped me alot in my college assignement. Thank you for your information.
Post a Comment