Foros de discusión

submit form addEvent for calendar portlet work fine but not work with popup

Brahim TARNAOUI, modificado hace 13 años.

submit form addEvent for calendar portlet work fine but not work with popup

Junior Member Mensajes: 64 Fecha de incorporación: 15/06/10 Mensajes recientes
hi everybody,

i will custumize the calendar portlet by using a hook

by using this code : 
<portlet:renderurl windowstate="<%= LiferayWindowState.POP_UP.toString() %>" var="AddEvent">
<portlet:param name="struts_action" value="/calendar/edit_event" />
<portlet:param name="redirect" value="<%= currentURL %>" />
<portlet:param name="month" value="<%= String.valueOf(selMonth) %>" />
<portlet:param name="day" value="<%= String.valueOf(selDay) %>" />
<portlet:param name="year" value="<%= String.valueOf(selYear) %>" />
</portlet:renderurl>
		
<input type="button" value="<liferay-ui:message key=" add-event">" onClick="callPopup('&lt;%=AddEvent.toString()%&gt;','.:ADD EVENT:.',600,500);"/&gt;		


i show in a popup the form to add an event, up here all is work fine, but when i filled out the form to adding ana event and validating it, i show the message of adding event successfuly But the event is not added.
i have this problem just when i pass by popup, then when i use a simple link by using <a href=".... tags, the form is showing in a new page and when i subitting the form the event is added successfuly.
then the problem is with popup, it will be configure something or what??


thx in advance