[jboss-user] [JBoss Portal] - WSRP resources URLs

cpage do-not-reply at jboss.com
Tue Mar 3 10:53:43 EST 2009


I have some questions about URLs of resources with remote portlet.

I use JBoss 4.2.3 + JBossPortal 2.6.6.

In the WSRP primer we can read :
anonymous wrote : Producers may not offer a web interface (i.e., offer http/https ports) for content
So I suppose the consumer should rewrite all URLs to refer to him but it seems not the case with JBossPortal.

For example, this is the differences between local et remote portlet HTML code rendering :

  | local :
  | <img src="/myportlet/transparent.gif" style="background:url('/myportlet/creer.png')!important;background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='/myportlet/creer.png');" />
  | 
  | remote :
  | <img src="http://localhost:8180/myportlet/transparent.gif" style="background:url('/myportlet/creer.png')!important;background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='http://localhost:8180/myportlet/creer.png');" />

In this example, for the remote portlet, some URLs refers to the producer (localhost:8180) and others (in CSS) refers to relative URLs (that do not exist in the consumer).

What is the good practice with resources in remote portlet ?


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214595#4214595

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214595



More information about the jboss-user mailing list