Re: Web Sockets proxying

2014-01-28 Thread Martin Grigorov
Hi Maxim,

You should ask in HTTPD mailing lists. Or whoever maintains
mod_proxy_wstunnel.
If you split http and ws to be in different mappings (e.g. /openmeetings
(for http) and /ws-openmeetings (for ws)) then you will have to use two
 elements in your web.xml, one with WicketFilter and another with
JettyWebSocketFilter. The problem here is that both of them will have their
own Application and Session instances.

I think it should be easy for HTTPD to differentiate between the protocols
and use the correct proxy settings.
If they cannot see the difference in the protocols then they won't see any
difference in the url path too :)

Please let us know when you have some progress!

Martin Grigorov
Wicket Training and Consulting


On Tue, Jan 28, 2014 at 3:24 AM, Maxim Solodovnik wrote:

> Thanks for the quick answer Paul,
>
> Segmentation fault is definitely caused by me, but I was not sure if it is
> compilation issue or bacuse of my configuration.
>
> I currently have Apache config like this:
>
> #WEBSOCKETS
>ProxyPass /openmeetings ws://localhost:5080/openmeetings retry=0
>ProxyPassReverse /openmeetings ws://localhost:5080/openmeetings
> retry=0
>
> ProxyPass /openmeetings http://localhost:5080/openmeetings
> ProxyPassReverse /openmeetings http://localhost:5080/openmeetings
>
> As you can see WebSockets mapping is the same as main app mapping (only
> protocol part differs)
> I'm afraid segmentation fault might be caused by normal HTML requests
> coming instead of WebSocket requests 
>
> This is why I'm asking is there any option to make WebSocket URL differ
> than main app URL?
>
>
> On Tue, Jan 28, 2014 at 4:27 AM, Paul Bors  wrote:
>
> > I don't think segmentation faults fall (no pun intended) under Wicket :)
> >
> > You might want to look for help under the Unbuntu's user mailing lists
> > and/or search on Google.
> > Here's a starting point for you:
> >
> >
> http://www.amoss.me.uk/2013/06/apache-2-2-websocket-proxying-ubuntu-mod_proxy_wstunnel/
> >
> >
> > On Mon, Jan 27, 2014 at 12:42 PM, Maxim Solodovnik  > >wrote:
> >
> > > Hello All,
> > > Is there any way to perform proxying of web sockets?
> > >
> > > I have tried mod_proxy_wstunnel but with no luck due to
> > > 1) I might compile something to very stable (Segmentation fault under
> > > Ubuntu 13.10 HTTP 2.4.6)
> > > 2) both main app and ws URL are looks the same:
> > > http://localhost/openmeetings and ws://localhost/openmeetings.
> > >
> > > Should I create additional page/mapping for performing ws tunneling?
> > > Maybe anyone can share example config/how to?
> > >
> > > Thanks in advance :)
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>


Re: timing for Wicket 7?

2014-01-28 Thread Richter, Marvin
I'm a bit confused, because of 'There are no other planned big changes
for 7.x'

I thought with 7.x Servlet API v3 will be used ... Am I wrong?

Best,
Marvin Richter

On Fr, 2014-01-24 at 11:04 +0200, Martin Grigorov wrote:
> Hi Ernesto,
> 
> There won't be 7.0.0 in the next month.
> 
> We will make a milestone release so users can try it and give feedback.
> The only thing to do before the milestone is to make the voted experimental
> modules stable.
> With this milestone release we want to get feedback for the small API
> changes we did.
> 
> There are no other planned big changes for 7.x.
> I am working on markup driven component tree construction in a branch. We
> discuss it in dev@ but unless it is super stable and simple and approved by
> other devs it won't be added to 7.0.0.
> 
> Martin Grigorov
> Wicket Training and Consulting
> 
> 
> On Fri, Jan 24, 2014 at 10:55 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
> 
> > Hi,
> >
> > What's the estimated release date for Wicket 7? Why? In a couple of weeks I
> > will start a new Wicket project and the estimated time to complete it is
> > one month (at least for the initial release). I've thought maybe I could
> > start it using current Wicket 7 and 1) provide feedback, 2) contribute to
> > make wicket 7 stable 3) start migrating libraries I will use. But I would
> > like to have my first release with an official version of Wicket 7. Is that
> > too risky?
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >


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



