Hello,
In the beginning of a controller i have the following code where i read the params for pagenation:
I get the following output in the consol:
Where do this 50 come from ? I had the same problem a time ago, too: http://www.spieleprogrammierer.de/20...25/#post256591 in a other controller.
It is always a number near 50. But i want the value passed from the params. What do i wrong ?
Regards
Hetzge
In the beginning of a controller i have the following code where i read the params for pagenation:
Code:
println "a1: "+params.offset
println "b1: "+params.max
int offset = params.offset ?: 0
int max = params.max ?: 2
if(max > 100) max = 100
println "a2: "+offset
println "b2: "+max
Code:
a1: 2
b1: 2
a2: 50
b2: 50
It is always a number near 50. But i want the value passed from the params. What do i wrong ?
Regards
Hetzge