Re: how to pass geolocation coords as hidden values in login form

2016-08-30 Thread Qbyte Consulting
I could not get the form method to work, so ended up passing an eventlink url to my javascript and adding parameters to it. Works a treat and simple. Link link = componentResources.createEventLink("geolocation", null); final String eventLinkURI = link.toAbsoluteURI(

HTTPS on not @Secure page

2016-08-30 Thread Carlos Montero Canabal
I have configured my webapp with @Secure on pages who need it. But I have a problem when I write manually the URL on browser. If I write https on not @Secure page, the links (actionLinks with t:zone or t:async for ajax support) created by tapestry starts with http and browsers blocked the cont

ApacheCon Seville CFP closes September 9th

2016-08-30 Thread Rich Bowen
It's traditional. We wait for the last minute to get our talk proposals in for conferences. Well, the last minute has arrived. The CFP for ApacheCon Seville closes on September 9th, which is less than 2 weeks away. It's time to get your talks in, so that we can make this the best ApacheCon yet. I

Re: hide special pages ...

2016-08-30 Thread Juan M Garrido de Paz
It doesn't work for me though in some cases, for example when Spring Security sends a 403 response in its default behaviour, and the 403 page is a "hidden" one. I will have to see in detail. Thank you. 2016-08-30 13:21 GMT+02:00 Juan M Garrido de Paz < juanm.garrido@gmail.com>: > Oh yes, s

Re: hide special pages ...

2016-08-30 Thread Juan M Garrido de Paz
Oh yes, sorry, I didn't realize onActivate had no args. Same approach that index page, but with no args, in every page I wanna "hide". It's ok... thank you very much! 2016-08-30 13:09 GMT+02:00 Chris Poulsen [via Apache Tapestry Mailing List Archives] : > The code pasted is from one of our pro

Re: how to pass geolocation coords as hidden values in login form

2016-08-30 Thread Chris Poulsen
Use a form, request parameters or url context - The usual way of sending data to the server. -- Chris On Tue, Aug 30, 2016 at 11:56 AM, Qbyte Consulting < qbyteconsult...@gmail.com> wrote: > I get JS to populate the hidden form fields, they are passed as parameters > to the page, but they are e

Re: hide special pages ...

2016-08-30 Thread Chris Poulsen
The code pasted is from one of our property block pages. The activate ensures that the page cannot be accessed as a "normal page" -- Chris On Tue, Aug 30, 2016 at 10:56 AM, Juan M Garrido de Paz < juanm.garrido@gmail.com> wrote: > Hi, yes , I do return that in my activate already. It is for

Re: how to pass geolocation coords as hidden values in login form

2016-08-30 Thread Qbyte Consulting
I get JS to populate the hidden form fields, they are passed as parameters to the page, but they are empty strings? function locate() { //Geolocation if (navigator.geolocation) { navigator.geolocation .getCurrentPosition(function (position) {

Re: how to pass geolocation coords as hidden values in login form

2016-08-30 Thread Qbyte Consulting
Thanks Nathan, I want to drive the process from the submission of the login form, not from the render process. So I could fire some JavaScript after the login succeeds but how does the JS push the data to the page? Maybe I could use an entirely hidden form and submit it from the JS? John On Tue,

Re: hide special pages ...

2016-08-30 Thread Juan M Garrido de Paz
Hi, yes , I do return that in my activate already. It is for telling tapestry not to consider the text following the index page name as context param, and instead of that throw 404 error. It works ok. But what I am asking is about error page location. How to put it under web-inf folder? I think it

Re: how to pass geolocation coords as hidden values in login form

2016-08-30 Thread Nathan Quirynen
Hi I guess you could do something like the following: Create a component just containing two hidden fields and in the after render event of this component run a javascript module where you get the longitude and latitude and set these values to your hidden fields. Add two parameters (latitude a