JSF 2.0 render issues

If the Component is not rendered on screen then the f:ajax cant do any refreshing as the Id itself is not present on the client DOM.The <f:ajax render> client ID should refer a component which is always rendered on the client side. It will then be exactly the HTML representation of that component which will be updated by JavaScript. If the HTML representation of that component is not there on the client side DOM because the rendered of the component is false, then JavaScript has nothing to find and update and in effect "nothing" will happen.

Set it to for example @form which indicates the entire form: which is a very bad practice. Try to wrap the entire component with some thing like a panelGrid or worst case a Form tag and rerender it so that all within the scope is rerendred.

Comments

Popular posts from this blog

'jasypt.encryptor.password' or one of ['jasypt.encryptor.privateKeyString', 'jasypt.encryptor.privateKeyLocation'] must be provided for Password-based or Asymmetric encryption

Field or property 'jobParameters' cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext' - Spring Batch

Couldn't store job: Unable to serialize JobDataMap for insertion into database because the value of property 'jobLauncher' is not serializable