You have to use "Restart Module" toolbar button after server state in Servers view changed to 'Published'. Just select foo-web in Servers view an push button on toolbar (see image below)
https://community.jboss.org/servlet/JiveServlet/downloadImage/2-797343-20296/253-142/RestartModule.png
and then refresh page.