Showing posts with label portlet. Show all posts
Showing posts with label portlet. Show all posts
Tuesday, December 15, 2009
Sunday, January 11, 2009
The Best Portlet Presentation
Thursday, September 11, 2008
2008 IT seminars
Картинка взята с ckdev.org.uaСобралось несколько ведущих IT компаний для того, чтобы провести открытые семинары в Черкасском ВУЗе для студентов и всех желающих.
Название и адрес ВУЗа:
Черкаський державний технологiчний унiверситет (web url)
бул.Шевченко, 460, м.Черкаси.
Аудитория 510, 5-ый этаж, 1-ый корпус.
Расписание лекций:
(по средам в 15:00)
InterLink - - - - - 17.09.2008, 24.09.2008
JELV - - - - - - - - 01.10.2008 , 08.10.2008
eXo Platform - 15.10.2008 , 22.10.2008
QATestLab - - - 29.10.2008 , 05.11.2008
SPD-Ukraine - - 12.11.2008, 19.11.2008
Masterofcode - - 26.11.2008, 03.12.2008
Веб-цех - - - - - - 10.12.2008, 17.12.2008
Tuesday, December 11, 2007
JSR 286 Portlet XML
Rev. 30 on 2007.12.07
http://hnsp.inf-bb.uni-jena.de/spec/JSR%202.0%20API/portlet-app_2_0.xsd
wget -r -l 3 -nd -np -P . http://hnsp.inf-bb.uni-jena.de/spec/
* necessary tags for simple test porlet
0 unnecessary
1 necessary
+ unbound
http://hnsp.inf-bb.uni-jena.de/spec/JSR%202.0%20API/portlet-app_2_0.xsd
wget -r -l 3 -nd -np -P . http://hnsp.inf-bb.uni-jena.de/spec/
portlet 0+
//FOR PORTLET:
description 0+
portlet-name* 1
display-name 0+
portlet-class* 1
init-param 0+
description 0+
name 1
value 1
expiration-cache 0-1 (int)
cache-scope 0-1
supports* 1+
mime-type* 1
portlet-mode 0+
window-state 0+
supported-locale 0+
resource-bundle 0-1
portlet-info 0-1
title 0-1
short-title 0-1
keywords 0-1
portlet-preferences 0-1
preference 0+
name 1
value 0+
read-only 0-1
preferences-validator 0-1 FQN
security-role-ref 0+
description 0+
role-name 1 NMTOKEN
role-link 0-1
supported-processing-event 0+
|-1-|-qname 1 (xs:QName)
|-2-|-name 1 (xs:NCName)
supported-publishing-event 0+
|-1-|-qname 1 (xs:QName)
|-2-|-name 1 (xs:NCName)
supported-public-render-parameter 0+ String
container-runtime-option 0+
//FOR APPLICATION:
custom-portlet-mode 0+
description 0+
portlet-mode 1
portal-managed 0-1
custom-window-state 0+
description 0+
window-state 1
user-attribute 0+
description 0+
name 1
security-constraint 0+
display-name 0+
portlet-collection 1
portlet-name 1+
user-data-constraint 1
description 0+
transport-guarantee 1
resource-bundle 0-1
filter 0+
description 0+
display-name 0+
filter-name 1
filter-class 1
lifecycle 1+
init-param 0+
description 0+
name 1
value 1
filter-mapping 0+
filter-name 1
portlet-name 1+
default-namespace 0-1 (xs:anyURI)
event-definition 0+
description 0+
|-1-|-qname 1 (xs:QName)
|-2-|-name 1 (xs:NCName)
aias 0+ (xs:QName)
value-type 0-1 FQN
public-render-parameter 0+
description 0+
identifier 1
|-1-|-qname 1 (xs:QName)
|-2-|-name 1 (xs:NCName)
alias 0+ (xs:QName)
listener 0+
description 0+
display-name 0+
listener-class 1 (FQN)
container-runtime-option 0+
name 1
value 0+
* necessary tags for simple test porlet
0 unnecessary
1 necessary
+ unbound
Sunday, September 30, 2007
WSRP
OASIS Web Services for Remote Portlets (WSRP) TC
WSRP mail list
WSRP repository
WIKI
Веб-сервисы
WSRP 2
WSRP 1
Other vendors:
Mail lists:
1. WSRP in the eXo portlet container
Links:
http://en.wikipedia.org/wiki/WSRP
http://portals.apache.org/wsrp4j/
http://portlets.blogspot.com/
http://dev2dev.bea.com/pub/a/2005/03/inside_wsrp.html
http://xml.coverpages.org/wsrp.html
oracle tutorial - with wsrp2 note
WSRP4J JIRA
WSRP4J JIRA archive
JBOSS JIRA
JBOSS JIRA PORTAL WSRP
WSRP mail list
WSRP repository
WIKI
Веб-сервисы
WSRP 2
- WSRP 2.0 specification
- REPO files - http://docs.oasis-open.org/wsrp/v2/
- WSRP_v2_Public_Review_comments
- wsrp list of new stuffs
WSRP 1
- WSRP 1.0 specification
- An example service wsdl: http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl
- The normative WSRP v1 binding definitions: http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_v1_bindings.wsdl
- The normative WSRP v1 interface definitions: http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_v1_interfaces.wsdl
- The normative WSRP v1 type definitions: http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_v1_types.xsd
Other vendors:
Mail lists:
1. WSRP in the eXo portlet container
- Archive
- eXo mail list subscribe: exo-portlet-container-subscribe@objectweb.org
- eXo mail list: exo-portlet-container@objectweb.org
- Archive
- wsrp-comment-subscribe@lists.oasis-open.org
- wsrp-comment@lists.oasis-open.org
- Archive
- wsrp-dev-subscribe@lists.oasis-open.org
- wsrp-dev@lists.oasis-open.org
Links:
http://en.wikipedia.org/wiki/WSRP
http://portals.apache.org/wsrp4j/
http://portlets.blogspot.com/
http://dev2dev.bea.com/pub/a/2005/03/inside_wsrp.html
http://xml.coverpages.org/wsrp.html
oracle tutorial - with wsrp2 note
WSRP4J JIRA
WSRP4J JIRA archive
JBOSS JIRA
JBOSS JIRA PORTAL WSRP
Labels:
exoplatform,
java,
portlet,
work,
wsrp
Tuesday, March 27, 2007
eXo Portlet Container 2.0 beta
The eXo PC team is pleased to announce the first available implementation of the incoming JSR 286 - Portlet 2.0 specification
This product comes with many functionalities
Look the hot news on exoplatform.com!
EXO-PortletContainer 2.0 beta running
--------------------------------
The eXo PC team is pleased to announce the first available implementation of the incoming JSR 286 - Portlet 2.0 specification
This product comes with many functionalities:
* plugin architecture
* clustering support
* jsr 286 implementation with:
- resource serving
- fragment serving -- AJAX support
- shared render parameters
- portlet events (inter portlet communication)
- portlet filters
- test portal fully refactored
- portal maker's framework
EXO-PC Tomcat 5.5 bundle includes Apache Tomcat 5.5.17 distributive
bundled with eXo PC sample applications and neccessary libraries.
EXO-PC includes:
Test portal - portal application which provide portlets functionalities (portal.war)
Test portlets - portlets, which showing ability of the jsr168 portlet specification (portlets.war)
Test portlets 2 - portlets, which showing ability of the jsr286 portlet specification (portlets2.war)
1. Start Up
Tomcat 5.5 with EXO-PC 2.0 beta bundled can be started by executing the following commands:
$CATALINA_HOME\bin\exo-run.bat (Windows)
$CATALINA_HOME/bin/exo-run.sh (Unix)
2. After startup, EXO-PC 2.0 beta sample applications will be available by visiting:
http://localhost:8080/portal
3. More information at web http://docs.exoplatform.org/exo-documents/exo-portlet-container.site or send an email to "exoplatform@objectweb.org" or "exo-portlet-container@objectweb.org".
Download at: http://forge.objectweb.org/project/showfiles.php?group_id=151&release_id=1914
This product comes with many functionalities
Look the hot news on exoplatform.com!
EXO-PortletContainer 2.0 beta running
--------------------------------
The eXo PC team is pleased to announce the first available implementation of the incoming JSR 286 - Portlet 2.0 specification
This product comes with many functionalities:
* plugin architecture
* clustering support
* jsr 286 implementation with:
- resource serving
- fragment serving -- AJAX support
- shared render parameters
- portlet events (inter portlet communication)
- portlet filters
- test portal fully refactored
- portal maker's framework
EXO-PC Tomcat 5.5 bundle includes Apache Tomcat 5.5.17 distributive
bundled with eXo PC sample applications and neccessary libraries.
EXO-PC includes:
Test portal - portal application which provide portlets functionalities (portal.war)
Test portlets - portlets, which showing ability of the jsr168 portlet specification (portlets.war)
Test portlets 2 - portlets, which showing ability of the jsr286 portlet specification (portlets2.war)
1. Start Up
Tomcat 5.5 with EXO-PC 2.0 beta bundled can be started by executing the following commands:
$CATALINA_HOME\bin\exo-run.bat (Windows)
$CATALINA_HOME/bin/exo-run.sh (Unix)
2. After startup, EXO-PC 2.0 beta sample applications will be available by visiting:
http://localhost:8080/portal
3. More information at web http://docs.exoplatform.org/exo-documents/exo-portlet-container.site or send an email to "exoplatform@objectweb.org" or "exo-portlet-container@objectweb.org".
Download at: http://forge.objectweb.org
Labels:
exoplatform,
portlet,
work
Thursday, March 22, 2007
JSON
wiki en and wiki ru
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language.
Sample JSON
Sample JavaScript, where is req.responseText - is the JSON response.
Links:
JSON official
JSON in JavaScript
JSON in Java
Generate JSON from XML to use with Ajax
Генерирование JSON из XML для использования с Ajax
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language.
Sample JSON
{
"data": "The markup of fragment",
"portlets": [
{
"wid": "8759875984237598347",
"title": "заголовок",
"mode": "VIEW",
"state": "NORMAL",
"content": "The markup of portlet",
}
]
}
Sample JavaScript, where is req.responseText - is the JSON response.
var data_object = eval("(" + req.responseText + ")");
alert("data_object.data = " + data_object.data);
var frag = data_object.data;
var portlets = data_object.portlets;
var portletLength = portlets.length;
for (var i = 0; i < portletLength; i++) {
document.getElementById("p" + portlets[i].wid + "title").innerHTML = portlets[i].title;
document.getElementById("p" + portlets[i].wid + "content").innerHTML = portlets[i].content;
}
Links:
JSON official
JSON in JavaScript
JSON in Java
Generate JSON from XML to use with Ajax
Генерирование JSON из XML для использования с Ajax
Wednesday, March 21, 2007
The portlets
Introduction
This is the article about portlets. It is the first steps to portlets and portal. I am talking about portlets, portals, aggregating portlets to portals, portlet API (JSR168), main portlet’s sides and showing simple portlet code. Prerequisites include understanding of of XML, HTML, Servlets and JavaServer Pages.
How does it work?

