Re: Web Sockets proxying

2014-01-27 Thread Paul Borș
Again, this is not related to Wicket, but... Try turning off the webapp and 
preserve only the websocket one. Do you still get your seg fault?

Have a great day,
Paul Bors

> On Jan 27, 2014, at 9:24 PM, 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

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



Re: Web Sockets proxying

2014-01-27 Thread Maxim Solodovnik
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: Continuous page reload

2014-01-27 Thread Maxim Solodovnik
Thanks a lot!

Everything works as expected with the change you have proposed :)
You saved me!


On Tue, Jan 28, 2014 at 3:12 AM, Martin Grigorov wrote:

> I'd bet that https://issues.apache.org/jira/browse/WICKET-4997 caused the
> problem.
> Please try this:
>
> @Override
> public Url mapHandler(IRequestHandler requestHandler) {
>  if (requestHandler instanceof ListenerInterfaceRequestHandler ||
> requestHandler
> instanceof BookmarkableListenerInterfaceRequestHandler) {
>  return null;
>  } else {
> return super.mapHandler(requestHandler);
>  }
> }
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Mon, Jan 27, 2014 at 9:01 PM, Martin Grigorov  >wrote:
>
> > Ah, it is inner class. Easy :)
> > I will check it soon.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Mon, Jan 27, 2014 at 9:00 PM, Martin Grigorov  >wrote:
> >
> >> Please give a link to NoVersionMapper.
> >>
> >> Martin Grigorov
> >> Wicket Training and Consulting
> >>
> >>
> >> On Mon, Jan 27, 2014 at 7:19 PM, Maxim Solodovnik  >wrote:
> >>
> >>> Hello Martin,
> >>>
> >>> finally was able to find what is wrong:
> >>>
> >>> Everything starts working after replacing lines 122 and 123 in file:
> >>>
> >>>
> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
> >>>
> >>> getRootRequestMapperAsCompound().add(new
> NoVersionMapper(getHomePage()));
> >>> getRootRequestMapperAsCompound().add(new NoVersionMapper("notinited",
> >>> NotInitedPage.class));
> >>> with this one
> >>>
> >>> mountPage("notinited", NotInitedPage.class);
> >>>
> >>> So I guess my NoVersionMapper works as expected in 6.12.0 and does not
> >>> work
> >>> in 6.13.0
> >>> Is there ant workaround for this?
> >>>
> >>> Thanks in advance!
> >>>
> >>>
> >>>
> >>> On Wed, Jan 15, 2014 at 2:48 PM, Maxim Solodovnik <
> solomax...@gmail.com
> >>> >wrote:
> >>>
> >>> > Thanks,
> >>> >
> >>> > Will try to pin down the issue and will write back
> >>> >
> >>> >
> >>> > On Wed, Jan 15, 2014 at 2:31 PM, Martin Grigorov <
> mgrigo...@apache.org
> >>> >wrote:
> >>> >
> >>> >> You can use git bisect if nothing else works.
> >>> >>
> >>> >> Martin Grigorov
> >>> >> Wicket Training and Consulting
> >>> >>
> >>> >>
> >>> >> On Wed, Jan 15, 2014 at 9:29 AM, Martin Grigorov <
> >>> mgrigo...@apache.org
> >>> >> >wrote:
> >>> >>
> >>> >> > Here are the release notes:
> >>> >> >
> >>> >>
> >>>
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12325564
> >>> >> > Please share when you have more information.
> >>> >> > We may need to release 6.13.1 if the problem is not easy to
> >>> workaround.
> >>> >> >
> >>> >> >  Martin Grigorov
> >>> >> > Wicket Training and Consulting
> >>> >> >
> >>> >> >
> >>> >> > On Wed, Jan 15, 2014 at 7:28 AM, Maxim Solodovnik <
> >>> solomax...@gmail.com
> >>> >> >wrote:
> >>> >> >
> >>> >> >> Is there any docs describing what was changed in the behaviors
> >>> etc. so
> >>> >> I
> >>> >> >> can go through our code and fix it?
> >>> >> >>
> >>> >> >> Thanks in advance :)
> >>> >> >>
> >>> >> >>
> >>> >> >> On Tue, Jan 14, 2014 at 10:48 PM, Maxim Solodovnik <
> >>> >> solomax...@gmail.com
> >>> >> >> >wrote:
> >>> >> >>
> >>> >> >> > I do have TimerBehavior, but the issue was reproducible after
> >>> >> commenting
> >>> >> >> > it.
> >>> >> >> > I also have "callback behaviors" can try to comment it out
> >>> >> >> >
> >>> >> >> > page version is being removed from the URL using
> NoVersionMapper:
> >>> >> (line
> >>> >> >> > 130)
> >>> >> >> >
> >>> >> >> >
> >>> >> >>
> >>> >>
> >>>
> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
> >>> >> >> >
> >>> >> >> >
> >>> >> >> >
> >>> >> >> > On Tue, Jan 14, 2014 at 10:43 PM, Martin Grigorov <
> >>> >> mgrigo...@apache.org
> >>> >> >> >wrote:
> >>> >> >> >
> >>> >> >> >> Hi,
> >>> >> >> >>
> >>> >> >> >> Do you use Ajax timer behavior on that page ?
> >>> >> >> >> And do you open the same page instance (same url, same pageId)
> >>> in
> >>> >> two
> >>> >> >> >> tabs ?
> >>> >> >> >>
> >>> >> >> >> Martin Grigorov
> >>> >> >> >> Wicket Training and Consulting
> >>> >> >> >>
> >>> >> >> >>
> >>> >> >> >> On Tue, Jan 14, 2014 at 5:36 PM, Maxim Solodovnik <
> >>> >> >> solomax...@gmail.com
> >>> >> >> >> >wrote:
> >>> >> >> >>
> >>> >> >> >> > Hello all,
> >>> >> >> >> >
> >>> >> >> >> > I just have updated to 6.13.0 (to get
> >>> >> >> >> > WICKET-5435<
> https://issues.apache.org/jira/browse/WICKET-5435
> >>> >
> >>> >> >> >> > )
> >>> >> >> >> > Unfortunately application stop working :(
> >>> >> >> >> > We are using " single page design" but after update the
> whole
> >>> >> page is
> >>> >> >> >> get
> >>> >> >> >> > reloaded continuously
> >>> >> >> >> >
> >>> >> >> >> > Can someone please suggest the way to find the cause of such
> >>> >> reloads?
> >>> >> >> >> > I have removed all the chan

Re: Web Sockets proxying

2014-01-27 Thread Paul Bors
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
>


[ANNOUNCE] Apache Wicket 1.5.11 is released

2014-01-27 Thread Andrea Del Bene

This is the eleventh maintenance release of the Wicket 1.5.x series. This
release brings over 30 bug fixes and improvements.

Git tag:
release/wicket-1.5.11

Changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12324069&projectId=12310561

Maven:

 org.apache.wicket
 wicket-core
 1.5.11



Download the full distribution (including source):
http://www.apache.org/dyn/closer.cgi/wicket/1.5.11

The Wicket team


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



Re: Continuous page reload

2014-01-27 Thread Martin Grigorov
I'd bet that https://issues.apache.org/jira/browse/WICKET-4997 caused the
problem.
Please try this:

@Override
public Url mapHandler(IRequestHandler requestHandler) {
 if (requestHandler instanceof ListenerInterfaceRequestHandler ||
requestHandler
instanceof BookmarkableListenerInterfaceRequestHandler) {
 return null;
 } else {
return super.mapHandler(requestHandler);
 }
}

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 27, 2014 at 9:01 PM, Martin Grigorov wrote:

> Ah, it is inner class. Easy :)
> I will check it soon.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Mon, Jan 27, 2014 at 9:00 PM, Martin Grigorov wrote:
>
>> Please give a link to NoVersionMapper.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Mon, Jan 27, 2014 at 7:19 PM, Maxim Solodovnik 
>> wrote:
>>
>>> Hello Martin,
>>>
>>> finally was able to find what is wrong:
>>>
>>> Everything starts working after replacing lines 122 and 123 in file:
>>>
>>> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
>>>
>>> getRootRequestMapperAsCompound().add(new NoVersionMapper(getHomePage()));
>>> getRootRequestMapperAsCompound().add(new NoVersionMapper("notinited",
>>> NotInitedPage.class));
>>> with this one
>>>
>>> mountPage("notinited", NotInitedPage.class);
>>>
>>> So I guess my NoVersionMapper works as expected in 6.12.0 and does not
>>> work
>>> in 6.13.0
>>> Is there ant workaround for this?
>>>
>>> Thanks in advance!
>>>
>>>
>>>
>>> On Wed, Jan 15, 2014 at 2:48 PM, Maxim Solodovnik >> >wrote:
>>>
>>> > Thanks,
>>> >
>>> > Will try to pin down the issue and will write back
>>> >
>>> >
>>> > On Wed, Jan 15, 2014 at 2:31 PM, Martin Grigorov >> >wrote:
>>> >
>>> >> You can use git bisect if nothing else works.
>>> >>
>>> >> Martin Grigorov
>>> >> Wicket Training and Consulting
>>> >>
>>> >>
>>> >> On Wed, Jan 15, 2014 at 9:29 AM, Martin Grigorov <
>>> mgrigo...@apache.org
>>> >> >wrote:
>>> >>
>>> >> > Here are the release notes:
>>> >> >
>>> >>
>>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12325564
>>> >> > Please share when you have more information.
>>> >> > We may need to release 6.13.1 if the problem is not easy to
>>> workaround.
>>> >> >
>>> >> >  Martin Grigorov
>>> >> > Wicket Training and Consulting
>>> >> >
>>> >> >
>>> >> > On Wed, Jan 15, 2014 at 7:28 AM, Maxim Solodovnik <
>>> solomax...@gmail.com
>>> >> >wrote:
>>> >> >
>>> >> >> Is there any docs describing what was changed in the behaviors
>>> etc. so
>>> >> I
>>> >> >> can go through our code and fix it?
>>> >> >>
>>> >> >> Thanks in advance :)
>>> >> >>
>>> >> >>
>>> >> >> On Tue, Jan 14, 2014 at 10:48 PM, Maxim Solodovnik <
>>> >> solomax...@gmail.com
>>> >> >> >wrote:
>>> >> >>
>>> >> >> > I do have TimerBehavior, but the issue was reproducible after
>>> >> commenting
>>> >> >> > it.
>>> >> >> > I also have "callback behaviors" can try to comment it out
>>> >> >> >
>>> >> >> > page version is being removed from the URL using NoVersionMapper:
>>> >> (line
>>> >> >> > 130)
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >>
>>> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > On Tue, Jan 14, 2014 at 10:43 PM, Martin Grigorov <
>>> >> mgrigo...@apache.org
>>> >> >> >wrote:
>>> >> >> >
>>> >> >> >> Hi,
>>> >> >> >>
>>> >> >> >> Do you use Ajax timer behavior on that page ?
>>> >> >> >> And do you open the same page instance (same url, same pageId)
>>> in
>>> >> two
>>> >> >> >> tabs ?
>>> >> >> >>
>>> >> >> >> Martin Grigorov
>>> >> >> >> Wicket Training and Consulting
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Tue, Jan 14, 2014 at 5:36 PM, Maxim Solodovnik <
>>> >> >> solomax...@gmail.com
>>> >> >> >> >wrote:
>>> >> >> >>
>>> >> >> >> > Hello all,
>>> >> >> >> >
>>> >> >> >> > I just have updated to 6.13.0 (to get
>>> >> >> >> > WICKET-5435>> >
>>> >> >> >> > )
>>> >> >> >> > Unfortunately application stop working :(
>>> >> >> >> > We are using " single page design" but after update the whole
>>> >> page is
>>> >> >> >> get
>>> >> >> >> > reloaded continuously
>>> >> >> >> >
>>> >> >> >> > Can someone please suggest the way to find the cause of such
>>> >> reloads?
>>> >> >> >> > I have removed all the changes except for wicket and
>>> websockets
>>> >> >> library
>>> >> >> >> > update.
>>> >> >> >> >
>>> >> >> >> > Thanks for any help
>>> >> >> >> >
>>> >> >> >> > --
>>> >> >> >> > WBR
>>> >> >> >> > Maxim aka solomax
>>> >> >> >> >
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > --
>>> >> >> > WBR
>>> >> >> > Maxim aka solomax
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> WBR
>>> >> >> Maxim aka solomax
>>> >> >>
>>> >> >
>>> >> >
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > WBR
>>> > Maxim aka solomax
>>> >
>

Re: Continuous page reload

2014-01-27 Thread Martin Grigorov
Ah, it is inner class. Easy :)
I will check it soon.

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 27, 2014 at 9:00 PM, Martin Grigorov wrote:

