Re: AW: adjust my web application for smartphone like iPhone

2011-12-28 Thread mili
Thank you very much for yours helps. I wish all you happy new year!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/adjust-my-web-application-for-smartphone-like-iPhone-tp4235060p4240802.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: adjust my web application for smartphone like iPhone

2011-12-27 Thread David Legg

Both excellent suggestions - thanks!

The thought had struck me that this problem is similar to localisation.  
Perhaps I could extend certain components to accept a style as well as a 
locale where necessary.


David Legg



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: adjust my web application for smartphone like iPhone

2011-12-27 Thread Serban Balamaci
Hi,
The way I do this is to use the style attribute in the wicket session.
Wicket's default ResourceStreamLocator looks for files with the pattern
filename_style_locale.html and falls back to filename.html

So I have a RequestCycleListener that decides based on headers what type of
a request it is, and sets the style on the session, say for ex. mobile. 
Wicket in turn serves pages TemplatePage_mobile.html if it finds it,
otherwise it falls back to TemplatePage.html
So I can contribute the mobile.css and have a complete custom mobile view of
the page in a customized _mobile.html if I need to, otherwise the same
version used for desktop is being served.

-
http://balamaci.wordpress.com 
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/adjust-my-web-application-for-smartphone-like-iPhone-tp4235060p4236699.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: adjust my web application for smartphone like iPhone

2011-12-26 Thread David Legg
Using css media queries is not necessarily the correct answer for 
responses to smartphone requests.  Media queries form part of the 
toolkit which comes under the banner of 'Responsive Web'.  The problem 
with media queries on their own is that you may ask a smartphone to 
download a large image and hence incur an expensive phone bill only to 
let the smartphone shrink the downloaded image to fit on the screen.  It 
would have been better to download a smaller image in the first place.


I believe what is needed is something that analyses the browser request 
as it enters the server and different page designs generated according 
to the actual browser device dimensions.


Actually, this very question has been on my mind for a little while and 
I'm glad someone else (Mili) has asked first!


The last time I looked into this the best way of detecting the 
capabilities of the browser  was WURFL: -


  http://wurfl.sourceforge.net/

And to learn a bit more about why media queries are not necessarily the 
best answer: -


  
http://www.delicious.com/redirect?url=http%3A//www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/


Regards,
David Legg


On 26/12/2011 22:33, Stefan Lindner wrote:

This is a css case. Just query the web for css media query and you will find 
lots of examples for resolution dependant css styling.

-Ursprüngliche Nachricht-
Von: mili [mailto:mili...@yahoo.de]
Gesendet: Montag, 26. Dezember 2011 17:33
An: users@wicket.apache.org
Betreff: adjust my web application for smartphone like iPhone

I want to adjust my web application for smartphones. have wicket a function, 
who the app can ajust automatically the size of the content.

Thank you for your Help!


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: adjust my web application for smartphone like iPhone

2011-12-26 Thread Jeff Schneller
There was a posting about this about a year ago in regards to Walmart's mobile 
site.  I believe the best way to handle this is use the idea of localization. 
Basically create localized versions of your pages using the wicket built in 
tools. Instead of basing localization off of country/language use the browser 
type and device type. There are examples to do localization in wicketstuff 
examples. 


On Dec 26, 2011, at 7:32 PM, David Legg david.l...@searchevent.co.uk wrote:

 Using css media queries is not necessarily the correct answer for responses 
 to smartphone requests.  Media queries form part of the toolkit which comes 
 under the banner of 'Responsive Web'.  The problem with media queries on 
 their own is that you may ask a smartphone to download a large image and 
 hence incur an expensive phone bill only to let the smartphone shrink the 
 downloaded image to fit on the screen.  It would have been better to download 
 a smaller image in the first place.
 
 I believe what is needed is something that analyses the browser request as it 
 enters the server and different page designs generated according to the 
 actual browser device dimensions.
 
 Actually, this very question has been on my mind for a little while and I'm 
 glad someone else (Mili) has asked first!
 
 The last time I looked into this the best way of detecting the capabilities 
 of the browser  was WURFL: -
 
  http://wurfl.sourceforge.net/
 
 And to learn a bit more about why media queries are not necessarily the best 
 answer: -
 
  
 http://www.delicious.com/redirect?url=http%3A//www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/
 
 Regards,
 David Legg
 
 
 On 26/12/2011 22:33, Stefan Lindner wrote:
 This is a css case. Just query the web for css media query and you will 
 find lots of examples for resolution dependant css styling.
 
 -Ursprüngliche Nachricht-
 Von: mili [mailto:mili...@yahoo.de]
 Gesendet: Montag, 26. Dezember 2011 17:33
 An: users@wicket.apache.org
 Betreff: adjust my web application for smartphone like iPhone
 
 I want to adjust my web application for smartphones. have wicket a function, 
 who the app can ajust automatically the size of the content.
 
 Thank you for your Help!
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org