Re: timing for Wicket 7?

2014-01-28 Thread Martin Grigorov
On Tue, Jan 28, 2014 at 1:14 PM, Richter, Marvin <
marvin.rich...@jestadigital.com> wrote:

> I'm a bit confused, because of 'There are no other planned big changes
> for 7.x'
>

At the moment we have no plans for more changes/features.


>
> I thought with 7.x Servlet API v3 will be used ... Am I wrong?
>

JDK7 and Servlet 3.0 are mandatory for Wicket 7 already. This has been done
several months ago.


>
> Best,
> Marvin Richter
>
> On Fr, 2014-01-24 at 11:04 +0200, Martin Grigorov wrote:
> > Hi Ernesto,
> >
> > There won't be 7.0.0 in the next month.
> >
> > We will make a milestone release so users can try it and give feedback.
> > The only thing to do before the milestone is to make the voted
> experimental
> > modules stable.
> > With this milestone release we want to get feedback for the small API
> > changes we did.
> >
> > There are no other planned big changes for 7.x.
> > I am working on markup driven component tree construction in a branch. We
> > discuss it in dev@ but unless it is super stable and simple and
> approved by
> > other devs it won't be added to 7.0.0.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Fri, Jan 24, 2014 at 10:55 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > What's the estimated release date for Wicket 7? Why? In a couple of
> weeks I
> > > will start a new Wicket project and the estimated time to complete it
> is
> > > one month (at least for the initial release). I've thought maybe I
> could
> > > start it using current Wicket 7 and 1) provide feedback, 2) contribute
> to
> > > make wicket 7 stable 3) start migrating libraries I will use. But I
> would
> > > like to have my first release with an official version of Wicket 7. Is
> that
> > > too risky?
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: timing for Wicket 7?

2014-01-28 Thread Richter, Marvin
Ah ok. Didn't know that. Thanks

On Di, 2014-01-28 at 13:21 +0100, Martin Grigorov wrote:
> On Tue, Jan 28, 2014 at 1:14 PM, Richter, Marvin <
> marvin.rich...@jestadigital.com> wrote:
> 
> > I'm a bit confused, because of 'There are no other planned big changes
> > for 7.x'
> >
> 
> At the moment we have no plans for more changes/features.
> 
> 
> >
> > I thought with 7.x Servlet API v3 will be used ... Am I wrong?
> >
> 
> JDK7 and Servlet 3.0 are mandatory for Wicket 7 already. This has been done
> several months ago.
> 
> 
> >
> > Best,
> > Marvin Richter
> >
> > On Fr, 2014-01-24 at 11:04 +0200, Martin Grigorov wrote:
> > > Hi Ernesto,
> > >
> > > There won't be 7.0.0 in the next month.
> > >
> > > We will make a milestone release so users can try it and give feedback.
> > > The only thing to do before the milestone is to make the voted
> > experimental
> > > modules stable.
> > > With this milestone release we want to get feedback for the small API
> > > changes we did.
> > >
> > > There are no other planned big changes for 7.x.
> > > I am working on markup driven component tree construction in a branch. We
> > > discuss it in dev@ but unless it is super stable and simple and
> > approved by
> > > other devs it won't be added to 7.0.0.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > >
> > >
> > > On Fri, Jan 24, 2014 at 10:55 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > What's the estimated release date for Wicket 7? Why? In a couple of
> > weeks I
> > > > will start a new Wicket project and the estimated time to complete it
> > is
> > > > one month (at least for the initial release). I've thought maybe I
> > could
> > > > start it using current Wicket 7 and 1) provide feedback, 2) contribute
> > to
> > > > make wicket 7 stable 3) start migrating libraries I will use. But I
> > would
> > > > like to have my first release with an official version of Wicket 7. Is
> > that
> > > > too risky?
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >


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



Wicket 6.13 ListView#removeLink

2014-01-28 Thread Igor Dvorzhak
Hi all,

