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 Sihong Fan <fa...@yahoo.com> on 2004/07/19 17:58:50 UTC

how to print max content instead of normal

How to print max content( I have different template
for max) instead of normal content? I can see Maximize
action run
'org.apache.jetspeed.modules.actions.controls.Maximize.java'
first and then go to action class under
'org.apache.jetspeed.modules.actions.portlets'. How
can I adding new method in portlet action class just
like 'buildMaximizedContext(Portlet portlet, RunData
rundata)' to print what I want. I mean set new
template and display and then print.

Thanks


		
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/


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


Re: how to print max content instead of normal

Posted by Sihong Fan <fa...@yahoo.com>.
Thanks for the reply. 
Sorry, I should make it clearer. What I really want is
to customize print friendly page by lick a modes
button. I'm there is better way to do that and hope
someone get it. But this is what I did:

1. create new image just 'info' or 'maximize' in image
folder. For me, this 'download'
2. create new permission for user to use this new mode
3. add 'actions.add(new PortletAction("download",
"download excel format file"));' in
VelocityPortletControl.
4. create Download.java in
'org.apache.jetspeed.modules.actions.controls'
package. 
5. in buildNormalContext method of portlet action
class, add 'if(
((JetspeedRunData)rundata).getAction().equals("controls.Download")
){this.setTemplate(rundata, "Download.jsp");		
		}'

I hope I can find better way to do it.

Sihong








--- Stijn de Witt <St...@bergland-it.nl> wrote:
> Look here
> 
>
http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/modules/actions/portlets/PortletAction.html
> 
> for the setTemplate method.
> 
> -Stijn
> 
> 
> ----- Original Message ----- 
> From: "Stijn de Witt" <St...@bergland-it.nl>
> To: "Jetspeed Users List"
> <je...@jakarta.apache.org>
> Sent: Monday, July 19, 2004 8:53 PM
> Subject: Re: how to print max content instead of
> normal
> 
> 
> > presumably call setTemplate(yourMaximizedTemplate)
> in
> > buildMaximizedContent()?
> >
> > -Stijn
> >
> >
> > ----- Original Message ----- 
> > From: "Sihong Fan" <fa...@yahoo.com>
> > To: <je...@jakarta.apache.org>
> > Sent: Monday, July 19, 2004 5:58 PM
> > Subject: how to print max content instead of
> normal
> >
> >
> > > How to print max content( I have different
> template
> > > for max) instead of normal content? I can see
> Maximize
> > > action run
> > >
>
'org.apache.jetspeed.modules.actions.controls.Maximize.java'
> > > first and then go to action class under
> > > 'org.apache.jetspeed.modules.actions.portlets'.
> How
> > > can I adding new method in portlet action class
> just
> > > like 'buildMaximizedContext(Portlet portlet,
> RunData
> > > rundata)' to print what I want. I mean set new
> > > template and display and then print.
> > >
> > > Thanks
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Vote for the stars of Yahoo!'s next ad campaign!
> > >
>
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
> > >
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 



	
		
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

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


Re: how to print max content instead of normal

Posted by Stijn de Witt <St...@bergland-it.nl>.
Look here

http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/modules/actions/portlets/PortletAction.html

for the setTemplate method.

-Stijn


----- Original Message ----- 
From: "Stijn de Witt" <St...@bergland-it.nl>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Monday, July 19, 2004 8:53 PM
Subject: Re: how to print max content instead of normal


> presumably call setTemplate(yourMaximizedTemplate) in
> buildMaximizedContent()?
>
> -Stijn
>
>
> ----- Original Message ----- 
> From: "Sihong Fan" <fa...@yahoo.com>
> To: <je...@jakarta.apache.org>
> Sent: Monday, July 19, 2004 5:58 PM
> Subject: how to print max content instead of normal
>
>
> > How to print max content( I have different template
> > for max) instead of normal content? I can see Maximize
> > action run
> > 'org.apache.jetspeed.modules.actions.controls.Maximize.java'
> > first and then go to action class under
> > 'org.apache.jetspeed.modules.actions.portlets'. How
> > can I adding new method in portlet action class just
> > like 'buildMaximizedContext(Portlet portlet, RunData
> > rundata)' to print what I want. I mean set new
> > template and display and then print.
> >
> > Thanks
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Vote for the stars of Yahoo!'s next ad campaign!
> > http://advision.webevents.yahoo.com/yahoo/votelifeengine/
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


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


Re: how to print max content instead of normal

Posted by Stijn de Witt <St...@bergland-it.nl>.
presumably call setTemplate(yourMaximizedTemplate) in
buildMaximizedContent()?

-Stijn


----- Original Message ----- 
From: "Sihong Fan" <fa...@yahoo.com>
To: <je...@jakarta.apache.org>
Sent: Monday, July 19, 2004 5:58 PM
Subject: how to print max content instead of normal


> How to print max content( I have different template
> for max) instead of normal content? I can see Maximize
> action run
> 'org.apache.jetspeed.modules.actions.controls.Maximize.java'
> first and then go to action class under
> 'org.apache.jetspeed.modules.actions.portlets'. How
> can I adding new method in portlet action class just
> like 'buildMaximizedContext(Portlet portlet, RunData
> rundata)' to print what I want. I mean set new
> template and display and then print.
>
> Thanks
>
>
>
> __________________________________
> Do you Yahoo!?
> Vote for the stars of Yahoo!'s next ad campaign!
> http://advision.webevents.yahoo.com/yahoo/votelifeengine/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


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