Hello Kristoff,
can you describe and send me a working setup for a portlet, please.
Regards
Bernd
[EMAIL PROTECTED] wrote:
Hello,
I am trying to integrate a Tobago-JSF Page into a portlet. While trying to
do so I ran into a problem. The initial rendering of the JSF-Page works
just fine. However, clicking a tc:button makes JavaScript throw an error.
What I could gather from the page layout and debug output of my browser is
that the error is related to the generated page content.
As far as I understand it, Tobago relies on Java-Script Code being
executed onLoad in the body tag of the generated page.
But according to specs portlets may not generate a body-element. This
prevents the request from being processed properly. (Tobago.action.has no
properties) on the marked line:
/**
* Submitting the page with specified actionId.
*/
submitAction: function(actionId) {
Tobago.Transport.request(function() {
var req = Tobago.Transport.requests.shift(); // remove this from
queue
LOG.debug("request removed :" + req.toString());
--> var oldAction = Tobago.action.value;
Tobago.action.value = actionId;
Tobago.onSubmit();
// LOG.debug("submit form with action: " + Tobago.action.value);
Tobago.form.submit();
Tobago.action.value = oldAction;
}, true);
},
Could anybody tell me if integrating Tobago into a portal could work and
how?
Thank you all very much!
Kristoff Kiefer
-----------------------------------------------------------------------------
NORD/IT NORD/LB Informationstechnologie GmbH
Geschäftsführer: Frerich-Weers Bremer, Volker Nagy
HRB Nr. 58021, Amtsgericht Hannover
www.nordlb-it.de
Technologie- und Informatik-Services - Softwareengineering
Kaiserallee 9, D-30175 Hannover
Fon: +49 511 / 361-9507
mailto:[EMAIL PROTECTED]
_____________________________________________
Sicherheitshinweis http://www.nordlb-it.de/secure.html