Portals
Portals are respected by a number of characteristics. The two most often observed by users are:
Aggregation
Aggregation refers to taking content from multiple, independent, delivery channels, and providing a unified user experience. A Portal page will often contain multiple
portlets, each rendering content from a separate source. Aggregation is outside of the scope of JSR-168. Many Portal engines manage pages and aggregation differently.
Personalization
Personalization refers to allowing each user to customize their portal experience. Different portal engines will provide for differing levels of personalization. JSR-168 includes a notion of Portlet Preferences, which a developer can use to allow a user to customize how the portlet
will perform for that specific user.
Portlets
Portlet is a new type of Web Component, cousin to the Servlet, provides the interface to content.
What Is JSR-168?
The numeric designation for the JCP’s first local Portlet Specification.
Remote portlet technology is defined by the WSRP specification.
Extends Servlet Specification 2.3 with new Portlet concepts.
Defines the standard contract between the Portlet container and Portlet components.
JSR-168 does not define Portal behaviors, such as how pages are laid out, how aggregation works, how administration is performed, etc.
Why JSR-168?
Prior to JSR-168, we had many different Portlet APIs. The lack of standards fragmented the solution space, creating issues for customers and ISVs.
Portlets and servlets
Portlet-based Applications vs Servlet-based Applications Installing a Portlet Application provides capability, not content. Portlets from multiple applications can be
aggregated on the same page. More administration with Portlets and Portals than with traditional web applications.
Portlets Differ from Servlets
Some of the Portal Servers That Support.. JSR-168
Open Source:
Commercial:
MVC and Portlets
Portlets in MVC terms:
The Portlet's primary role is as the Controller. Receives events from the container

