Reply To: How to create onPostback="false" at HttpConfigurationProvider

Splash Forums Rewrite Users How to create onPostback="false" at HttpConfigurationProvider Reply To: How to create onPostback="false" at HttpConfigurationProvider

#24526

Hi there!

It looks like we have not included a convenient way of doing this in the API! We’ll have to remedy that. Until then, however you can use the IgnorePostbackOperation class directly from the rewrite-integration-faces module:

org.ocpsoft.rewrite.faces.annotation.config.IgnorePostbackOperation

@Override
public Configuration getConfiguration(ServletContext t) {
return ConfigurationBuilder.begin()
.addRule(Join.path(“/{sistema}”).to(“/login.jsf”))
.perform(PhaseOperation.enqueue(new IgnorePostbackOperation(
   Invoke.binding(El.retrievalMethod(“loginMBean.paginaLoginOuRedirecionaSistemaExterno”)))
).after(PhaseId.RESTORE_VIEW))
.where(“sistema”).bindsTo(PhaseBinding.to(El.property(“loginMBean.sistema”)).after(PhaseId.RESTORE_VIEW));
}