portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23025] - setTemplate method doesn't work with JSP's (JspPortletAction or GenericMVCAction)
Date Tue, 09 Sep 2003 18:09:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23025>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23025

setTemplate method doesn't work with JSP's (JspPortletAction or GenericMVCAction)

gjoseph@kiala.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Blocker                     |Normal
   Target Milestone|1.4b2                       |1.4b5



------- Additional Comments From gjoseph@kiala.com  2003-09-09 18:09 -------
As Scott Weaver told me:

I see your problem, you have defined your action within the form, this is
causing turbine to execute your action before the portlet can.  This is why
there is no context available, the GenericMVCPortlet creates it before invoking
the action nut it never makes it there because Turbine is calling the action.

Remove the action field and make sure you have your action defined at the
registry level.

Try this (I have removed the action field and changed your form action)

<form name="form" action="<js:portletlink template=""  />" method="get">
 <input type="hidden" name="js_peid" value="<%=jspeid%>"/>
 <input type="submit" name="eventSubmit_doSearch" value="Search">
 <input type="reset" value="Clear Fields">
 <input type="text" name="thingieid" size="20">
</form>

-------------
In fact, my mistake came from the tutorial, so maybe this bug should be assigned
to the documentation component;)

Mime
View raw message