myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Byrne" <den...@dbyrne.net>
Subject Re: We need a good demo application
Date Tue, 07 Feb 2006 05:29:49 GMT
Please ask usage questions on the user mailing list.  Thanks.

Dennis Byrne

>-----Original Message-----
>From: Danner, Russ [mailto:DannerR@csps.com]
>Sent: Tuesday, February 7, 2006 12:27 AM
>To: ''MyFaces Development''
>Subject: RE: We need a good demo application
>
>My understanding is that I can use 
>
>      ExternalContext extCtx =
>FacesContext.getCurrentInstance().getExternalContext().encodeNamespace(...)
>
>As a pluggable way to provide a unique id strategy for components (as long
>as I can create the external context... no problem there).  Certainly this
>works in my faces because this is how unique ID's are generated.  
>
> 
>
>Myfaces:
>
>    public String createUniqueId()
>
>    {
>
>        ExternalContext extCtx =
>FacesContext.getCurrentInstance().getExternalContext();
>
>        return extCtx.encodeNamespace(UNIQUE_ID_PREFIX +
>_uniqueIdCounter++);
>
>    }
>
> 
>
>Am I correct in my assumption? And is this something that can be relied on
>from one faces implementation to another?
>
> 
>
> 
>
>The reason I ask is because I am deploying the same portlet with the same
>context many times in Liferay.  The portlet shows up properly but the ID's
>are all the same so submits and further actions usually result in one
>portlet responding (if anything).
>
> 
>
>Thanks 
>
>-Russ
>
>



Mime
View raw message