This really is a chicken and egg situation... if the authorities do not build the fencing and one of the beggars get trampled or hurt, then people will start talking that the authorities did not take action or that beggars are scattered around causing obstruction to the visitors... while on the other hand, they take action (though not very tastefully done...) and still get criticized for their actions. Either way, they will be criticized by the public eye.
I'm not saying that I'm supporting their action such as this... No one or no being should be fenced up... I have two dogs at home, and neither one of them have even lived a day of their lives in a cage. Bad example, but just to show u my point that I'm not in favor of this method.
The people are technically not forcefully placed behind the bars... in fact they are free to leave as they please, with the condition that any begging they make must be through this bars. Is this not the same way how certain pharmacies or even sundry shops function in less developed countries such as India? Where the customers will stand behind a small window, place their order and exchange things through a metal bar... which was made to protect the seller, and to some extent the customers as well?
So in conclusion, is this treatment to these individuals considered bad? Yes, it is. But whatever it is, nothing the government can do to make them have a better life/ treatment besides helping them to find jobs or homes... without these two necessities, they will continue to beg for the rest of their life.