aspose file tools
The moose likes Portals and Portlets and the fly likes portelt namespace encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "portelt namespace encoding" Watch "portelt namespace encoding" New topic
Author

portelt namespace encoding

geeta lalchandani
Ranch Hand

Joined: Jun 07, 2005
Posts: 118
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??
Pallavi Roy
Ranch Hand

Joined: Jun 01, 2006
Posts: 37
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


Break the ice - SCJP 1.4,<br />Where There's a will- SCWCD 1.4.<br />Back in action - Websphere Certified Portal 6 Application Developer
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

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


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: portelt namespace encoding
 
Similar Threads
Document/literal messaging
Encoding style
encodingStyle attribute value
About creating string from Base64 encoded byte array and then invoking getBytes...
UTF encoding