Tuesday Jul 17, 2007

Browser Testing Nirvana

IE6, IE7, Safari, Firefox

As part of the OpenPortal project we strive to make the UI as visually appealing as possible and Portal Server 7.2 is full of advancements in this area.  Why?  We want you to touch it, feeling connected to your portal services.

That means we do a ton of browser testing via our great QA team to ensure our UI is consistent across browsers.

And now thanks to Parallels with Coherence,  UI development and testing should be a whole lot easier.  With it, I can run all the major browsers simultaneously and see changes instantly without switching machines/keyboards.

Just one small thing we do to help ensure a better user experience for you. 

Friday Jun 29, 2007

New Look, Same Great Content

You've probably noticed we gave this blog a fresh, new look today.  The motivation was to inspire our great content writers, as well as our readers, to touch it.

We'd love to hear what you think.  Please feel free to comment on what improvements you'd like to see. As always, we're open to them.

Tuesday Jun 26, 2007

Tips: Adding static content to your Portlet & Changing Portlet Title

 
Including static content in your Portlet

I wonder if I'm the only one who didn't know how to include and reference static content from a portlet. Recently when writing a portlet I was clueless on what to do when I wanted to include images and a CSS file in my portlet. I figure there might be someone out there who doesn't remember this stuff as well; or may be not. But I'll go ahead and post the technique here anyway.

To include static content in your portlet, just put your files (e.g., images, Javascript files, CSS files) under the portlet web-application root. To reference them in your portlet use the renderRequest.getContextPath() method. For example, you can include a CSS file like this

<link rel="stylesheet" type="text/css" href="<%=renderResponse.encodeURL(renderRequest.getContextPath() + "/style.css")%>"/>

renderRequest.getContextPath() returns the web-application path of the Portlet. So for a portlet MyPortlet deployed on your localhost, the method will return http://localhost:80/MyPortlet. Note: Remember to include the following declarations in your page before using the renderResponse object.

<%@ page import="javax.portlet.\*"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<portlet:defineObjects/>


Changing Title of a Portlet

This is quite easy. Just do the following: renderResponse.setTitle("Portlet Title");

About

atul

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today