在jsf中有inputHidden变量是否安全

Is it safe to have inputHidden variables in jsf

我有一个 jsf 页面,它有 inputHidden 字段,其值是我应用程序中其他功能(例如条件弹出显示,...)的标志。我想知道隐藏字段中的这些值是否安全,不能在请求中或其他地方被篡改

与所有其他 non-readonly/non-disabled 输入一样,它们可以被篡改。

如果这是一个问题,请将这些值存储在视图范围的 bean 中。

另请参阅:

  • How to choose the right bean scope?
  • Difference between View and Request scope in managed beans