0 Replies Latest reply on Nov 12, 2008 1:15 PM by nejc kikelj

    Finding out remoteAddr in custom SeamListener

    nejc kikelj Newbie

      Is there any chance I could get remoteAddr in Custom SeamListener in Seam 2.1.0??


      In Seam 2.0 I coud use:


      ServletContexts.instance().getRequest().getRemoteAddr();



      or            


      ((ServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getRemoteAddr();





      Now in Seam 2.1 it doesn't work any more... (Cannot get instance of a Context).


      Thanks in advance,
      Nejck