Link created by the ListView#removeLink method always deletes the last
element in the list.
The LisView's reuseItems property is set to true.

Does anybody know how to fix this?

Best,
Igor


How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
Hey guys 

I'm working on some dynamic page loading and would like to know how it's
supposed to be done in wicket (6.x) ... without mappings in my application
class. 

The example: 
some urls (for example /news, /article, /people) are bind by users (in admin
console) to a some page ... 
/news >> LayoutPage1 
/article >> LayoutPage2
/people >> LayoutPage1
this mapping is written in database and not in application class, because
users can set whatever URL and select whatever page to be shown for that
URL.

I would like know where to put this resolving from URL TO PAGE and how to
render the page ... 

Any help would be appreciated


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992.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.13 ListView#removeLink

2014-01-28 Thread Martin Grigorov
Hi,

http://www.wicket-library.com/wicket-examples-6.0.x/library is an example
that uses LstView#removeLink and it properly deletes the correct item.

Martin Grigorov
Wicket Training and Consulting


On Tue, Jan 28, 2014 at 3:19 PM, Igor Dvorzhak  wrote:

> Hi all,
>
> Link created by the ListView#removeLink method always deletes the last
> element in the list.
> The LisView's reuseItems property is set to true.
>
> Does anybody know how to fix this?
>
> Best,
> Igor
>


Re: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
Thank you ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4663995.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread Martin Grigorov
Hi,

You can use custom IRequestMapper that reads the url and asks the DB which
page to use.
Use WebApplication#setRootRequestMapper() to set it.
See
https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?source=c

https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/RequestMapperApplication.java#L55
for example


Martin Grigorov
Wicket Training and Consulting


On Tue, Jan 28, 2014 at 3:24 PM, armandoxxx wrote:

> Hey guys
>
> I'm working on some dynamic page loading and would like to know how it's
> supposed to be done in wicket (6.x) ... without mappings in my application
> class.
>
> The example:
> some urls (for example /news, /article, /people) are bind by users (in
> admin
> console) to a some page ...
> /news >> LayoutPage1
> /article >> LayoutPage2
> /people >> LayoutPage1
> this mapping is written in database and not in application class, because
> users can set whatever URL and select whatever page to be shown for that
> URL.
>
> I would like know where to put this resolving from URL TO PAGE and how to
> render the page ...
>
> Any help would be appreciated
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
Hey ... 

sorry but I don't understand 

the problem is that chain property in custom mapper is set upon
initialization in application class and it sets page .. 
getRootRequestMapperAsCompound().add(new LocaleFirstMapper(new
MountedMapper("/localized", LocalizedPage.class)));

I'm trying to figure out how to do this in custom IRequestMapper
implementation since my Page Class will change on each request ... 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4663997.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread Martin Grigorov
You have to setup your mapper as root and keep the old root mapper as a
delegate.
See
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java?source=c#L54

If your mapper resolves a page for the current url then return
RenderPageRequestHandler(new PageProvider(SomePage.class)).
If there is no match then use the delegate to resolve it.
See
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java?source=c#L92

Martin Grigorov
Wicket Training and Consulting


On Tue, Jan 28, 2014 at 4:52 PM, armandoxxx wrote:

> Hey ...
>
> sorry but I don't understand
>
> the problem is that chain property in custom mapper is set upon
> initialization in application class and it sets page ..
> getRootRequestMapperAsCompound().add(new LocaleFirstMapper(new
> MountedMapper("/localized", LocalizedPage.class)));
>
> I'm trying to figure out how to do this in custom IRequestMapper
> implementation since my Page Class will change on each request ...
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4663997.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
>
>


Using "AjaxRequestTarget" with parent/child window

2014-01-28 Thread fmoriguchi
Hi,

I have two windows, a parent and a child (using PopupSettings). 
The parent window has a component that will receive the value of a selected
object in the child window. 

My problem is when you receive the object of child window, because I need to
update the component that receives the object. 

I'm listening to the event "onbeforeunload" the child window for this, but
I'll end up getting the instance of "AjaxRequestTarget" the child window.
That way, I can not update the component. 

