here is my problem. I have this xhtml page:
<html>
<body>
<script>
function myFunction() {
var link='#{myController.goMyDetails}' + MyId
var MyId = '#{myController.myDetails.getId()}';
self.location=link;
}
</script>
<input type="button" id="LinkBtn" onclick="myFunction()" value="Go Details" />
</body>
</html>
What I need it to do is open itself again but with the called Controller.goMyDetails and the Id in MyId as parameter for the controller.
So I click the button and I get the Controller.goMyDetails called with MyId as parameter.
Is there anyway to do this with javascript. No Primefaces or other stuff.
Thank you for your help, this is driving me mad.