Results 1 to 3 of 3

Thread: Dynamically update <portlet:renderURL> using Javascript

  1. #1
    Join Date
    Mar 2008
    Posts
    16

    Default Dynamically update <portlet:renderURL> using Javascript

    Hi,
    I'm using WebSphere Portal 6.1 / Spring MVC 2.5.1

    I have a render url created using:

    <portlet:renderURL windowState="normal" var="secondRenderUrl">
    <portlet: param name="action" value="second" />
    <portlet: param name="id" value="12345" />
    </portlet:renderURL>

    Then I use this in a link like so:

    <a href="${secondRenderUrl}">second</a>

    Can I add another parameter to the url using javascript?

    Does anyone understand how the URLs are encoded?

    I assume I would have to decode, add param and encode.

    Maybe there's a better way to do it?

    Any advice appreciated...

    Thanks.

  2. #2
    Join Date
    Oct 2006
    Posts
    228

    Default

    Portlet URLs are created on the server side using a portal specific encoding scheme. So in short, No you cannot update these using javascript in any standard way.

    What is your usecase?

  3. #3
    Join Date
    Jun 2012
    Posts
    5

    Default

    I have the same issue.

    Does anyone know now a alternative way to set the url parameters dynamically?

    regards
    Alex

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •