You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Fletcher, Boyd C. J9C534" <Bo...@je.jfcom.mil> on 2003/04/24 03:59:32 UTC

JSP portlet access to its customizer attributes


Is there a way to get and set a portlet's customizer attributes including the portlet's title from in a JSP application? The initial values for the params set in the portlet's .xreg file. I'm trying to avoid writing a JspPortletAction class (yes, i know its not MVC compliant ;). But this seems like something that should be doable with the Jetspeed JSP taglibs but they don't appear to have this capability exposed. I'm using 1.4b3 on Tomcat 4.1.24.

The application is a JSP application w/ no action part. The JSP App connects to a database and pulls a list and displays it to the user. The user can then use the portlet's customizer to select which set of items from the list it should display the next time the portlet is redrawn. There are multiple instances of this portlet running on the page so apparently I have to change the title in order for the customizer attributes for each portlet to be unique. Ideally, I would like use a selection box for the list of items to select in the customizer, but initially just entering the numbers will do.

thanks,

boyd

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: JSP portlet access to its customizer attributes

Posted by Mark Orciuch <ma...@ngsltd.com>.
>
> Is there a way to get and set a portlet's customizer attributes
> including the portlet's title from in a JSP application? The
> initial values for the params set in the portlet's .xreg file.
> I'm trying to avoid writing a JspPortletAction class (yes, i know
> its not MVC compliant ;). But this seems like something that
> should be doable with the Jetspeed JSP taglibs but they don't
> appear to have this capability exposed. I'm using 1.4b3 on Tomcat 4.1.24.
>
> The application is a JSP application w/ no action part. The JSP
> App connects to a database and pulls a list and displays it to
> the user. The user can then use the portlet's customizer to
> select which set of items from the list it should display the
> next time the portlet is redrawn. There are multiple instances of
> this portlet running on the page so apparently I have to change
> the title in order for the customizer attributes for each portlet
> to be unique. Ideally, I would like use a selection box for the
> list of items to select in the customizer, but initially just
> entering the numbers will do.
>

There should be no problem of running multiple instances of a portlet on the
same page (even if the title is the same). See Jsp Stock Portfolio portlet
in 1.4b4-dev (CVS head).

Best regards,

Mark Orciuch - morciuch@apache.org
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org