GateIn Twitter Portlet 02
<%
// Retrieve the value from the Portlet Preferences
String tweeterAccount=renderRequest.getPreferences().getValue("defaultScreenName", "Anonymous");
%>
Latest Twitter statuses from <%=tweeterAccount%>
<%
List
tweets = (List) portletSession.getAttribute("tweets");
if (tweets != null) {
out.println("");
for (String tweet : tweets) {
out.print("- ");
out.print(tweet);
out.println("
");
}
out.println("
");
}
%>
Click here to change the Twitter account value
portlet/src/main/webapp/style_touilleur.css 0000644 0000765 0000024 00000000671 11300040662 021025 0 ustar nicolas staff #content h2 {
font-size: 14px;
font-family: Verdana, Arial, sans-serif;
font-weight: bold;
color: #222222;
}
#content h4 {
font-size: 12px;
font-family: Verdana, Arial, sans-serif;
font-weight: normal;
color: #555555;
}
#content {
font-family: Verdana, Arial, sans-serif;
color: black;
}
#content ul {
font-size: 12px;
}
#content li {
font-size: 12px;
}
#content input {
font-size: 12px;
} portlet/src/main/webapp/test.html 0000644 0000765 0000024 00000001257 11300044320 016710 0 ustar nicolas staff