Hi,

is it possible to introduce performance hints in myfaces-core? Hints
similar to javax.faces.component.visit.VisitHint but related to
performance improvements. Example:

For dataTable like:
<a:dataTable
  <a:column>
    #{aExpression}

it's completely unnecessary to save per-row state. Currently there is no
elegant way how to do read-only table (state per-row is always
maintained). If user wants (fast) readOnly table, he/she must extend
UIData and re-implemenent setRowIndex method. But hint say
"org.apache.myfaces.core.UIData.saveRowState"=false can solve it
elegantly - if present (in component.getAttributes()) UIData skips
row-state-saving and restoring methods entirely.

Lifespan of those hints can be request (faceContext.attributes) or view
(component.attributes)

WDYT?

Regards,

Kočičák


See https://issues.apache.org/jira/browse/MYFACES-3111 too.

Reply via email to