[Mono-dev] Patch to enable callbacks for Portlets

Eyal Alaluf eyala at mainsoft.com
Thu Feb 1 11:02:11 EST 2007


Hi, Marek & all.

Attached is a patch to enable TARGET_J2EE portlets to use HTTP
callbacks. The patch has two minor changes to the code common with Mono:
  1.  The callback used 'document.URL' as the URL for posting the
callback to. I modified that to use a 'serverURL' field that is added to
the 'theForm'. This is because for J2EE portlets 'document.URL' points
to the J2EE portal page and not to the specific portlet within it.
  2.  WebForm_ClientCallback is using the 'theForm' to access the value
of the '__EVENTVALIDATION' hidden field. Since for portlets 'theForm'
does not exist I passing the right form as a param to
'WebForm_ClientCallback'.
Your comments are welcome.

Eyal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portal.Callback.diff
Type: application/octet-stream
Size: 4167 bytes
Desc: Portal.Callback.diff
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070201/15d37930/attachment.obj 


More information about the Mono-devel-list mailing list