You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mauro2java2011 <ma...@gmail.com> on 2014/03/26 17:36:16 UTC
jsf responsive tutorial
Hi all.
Please do you have links for tutorials for get a web page responsive?
--
View this message in context: http://openejb.979440.n4.nabble.com/jsf-responsive-tutorial-tp4668375.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: jsf responsive tutorial
Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
https://kdp.amazon.com/
:-)
[]
Leo
On Wed, Mar 26, 2014 at 9:35 PM, Howard W. Smith, Jr. <
smithh032772@gmail.com> wrote:
> On Wed, Mar 26, 2014 at 7:58 PM, Leonardo K. Shikida <shikida@gmail.com
> >wrote:
>
> > I also wish we could have such a tutorial...
> >
>
> Maybe someone will be kind enough to write/do a blog about this... some
> day. :)
>
>
> >
> > In general, I think you can make your jsf app be responsive if you keep
> as
> > little data in the presentation layer as possible.
> >
>
> i think a responsive web design solution will consider the device and
> browser, and 'respond' with a view that looks good in a browser on
> any/every device. For example, when I open a [JSF] page in a browser on
> mobile phone or tablet, I should 'not' have to zoom-in or zoom-out, but the
> page will be rendered appropriately on/per device.
>
> So, responsive != 'little data in presentation layer'.
>
> it is 'always' best to render as little data as possible in/on any device
> (mobile phone, tablet, laptop, desktop, etc...). why render 1,000s of rows
> of data on a page that is displayed on a laptop/desktop and force your
> users to continuously scroll up and down the page to view/modify the data?
>
> of course, on a mobile device, your HTTP response should be as small as
> possible, just in case the mobile device does not have a fast [internet]
> connection.
>
> when someone else asked this question in the primefaces forum, someone
> responded with twitter bootstrap. i looked at some of the demos [briefly],
> and bootstrap gave me the impression that pages 'can' look good on a mobile
> device without zooming in/out, and page can primarily be a page of any
> length, but fits/renders well on the mobile device without zooming in/out.
>
> since i have been a primefaces mobile user, i was not really impressed with
> twitter bootstrap. if you are good with html, css, javascript, jquery,
> etc..., then go for twitter bootstrap (or jquery mobile). if you want
> primefaces tags and less html/css, then go for primefaces mobile.
>
>
> >
> > This means some tricks like lazy loading, paging table data in database
> > [1], using autocomplete instead of lengthy select boxes, etc.
> >
>
> autocomplete on a mobile device can be tricky.
>
> i don't think anybody should have lengthy select boxes...even on
> desktop/laptops.
>
>
> >
> > I´ve started working with JSF using richfaces 2-3 years ago and now I am
> a
> > primefaces big fan. Both are OK, but I think primefaces has some very
> > interesting features.
> >
>
> +1
>
> PrimeFaces blog[1]
> PrimeFaces Mobile Reloaded[2] (briefly mentions responsive design)
> PrimeFaces showcase[3]
> PrimeFaces Labs showcase[4]
> jquery Mobile - Responsive Web Design[5]
>
>
> [1] http://blog.primefaces.org/
> [2] http://blog.primefaces.org/?p=3063
> [3] www.primefaces.org/showcase/ui/home.jsf
> [4] http://www.primefaces.org/showcase-labs/ui/home.jsf
> [5] http://demos.jquerymobile.com/1.4.2/rwd/
>
Re: jsf responsive tutorial
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Thu, Mar 27, 2014 at 2:22 AM, mauro2java2011 <ma...@gmail.com>wrote:
> hi howard .
>
Mauro,
> but if you use primefaces mobile you have to deploy 2 version
> different of web application ?
>
Currently, my app is not using PrimeFaces Mobile, since it stopped working
in my app when PrimeFaces 4.0 was developed/released. I am waiting for
PrimeFaces 5.0 Mobile.
Did you see this URL, below, in my previous response, and read that entire
blog post?
http://blog.primefaces.org/?p=3063
> a for desktop version
> a for mobile version
>
> and how you detect the device and user agent for forward at specific
> version of web jsf application ( desktop or mobile version) ?
>
searching google for
site:forum.primefaces.org mobile device
site:forum.primefaces.org mobile desktop
I found the following:
Mobile Device
http://forum.primefaces.org/viewtopic.php?f=8&t=19887
Desktop/mobile application problem
http://forum.primefaces.org/viewtopic.php?f=8&t=35657
read those [entire] forum topics
Re: jsf responsive tutorial
Posted by mauro2java2011 <ma...@gmail.com>.
hi howard . but if you use primefaces mobile you have to deploy 2 version
different of web application ?
a for desktop version
a for mobile version
and how you detect the device and user agent for forward at specific
version of web jsf application ( desktop or mobile version) ?
Il giorno 27/mar/2014 02.05, "smithh032772 [via OpenEJB]" <
ml-node+s979440n4668397h82@n4.nabble.com> ha scritto:
> On Wed, Mar 26, 2014 at 8:35 PM, Howard W. Smith, Jr. <
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4668397&i=0>>
> wrote:
>
> >
> > On Wed, Mar 26, 2014 at 7:58 PM, Leonardo K. Shikida <[hidden email]<http://user/SendEmail.jtp?type=node&node=4668397&i=1>>wrote:
>
> >
> >> I also wish we could have such a tutorial...
> >>
> >
> > Maybe someone will be kind enough to write/do a blog about this... some
> > day. :)
> >
> >
> >>
> >> In general, I think you can make your jsf app be responsive if you keep
> as
> >> little data in the presentation layer as possible.
> >>
> >
> > i think a responsive web design solution will consider the device and
> > browser, and 'respond' with a view that looks good in a browser on
> > any/every device. For example, when I open a [JSF] page in a browser on
> > mobile phone or tablet, I should 'not' have to zoom-in or zoom-out, but
> the
> > page will be rendered appropriately on/per device.
> >
> > So, responsive != 'little data in presentation layer'.
> >
> > it is 'always' best to render as little data as possible in/on any
> device
> > (mobile phone, tablet, laptop, desktop, etc...). why render 1,000s of
> rows
> > of data on a page that is displayed on a laptop/desktop and force your
> > users to continuously scroll up and down the page to view/modify the
> data?
> >
> > of course, on a mobile device, your HTTP response should be as small as
> > possible, just in case the mobile device does not have a fast [internet]
> > connection.
> >
> > when someone else asked this question in the primefaces forum, someone
> > responded with twitter bootstrap. i looked at some of the demos
> [briefly],
> > and bootstrap gave me the impression that pages 'can' look good on a
> mobile
> > device without zooming in/out, and page can primarily be a page of any
> > length, but fits/renders well on the mobile device without zooming
> in/out.
> >
> > since i have been a primefaces mobile user, i was not really impressed
> > with twitter bootstrap. if you are good with html, css, javascript,
> jquery,
> > etc..., then go for twitter bootstrap (or jquery mobile). if you want
> > primefaces tags and less html/css, then go for primefaces mobile.
> >
> >
> >>
> >> This means some tricks like lazy loading, paging table data in database
> >> [1], using autocomplete instead of lengthy select boxes, etc.
> >>
> >
> > autocomplete on a mobile device can be tricky.
> >
> > i don't think anybody should have lengthy select boxes...even on
> > desktop/laptops.
> >
> >
> >>
> >> I´ve started working with JSF using richfaces 2-3 years ago and now I
> am a
> >> primefaces big fan. Both are OK, but I think primefaces has some very
> >> interesting features.
> >>
> >
> > +1
> >
> > PrimeFaces blog[1]
> > PrimeFaces Mobile Reloaded[2] (briefly mentions responsive design)
> > PrimeFaces showcase[3]
> > PrimeFaces Labs showcase[4]
> > jquery Mobile - Responsive Web Design[5]
> >
> >
> And with all that said, I use an open source library to examine useragent
> when user login to the web app, and render JSF content for mobile or
> nonmobile devices. it is not 'true' responsive web design, because
> endusers
> still have to zoom in/out on their mobile devices. I am hoping to use
> PrimeFaces Mobile, jquery mobile, and/or [twitter] bootstrap for true
> responsive web design. :)
>
>
> >
> > [1] http://blog.primefaces.org/
> > [2] http://blog.primefaces.org/?p=3063
> > [3] www.primefaces.org/showcase/ui/home.jsf
> > [4] http://www.primefaces.org/showcase-labs/ui/home.jsf
> > [5] http://demos.jquerymobile.com/1.4.2/rwd/
> >
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://openejb.979440.n4.nabble.com/jsf-responsive-tutorial-tp4668375p4668397.html
> To unsubscribe from jsf responsive tutorial, click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4668375&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2NjgzNzV8LTExMTcxODc2MjU=>
> .
> NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://openejb.979440.n4.nabble.com/jsf-responsive-tutorial-tp4668375p4668401.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: jsf responsive tutorial
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Wed, Mar 26, 2014 at 8:35 PM, Howard W. Smith, Jr. <
smithh032772@gmail.com> wrote:
>
> On Wed, Mar 26, 2014 at 7:58 PM, Leonardo K. Shikida <sh...@gmail.com>wrote:
>
>> I also wish we could have such a tutorial...
>>
>
> Maybe someone will be kind enough to write/do a blog about this... some
> day. :)
>
>
>>
>> In general, I think you can make your jsf app be responsive if you keep as
>> little data in the presentation layer as possible.
>>
>
> i think a responsive web design solution will consider the device and
> browser, and 'respond' with a view that looks good in a browser on
> any/every device. For example, when I open a [JSF] page in a browser on
> mobile phone or tablet, I should 'not' have to zoom-in or zoom-out, but the
> page will be rendered appropriately on/per device.
>
> So, responsive != 'little data in presentation layer'.
>
> it is 'always' best to render as little data as possible in/on any device
> (mobile phone, tablet, laptop, desktop, etc...). why render 1,000s of rows
> of data on a page that is displayed on a laptop/desktop and force your
> users to continuously scroll up and down the page to view/modify the data?
>
> of course, on a mobile device, your HTTP response should be as small as
> possible, just in case the mobile device does not have a fast [internet]
> connection.
>
> when someone else asked this question in the primefaces forum, someone
> responded with twitter bootstrap. i looked at some of the demos [briefly],
> and bootstrap gave me the impression that pages 'can' look good on a mobile
> device without zooming in/out, and page can primarily be a page of any
> length, but fits/renders well on the mobile device without zooming in/out.
>
> since i have been a primefaces mobile user, i was not really impressed
> with twitter bootstrap. if you are good with html, css, javascript, jquery,
> etc..., then go for twitter bootstrap (or jquery mobile). if you want
> primefaces tags and less html/css, then go for primefaces mobile.
>
>
>>
>> This means some tricks like lazy loading, paging table data in database
>> [1], using autocomplete instead of lengthy select boxes, etc.
>>
>
> autocomplete on a mobile device can be tricky.
>
> i don't think anybody should have lengthy select boxes...even on
> desktop/laptops.
>
>
>>
>> I´ve started working with JSF using richfaces 2-3 years ago and now I am a
>> primefaces big fan. Both are OK, but I think primefaces has some very
>> interesting features.
>>
>
> +1
>
> PrimeFaces blog[1]
> PrimeFaces Mobile Reloaded[2] (briefly mentions responsive design)
> PrimeFaces showcase[3]
> PrimeFaces Labs showcase[4]
> jquery Mobile - Responsive Web Design[5]
>
>
And with all that said, I use an open source library to examine useragent
when user login to the web app, and render JSF content for mobile or
nonmobile devices. it is not 'true' responsive web design, because endusers
still have to zoom in/out on their mobile devices. I am hoping to use
PrimeFaces Mobile, jquery mobile, and/or [twitter] bootstrap for true
responsive web design. :)
>
> [1] http://blog.primefaces.org/
> [2] http://blog.primefaces.org/?p=3063
> [3] www.primefaces.org/showcase/ui/home.jsf
> [4] http://www.primefaces.org/showcase-labs/ui/home.jsf
> [5] http://demos.jquerymobile.com/1.4.2/rwd/
>
>
Re: jsf responsive tutorial
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Wed, Mar 26, 2014 at 7:58 PM, Leonardo K. Shikida <sh...@gmail.com>wrote:
> I also wish we could have such a tutorial...
>
Maybe someone will be kind enough to write/do a blog about this... some
day. :)
>
> In general, I think you can make your jsf app be responsive if you keep as
> little data in the presentation layer as possible.
>
i think a responsive web design solution will consider the device and
browser, and 'respond' with a view that looks good in a browser on
any/every device. For example, when I open a [JSF] page in a browser on
mobile phone or tablet, I should 'not' have to zoom-in or zoom-out, but the
page will be rendered appropriately on/per device.
So, responsive != 'little data in presentation layer'.
it is 'always' best to render as little data as possible in/on any device
(mobile phone, tablet, laptop, desktop, etc...). why render 1,000s of rows
of data on a page that is displayed on a laptop/desktop and force your
users to continuously scroll up and down the page to view/modify the data?
of course, on a mobile device, your HTTP response should be as small as
possible, just in case the mobile device does not have a fast [internet]
connection.
when someone else asked this question in the primefaces forum, someone
responded with twitter bootstrap. i looked at some of the demos [briefly],
and bootstrap gave me the impression that pages 'can' look good on a mobile
device without zooming in/out, and page can primarily be a page of any
length, but fits/renders well on the mobile device without zooming in/out.
since i have been a primefaces mobile user, i was not really impressed with
twitter bootstrap. if you are good with html, css, javascript, jquery,
etc..., then go for twitter bootstrap (or jquery mobile). if you want
primefaces tags and less html/css, then go for primefaces mobile.
>
> This means some tricks like lazy loading, paging table data in database
> [1], using autocomplete instead of lengthy select boxes, etc.
>
autocomplete on a mobile device can be tricky.
i don't think anybody should have lengthy select boxes...even on
desktop/laptops.
>
> I´ve started working with JSF using richfaces 2-3 years ago and now I am a
> primefaces big fan. Both are OK, but I think primefaces has some very
> interesting features.
>
+1
PrimeFaces blog[1]
PrimeFaces Mobile Reloaded[2] (briefly mentions responsive design)
PrimeFaces showcase[3]
PrimeFaces Labs showcase[4]
jquery Mobile - Responsive Web Design[5]
[1] http://blog.primefaces.org/
[2] http://blog.primefaces.org/?p=3063
[3] www.primefaces.org/showcase/ui/home.jsf
[4] http://www.primefaces.org/showcase-labs/ui/home.jsf
[5] http://demos.jquerymobile.com/1.4.2/rwd/
Re: jsf responsive tutorial
Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
I also wish we could have such a tutorial...
In general, I think you can make your jsf app be responsive if you keep as
little data in the presentation layer as possible.
This means some tricks like lazy loading, paging table data in database
[1], using autocomplete instead of lengthy select boxes, etc.
I´ve started working with JSF using richfaces 2-3 years ago and now I am a
primefaces big fan. Both are OK, but I think primefaces has some very
interesting features.
[]
Leo
[1]
http://www.javacodegeeks.com/2014/01/primefaces-datatable-lazy-loading-with-pagination-filtering-and-sorting-using-jpa-criteria-viewscoped.html
On Wed, Mar 26, 2014 at 7:11 PM, Romain Manni-Bucau
<rm...@gmail.com>wrote:
> Maybe look primefaces showcase too
> Le 26 mars 2014 23:07, "Anthony Fryer" <ap...@hotmail.com> a écrit :
>
> > Responsive web design is not really in the realm of TomEE since it's
> > related
> > to css and javascript. A very popular library for doing responsive web
> > pages is twitter bootstrap (http://getbootstrap.com/). You can use
> > twitter
> > bootstrap in your jsf facelets, which is what i do on some projects.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/jsf-responsive-tutorial-tp4668375p4668382.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>
Re: jsf responsive tutorial
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Maybe look primefaces showcase too
Le 26 mars 2014 23:07, "Anthony Fryer" <ap...@hotmail.com> a écrit :
> Responsive web design is not really in the realm of TomEE since it's
> related
> to css and javascript. A very popular library for doing responsive web
> pages is twitter bootstrap (http://getbootstrap.com/). You can use
> twitter
> bootstrap in your jsf facelets, which is what i do on some projects.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/jsf-responsive-tutorial-tp4668375p4668382.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: jsf responsive tutorial
Posted by Anthony Fryer <ap...@hotmail.com>.
Responsive web design is not really in the realm of TomEE since it's related
to css and javascript. A very popular library for doing responsive web
pages is twitter bootstrap (http://getbootstrap.com/). You can use twitter
bootstrap in your jsf facelets, which is what i do on some projects.
--
View this message in context: http://openejb.979440.n4.nabble.com/jsf-responsive-tutorial-tp4668375p4668382.html
Sent from the OpenEJB User mailing list archive at Nabble.com.