Portlets typically dispatch to the View (usually a JSP page).
As the Controller, Portlets orchestrate interaction with the Model and moving content to the View. The Model can be anything: POJO, EJB, Web Service, etc. A Portal is intended to provide an aggregated UI to models, not to necessarily contain those models.
Links
This is the article about portlets. It is the first steps to portlets and portal. I am talking about portlets, portals, aggregating portlets to portals, portlet API (JSR168), main portlet’s sides and showing simple portlet code. Prerequisites include understanding of of XML, HTML, Servlets and JavaServer Pages.
How does it work?
Portals
Portals are respected by a number of characteristics. The two most often observed by users are:
- Aggregation
- Personalization.
Aggregation
Aggregation refers to taking content from multiple, independent, delivery channels, and providing a unified user experience. A Portal page will often contain multiple
portlets, each rendering content from a separate source. Aggregation is outside of the scope of JSR-168. Many Portal engines manage pages and aggregation differently.
Personalization
Personalization refers to allowing each user to customize their portal experience. Different portal engines will provide for differing levels of personalization. JSR-168 includes a notion of Portlet Preferences, which a developer can use to allow a user to customize how the portlet
will perform for that specific user.
Portlets
Portlet is a new type of Web Component, cousin to the Servlet, provides the interface to content.
What Is JSR-168?
The numeric designation for the JCP’s first local Portlet Specification.
Remote portlet technology is defined by the WSRP specification.
Extends Servlet Specification 2.3 with new Portlet concepts.
Defines the standard contract between the Portlet container and Portlet components.
JSR-168 does not define Portal behaviors, such as how pages are laid out, how aggregation works, how administration is performed, etc.
Why JSR-168?
Prior to JSR-168, we had many different Portlet APIs. The lack of standards fragmented the solution space, creating issues for customers and ISVs.
Portlets and servlets
Portlet-based Applications vs Servlet-based Applications Installing a Portlet Application provides capability, not content. Portlets from multiple applications can be
aggregated on the same page. More administration with Portlets and Portals than with traditional web applications.
Portlets Differ from Servlets
- Two phase request processing
- Persistent render parameters
- Portlet render as markup fragments
- Special URLs to access a Portlet
- Portlet Modes
- Portlet Window States
- Portlet Preferences
Some of the Portal Servers That Support.. JSR-168
Open Source:
Commercial:
MVC and Portlets
Portlets in MVC terms:- Portlet class – Controller
- Portlet’s JSP – View
- Model
Abstract interface
No user interaction
No presentation
- View
Acquires Model data and renders it
Can be replaced, independent of the Model
- Controller
Receives input eventsMVC and Portlets
Provides the means to effect change on the Model
Orchestrates interaction between Model and View
The Portlet's primary role is as the Controller. Receives events from the container
- Process actions
- Render content

