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 "Ashwill, Steve (Facilities & Services)" <sa...@uiuc.edu> on 2009/02/26 15:38:41 UTC
opening a new window or changing tabs
I have a jetspeed 2.1.3 portal page(tomcat) which contains summary data.
(Sales order headers). I want to set it up so that if my user clicks on
the order number, a new page is opened showing all the details about the
order and allows them to change the details of the order. I've tried a
javascript window.open but it give me another portal home page, not the
jsp I want. Can anyone point me to an example of how to accomplish this
task. I've tried Goggling for information or examples of how to do
this, but apparently I'm not using the correct terminology because I'm
not finding much to be useful.
Steven
Re: opening a new window or changing tabs
Posted by David Sean Taylor <d....@onehippo.com>.
On Feb 26, 2009, at 6:38 AM, Ashwill, Steve (Facilities & Services)
wrote:
> I have a jetspeed 2.1.3 portal page(tomcat) which contains summary
> data.
> (Sales order headers). I want to set it up so that if my user
> clicks on
> the order number, a new page is opened showing all the details about
> the
> order and allows them to change the details of the order. I've
> tried a
> javascript window.open but it give me another portal home page, not
> the
> jsp I want. Can anyone point me to an example of how to accomplish
> this
> task. I've tried Goggling for information or examples of how to do
> this, but apparently I'm not using the correct terminology because I'm
> not finding much to be useful.
>
Sounds like you want to show your detail page in a popup via a
portlet. You should always create links using the portlet api tag
libraries or equivalent.
Say you wanted to go back to the same portlet, but switch into
maximize mode for entering order details. And you wanted to pass the
order # in
Here is some JSP...
<portlet:renderURL windowState="maximize" portletMode="view"
var="orderLink">
<portlet:param name="orderNumber" value="<%=orderNumber%>"/>
</portlet:renderURL>
<a target="_blank" href="<c:out value="${orderLink}" />"><%=orderName
%></a>
or a javascript function
<script>
function openWindow(url)
{
var vWin = window.open(url, 'Title',
'status=no,resizable=yes,width=200,height=300,scrollbars=yes');
vWin.opener = self;
vWin.focus();
}
</script>
If you don't want to display the decorators, then you can use print
solo mode. Not so easy to configure, you will need in your portlet.xml:
<custom-portlet-mode>
<description>a Custom Print Mode</description>
<portlet-mode>print</portlet-mode>
</custom-portlet-mode>
<custom-window-state>
<!-- the custom "popup" window state is mapped to the
Jetspeed-2 solo" window state in jetspeed-portlet.xml -->
<description>a Custom Popup State</description>
<window-state>popup</window-state>
</custom-window-state>
and also support print mode for your specific portlet:
<!-- support custom print mode -->
<portlet-mode>print</portlet-mode>
Then you can have your portlet go to print mode in a popup:
<portlet:renderURL portletMode="print" var="orderLink">
<portlet:param name="orderNumber" value="<%=orderNumber%>"/>
</portlet:renderURL>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: AW: opening a new window or changing tabs
Posted by David Sean Taylor <d....@onehippo.com>.
dtaylor@onehippo.com www.onehippo.com
San Francisco - Hippo USA Inc. 101 H Street, Suite Q Petaluma CA 94952
+1 (877) 41-HIPPO
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
On Feb 26, 2009, at 8:22 AM, David Psiuk wrote:
> hello, I guess this doesn't work. I also tried it on Jetspeed 1 and
> Jetspeed
> 2 and didn't get it done.
>
> Look here, my question from 2007 and answer from David Sean Taylor
> from
> Bluesunrise:
>
>> Hello list,
>>
>> maybe someone can help me with the following problem on jetspeed-1
>> such as
>> navigation in admin-content, please:
>>
>> there are 3 tab panes "content", "security", "admin".
>>
>> Now, I navigate with browser window 1 within pane "security". Then,
>> I open
>> pane "admin" in a new browser window 2 and navigate within that pane.
>>
>> After I return to browser window 1 with pane "security" within and
>> click on
>> anything in it, I'll be automatically forwarded to the content that
>> is
>> opened at browser window 2.
>>
>> How can I avoid that behaviour? I want my browser windows to navigate
>> through the portlets and panes independent from each other.
>>
>> Someone hat a hint, please?
>>
> I can tell you that Jetspeed-1 stores its navigational state in the
> session
> So if you are using the same browser (even with different windows or
> tabs) you will have these kind of problems
> You may want to try turning off cookies and try URL rewriting
>
This is different. I am telling you that the nav state is stored in
the session in Jetspeed-1, so using tabs is going to share state
across tabs because tabs are all in the same session
AW: opening a new window or changing tabs
Posted by David Psiuk <ap...@salesfactory.org>.
hello, I guess this doesn't work. I also tried it on Jetspeed 1 and Jetspeed
2 and didn't get it done.
Look here, my question from 2007 and answer from David Sean Taylor from
Bluesunrise:
> Hello list,
>
> maybe someone can help me with the following problem on jetspeed-1
> such as
> navigation in admin-content, please:
>
> there are 3 tab panes "content", "security", "admin".
>
> Now, I navigate with browser window 1 within pane "security". Then,
> I open
> pane "admin" in a new browser window 2 and navigate within that pane.
>
> After I return to browser window 1 with pane "security" within and
> click on
> anything in it, I'll be automatically forwarded to the content that is
> opened at browser window 2.
>
> How can I avoid that behaviour? I want my browser windows to navigate
> through the portlets and panes independent from each other.
>
> Someone hat a hint, please?
>
I can tell you that Jetspeed-1 stores its navigational state in the
session
So if you are using the same browser (even with different windows or
tabs) you will have these kind of problems
You may want to try turning off cookies and try URL rewriting
> -----Ursprüngliche Nachricht-----
> Von: Ashwill, Steve (Facilities & Services)
> [mailto:sashwill@uiuc.edu]
> Gesendet: Donnerstag, 26. Februar 2009 15:39
> An: jetspeed-user@portals.apache.org
> Betreff: opening a new window or changing tabs
>
> I have a jetspeed 2.1.3 portal page(tomcat) which contains
> summary data.
> (Sales order headers). I want to set it up so that if my
> user clicks on
> the order number, a new page is opened showing all the
> details about the
> order and allows them to change the details of the order.
> I've tried a
> javascript window.open but it give me another portal home
> page, not the
> jsp I want. Can anyone point me to an example of how to
> accomplish this
> task. I've tried Goggling for information or examples of how to do
> this, but apparently I'm not using the correct terminology because I'm
> not finding much to be useful.
>
>
>
> Steven
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org