thanks for the reply, but using that tag, will take me to my home page and
that is not where I am for this issue.

So, I have a home page which is made up of several portlets.  One of these
portlets has a link that when click will bring up a new screen which
contains the page of interest.  This page has a main tab, in which 4 other
"panes" (tabs) have been added.  Now for each of these tabs, a differant
portlet has been assigned to it.

Now, I thought that what I could do is something like this:

<form name='myForm' method='post' action='<jetspeed:portletlink name="Task
Detail" psml="user/user/media-type/html/page/task_detail.psml"/>'>

That is, make use of the same portlink that got me to this page.

That did not work.

Now, setting the <form action = ''> did the same thing, but, i noticed that
if i go to a differant tab and then back to the previous  one, and select
the resolve button, the page is redisplayed with the tabs.

So, now the question is why does that work? and how do I reproduce that
behavior so that the users do not have to do that when they want to use one
of the action buttons.

Now, I did notice that when the action is executed, that the
buildNormalContext method is not called. Does it need to be called, I know
when I placed the call in the action method, there was no differance on the
results. But not sure at this point what is happening in the background.


-----Original Message-----
From: Mark Orciuch
To: Jetspeed Users List
Sent: 2/19/03 10:27 AM
Subject: RE: Help submitting portlet to its self


>
> I am having a problem of trying to submit a portlet to itself and have
it
> rendered correctly.
>
> I have a defined a .psml file is made up of a single tag, that
> then groups 4
> more tags.  Under each of these tags is assigned a .jsp file.  I
> have built

I assume you meant "tabs" not "tags".

> and action class and the buildNormalContext method is working
> correctly.  I
> have added an action called doResolve to this action class.  Now, the
.jsp
> files have a form section.  The form is submitted by the user clicking
a
> link, which calls a javascript function which which sets some
> hidden values
> in the form section and then calls the submit() method of the form.  I
can
> see that the action method doResolve is being called.
>
> What is happening is that the current .jsp page is being displayed
back to
> the user, but the tabs are no longer there.
>
> Any ideal has to what would cause this to happen? and what can be done
to
> fix it?

I would make sure that the .jsp is defined something like:

========================================================================
====
==================
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld'
prefix='jetspeed'
%>

<FORM METHOD="POST" ACTION="<jetspeed:uriLookup type="Home"/>">
  <INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=(String)
request.getAttribute("js_peid")%>">
  <INPUT TYPE="SUBMIT" NAME="eventSubmit_doResolve" VALUE="Resolve">
</FORM>
========================================================================
====
==================

Hope this helps.

Best regards,

Mark Orciuch - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to