portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18666] - [PATCH] LinkPortlet shows no content
Date Tue, 27 May 2003 12:18:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18666>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18666

[PATCH] LinkPortlet shows no content





------- Additional Comments From sean_doherty@xelus.com  2003-05-27 12:18 -------
Mark,
It's not that important, but it's a nice portlet to demostrate the portal's 
capabilities for customization, user preferences, etc.  I have a fix for it.  
In the getContent(RunData) method, change the line
  if (cap.getPreferredType().equals(MimeType.HTML))
to
  if (cap.getPreferredType().getCode().equals(MimeType.HTML.getCode()))

If I remember right, the problem is the MimeType equals() uses both the code 
and the charset to test for equality -- MimeType.HTML doesn't have a charset 
value but the preferred type from the browser does.
Regards,
Sean

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message