myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Mitev" <adrian.mi...@googlemail.com>
Subject Re: Get browsers resolution
Date Fri, 17 Nov 2006 21:17:34 GMT
So i need to to recursively to find all forms and add them hidden field and
javascript? And how i get this info when the user session is created so the
first opened page could be rendered according to this info?

2006/11/17, Julian Ray <julianjray@yahoo.com>:
>
>  We use a filter which examines the request and creates a bean detailing
> the client's capabilities and other info which is then pushed into the
> session. Hidden JS-driven form fields in the form capture any aspect we wish
> to track while the rest of the info comes from the headers. Our backing
> beans are all "capability-aware" as their base class gets the capability
> bean from the session using the FacesContext.
>
>  ------------------------------
> *From:* Adrian Mitev [mailto:adrian.mitev@googlemail.com]
> *Sent:* Friday, November 17, 2006 5:46 AM
> *To:* MyFaces Discussion
> *Subject:* Re: Get browsers resolution
>
> My question is not how to get it via java script. My questions it how to
> send it to the server - add hidden component on each form or something like
> that...
>
> 2006/11/16, Andrew Robinson < andrew.rw.robinson@gmail.com>:
> >
> > Are you looking for the viewable space inside the browser (the pixel
> > dimensions of the actual page) or are you looking for the outer width
> > of the window, or the user's screen resolution?
> >
> > On 11/16/06, Adrian Mitev <adrian.mitev@googlemail.com > wrote:
> > > Hi all! I need to get browser's width and heigth and by this size i'll
> > > include different stylesheets. Any suggestions how to do it?
> > >
> >
>
>

Mime
View raw message