Why not create a simple control which adds the hidden field and JS and drop
it into each form. For the first form you can drop the control into the
logon page or use a redirect.

  _____  

From: Adrian Mitev [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 17, 2006 4:18 PM
To: MyFaces Discussion
Subject: Re: Get browsers resolution


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 <[EMAIL PROTECTED]>: 

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:[EMAIL PROTECTED] 
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 < [EMAIL PROTECTED]>: 

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 <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > 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?
>




Reply via email to