Re: 404 : https://wicket.apache.org/learn/#javadoc JavaDoc 9.x

2019-10-07 Thread Martin Grigorov
Fixed!

On Mon, Oct 7, 2019, 12:11 Martin Grigorov  wrote:

> Hi Francois,
>
> This is a known issue.
>
> https://markmail.org/message/6owzkxowbsf33jcy
> https://markmail.org/message/ac65iqbmwjdlugz3
>
> I will try to find a working solution for it this week.
>
> Martin
>
>
> On Mon, Oct 7, 2019 at 11:17 AM Francois Meillet <
> francois.meil...@gmail.com> wrote:
>
>> Hi,
>>
>> There is a 404 for
>> https://ci.apache.org/projects/wicket/apidocs/9.x/index.html <
>> https://ci.apache.org/projects/wicket/apidocs/9.x/index.html>
>>
>>
>> François
>>
>>
>>
>>


Re: Wicket Cookie Deletion

2019-10-07 Thread Martin Grigorov
On Mon, Oct 7, 2019 at 12:32 PM Sibgha Nazir  wrote:

> >
> > You don't use *expires *here.
>
>
> Yes it is irrelevant. Please ignore it.
>
>
> This should work.
> > Check what are the response headers in Chrome's Dev Tools > Network. The
> > new max-age value must be set to 0.
>
>
> I went to chrome dev tool -> network. But i cannot see whats max-age and
> where to look for it.
>

You may need to research how Cookies actually work.
Cookies are just data in the HTTP request/response headers.

If there is no Set-Cookie response header then most probably the Wicket
WebResponse you have used when calling #clearCookie() is not the one that
has been used to deliver the HTML response. Most probably your application
has replaced the response object with another one without preserving the
already set headers.


>
>
> On Mon, Oct 7, 2019 at 9:15 AM Martin Grigorov 
> wrote:
>
> > Hi,
> >
> > On Mon, Oct 7, 2019 at 3:14 AM Sibgha Nazir  wrote:
> >
> > > Hi,
> > >
> > > I set a cookie from JavaScript in the chrome browser like
> > >
> > > > var d = new Date();
> > > > d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
> > > > var expires = "expires=" + d.toUTCString();
> > > > document.cookie = "test=true;1;path=/";
> > >
> >
> > You don't use *expires *here.
> >
> >
> > >
> > >
> > > So the cookie value in the chrome is "true" (cookie "test"="true")
> > >
> > > then I am trying to clear the cookie in the wicket like
> > >
> > >   WebRequest webRequest = (WebRequest) RequestCycle.get().getRequest();
> > >
> > > WebResponse webResponse = (WebResponse)
> RequestCycle.get().getResponse();
> > >
> > > Cookie cookietest = webRequest.getCookie("test");
> > > > webResponse.clearCookie(cookietest);
> > >
> >
> > This should work.
> > Check what are the response headers in Chrome's Dev Tools > Network. The
> > new max-age value must be set to 0.
> >
> >
> > >
> > >
> > > The cookie is not deleted. I run the wicket web app on tomcat server.
> > Does
> > > anyone know what could be wrong?
> > >
> > >
> > > Just to be clear the cookie we set with JavaScript and the cookie we
> > > retrieve in wicket is pointing to the same space? I am confused why it
> > > wouldn't work. Does it have to anything with the Tomcat server?
> > >
> > > Best Regards,
> > > Sibgha Nazir
> > >
> >
>


Re: Is there a SOAP resource?

2019-10-07 Thread Martin Grigorov
Hi,

I am not aware of such resource. That does not mean that there is no such
out there though!

But SOAP is just XML, i.e. text, so you can read and parse it and do
whatever is needed.

Martin

On Mon, Oct 7, 2019 at 1:22 PM Per Newgro  wrote:

> Hello every1,
>
> i would like to migrate some features of an web app to my wicket app.
>
> The web app is a spring boot app that provides access to data using SOAP.
> The web service extracts the SOAP request and calls my wicket app by using
> rest resource.
>
> But now i need to replace the additional web app by my wicket app.
>
> So far i do everything using rest resource. So i ask myself if there is a
> similiar component for SOAP.
>
> Thanks for your support
> Regards
> Per
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Is there a SOAP resource?

2019-10-07 Thread Per Newgro
Hello every1,

i would like to migrate some features of an web app to my wicket app.

The web app is a spring boot app that provides access to data using SOAP.
The web service extracts the SOAP request and calls my wicket app by using rest 
resource.

