Re: Send data from javascript to WicketServer

2019-04-05 Thread Thanh Tung Pham
Hi Andrea,

Thank you so much for the suggestion, i will look into it.

Kind regards,
Tung

Op vr 5 apr. 2019 om 15:27 schreef Andrea Del Bene :

> Hi,
>
> In Wicket you can have a sort of "controller" mounting a IResource to a
> given path. You can read this article as introduction to Wicket resources
>
> http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
>
> For more information check the user guide.
>
> Cheers.
>
>
> On Fri, Apr 5, 2019, 2:33 PM Thanh Tung Pham 
> wrote:
>
> > Hi all,
> >
> > I'm new to wicket and for a project that I'm currently working on.
> > We want to use Server Sent Event to directly push data to the client
> from a
> > microservice.
> > Receiving these data through javascript from the microservice all works
> > fine, but we need to send these data to the wicketserver for processing
> and
> > updates to the page for the client.
> >
> > What we basically need is a listener/controller endpoint that we can call
> > from javascript to reach the wicketserver with the data.
> > I saw that wicket adds javascript for interacting with components,
> > something like this:
> > Wicket.Ajax.get({"u":"the/url/to/the/link", "e": "click", "c":"linkId"});
> > How
> > can I manually make this (without the event and component specification)?
> >
> > Can anyone help me with this problem or has experience with it or
> anything
> > to help pointing me to the right path?
> > Thanks!
> >
> > Kind regards,
> > Tung
> >
> > --
> >
> > Kind Regards,
> >
> >
> > *THANH TUNG PHAMSoftware Engineer*
> > thanh.tung.p...@tvh.com
> >
> > *TVH PARTS HOLDING NV*
> > Vichtseweg 129 • BE-8790 WAREGEM
> > T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
> > View our company movies via downloads on our website.
> >
> > --
> >
> >
> >  DISCLAIMER
> >  
> >
> > This
> > message is delivered to all addressees subject to the conditions set
> forth
> > in the attached disclaimer, which is an integral part of this message.
> >
> >
> > When you communicate with us via e-mail, telephone, fax or via our
> > website,
> > we process your personal data. For more information on how we process
> your
> > personal data, please consult our Privacy Policy
> > . By communicating with us, you
> > unambiguously consent to our use of your personal data as explained in
> the
> > Privacy Policy.
> >
>


-- 

Kind Regards,


*THANH TUNG PHAMSoftware Engineer*
thanh.tung.p...@tvh.com

*TVH PARTS HOLDING NV*
Vichtseweg 129 • BE-8790 WAREGEM
T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
View our company movies via downloads on our website.

-- 


 DISCLAIMER 
 

This 
message is delivered to all addressees subject to the conditions set forth 
in the attached disclaimer, which is an integral part of this message.


When you communicate with us via e-mail, telephone, fax or via our website, 
we process your personal data. For more information on how we process your 
personal data, please consult our Privacy Policy 
. By communicating with us, you 
unambiguously consent to our use of your personal data as explained in the 
Privacy Policy.


Re: Send data from javascript to WicketServer

2019-04-05 Thread Andrea Del Bene
Hi,

In Wicket you can have a sort of "controller" mounting a IResource to a
given path. You can read this article as introduction to Wicket resources

http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/

For more information check the user guide.

Cheers.


On Fri, Apr 5, 2019, 2:33 PM Thanh Tung Pham 
wrote:

> Hi all,
>
> I'm new to wicket and for a project that I'm currently working on.
> We want to use Server Sent Event to directly push data to the client from a
> microservice.
> Receiving these data through javascript from the microservice all works
> fine, but we need to send these data to the wicketserver for processing and
> updates to the page for the client.
>
> What we basically need is a listener/controller endpoint that we can call
> from javascript to reach the wicketserver with the data.
> I saw that wicket adds javascript for interacting with components,
> something like this:
> Wicket.Ajax.get({"u":"the/url/to/the/link", "e": "click", "c":"linkId"});
> How
> can I manually make this (without the event and component specification)?
>
> Can anyone help me with this problem or has experience with it or anything
> to help pointing me to the right path?
> Thanks!
>
> Kind regards,
> Tung
>
> --
>
> Kind Regards,
>
>
> *THANH TUNG PHAMSoftware Engineer*
> thanh.tung.p...@tvh.com
>
> *TVH PARTS HOLDING NV*
> Vichtseweg 129 • BE-8790 WAREGEM
> T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
> View our company movies via downloads on our website.
>
> --
>
>
>  DISCLAIMER
>  
>
> This
> message is delivered to all addressees subject to the conditions set forth
> in the attached disclaimer, which is an integral part of this message.
>
>
> When you communicate with us via e-mail, telephone, fax or via our
> website,
> we process your personal data. For more information on how we process your
> personal data, please consult our Privacy Policy
> . By communicating with us, you
> unambiguously consent to our use of your personal data as explained in the
> Privacy Policy.
>


Send data from javascript to WicketServer

2019-04-05 Thread Thanh Tung Pham
Hi all,

I'm new to wicket and for a project that I'm currently working on.
We want to use Server Sent Event to directly push data to the client from a
microservice.
Receiving these data through javascript from the microservice all works
fine, but we need to send these data to the wicketserver for processing and
updates to the page for the client.

What we basically need is a listener/controller endpoint that we can call
from javascript to reach the wicketserver with the data.
I saw that wicket adds javascript for interacting with components,
something like this:
Wicket.Ajax.get({"u":"the/url/to/the/link", "e": "click", "c":"linkId"}); How
can I manually make this (without the event and component specification)?

Can anyone help me with this problem or has experience with it or anything
to help pointing me to the right path?
Thanks!

Kind regards,
Tung

-- 

Kind Regards,


*THANH TUNG PHAMSoftware Engineer*
thanh.tung.p...@tvh.com

*TVH PARTS HOLDING NV*
Vichtseweg 129 • BE-8790 WAREGEM
T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
View our company movies via downloads on our website.

-- 


 DISCLAIMER 
 

This 
message is delivered to all addressees subject to the conditions set forth 
in the attached disclaimer, which is an integral part of this message.


When you communicate with us via e-mail, telephone, fax or via our website, 
we process your personal data. For more information on how we process your 
personal data, please consult our Privacy Policy 
. By communicating with us, you 
unambiguously consent to our use of your personal data as explained in the 
Privacy Policy.