You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Warren Bell <wa...@clarksnutrition.com> on 2013/12/23 23:07:46 UTC
Wicket serving AngularJS app
I am using Wicket 6 to manage an AngularJS app. Currently I am just letting Tomcat serve the AngularJS client i.e. index.html and using Wicket for authentication, authorization and REST. But I would like to use Wicket to serve up the client so that I can manage css and js resources and set an initial cookie. What would be the best way to do this ?
I was thinking of just making the index.html file a wicket page with no components or should I use a WebExternalResourceRequestHandler or something similar ?
Thanks,
Warren
--
This email was Virus checked by Clark's Nutrition's Astaro Security Gateway.
<div style='font-size:11.0pt;font-family:"Tahoma"'>The information contained in this e-mail is intended only for use of
the individual or entity named above. This e-mail, and any documents,
files, previous e-mails or other information attached to it, may contain
confidential information that is legally privileged. If you are not the
intended recipient of this e-mail, or the employee or agent responsible
for delivering it to the intended recipient, you are hereby notified
that any disclosure, dissemination, distribution, copying or other use
of this e-mail or any of the information contained in or attached to it
is strictly prohibited. If you have received this e-mail in error,
please immediately notify us by return e-mail or by telephone at
(951)321-1960, and destroy the original e-mail and its attachments
without reading or saving it in any manner. Thank you.</div>
<div align="center" style='font-size:12.0pt;font-family:"Tahoma","sans-serif"'><strong>Clark’s Nutrition is a registered trademark of Clarks Nutritional Centers, Inc.</strong></div>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket serving AngularJS app
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
I see two options:
1) use Wicket Page instead of index.html so Wicket can contribute JS/CSS
resources to the header
2) use AngularJs functionalities to do this.
This approach may lead to page rerendering/reflow (UI flickering) because
Angular can do this after the initial page load
Martin Grigorov
Wicket Training and Consulting
On Tue, Dec 24, 2013 at 12:07 AM, Warren Bell
<wa...@clarksnutrition.com>wrote:
> I am using Wicket 6 to manage an AngularJS app. Currently I am just
> letting Tomcat serve the AngularJS client i.e. index.html and using Wicket
> for authentication, authorization and REST. But I would like to use Wicket
> to serve up the client so that I can manage css and js resources and set an
> initial cookie. What would be the best way to do this ?
>
> I was thinking of just making the index.html file a wicket page with no
> components or should I use a WebExternalResourceRequestHandler or something
> similar ?
>
> Thanks,
>
> Warren
> --
> This email was Virus checked by Clark's Nutrition's Astaro Security
> Gateway.
>
> <div style='font-size:11.0pt;font-family:"Tahoma"'>The
> information contained in this e-mail is intended only for use of
> the individual or entity named above. This e-mail, and any documents,
> files, previous e-mails or other information attached to it, may contain
> confidential information that is legally privileged. If you are not the
> intended recipient of this e-mail, or the employee or agent responsible
> for delivering it to the intended recipient, you are hereby notified
> that any disclosure, dissemination, distribution, copying or other use
> of this e-mail or any of the information contained in or attached to it
> is strictly prohibited. If you have received this e-mail in error,
> please immediately notify us by return e-mail or by telephone at
> (951)321-1960, and destroy the original e-mail and its attachments
> without reading or saving it in any manner. Thank you.</div>
>
> <div align="center"
> style='font-size:12.0pt;font-family:"Tahoma","sans-serif"'><strong>Clark’s
> Nutrition is a registered trademark of Clarks Nutritional Centers,
> Inc.</strong></div>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Wicket serving AngularJS app
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
I do not know the answer to your questions... but this
https://github.com/reiern70/antilia-bits/tree/master/wicket-angular-parent
might of interest to you. You can see it in action at
http://www.antiliasoft.com/wicket-angular-demo/
On Mon, Dec 23, 2013 at 11:07 PM, Warren Bell
<wa...@clarksnutrition.com>wrote:
> I am using Wicket 6 to manage an AngularJS app. Currently I am just
> letting Tomcat serve the AngularJS client i.e. index.html and using Wicket
> for authentication, authorization and REST. But I would like to use Wicket
> to serve up the client so that I can manage css and js resources and set an
> initial cookie. What would be the best way to do this ?
>
> I was thinking of just making the index.html file a wicket page with no
> components or should I use a WebExternalResourceRequestHandler or something
> similar ?
>
> Thanks,
>
> Warren
> --
> This email was Virus checked by Clark's Nutrition's Astaro Security
> Gateway.
>
> <div style='font-size:11.0pt;font-family:"Tahoma"'>The
> information contained in this e-mail is intended only for use of
> the individual or entity named above. This e-mail, and any documents,
> files, previous e-mails or other information attached to it, may contain
> confidential information that is legally privileged. If you are not the
> intended recipient of this e-mail, or the employee or agent responsible
> for delivering it to the intended recipient, you are hereby notified
> that any disclosure, dissemination, distribution, copying or other use
> of this e-mail or any of the information contained in or attached to it
> is strictly prohibited. If you have received this e-mail in error,
> please immediately notify us by return e-mail or by telephone at
> (951)321-1960, and destroy the original e-mail and its attachments
> without reading or saving it in any manner. Thank you.</div>
>
> <div align="center"
> style='font-size:12.0pt;font-family:"Tahoma","sans-serif"'><strong>Clark’s
> Nutrition is a registered trademark of Clarks Nutritional Centers,
> Inc.</strong></div>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Regards - Ernesto Reinaldo Barreiro
Re: Wicket serving AngularJS app
Posted by Andrea Del Bene <an...@gmail.com>.
Hi,
have you already had a look at WicketStuff rest module?
https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicketstuff-restannotations-parent
> I am using Wicket 6 to manage an AngularJS app. Currently I am just letting Tomcat serve the AngularJS client i.e. index.html and using Wicket for authentication, authorization and REST. But I would like to use Wicket to serve up the client so that I can manage css and js resources and set an initial cookie. What would be the best way to do this ?
>
> I was thinking of just making the index.html file a wicket page with no components or should I use a WebExternalResourceRequestHandler or something similar ?
>
> Thanks,
>
> Warren
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org