You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Josh Kamau <jo...@gmail.com> on 2010/08/10 09:10:11 UTC

reusing clientside code for desktop and mobile screens.

Hello team;

I am creating an application that will be accessible via desktop and via the
mobile devices. I understand i can have the same java code and different
html templates for mobile and desktop. My question is how to i do this. How
do i make separate templates that will be used when the device is mobile and
not a desktop? Or should i compile separate war files one with each set of
templates.

I hope my question is clear enough.

Kind regards
Josh.

Re: reusing clientside code for desktop and mobile screens.

Posted by Josh Kamau <jo...@gmail.com>.
Thanks Jeremy. Just what i was looking for.

On Tue, Aug 10, 2010 at 8:01 PM, Jeremy Thomerson <jeremy@wickettraining.com
> wrote:

> Session.setStyle("mobile")
>
> On Tue, Aug 10, 2010 at 8:55 AM, Josh Kamau <jo...@gmail.com> wrote:
>
> > Thanks Jeremy.
> > Am just wondering, how will the application know which template to pick?
> >
> > regards
> > Joshua
> >
> > On Tue, Aug 10, 2010 at 4:15 PM, Jeremy Thomerson <
> > jeremy@wickettraining.com
> > > wrote:
> >
> > > Use Wicket's style for the templates and you'll have two sets of html
> > > files,
> > > like foopage.html and foopage_mobile.html.
> > >
> > > Jeremy Thomerson
> > > http://wickettraining.com
> > > -- sent from my "smart" phone, so please excuse spelling, formatting,
> or
> > > compiler errors
> > >
> > > On Aug 10, 2010 2:10 AM, "Josh Kamau" <jo...@gmail.com> wrote:
> > >
> > > Hello team;
> > >
> > > I am creating an application that will be accessible via desktop and
> via
> > > the
> > > mobile devices. I understand i can have the same java code and
> different
> > > html templates for mobile and desktop. My question is how to i do this.
> > How
> > > do i make separate templates that will be used when the device is
> mobile
> > > and
> > > not a desktop? Or should i compile separate war files one with each set
> > of
> > > templates.
> > >
> > > I hope my question is clear enough.
> > >
> > > Kind regards
> > > Josh.
> > >
> >
>
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>

Re: reusing clientside code for desktop and mobile screens.

Posted by Jeremy Thomerson <je...@wickettraining.com>.
Session.setStyle("mobile")

On Tue, Aug 10, 2010 at 8:55 AM, Josh Kamau <jo...@gmail.com> wrote:

> Thanks Jeremy.
> Am just wondering, how will the application know which template to pick?
>
> regards
> Joshua
>
> On Tue, Aug 10, 2010 at 4:15 PM, Jeremy Thomerson <
> jeremy@wickettraining.com
> > wrote:
>
> > Use Wicket's style for the templates and you'll have two sets of html
> > files,
> > like foopage.html and foopage_mobile.html.
> >
> > Jeremy Thomerson
> > http://wickettraining.com
> > -- sent from my "smart" phone, so please excuse spelling, formatting, or
> > compiler errors
> >
> > On Aug 10, 2010 2:10 AM, "Josh Kamau" <jo...@gmail.com> wrote:
> >
> > Hello team;
> >
> > I am creating an application that will be accessible via desktop and via
> > the
> > mobile devices. I understand i can have the same java code and different
> > html templates for mobile and desktop. My question is how to i do this.
> How
> > do i make separate templates that will be used when the device is mobile
> > and
> > not a desktop? Or should i compile separate war files one with each set
> of
> > templates.
> >
> > I hope my question is clear enough.
> >
> > Kind regards
> > Josh.
> >
>



-- 
Jeremy Thomerson
http://www.wickettraining.com

Re: reusing clientside code for desktop and mobile screens.

Posted by Josh Kamau <jo...@gmail.com>.
Thanks Jeremy.
Am just wondering, how will the application know which template to pick?

regards
Joshua

On Tue, Aug 10, 2010 at 4:15 PM, Jeremy Thomerson <jeremy@wickettraining.com
> wrote:

> Use Wicket's style for the templates and you'll have two sets of html
> files,
> like foopage.html and foopage_mobile.html.
>
> Jeremy Thomerson
> http://wickettraining.com
> -- sent from my "smart" phone, so please excuse spelling, formatting, or
> compiler errors
>
> On Aug 10, 2010 2:10 AM, "Josh Kamau" <jo...@gmail.com> wrote:
>
> Hello team;
>
> I am creating an application that will be accessible via desktop and via
> the
> mobile devices. I understand i can have the same java code and different
> html templates for mobile and desktop. My question is how to i do this. How
> do i make separate templates that will be used when the device is mobile
> and
> not a desktop? Or should i compile separate war files one with each set of
> templates.
>
> I hope my question is clear enough.
>
> Kind regards
> Josh.
>

Re: reusing clientside code for desktop and mobile screens.

Posted by Jeremy Thomerson <je...@wickettraining.com>.
Use Wicket's style for the templates and you'll have two sets of html files,
like foopage.html and foopage_mobile.html.

Jeremy Thomerson
http://wickettraining.com
-- sent from my "smart" phone, so please excuse spelling, formatting, or
compiler errors

On Aug 10, 2010 2:10 AM, "Josh Kamau" <jo...@gmail.com> wrote:

Hello team;

I am creating an application that will be accessible via desktop and via the
mobile devices. I understand i can have the same java code and different
html templates for mobile and desktop. My question is how to i do this. How
do i make separate templates that will be used when the device is mobile and
not a desktop? Or should i compile separate war files one with each set of
templates.

I hope my question is clear enough.

Kind regards
Josh.