[JBoss-user] [JBoss Portal] - Re: Hyperlink to external page displayed in portlet?

2005-09-09 Thread Lorneagle
That's what i guessed. I change the value and it works. Thank you :) 

Is there any "better" way to link .jsp-pages? I ask because there are very few 
simple code samples on the internet and i don't want to produce "bad" code.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893792#3893792

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893792


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Hyperlink to external page displayed in portlet?

2005-09-09 Thread mholzner
I believe the reason why you see the testlink.jsp again after the refresh is 
due to the behavior of render parameters. Render paramters are persisted for 
the life time of the users session, or until you set a new value for the same 
paramter. In other words: when your refresh triggers a doView() call, the 
request.getParameter("link") still returns the testlink.jsp 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893785#3893785

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893785


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Hyperlink to external page displayed in portlet?

2005-09-09 Thread Lorneagle
Okay thx. 

I have a similar question:

I try to link from a .jsp to an other .jsp all included in a .war.

Link in .jsp

  |  
  |  
  |  >Testlink

Portlet

  | protected void doView(RenderRequest renderRequest, RenderResponse 
renderResponse) throws PortletException, IOException {
  |
  | renderResponse.setContentType("text/html");
  |
  | String uri = 
renderRequest.getPreferences().getValue("displayedPage","/index.jsp");
  | 
  | String title = 
renderRequest.getPreferences().getValue("showTitle","Testtitle");
  | 
  | String link = renderRequest.getParameter("link");
  | 
  | if(link!=null){
  |
this.getPortletContext().getRequestDispatcher(link).include(renderRequest, 
renderResponse); 
  | }else{
  |
this.getPortletContext().getRequestDispatcher(uri).include(renderRequest, 
renderResponse);  
  | }
  | }


It works but if i follow that link and then go back and press refresh i get the 
testlink.jsp instead of the index.jsp. So there must be a different way to 
create simple links. Can you give me a hint pls? 

Thx



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893765#3893765

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893765


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Hyperlink to external page displayed in portlet?

2005-09-08 Thread mholzner
you can use a iframe to do that. create an iframe portlet, and use a preference 
to set the URI for instance. 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893576#3893576

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893576


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user