I tried your solution too, but also this doesn't work. :-(
With Jetspeed 1.4b3 i used a redirect (that doesn't work with 1.4b4-dev)
This method is called in doAction() :
public static void changeView(
String portletId,
RunData rundata,
int modeView) {
try {
JetspeedLink link =
JetspeedLinkFactory.getInstance(rundata);
DynamicURI duri = new DynamicURI(rundata);
switch (modeView) {
case MAXIMIZE :
duri = link.getAction(MAXIMIZE_ACTION, portletId);
break;
case NORMAL :
duri = link.getAction(RESTORE_ACTION, portletId);
break;
case PRINT :
duri = link.getAction(PRINT_ACTION, portletId);
break;
}
JetspeedLinkFactory.putInstance(link);
rundata.setRedirectURI(duri.toString());
} catch (TurbineException te) {
Log.error(te);
}
}
Where is the mistake? Why it doesn't work with 1.4b4-dev?
Do you have any idea to do this better?
Thanx.
Luca Forni
I think you can just add the variable "js_peid" with the peid of the
portlet
to be maximized to the users temp data. (It might be js-peid, it's been a
while since I saw it.)
-- Michael
On 2/26/03 11:03 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
> I tried your solution but it doesn't work. :-(
> Jetspeed reset that value building the page (setMode() method is called
> with parameter "default").
> Thanx anyway
>
> Luca Forni
>
>
>
>
> "Raffaele
> Ragni" To: "'Jetspeed Users List'"
> <[EMAIL PROTECTED]>
> <raffaele.ragn cc:
> [EMAIL PROTECTED]> Subject: R: jsp portlet and
> Maximize action
>
> 26/02/2003
> 18.28
> Please respond
> to "Jetspeed
> Users List"
>
>
>
>
>
>
> Try with ((JetspeedRunData)rundata).setMode() ?
>
> -----Messaggio originale-----
> Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Inviato: marted� 25 febbraio 2003 11.32
> A: Jetspeed Users List
> Oggetto: jsp portlet and Maximize action
>
> Hi all!!
>
> I need to maximize portlet when its doUpdate() action is called.
>
> I have no idea to solve this problem.
> Please help me!!!
>
> Thanx
> Luca Forni
>
>
> ---------------------------------------------------------------------
> 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]
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]