Portlets typically dispatch to the View (usually a JSP page).
As the Controller, Portlets orchestrate interaction with the Model and moving content to the View. The Model can be anything: POJO, EJB, Web Service, etc. A Portal is intended to provide an aggregated UI to models, not to necessarily contain those models.
Links
Labels:
exoplatform,
java,
portlet,
work
Monday, March 5, 2007
XMLPortletRequest
"The XMLPortletRequest interface is a script interface to allow portlet supplied scripts to perform HTTP client functionality similar to the functionality provided by XMLHttpRequest. Unless stated otherwise, most of the concepts, behavior (including security constraints and considerations) of the XMLHttpRequest also apply to the XMLPortletRequest." (JSR-286 PLT.E)
XMLPortletRequest Proposal
XMLPortletRequest - Part 1: Background
XMLPortletRequest - Part 2: Wrapping XMLHttpRequest
Web Services for Remote Portlets - HTTP Client API
XMLHttpRequest
interface XMLPortletRequest {
attribute EventListener onreadystatechange;
readonly attribute unsigned short readyState;
void open(in DOMString method, in DOMString url);
void open(in DOMString method, in DOMString url, in boolean async);
void open(in DOMString method, in DOMString url, in boolean async, in DOMString user);
void open(in DOMString method, in DOMString url, in boolean async, in DOMString user, in DOMString password);
void setRequestHeader(in DOMString header, in DOMString value);
void send();
void send(in DOMString data);
void send(in Document data);
void abort();
DOMString getAllResponseHeaders();
DOMString getResponseHeader(in DOMString header);
readonly attribute DOMString responseText;
readonly attribute Document responseXML;
readonly attribute unsigned short status;
readonly attribute DOMString statusText;
};
=\/=\/=\/=====================================================<script LANGUAGE=JavaScript>
var portletReq;
function asynchGetXMLPortletRequest(){
var requestURL = document.getElementById("fragmentURL").value;
try {
portletReq = new XMLPortletRequest();
} catch(e) {
alert("Exception: I could not find the XMLPortletRequest");
}
alert("portletReq = " + portletReq);
portletReq.onreadystatechange = processReqChange;
portletReq.open('GET', requestURL, true);
portletReq.send(null);
}
function processReqChange() {
if (portletReq.readyState == 4) {
if (portletReq.status == 200) {
displayInvoice();
}
}
}
function displayInvoice() {
var div = document.getElementById("portletcontent");
div.innerHTML = "";
div.innerHTML = portletReq.responseText;
var but = document.getElementById("mainbut");
but.value = "clear";
but.onclick = clearContent;
}
function clearContent() {
var div = document.getElementById("portletcontent");
div.innerHTML = "";
var but = document.getElementById("mainbut");
but.value = "Serve fragment";
but.onclick = asynchGetXMLPortletRequest;
}
</script>
<input type="button" id="mainbut" value="Serve fragment" onclick="asynchGetXMLPortletRequest()">
<input type="hidden" id="fragmentURL" value="<portlet:fragmentURL /> ">
<div id="portletcontent"></div>
=/\=/\=/\=====================================================
XMLPortletRequest Proposal
XMLPortletRequest - Part 1: Background
XMLPortletRequest - Part 2: Wrapping XMLHttpRequest
Web Services for Remote Portlets - HTTP Client API
XMLHttpRequest
Wednesday, February 28, 2007
portlet ru
Портлет, грубо говоря, это часть страницы, которая умеет делать очень много.
Допустим представьте у нас был до этого один сервлет и всё. А теперь на странице так сказать много маленьких сервлетиков и у каждого есть свой request/response :)
Так вот. Портлет - это java класс. Все портлеты расширяют (extends) класс GenericPortlet.
Портлет может включать jsp, servlet и др. ресурсы.
У портлета есть много возможностей, в отличие от сервлета, реализованные с помощью портлет контейнера и поддерживаемые порталом. В этом случае очень большой груз работы ложиться именно на портал.
http://photos1.blogger.com/blogger/5540/1461/1600/portlet5.jpg
Ссылки:
Допустим представьте у нас был до этого один сервлет и всё. А теперь на странице так сказать много маленьких сервлетиков и у каждого есть свой request/response :)
Так вот. Портлет - это java класс. Все портлеты расширяют (extends) класс GenericPortlet.
Портлет может включать jsp, servlet и др. ресурсы.
У портлета есть много возможностей, в отличие от сервлета, реализованные с помощью портлет контейнера и поддерживаемые порталом. В этом случае очень большой груз работы ложиться именно на портал.
http://photos1.blogger.com/blogger/5540/1461/1600/portlet5.jpg
Ссылки:
- eXo portlet-container docs
- eXo SVN sources
- JSR 286: Portlet Specification 2.0
- JSR 168: Portlet Specification 1.0
- Working Draftsof the JSR 286 Expert Group
- Login to Pluto (use: user/pass = pluto/test)
- Portlets on WIKI
- portlets.blogspot.com
- lomboz eclipse plugin
- BergmanIntroductionToPortletProgrammingUsingJSR-168
- Lomboz demo
Labels:
exoplatform,
java,
portlet,
work
Subscribe to:
Posts (Atom)