Re: Wicket 6+ through JSONP tunneling

2013-01-21 Thread MattyDE
Any other ideas to do this with wicket?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501p4655575.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6+ through JSONP tunneling

2013-01-18 Thread Michael Mosmann
Maybe you should use GWT instead...

Michael



MattyDE ufer.mar...@gmail.com schrieb:

We have to implement a Wicket-driven webapp which could be easily
included in
any other customer HTML-WebPage without a java-driven webserver
(could be
also php or only html or anything else).

My first idea: iframe. But iframes are not allowed cause of accessibly
for
handicaped people.
My second one (and last): JSONP. So on customer-side the customer just
has
to include a script-Tag to our java-wicket-webserver and we let wicket
submit the rendered page output to json, transfering it back to the
customer, on which side the json would be unpacked, interpreted and
injected.

But what is with the user-actions on this side. They all have to be
transfered through JSONP again back to our java-server and so on.

Did anybody of you did this before? Any ideas how to pack the
rendered
page-markup in json (should i implement my own WicketFilter?)

Thanks in Advance for any help, and apologise for my horrible English.

Its not my mothers tongue.

- Matt



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501.html
Sent from the Users forum mailing list archive at Nabble.com.

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

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: Wicket 6+ through JSONP tunneling

2013-01-18 Thread Martin Grigorov
Hi,

More and more people ask for this. It is an interesting problem.
You wont need the markup of a page but more likely the markup of a Panel.
Let's say that there is a way to transfer the page HTML back. Then the next
problem that I see is that you will have to trap all events triggered from
the Wicket code.
For example:
- clicking on non-Ajax link will reload the whole host page, not just the
Wicket area
- Ajax requests should be suppressed completely and replaced with JSONP ones

I guess there are many other problems which will arise.
Using any other technology will have similar problems.



On Fri, Jan 18, 2013 at 12:56 PM, MattyDE ufer.mar...@gmail.com wrote:

 We have to implement a Wicket-driven webapp which could be easily included
 in
 any other customer HTML-WebPage without a java-driven webserver (could be
 also php or only html or anything else).

 My first idea: iframe. But iframes are not allowed cause of accessibly for
 handicaped people.
 My second one (and last): JSONP. So on customer-side the customer just has
 to include a script-Tag to our java-wicket-webserver and we let wicket
 submit the rendered page output to json, transfering it back to the
 customer, on which side the json would be unpacked, interpreted and
 injected.

 But what is with the user-actions on this side. They all have to be
 transfered through JSONP again back to our java-server and so on.

 Did anybody of you did this before? Any ideas how to pack the rendered
 page-markup in json (should i implement my own WicketFilter?)

 Thanks in Advance for any help, and apologise for my horrible English.

 Its not my mothers tongue.

 - Matt



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: Wicket 6+ through JSONP tunneling

2013-01-18 Thread MattyDE
Yeah you right Martin.

But, dont get it wrong, we would develop this app exactly for this purpose.
So there would be no non-ajax links for example.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501p4655505.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6+ through JSONP tunneling

2013-01-18 Thread Martin Grigorov
I think I can see how such application can be made.
It will be much simpler with cross origin Ajax requests using Wicket.Ajax
JavaScript APIs.
I'll experiment with it soon and if it works it would be a nice blog
article for www.wicketinaction.com


On Fri, Jan 18, 2013 at 1:48 PM, MattyDE ufer.mar...@gmail.com wrote:

 Yeah you right Martin.

 But, dont get it wrong, we would develop this app exactly for this purpose.
 So there would be no non-ajax links for example.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501p4655505.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: Wicket 6+ through JSONP tunneling

2013-01-18 Thread Michael Mosmann
AFAIK a GTW app is nothing more then a script and a div tag on the client 
page.. dont know which protocoll GWT uses for server communication...



MattyDE ufer.mar...@gmail.com schrieb:

so Google-WebToolkit is able to communicate through JSONP with the
server?
Because i really have to ask the server for data (backend)



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501p4655503.html
Sent from the Users forum mailing list archive at Nabble.com.

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

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.