How to pass objects from one page to another page in JSF without writing a converter

痴心易碎 提交于 2019-12-04 08:39:33
BalusC

Depends on whether you want the /editClientes request to be idempotent ("bookmarkable") or not.

The flash approach is not idempotent. It's not possible to link/share/bookmark the /editClientes URL in order to edit a specific client. When the enduser copies this URL for sharing/bookmarking and re-executes the request on it (even though it's just pressing [enter] in browser's address bar), all the enduser would face is an empty edit form for a new client instead of the one the enduser initially selected via flash scope.

The request parameter approach is idempotent. The enduser is able to get exactly the same response everytime the enduser re-executes the request.

It's not our decision whether your /editClientes page should be idempotent or not. It's yours.

See also:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!