But now i need to replace the additional web app by my wicket app.

So far i do everything using rest resource. So i ask myself if there is a 
similiar component for SOAP.

Thanks for your support
Regards
Per

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



Re: Wicket Cookie Deletion

2019-10-07 Thread Sibgha Nazir
>
> You don't use *expires *here.


Yes it is irrelevant. Please ignore it.


This should work.
> Check what are the response headers in Chrome's Dev Tools > Network. The
> new max-age value must be set to 0.


I went to chrome dev tool -> network. But i cannot see whats max-age and
where to look for it.


On Mon, Oct 7, 2019 at 9:15 AM Martin Grigorov  wrote:

> Hi,
>
> On Mon, Oct 7, 2019 at 3:14 AM Sibgha Nazir  wrote:
>
> > Hi,
> >
> > I set a cookie from JavaScript in the chrome browser like
> >
> > > var d = new Date();
> > > d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
> > > var expires = "expires=" + d.toUTCString();
> > > document.cookie = "test=true;1;path=/";
> >
>
> You don't use *expires *here.
>
>
> >
> >
> > So the cookie value in the chrome is "true" (cookie "test"="true")
> >
> > then I am trying to clear the cookie in the wicket like
> >
> >   WebRequest webRequest = (WebRequest) RequestCycle.get().getRequest();
> >
> > WebResponse webResponse = (WebResponse) RequestCycle.get().getResponse();
> >
> > Cookie cookietest = webRequest.getCookie("test");
> > > webResponse.clearCookie(cookietest);
> >
>
> This should work.
> Check what are the response headers in Chrome's Dev Tools > Network. The
> new max-age value must be set to 0.
>
>
> >
> >
> > The cookie is not deleted. I run the wicket web app on tomcat server.
> Does
> > anyone know what could be wrong?
> >
> >
> > Just to be clear the cookie we set with JavaScript and the cookie we
> > retrieve in wicket is pointing to the same space? I am confused why it
> > wouldn't work. Does it have to anything with the Tomcat server?
> >
> > Best Regards,
> > Sibgha Nazir
> >
>


Re: 404 : https://wicket.apache.org/learn/#javadoc JavaDoc 9.x

2019-10-07 Thread Martin Grigorov
Hi Francois,

This is a known issue.

https://markmail.org/message/6owzkxowbsf33jcy
https://markmail.org/message/ac65iqbmwjdlugz3

I will try to find a working solution for it this week.

Martin


On Mon, Oct 7, 2019 at 11:17 AM Francois Meillet 
wrote:

> Hi,
>
> There is a 404 for
> https://ci.apache.org/projects/wicket/apidocs/9.x/index.html <
> https://ci.apache.org/projects/wicket/apidocs/9.x/index.html>
>
>
> François
>
>
>
>


404 : https://wicket.apache.org/learn/#javadoc JavaDoc 9.x

2019-10-07 Thread Francois Meillet
Hi,

There is a 404 for https://ci.apache.org/projects/wicket/apidocs/9.x/index.html 



François





Re: Wicket Cookie Deletion

2019-10-07 Thread Martin Grigorov
Hi,

On Mon, Oct 7, 2019 at 3:14 AM Sibgha Nazir  wrote:

> Hi,
>
> I set a cookie from JavaScript in the chrome browser like
>
> > var d = new Date();
> > d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
> > var expires = "expires=" + d.toUTCString();
> > document.cookie = "test=true;1;path=/";
>

You don't use *expires *here.


>
>
> So the cookie value in the chrome is "true" (cookie "test"="true")
>
> then I am trying to clear the cookie in the wicket like
>
>   WebRequest webRequest = (WebRequest) RequestCycle.get().getRequest();
>
> WebResponse webResponse = (WebResponse) RequestCycle.get().getResponse();
>
> Cookie cookietest = webRequest.getCookie("test");
> > webResponse.clearCookie(cookietest);
>

This should work.
Check what are the response headers in Chrome's Dev Tools > Network. The
new max-age value must be set to 0.


>
>
> The cookie is not deleted. I run the wicket web app on tomcat server. Does
> anyone know what could be wrong?
>
>
> Just to be clear the cookie we set with JavaScript and the cookie we
> retrieve in wicket is pointing to the same space? I am confused why it
> wouldn't work. Does it have to anything with the Tomcat server?
>
> Best Regards,
> Sibgha Nazir
>