myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shinsuke SUGAYA (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Updated: (MYFACES-434) MyFaces's Portlet enhancement
Date Fri, 23 Sep 2005 09:13:31 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-434?page=all ]

Shinsuke SUGAYA updated MYFACES-434:
------------------------------------

    Attachment: filterportlet.patch
                filterportlet.tar.gz

Attached filterportlet.patch and filterportlet.tar.gz(added files).
In order to fix the dependency issue and deal with future problems(when adding new components),
I developed MyFacesFilterPortlet(it's very flexible!). The MyFacesFilterPortlet is like Servlet
Filter. So, you can add needed processes before and after accessing MyFacesGenericPortlet.

For example, if you want to use Tomahawk components on a portlet, create the following portlet.xml:

<portlet-app id="example-portlets" version="1.0">
    <portlet id="ExampleNavigator">
        <init-param>
            <name>default-view</name>
            <value>/jsp/index.jsp</value>
        </init-param>
        <init-param>
            <name>default-view-selector</name>
            <value>jp.sf.jetplume.portlets.PortletViewSelector</value>
        </init-param>
        <init-param>
            <name>portlet-class</name>
            <value>org.apache.myfaces.portlet.MyFacesGenericPortlet</value>
        </init-param>
        <init-param>
            <name>portlet-filters</name>
            <value>org.apache.myfaces.portlet.TomahawkPortletFilter</value>
        </init-param>
        <init-param>
            <name>org.apache.myfaces.portlet.TomahawkPortletFilter:upload-threshold-size</name>
            <value>1m</value>
        </init-param>
        <description>Example Navigator</description>
        <portlet-name>ExampleNavigator</portlet-name>
        <display-name>Example Navigator</display-name>
        <portlet-class>org.apache.myfaces.portlet.MyFacesFilterPortlet</portlet-class>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>VIEW</portlet-mode>
            <portlet-mode>EDIT</portlet-mode>
            <portlet-mode>HELP</portlet-mode>
        </supports>
        <portlet-info>
            <title>Example Navigator</title>
            <short-title>Example</short-title>
        </portlet-info>
    </portlet>
</portlet-app>

TomahawkPortletFilter provides features to support tags in <head> and fileupload for
Tomahawk component.

Stan, could you review this filter portlet?


> MyFaces's Portlet enhancement
> -----------------------------
>
>          Key: MYFACES-434
>          URL: http://issues.apache.org/jira/browse/MYFACES-434
>      Project: MyFaces
>         Type: Improvement
>     Versions: 1.1.0
>  Environment: LInux, J2SE 1.4.2
>     Reporter: Shinsuke SUGAYA
>     Assignee: Stan Silvert
>  Attachments: filterportlet.patch, filterportlet.tar.gz, newfile_for_portlet.tar.gz,
patch_for_portlet.patch
>
> MyFacesGenericPortlet does not fully support the feature of tomahawk component, such
as inputHtml and fileUpload. So, I request the following feature to run it on portlet:
> - support tags in <head> (ex. inputHtml component)
> - support upload (fileUpload component)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message