Facing new challenges everyday

Back button issues with JSF and server side state saving

October 27th, 2008

For several months I tried to avoid this problem that only happens with server side state saving, but now I can’t run away anymore. Really sad.

I have a page that contains a dataList used to render a list of commandLinks, when I click on one of these commandLinks, the attached ActionListener gets called, but if I click on back button and then click on any other commandLink, the ActionListener attached to this component isn’t called, after several hours of debugging I discovered JSF are always trying to restore the current viewstate and not the viewstate related with the original version of my view.

JSF helped a lot on development of many projects, but now I’m really considering the use of Wicket on development of some search frontends that requires good back button support.

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Wicket x JSF

October 24th, 2006

Alguns dias atrás eu estive realizando pequenos testes com o Wicket, ele tem uma idéia semelhante ao Swing, é realmente um framework OO com um pouco de HTML e muitas classes Java, creio que quanto à modelagem é muito mais fácil trabalhar com o Wicket do que com o JSF.

Porém quando você que ter flexibilidade em aplicar modificações no markup como o JSF oferece as coisas mudam pois para cada página HTML existe uma classe Java e somente via código Java é possível adicionar componentes coisa que no JSF pode ser facilmente feito.

Creio que em breve farei um artigo comparando ambos.

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Visitors Around the World

Polls

How Is My Site?

View Results

Loading ... Loading ...

Categories

Meta

Links

hosted by easy2use.net