I am trying to deploy custom pages from feature. I came to know that the webparts(oob or custom) are to be deployed from the elements file using the "AllUserWebPart" wherein we have to include the ".webpart" or ".dwp" file of the webpart on our page(if you export the webpart you can have its .webpart file). However once i deploy my feature and activate it, the pages get deployed with the webpart. But the custom view which i attached to my xsltlistview before extracting is changed and set back to the default view of the list.
I need help in fixing the rendering of correct list view with the webpart.