Hi,

does somebody know, why PortletControllerFactory uses two different default
controllers?

The JR.p has an entry:
portletcontroller.default.classname=org.apache.jetspeed.portal.controllers.D
efaultPortletController

On the other hand PortletControllerFactory has a static constant hash table
with default controllers for mimetypes:
public static final Hashtable mimeTypeMap = new Hashtable();
mimeTypeMap.put( MimeType.WML, WAP_CONTROLLER );
mimeTypeMap.put( MimeType.HTML, ROWCOLUMN_CONTROLLER );

Most getPortletController functions get the default controller out of JR.p,
but one fuction checks the mimetype and uses a default name from the hash
table. And this is hard coded!

Besides, isn't it so, that every controller should support different
mimetypes? That means, that we don't need the differentiation with the
hashtable and could use only the default controller defined in the JR.p


Stephan



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://marc.theaimsgroup.com/?l=jetspeed>
Problems?:           [EMAIL PROTECTED]

Reply via email to