You may also consider adding the following

<link type="text/css" rel="stylesheet" media="only screen and
(max-device-width: 480px)" href="<c:url
value='/styles/myiPhoneStyleSheet.css'/>">

Particularly, on the login screen where you might not have a session
variable set.

P.S. Don't forget to set your viewport details on iPhone, something like the
following
<meta name = "viewport" content = "width = max-width">
<meta name = "viewport" content = "initial-scale = 1.0">



mraible wrote:
> 
> If you look in the decorators/default.jsp, you'll see the logic used
> to select the theme. You should be able to easily change that logic to
> read from a variable you set in the session or request.
> 
> On Fri, Oct 9, 2009 at 7:26 AM, owais <ow...@preceptglobalaccess.com>
> wrote:
>> Is there any way to change theme depending upon the request coming. For
>> example, if my request coming from Iphone safari browser, I want to use
>> different theme (which is more compatible with Iphone screen). Can anyone
>> guide me how to do this ?
>>
>>
>>
>> -Owais
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-regarding-theme-change-tp25818857s2369p25830157.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to