> Please give a link to NoVersionMapper.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Mon, Jan 27, 2014 at 7:19 PM, Maxim Solodovnik wrote:
>
>> Hello Martin,
>>
>> finally was able to find what is wrong:
>>
>> Everything starts working after replacing lines 122 and 123 in file:
>>
>> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
>>
>> getRootRequestMapperAsCompound().add(new NoVersionMapper(getHomePage()));
>> getRootRequestMapperAsCompound().add(new NoVersionMapper("notinited",
>> NotInitedPage.class));
>> with this one
>>
>> mountPage("notinited", NotInitedPage.class);
>>
>> So I guess my NoVersionMapper works as expected in 6.12.0 and does not
>> work
>> in 6.13.0
>> Is there ant workaround for this?
>>
>> Thanks in advance!
>>
>>
>>
>> On Wed, Jan 15, 2014 at 2:48 PM, Maxim Solodovnik > >wrote:
>>
>> > Thanks,
>> >
>> > Will try to pin down the issue and will write back
>> >
>> >
>> > On Wed, Jan 15, 2014 at 2:31 PM, Martin Grigorov > >wrote:
>> >
>> >> You can use git bisect if nothing else works.
>> >>
>> >> Martin Grigorov
>> >> Wicket Training and Consulting
>> >>
>> >>
>> >> On Wed, Jan 15, 2014 at 9:29 AM, Martin Grigorov > >> >wrote:
>> >>
>> >> > Here are the release notes:
>> >> >
>> >>
>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12325564
>> >> > Please share when you have more information.
>> >> > We may need to release 6.13.1 if the problem is not easy to
>> workaround.
>> >> >
>> >> >  Martin Grigorov
>> >> > Wicket Training and Consulting
>> >> >
>> >> >
>> >> > On Wed, Jan 15, 2014 at 7:28 AM, Maxim Solodovnik <
>> solomax...@gmail.com
>> >> >wrote:
>> >> >
>> >> >> Is there any docs describing what was changed in the behaviors etc.
>> so
>> >> I
>> >> >> can go through our code and fix it?
>> >> >>
>> >> >> Thanks in advance :)
>> >> >>
>> >> >>
>> >> >> On Tue, Jan 14, 2014 at 10:48 PM, Maxim Solodovnik <
>> >> solomax...@gmail.com
>> >> >> >wrote:
>> >> >>
>> >> >> > I do have TimerBehavior, but the issue was reproducible after
>> >> commenting
>> >> >> > it.
>> >> >> > I also have "callback behaviors" can try to comment it out
>> >> >> >
>> >> >> > page version is being removed from the URL using NoVersionMapper:
>> >> (line
>> >> >> > 130)
>> >> >> >
>> >> >> >
>> >> >>
>> >>
>> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Jan 14, 2014 at 10:43 PM, Martin Grigorov <
>> >> mgrigo...@apache.org
>> >> >> >wrote:
>> >> >> >
>> >> >> >> Hi,
>> >> >> >>
>> >> >> >> Do you use Ajax timer behavior on that page ?
>> >> >> >> And do you open the same page instance (same url, same pageId) in
>> >> two
>> >> >> >> tabs ?
>> >> >> >>
>> >> >> >> Martin Grigorov
>> >> >> >> Wicket Training and Consulting
>> >> >> >>
>> >> >> >>
>> >> >> >> On Tue, Jan 14, 2014 at 5:36 PM, Maxim Solodovnik <
>> >> >> solomax...@gmail.com
>> >> >> >> >wrote:
>> >> >> >>
>> >> >> >> > Hello all,
>> >> >> >> >
>> >> >> >> > I just have updated to 6.13.0 (to get
>> >> >> >> > WICKET-5435
>> >> >> >> > )
>> >> >> >> > Unfortunately application stop working :(
>> >> >> >> > We are using " single page design" but after update the whole
>> >> page is
>> >> >> >> get
>> >> >> >> > reloaded continuously
>> >> >> >> >
>> >> >> >> > Can someone please suggest the way to find the cause of such
>> >> reloads?
>> >> >> >> > I have removed all the changes except for wicket and websockets
>> >> >> library
>> >> >> >> > update.
>> >> >> >> >
>> >> >> >> > Thanks for any help
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > WBR
>> >> >> >> > Maxim aka solomax
>> >> >> >> >
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > WBR
>> >> >> > Maxim aka solomax
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> WBR
>> >> >> Maxim aka solomax
>> >> >>
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>


Re: Continuous page reload

2014-01-27 Thread Martin Grigorov
Please give a link to NoVersionMapper.

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 27, 2014 at 7:19 PM, Maxim Solodovnik wrote:

> Hello Martin,
>
> finally was able to find what is wrong:
>
> Everything starts working after replacing lines 122 and 123 in file:
>
> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
>
> getRootRequestMapperAsCompound().add(new NoVersionMapper(getHomePage()));
> getRootRequestMapperAsCompound().add(new NoVersionMapper("notinited",
> NotInitedPage.class));
> with this one
>
> mountPage("notinited", NotInitedPage.class);
>
> So I guess my NoVersionMapper works as expected in 6.12.0 and does not work
> in 6.13.0
> Is there ant workaround for this?
>
> Thanks in advance!
>
>
>
> On Wed, Jan 15, 2014 at 2:48 PM, Maxim Solodovnik  >wrote:
>
> > Thanks,
> >
> > Will try to pin down the issue and will write back
> >
> >
> > On Wed, Jan 15, 2014 at 2:31 PM, Martin Grigorov  >wrote:
> >
> >> You can use git bisect if nothing else works.
> >>
> >> Martin Grigorov
> >> Wicket Training and Consulting
> >>
> >>
> >> On Wed, Jan 15, 2014 at 9:29 AM, Martin Grigorov  >> >wrote:
> >>
> >> > Here are the release notes:
> >> >
> >>
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12325564
> >> > Please share when you have more information.
> >> > We may need to release 6.13.1 if the problem is not easy to
> workaround.
> >> >
> >> >  Martin Grigorov
> >> > Wicket Training and Consulting
> >> >
> >> >
> >> > On Wed, Jan 15, 2014 at 7:28 AM, Maxim Solodovnik <
> solomax...@gmail.com
> >> >wrote:
> >> >
> >> >> Is there any docs describing what was changed in the behaviors etc.
> so
> >> I
> >> >> can go through our code and fix it?
> >> >>
> >> >> Thanks in advance :)
> >> >>
> >> >>
> >> >> On Tue, Jan 14, 2014 at 10:48 PM, Maxim Solodovnik <
> >> solomax...@gmail.com
> >> >> >wrote:
> >> >>
> >> >> > I do have TimerBehavior, but the issue was reproducible after
> >> commenting
> >> >> > it.
> >> >> > I also have "callback behaviors" can try to comment it out
> >> >> >
> >> >> > page version is being removed from the URL using NoVersionMapper:
> >> (line
> >> >> > 130)
> >> >> >
> >> >> >
> >> >>
> >>
> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Tue, Jan 14, 2014 at 10:43 PM, Martin Grigorov <
> >> mgrigo...@apache.org
> >> >> >wrote:
> >> >> >
> >> >> >> Hi,
> >> >> >>
> >> >> >> Do you use Ajax timer behavior on that page ?
> >> >> >> And do you open the same page instance (same url, same pageId) in
> >> two
> >> >> >> tabs ?
> >> >> >>
> >> >> >> Martin Grigorov
> >> >> >> Wicket Training and Consulting
> >> >> >>
> >> >> >>
> >> >> >> On Tue, Jan 14, 2014 at 5:36 PM, Maxim Solodovnik <
> >> >> solomax...@gmail.com
> >> >> >> >wrote:
> >> >> >>
> >> >> >> > Hello all,
> >> >> >> >
> >> >> >> > I just have updated to 6.13.0 (to get
> >> >> >> > WICKET-5435
> >> >> >> > )
> >> >> >> > Unfortunately application stop working :(
> >> >> >> > We are using " single page design" but after update the whole
> >> page is
> >> >> >> get
> >> >> >> > reloaded continuously
> >> >> >> >
> >> >> >> > Can someone please suggest the way to find the cause of such
> >> reloads?
> >> >> >> > I have removed all the changes except for wicket and websockets
> >> >> library
> >> >> >> > update.
> >> >> >> >
> >> >> >> > Thanks for any help
> >> >> >> >
> >> >> >> > --
> >> >> >> > WBR
> >> >> >> > Maxim aka solomax
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > WBR
> >> >> > Maxim aka solomax
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> WBR
> >> >> Maxim aka solomax
> >> >>
> >> >
> >> >
> >>
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>


Re: Continuous page reload

2014-01-27 Thread Maxim Solodovnik
Hello Martin,

finally was able to find what is wrong:

Everything starts working after replacing lines 122 and 123 in file:
https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup

getRootRequestMapperAsCompound().add(new NoVersionMapper(getHomePage()));
getRootRequestMapperAsCompound().add(new NoVersionMapper("notinited",
NotInitedPage.class));
with this one

mountPage("notinited", NotInitedPage.class);

So I guess my NoVersionMapper works as expected in 6.12.0 and does not work
in 6.13.0
Is there ant workaround for this?

Thanks in advance!



On Wed, Jan 15, 2014 at 2:48 PM, Maxim Solodovnik wrote:

> Thanks,
>
> Will try to pin down the issue and will write back
>
>
> On Wed, Jan 15, 2014 at 2:31 PM, Martin Grigorov wrote:
>
>> You can use git bisect if nothing else works.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Wed, Jan 15, 2014 at 9:29 AM, Martin Grigorov > >wrote:
>>
>> > Here are the release notes:
>> >
>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12325564
>> > Please share when you have more information.
>> > We may need to release 6.13.1 if the problem is not easy to workaround.
>> >
>> >  Martin Grigorov
>> > Wicket Training and Consulting
>> >
>> >
>> > On Wed, Jan 15, 2014 at 7:28 AM, Maxim Solodovnik > >wrote:
>> >
>> >> Is there any docs describing what was changed in the behaviors etc. so
>> I
>> >> can go through our code and fix it?
>> >>
>> >> Thanks in advance :)
>> >>
>> >>
>> >> On Tue, Jan 14, 2014 at 10:48 PM, Maxim Solodovnik <
>> solomax...@gmail.com
>> >> >wrote:
>> >>
>> >> > I do have TimerBehavior, but the issue was reproducible after
>> commenting
>> >> > it.
>> >> > I also have "callback behaviors" can try to comment it out
>> >> >
>> >> > page version is being removed from the URL using NoVersionMapper:
>> (line
>> >> > 130)
>> >> >
>> >> >
>> >>
>> https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/web/java/org/apache/openmeetings/web/app/Application.java?view=markup
>> >> >
>> >> >
>> >> >
>> >> > On Tue, Jan 14, 2014 at 10:43 PM, Martin Grigorov <
>> mgrigo...@apache.org
>> >> >wrote:
>> >> >
>> >> >> Hi,
>> >> >>
>> >> >> Do you use Ajax timer behavior on that page ?
>> >> >> And do you open the same page instance (same url, same pageId) in
>> two
>> >> >> tabs ?
>> >> >>
>> >> >> Martin Grigorov
>> >> >> Wicket Training and Consulting
>> >> >>
>> >> >>
>> >> >> On Tue, Jan 14, 2014 at 5:36 PM, Maxim Solodovnik <
>> >> solomax...@gmail.com
>> >> >> >wrote:
>> >> >>
>> >> >> > Hello all,
>> >> >> >
>> >> >> > I just have updated to 6.13.0 (to get
>> >> >> > WICKET-5435
>> >> >> > )
>> >> >> > Unfortunately application stop working :(
>> >> >> > We are using " single page design" but after update the whole
>> page is
>> >> >> get
>> >> >> > reloaded continuously
>> >> >> >
>> >> >> > Can someone please suggest the way to find the cause of such
>> reloads?
>> >> >> > I have removed all the changes except for wicket and websockets
>> >> library
>> >> >> > update.
>> >> >> >
>> >> >> > Thanks for any help
>> >> >> >
>> >> >> > --
>> >> >> > WBR
>> >> >> > Maxim aka solomax
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > WBR
>> >> > Maxim aka solomax
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> WBR
>> >> Maxim aka solomax
>> >>
>> >
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Web Sockets proxying

2014-01-27 Thread Maxim Solodovnik
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


Re: Can I get an input text value if it's not in a form?

2014-01-27 Thread Martin Grigorov
Hi,

AjaxLink doesn't submit even when there is a Form.
You need AjaxSubmitLink when there is a form.

You can use AjaxLink to submit a value by doing the work "manually" - you
can add the name/value pair by using AjaxLink's dynamic extra parameters.
See
https://github.com/apache/wicket/blob/442932d4e4c5cc27940bc2ef956cb24c1ba54df0/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxNewWindowNotifyingBehavior.java#L92for
example

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 27, 2014 at 4:11 PM, cosmindumy  wrote:

> Hello,
> I want to get the value of in input text when pressing when pressing an
> ajax
> link?
> None of the elements are included in a form. Is that possible? Seems that
> input value is not submitted to server.
> Thanks.
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Can-I-get-an-input-text-value-if-it-s-not-in-a-form-tp4663967.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
>
>


Can I get an input text value if it's not in a form?

2014-01-27 Thread cosmindumy
Hello, 
I want to get the value of in input text when pressing when pressing an ajax
link? 
None of the elements are included in a form. Is that possible? Seems that
input value is not submitted to server. 
Thanks.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Can-I-get-an-input-text-value-if-it-s-not-in-a-form-tp4663967.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: html table with each column representing a day in a month

2014-01-27 Thread Gerrit Wassink
Hello Martin,
Thanks a lot. I will try!
Gerrit


Martin Grigorov  , 27-1-2014 10:40:
Hi, 
 
Use DataTable from wicket-extensions. 
For the first row use a 
custom 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractToolbar 
implementation. 
Add it 
with 
org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable#getTopToolbars().add(...)
 
For the second row use IDataProvider. 
Wicket-Examples have demos of all this. 
 
Martin Grigorov 
Wicket Training and Consulting 
 
 
On Mon, Jan 27, 2014 at 10:29 AM, gerritqf wrote: 
 
> Hello Wicket users, 
> 
> I want to have a table (in html) which has the following look. 
> A header table row with seperate columns each representing a day of a 
> chosen 
> month. 
> Then the next row in each        a textField with wicket:id="insert or 
> update 
> value to hour column in database". 
> In each column in this second row there must be a value for hours belonging 
> to the corresponding day in the row above. 
> 
> What is the best solution? and which wicket components are best suitable 
> for 
> this? 
> I think of using a listview to populate the rows but how can i specify 
> different id's for wicket in these columns of the table? 
> In the markup page i can use something like jstl but this is not wicket-way 
> of doing! 
> 
> Gerrit 
> 
> 
> -- 
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/html-table-with-each-column-representing-a-day-in-a-month-tp4663955.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: html table with each column representing a day in a month

2014-01-27 Thread Martin Grigorov
Hi,

Use DataTable from wicket-extensions.
For the first row use a
custom 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractToolbar
implementation.
Add it
with 
org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable#getTopToolbars().add(...)
For the second row use IDataProvider.
Wicket-Examples have demos of all this.

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 27, 2014 at 10:29 AM, gerritqf wrote:

> Hello Wicket users,
>
> I want to have a table (in html) which has the following look.
> A header table row with seperate columns each representing a day of a
> chosen
> month.
> Then the next row in eacha textField with wicket:id="insert or
> update
> value to hour column in database".
> In each column in this second row there must be a value for hours belonging
> to the corresponding day in the row above.
>
> What is the best solution? and which wicket components are best suitable
> for
> this?
> I think of using a listview to populate the rows but how can i specify
> different id's for wicket in these columns of the table?
> In the markup page i can use something like jstl but this is not wicket-way
> of doing!
>
> Gerrit
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/html-table-with-each-column-representing-a-day-in-a-month-tp4663955.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
>
>


html table with each column representing a day in a month

2014-01-27 Thread gerritqf
Hello Wicket users,

I want to have a table (in html) which has the following look.
A header table row with seperate columns each representing a day of a chosen
month.
Then the next row in eacha textField with wicket:id="insert or update
value to hour column in database".
In each column in this second row there must be a value for hours belonging
to the corresponding day in the row above.

What is the best solution? and which wicket components are best suitable for
this?
I think of using a listview to populate the rows but how can i specify
different id's for wicket in these columns of the table?
In the markup page i can use something like jstl but this is not wicket-way
of doing!

Gerrit


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/html-table-with-each-column-representing-a-day-in-a-month-tp4663955.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: Custom search and filter a DataTable

2014-01-27 Thread Martin Grigorov
Hi,

You can implement something like what FilterForm+FilterToolbar provide.
All you need is a Form with a TextField inside. On form submission you have
to use the textfield's model as a filter for the table's IDataProvider.

Martin Grigorov
Wicket Training and Consulting


On Sat, Jan 25, 2014 at 9:32 AM, Stefan Lorenz wrote:

> Hi,
>
> I'd like to filter a DataTable with one custom TextField for search inputs
> and the filter should include all colums and rows.
> Is that possible?
> I don't want to use a FilterToolbar and I don't know if the FilterForm is
> the right choice in this case.
> Any hint?
>
> Regards,
> Stefan
>
>


Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-27 Thread Martin Grigorov
Hi,

Check
https://github.com/martin-g/blogs/tree/master/wicket6-resource-management
This is the demo application for the article. It setups such
FilteringHeaderResponse at
https://github.com/martin-g/blogs/blob/master/wicket6-resource-management/src/main/java/com/wicketinaction/ResourceManagementApplication.java#L102

Martin Grigorov
Wicket Training and Consulting


On Fri, Jan 24, 2014 at 11:08 PM, Entropy  wrote:

> I am still having this problem.  The wicket:container solution leads me to
> the following exception.  Note that this exception is different than the
> one
> in the prior post.  I think I had a publish/refresh quirk.  This is the
> exception that is occurring now.
>
> java.lang.IllegalStateException: No FilteringHeaderResponse is present in
> the request cycle.  This may mean that you have not decorated the header
> response with a FilteringHeaderResponse.  Simply calling the
> FilteringHeaderResponse constructor sets itself on the request cycle
> at
>
> org.apache.wicket.markup.head.filter.FilteringHeaderResponse.get(FilteringHeaderResponse.java:165)
> at
>
> org.apache.wicket.markup.head.filter.HeaderResponseContainer.onComponentTagBody(HeaderResponseContainer.java:64)
> at
>
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
> at
> org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
> ... 80 more
>
>
>
> Entropy wrote
> > Browser giving me a little trouble.  Apologies if I double-submitted
> this.
> > My respoonse:
> >
> > I didn't even know such a website existed.  Thanks.
> >
> > I am trying to implement the HeaderResponseContainer and filter
> > suggestion.  In my component I added the container:
> >
> > add(new HiddenField(INTERNAL_HIDDEN_ROWS_SELECTED, new
> >
> Model("")).setOutputMarkupId(true).setMarkupId(INTERNAL_HIDDEN_ROWS_SELECTED));
> > add(new HiddenField(INTERNAL_HIDDEN_COLUMN_SYNCH, new Model("")));
> > add(new HeaderResponseContainer("gridCode", "gridCodeFilter"));
> >
> > I added the HTML to my component (notice same level as those hiddens)
> > 
> >
> > 
> >
> >  > />
> >
> > 
> >
> > 
> > 
> >
> > 
> >
> > 
> > 
> > And in the renderHead I do:
> > @Override
> > public void renderHead(Component comp, IHeaderResponse response) {
> >   super.renderHead(comp, response);
> >
> >   callbackUrl = behavior.getCallbackUrl().toString();
> > //JS
> >  response.render(JavaScriptHeaderItem.forReference(new
> > JavaScriptResourceReference(ExtGrid.class, "ExtGridSupport.js")));
> >  response.render(new
> > FilteredHeaderItem(JavaScriptContentHeaderItem.forScript(writeGridJS(),
> > getId() + "_js"), "gridCodeFilter"));
> > }
> >
> > But I am getting:
> > Failed to handle:
> > 
> > . It might be
> > that no resolver has been registered to handle this special tag.  But it
> > also could be that you declared wicket:id=gridCode in your markup, but
> > that
> > you either did not add the component to your page at all, or that the
> > hierarchy does not match.
> >  MarkupStream: [markup =
> >
> file:/C:/views/EquitShare_Development/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/AFMSShared/gov/usdoj/afms/shared/wicket/ext/grid/ExtGrid.html
> > 
> >
> > 
> >
> >  > id="_gridRowsSelected"/>
> >
> > 
> >
> > 
> > 
> >
> > 
> >
> > 
> > 
> > , index = 6, current =  '
> >  > wicket:id="gridCode"/>
> > ' (line 0, column 0)]
> >  at
> >
> org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:526)
> >  at
> > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1409)
> >  at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
> >  at
> >
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
> >  at
> >
> org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
> >  at
> >
> org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
> >  at
> >
> org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
> >  at
> > org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
> >  at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
> >  at org.apache.wicket.Component.internalRender(Component.java:2379)
> >  at org.apache.wicket.Component.render(Component.java:2307)
> >  at
> > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
> >  at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
> >  at
> >
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
> >  at
> >
> org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
> >  at
> >
> org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
> >