You can use 'rerender' for a component when its props changed. Then if you wnat to check the alert message has gone when we rerender, you need to use 'queryByRole' instead of 'getByRole', because 'getByRole' will
我有一个react组件,用户可以在其中上传图片,他还显示了上传图片的预览.他可以通过单击与图像相对应的删除按钮来删除图像.我正在使用react-dropzone.这是代码: class UploadImage extends React.Component { constructor(props) { super(props); this.onDrop = this.onDr
我需要在表单重新渲染后重新执行javascript.简单地说,在XHTML内容之后放入javascript将无法帮助,因为它是部分请求.另外,我不能使用“onComplete”作为我重新渲染表单的commandButton是在几个地方使用的JSF组件.我需要在本地修复. 有什么办法吗?我想知道f:ajax在这种情况下是否会有所