你可以用ajax = false的按钮更新组件吗?

时间:2017-05-12 18:30:36

标签: ajax jsf primefaces

我有一个下载按钮,当点击更新另一个组件时(btnsFGC) 我的xhtml:

apiVersion: v1
kind: Service
metadata:
  name: nginx
  labels:
    name: nginx
spec:
  type: NodePort
  ports:
    - port: 80
      nodePort: 30080
      name: http
    - port: 443
      nodePort: 30443
      name: https
  selector:
    name: nginx

1 个答案:

答案 0 :(得分:0)

不确定我是否理解你的问题但是...使用ajax的全部意义在于你不会更新整个页面,而只是更新页面组件的一部分。如果将ajax设置为false,则会更新整个页面。如果您只想更新btnsFGC,请执行以下操作:

将commandButton中的ajax设置为true或将其取出,因为默认值为true,然后设置update =" btnsFGC"在commandButton中。这只会更新update属性指定的组件。我还将使用action而不是actionListener。