This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

portelt namespace encoding

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so far i was in the impression that the portletApi:encodenamespace encodes the parameter, based on the portletid. but this scenario proves that its not only based on the portletid.. but also follows some other logic...

i have a portlet that conditional includes either a.jsp or b.jsp. I have a variable var on both the jsp. the variable is encoded... but then the encoding is different on both of them..

also.. wondering.. how are the variables in the themes encoded??
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Geetu,

I hope this caters to your requirement.
But if i have the following components in my portal page then i use the following to retrieve the id.

view<portlet:namespace/>:" + formID+ ":rowValueId"

Best Regards,
Pallavi
 
author and cow tipper
Posts: 5006
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which portlet id are we talking about? The id in the portlet.xml file, or the internal id of the portal server?

Remember, the same portlet can appear on a page twice. Data encoded by one instance should not be visible to the other instance.

From the JavaDoc:

The encodeURL method may include the session ID and other portal/portlet-container specific information into the URL. If encoding is not needed, it returns the URL unchanged.




So, it looks like the encoding is left up the the vendor. But as long as it works, we shouldn't worry about how it works, should we? All faith must be blind faith.

-Cameron McKenzie
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic