Hi Marten,
Is there anything that i missed out, for the pop-up to display, as I have no clue where I went wrong here!
I saw the booking-mvc app and made appropriate changes, still no luck..
I have the following configuration;
JSP:
In the JSP, I have a submit button which for which I have the javascript:
Code:
<!-- Imported the following in the jsp-->
<script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js" />"> </script>
<script type="text/javascript" src="<c:url value="/resources/spring/Spring.js" />"> </script>
<script type="text/javascript" src="<c:url value="/resources/spring/Spring-Dojo.js" />"> </script>
<link type="text/css" rel="stylesheet" href="<c:url value="/resources/dijit/themes/tundra/tundra.css" />" />
JSP FIELD:
<input id="popUp" name="_eventId_callPopUp"
type="submit" class="bigbutt2"
value="Display PopUp" />
<script type="text/javascript">
Spring.addDecoration(new Spring.AjaxEventDecoration({
elementId: "popUp",
event: "onclick",
popup: true,
params: {fragments: "popUpPage"}
}));
</script>
Is the pop-up attribute in the view-state required when giving the javascript in the jsp? when I set that attribute to true, even then the pop-up is not displayed, as the pop-up page is displayed in a separate page(and not a separate window)
Please put in some light to it!
Regards,
Edward