This content has been marked as final.
Show 4 replies
-
1. Re: How to get portlet name or name space id using java scr
nbelaevski Mar 26, 2009 8:00 AM (in response to tpnaidu)Hello,
Call javax.faces.context.ExternalContext.encodeNamespace(String) with an empty string argument. -
2. Re: How to get portlet name or name space id using java scr
tpnaidu Mar 26, 2009 8:22 AM (in response to tpnaidu)I did not get you,
Can you please send me code snippet that how can we call
javax.faces.context.ExternalContext.encodeNamespace(String) with an empty string argument in javascript in xhtml. -
3. Re: How to get portlet name or name space id using java scr
nbelaevski Mar 26, 2009 8:50 AM (in response to tpnaidu)It's easy:
public String getNamespace() {
return externalContext.encodeNamespace("");
}
and then refer this as #{bean.namespace} -
4. Re: How to get portlet name or name space id using java scr
tpnaidu Mar 30, 2009 2:21 AM (in response to tpnaidu)Thank you very much .. It is working fine now.