If you want to get the code from the productTable view your method shouldn't return a Result
but just a String
containing rendered code.... aaaannnyyyyway , there is definitely much better way for rendering sub-templates in Play, check the Tags section of the documentation it does exactly what you want directly from the view, of course you will need to pass a product object to it.
Just create tags
package in your view
package and add there your sub-template (responsible for rendering only pat of page) it behaves exactly the same as common template.