Software

WSRP Errors in JBoss Portal

Removing worked for me.

http://community.jboss.org/wiki/UpdatingWSRPports

http://lists.jboss.org/pipermail/jboss-user/2008-August/129229.html

Software

How to Extend User Profiles in JBoss Portal

1) Add to the jboss-portal.sar/conf/identity/profile-config.xml file:

<property>
  <name>property</name>
  <type>java.lang.String</type> <!-- Mandatory -->
  <access-mode>read-write</access-mode>
  <usage>mandatory</usage>
  <display-name xml:lang="en">Display Name</display-name>
  <description xml:lang="en">Description</description>
  <mapping>
    <database>
      <type>dynamic</type>
      <value>propertyname</value>
    </database>
  </mapping>
</property>

2) Add to the jboss-portal.sar/portal-identity.sar/conf/identity-ui-configuration.xml file:

<ui-component name="property">
  <property-ref>property</property-ref>
  <required>true</required>
</ui-component>

3) Add to the resource bundle(s):

IDENTITY_PROPERTY=Property

4) Add to the jboss-portal-sar/portal-identity.sar/portal-identity.war/jsf/common/editProfileInfo.xhtml file:

<h:panelGroup>
  <h:outputText value="#{bundle.IDENTITY_PROPERTY}"/>
  <h:outputText value=" *" rendered="#{metadataservice.property.required}" />
</h:panelGroup>
<h:inputText id="#{metadataservice.property.name}" value="#{manager.uiUser.attribute.property}" required="#{metadataservice.property.required}"/>
<h:panelGroup />
<h:message for="#{metadataservice.property.name}" infoClass="portlet-msg-success" errorClass="portlet-msg-error" fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>

5) Add to the jboss-portal-sar/portal-identity.sar/portal-identity.war/jsf/common/register.xhtml file:

<h:panelGroup>
  <h:outputText value="#{bundle.IDENTITY_PROPERTY}"/>
  <h:outputText value=" *" rendered="#{metadataservice.property.required}" />
</h:panelGroup>
<h:inputText id="#{metadataservice.property.name}" value="#{manager.uiUser.attribute.property}" required="#{metadataservice.property.required}" />
<h:panelGroup />
<h:message for="#{metadataservice.property.name}" infoClass="portlet-msg-success" errorClass="portlet-msg-error" fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>

6) Add to the jboss-portal-sar/portal-identity.sar/portal-identity.war/jsf/common/viewProfileInfo.xhtml file:

<h:outputText value="#{bundle.IDENTITY_PROPERTY}:" rendered="#{editprofilemgr.uiUser.attribute.property != null}"/>
<h:outputText value="#{editprofilemgr.uiUser.attribute.property}" rendered="#{editprofilemgr.uiUser.attribute.property != null}"/>
<h:outputText value="#{bundle.IDENTITY_PROPERTY}"/>
<h:outputText id="#{metadataservice.property.name}" value="#{manager.uiUser.attribute.property}"/>
<h:panelGroup />
Software

Handling Exceptions in Action and Event Requests in JBoss Portal

According to the Portlets 2.0 specif a portlet throws an exception in the processAction or processEvent method, all operations on the ActionResponse must be ignored including set events [e.g setRenderParameter]. The 5 portal/portlet-container should continue processing the other portlets visible in the portal page.

It also says that it is up to the portlet container implementation if the error is faced to the end user, the portlet is removed from the current request cycle or if the render method of the portlet is called.

In JBoss Portal, the responses are cleared and the render methods are called.

Software

How to Set the Default Page in JBoss Portal

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE deployments PUBLIC "-//JBoss Portal//DTD Portal Object 2.6//EN" "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
<deployments>
  <deployment>
    ...
    <portal>
      ...
      <properties>
        <property>
          <name>portal.defaultObjectName</name>
          <value>home</value>
        </property>
      </properties>
    </portal>
  </deployment>
</deployments>