O
O
Oleg Yakovenko2012-06-12 14:54:43
Java
Oleg Yakovenko, 2012-06-12 14:54:43

primefaces, sortBy. problem when using ?

Welcome all. who may have come across this Turkish trouble called Primefaces. I am writing a jsf 2.0 project using this thing. I have already found in it a lot of jambs and simply “amazing” things that are not described in the docks just in any way.
Subject. I have a sortable p:dataTable. if i work like this

<p:column sortBy="#{entity.name}"> то сортировочка работает на ура.

If I do manipulations to make everything template like this
&lt;ui:param name=&quot;entry&quot; value=&quot;#{bean.entity}&quot;<br/>
&lt;ui:param name=&quot;property&quot; value=&quot;name&quot;<br/>
.........<br/>
&lt;p:column sortBy=&quot;#{entry[property]}&quot;&gt;<br/>

Despite the fact that I get data for exactly the same EL expression in the column without problems, when sorting, it sends me south with these words:

Unable to resolve attribute [entry[property]] against path


Help me please. Is it curable?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
luver, 2012-09-14
@luver

in OpenFaces and we had similar problems with one of the components. You can safely start a bug in their tracker, because. it's like Liba wants to find an entry in a context where it doesn't already exist. I can advise OpenFaces, they must be compatible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question