I was creating a sql view with 53 params but it was showing only 25 params on the parameter list. I saved it and went to the layer folder to see the featuretype.xml. It contained all 53 parameters.
The bug seems to be on the sql view interface
SO: Windows 7 64bits
Local server: Tomcat 7.0,
Geoserver version: 2.11.0
Machine specs: i7-6700, 16gb RAM