I tried to instantiate a "AjaxRequestTarget" manually in the parent window,
but it does not perform the update component. 

What do you suggest?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-window-tp4663996.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: Using "AjaxRequestTarget" with parent/child window

2014-01-28 Thread Martin Grigorov
Hi,


On Tue, Jan 28, 2014 at 4:05 PM, fmoriguchi  wrote:

> Hi,
>
> I have two windows, a parent and a child (using PopupSettings).
> The parent window has a component that will receive the value of a selected
> object in the child window.
>
> My problem is when you receive the object of child window, because I need
> to
> update the component that receives the object.
>
> I'm listening to the event "onbeforeunload" the child window for this, but
> I'll end up getting the instance of "AjaxRequestTarget" the child window.
> That way, I can not update the component.
>
> I tried to instantiate a "AjaxRequestTarget" manually in the parent window,
> but it does not perform the update component.
>

There is no Ajax request from the server to the parent page so there is no
way write back to the browser.

I have done something similar before for authentication - the child window
shows some OAuth/OpenID form (e.g. Google, Twitter, Facebook) and when the
user submits it and the OAuth service return OK status the child window
sets the user data in the session and uses JavaScript
window.parent.reload() (something similar, don't remember exactly) and
closes itself.
The parent page checks whether the session is authenticated in
#onConfigure() and does whatever is needed.


>
> What do you suggest?
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-window-tp4663996.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
this will do .. thank you ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4664003.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: Using "AjaxRequestTarget" with parent/child page

2014-01-28 Thread Simon B
Hi, 

I'm not sure I completely understand your question but, could you use the
event mechanism for this?

by passing around custom events you could make the 
have a look at the Broadcast and IEvent classes you need to send a signal
via the  Component "send" method:



then receive it via the onEvent method



Hope that helps or may give you a pointer to a solution


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-page-tp4663996p4664004.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: Using "AjaxRequestTarget" with parent/child page

2014-01-28 Thread fmoriguchi
Hi all,

Simon, I tried this solution, as follows:

- The child page raises the event. (IEventSource).
- The parent page listens for the event (IEventSink).
- The parent page receive through the event to instance of
"AjaxRequestTarget."

However, when using the method "add" of the "AjaxRequestTarget" instance,
the update does not occur because the "AjaxRequestTarget" instance of the
child page, not the parent page.
That way he can not find the correct update for "markupId".

I'll try a different way, maybe, force the update by behavior using
javascript.


Thanks all


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-page-tp4663996p4664008.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: Using "AjaxRequestTarget" with parent/child page

2014-01-28 Thread Simon B
Hi, 

It occurred to me that you could use the event mechanism to inform your
parent page of the event, and then use atmosphere or Native WebSockets to
update that parent page.

Its just a suggestion I've not used the atmosphere or websockets part of
wicket.  

But if it allows you to asynchronously update your parent page, via a
"server push" then it may work. 

Sorry for the vagueness, if anyone else has experience of this then please
chip in, 

Cheers

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-page-tp4663996p4664009.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: Using "AjaxRequestTarget" with parent/child page

2014-01-28 Thread Martin Grigorov
On Tue, Jan 28, 2014 at 8:49 PM, fmoriguchi  wrote:

> Hi all,
>
> Simon, I tried this solution, as follows:
>
> - The child page raises the event. (IEventSource).
> - The parent page listens for the event (IEventSink).
> - The parent page receive through the event to instance of
> "AjaxRequestTarget."
>
> However, when using the method "add" of the "AjaxRequestTarget" instance,
> the update does not occur because the "AjaxRequestTarget" instance of the
> child page, not the parent page.
> That way he can not find the correct update for "markupId".
>
> I'll try a different way, maybe, force the update by behavior using
> javascript.
>

Here is another way:
- pass a PageReference of the parent page to the child page
- in the child page use that page reference to update the parent page
- in the parent page use Ajax timer behavior that will update it when there
is an something new

Not as optimal as websockets but very simple to implement.


>
>
> Thanks all
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-page-tp4663996p4664008.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
thank you again ... works like a charm ;)

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4664012.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