[
http://jira.jboss.com/jira/browse/JBSEAM-2116?page=all ]
Petr Kolesnikov closed JBSEAM-2116.
-----------------------------------
Resolution: Done
fortunately not so bad in reality -), my fault
Query has an empty list of ParameterValues (after population!!!) for slqs without
parameters.
The design point still remains is that Query loses a ref to DataModel if JSF get it before
the Query population that is i think usually the case.
1. Query.getDataModel()
2. Model.getRowCount() that usually results in Query.getResultCount() and
Query.dataModel==null
In my case Query.getDataModel() gets called in apply values(do not know why) and rerender
phases. This creates two DataModel objects for one request.
Query.isAnyParameterDirty is true for query without parameters
--------------------------------------------------------------
Key: JBSEAM-2116
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2116
Project: JBoss Seam
Issue Type: Bug
Components: Framework
Affects Versions: 2.0.0.CR2
Environment: any
Reporter: Petr Kolesnikov
Assigned To: Norman Richards
Priority: Trivial
Fix For: 2.0.0.GA
the method from Query class
private static boolean isAnyParameterDirty(List<ValueExpression> valueBindings,
List<Object> lastParameterValues)
returns true if lastParameterValues==null that is the case when query has not parameters
too
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira