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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to