JSF Portlet Best Practices - Making the data Table tag as Transient

0 comments



With JSF portlets, If you have data Tables which contain quite a few rows then one of the best practice is to make the data table as transient so that the memory consumption will be less.

There is no easy way to do this other than using the binding attribute:

In JSP:

<hx:dataTableEx binding="#{pagecode.dataTableComponent}" ...>

In PageCode:

public void setDataTableComponent(UIComponent comp){
comp.setTransient(true);
}

That's it.

No comments:

Post a Comment

Recent Posts

Popular Posts

© 2011-2019 Web Portal Club