Re: JSON License and Apache Projects

2016-11-23 Thread Maxim Solodovnik
In case it is about this: org.json:json:jar:20090211 libarary
I'm afraid wicketstuff is affected

Could you please confirm it is about this library?

On Wed, Nov 23, 2016 at 10:36 PM, Martijn Dashorst 
wrote:

> FYI: the json.org library for parsing and generating JSON documents
> is now category X, which means it is prohibited from being included
> in Apache releases.
>
> As far as I know we are not exposed, but we should be diligent and
> make note of this and replace if we do have a (transitive)
> dependency.
>
> The issue is the "don't use this for evil" clause, that makes it hard to
> get past legal departments without any issue. The license is also not
> approved by the OSI, and therefore moved to the category X.
>
> Martijn
>
>
>
> -- Forwarded message --
> From: Jim Jagielski 
> Date: Wed, Nov 23, 2016 at 3:08 PM
> Subject: JSON License and Apache Projects
> To: legal-disc...@apache.org
>
>
> As some of you may know, recently the JSON License has been
> moved to Category X (https://www.apache.org/legal/resolved#category-x).
>
> I understand that this has impacted some projects, especially
> those in the midst of doing a release. I also understand that
> up until now, really, there has been no real "outcry" over our
> usage of it, especially from end-users and other consumers of
> our projects which use it.
>
> As compelling as that is, the fact is that the JSON license
> itself is not OSI approved and is therefore not, by definition,
> an "Open Source license" and, as such, cannot be considered as
> one which is acceptable as related to categories.
>
> Therefore, w/ my VP Legal hat on, I am making the following
> statements:
>
>   o No new project, sub-project or codebase, which has not
> used JSON licensed jars (or similar), are allowed to use
> them. In other words, if you haven't been using them, you
> aren't allowed to start. It is Cat-X.
>
>   o If you have been using it, and have done so in a *release*,
> AND there has been NO pushback from your community/eco-system,
> you have a temporary exclusion from the Cat-X classification thru
> April 30, 2017. At that point in time, ANY and ALL usage
> of these JSON licensed artifacts are DISALLOWED. You must
> either find a suitably licensed replacement, or do without.
> There will be NO exceptions.
>
>   o Any situation not covered by the above is an implicit
> DISALLOWAL of usage.
>
> Also please note that in the 2nd situation (where a temporary
> exclusion has been granted), you MUST ensure that NOTICE explicitly
> notifies the end-user that a JSON licensed artifact exists. They
> may not be aware of it up to now, and that MUST be addressed.
>
> If there are any questions, please ask on the legal-discuss@a.o
> list.
>
> --
> Jim Jagielski
> VP Legal Affairs
>
>
> -
> To unsubscribe, e-mail: legal-discuss-unsubscr...@apache.org
> For additional commands, e-mail: legal-discuss-h...@apache.org
>



-- 
WBR
Maxim aka solomax


Re: Is there any way to extend ClientProperties

2016-11-23 Thread Maxim Solodovnik
OK, will do, will take some time :)

On Wed, Nov 23, 2016 at 3:54 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Try the PR and see whether it helps you to achieve what you need.
> If it does then we will process it sooner.
> If it doesn't then make it work :-)
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Nov 23, 2016 at 9:44 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > OK, how can I help?
> >
> > On Wed, Nov 23, 2016 at 3:40 PM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > See https://issues.apache.org/jira/browse/WICKET-6056
> > > It is almost possible to extend the BrowserInfoPage. It needs just
> little
> > > more work.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Tue, Nov 22, 2016 at 7:02 PM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Does it make any sense?
> > > >
> > > > On Tue, Nov 22, 2016 at 10:25 AM, Maxim Solodovnik <
> > solomax...@gmail.com
> > > >
> > > > wrote:
> > > >
> > > > > And maybe protocol+context (or window.location.href) :)
> > > > > mod_proxy, mod_rewrite can change the URL a lot :)
> > > > >
> > > > > On Tue, Nov 22, 2016 at 10:18 AM, Maxim Solodovnik <
> > > solomax...@gmail.com
> > > > >
> > > > > wrote:
> > > > >
> > > > >> Hello All,
> > > > >>
> > > > >> I wonder is there any way to extend gathered
> org.apache.wicket.pro
> > > > >> tocol.http.ClientProperties?
> > > > >> I would like to have port in addition to hostname
> > > > >> Or maybe I can provide PR to wicket so it would have this info by
> > > > default?
> > > > >>
> > > > >> WDYT?
> > > > >>
> > > > >> --
> > > > >> WBR
> > > > >> Maxim aka solomax
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > WBR
> > > > > Maxim aka solomax
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > WBR
> > > > Maxim aka solomax
> > > >
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Is there any way to extend ClientProperties

2016-11-23 Thread Maxim Solodovnik
OK, how can I help?

On Wed, Nov 23, 2016 at 3:40 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> See https://issues.apache.org/jira/browse/WICKET-6056
> It is almost possible to extend the BrowserInfoPage. It needs just little
> more work.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Tue, Nov 22, 2016 at 7:02 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Does it make any sense?
> >
> > On Tue, Nov 22, 2016 at 10:25 AM, Maxim Solodovnik <solomax...@gmail.com
> >
> > wrote:
> >
> > > And maybe protocol+context (or window.location.href) :)
> > > mod_proxy, mod_rewrite can change the URL a lot :)
> > >
> > > On Tue, Nov 22, 2016 at 10:18 AM, Maxim Solodovnik <
> solomax...@gmail.com
> > >
> > > wrote:
> > >
> > >> Hello All,
> > >>
> > >> I wonder is there any way to extend gathered org.apache.wicket.pro
> > >> tocol.http.ClientProperties?
> > >> I would like to have port in addition to hostname
> > >> Or maybe I can provide PR to wicket so it would have this info by
> > default?
> > >>
> > >> WDYT?
> > >>
> > >> --
> > >> WBR
> > >> Maxim aka solomax
> > >>
> > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Is there any way to extend ClientProperties

2016-11-22 Thread Maxim Solodovnik
Does it make any sense?

On Tue, Nov 22, 2016 at 10:25 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> And maybe protocol+context (or window.location.href) :)
> mod_proxy, mod_rewrite can change the URL a lot :)
>
> On Tue, Nov 22, 2016 at 10:18 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> Hello All,
>>
>> I wonder is there any way to extend gathered org.apache.wicket.pro
>> tocol.http.ClientProperties?
>> I would like to have port in addition to hostname
>> Or maybe I can provide PR to wicket so it would have this info by default?
>>
>> WDYT?
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: How to solve: Application and Wicket-select2 both use PageParameter 'q'.

2016-11-22 Thread Maxim Solodovnik
Will try to add setting tonight and will ask you to test
Please create issue here [1] so we can track the progress :)

[1] https://github.com/wicketstuff/core/issues

On Tue, Nov 22, 2016 at 3:31 PM, Rob Audenaerde <rob.audenae...@gmail.com>
wrote:

> Additional setting would be great. I use wicket-select2 in a lot of
> different places, so mounting all kinds of resources does not seem very
> appealing. (or maybe I misunderstand how it would work stateless?)
>
> I took a look at the AbstractSelect2Choice and it seems not too hard to
> migrate to a setting.
>
> Thanks for looking into this!
>
> -Rob
>
> On Tue, Nov 22, 2016 at 9:26 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Static mount would work, additional setting might help if it's not an
> > option :)
> >
> > On Tue, Nov 22, 2016 at 3:24 PM, Pi P314 <picuda...@gmail.com> wrote:
> >
> > > https://github.com/wicketstuff/core/blob/master/
> select2-parent/select2-
> > > examples/src/main/java/org/wicketstuff/select2/
> > WicketApplication.java#L29
> > > https://github.com/wicketstuff/core/blob/master/
> select2-parent/select2-
> > > examples/src/main/java/org/wicketstuff/select2/HomePage.java#L158
> > >
> > > On Tue, Nov 22, 2016 at 9:19 AM, Pi P314 <picuda...@gmail.com> wrote:
> > >
> > > > you can also use selected to in stateless mode
> > > >
> > > > 1- Mount a resource
> > > > 2- Point you select 2 to that resource.
> > > >
> > > > On Tue, Nov 22, 2016 at 9:16 AM, Rob Audenaerde <
> > > rob.audenae...@gmail.com>
> > > > wrote:
> > > >
> > > >> (question is also on StackOverflow:
> > > >> http://stackoverflow.com/questions/40736742/wicket-and-wicke
> > > >> t-select2-both-use-pageparameter-q-how-to-solve
> > > >>  )
> > > >>
> > > >> I have a set of PageParameters for my page, one is q (for query).
> This
> > > >> allows for nice URLs like:
> > > >>
> > > >> http://myapplication/search?q=myquery.
> > > >>
> > > >> But when I have a wicket-select2 component on my page, it
> initializes
> > > the
> > > >> query for the select2 with the same value of the PageParameter q.
> > > >>
> > > >> This causes the select2 to return an empty list of options, while
> the
> > > user
> > > >> has not even select anything yet.
> > > >>
> > > >> I know I can change the name of my PageParameters (unfortunately,
> some
> > > >> clients will have to change urls). Or I can override the methods in
> > > >> select2
> > > >> that use the q parameter.
> > > >>
> > > >> I wondered if there is a better solution?
> > > >>
> > > >> Thanks!
> > > >>
> > > >> -Rob
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > 
> > > >
> > > > Regards,
> > > >
> > > > Pi Cuda
> > > > Web Development with Java/Scala
> > > > Wicket Consultant
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > 
> > >
> > > Regards,
> > >
> > > Pi Cuda
> > > Web Development with Java/Scala
> > > Wicket Consultant
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: How to solve: Application and Wicket-select2 both use PageParameter 'q'.

2016-11-22 Thread Maxim Solodovnik
Static mount would work, additional setting might help if it's not an
option :)

On Tue, Nov 22, 2016 at 3:24 PM, Pi P314  wrote:

> https://github.com/wicketstuff/core/blob/master/select2-parent/select2-
> examples/src/main/java/org/wicketstuff/select2/WicketApplication.java#L29
> https://github.com/wicketstuff/core/blob/master/select2-parent/select2-
> examples/src/main/java/org/wicketstuff/select2/HomePage.java#L158
>
> On Tue, Nov 22, 2016 at 9:19 AM, Pi P314  wrote:
>
> > you can also use selected to in stateless mode
> >
> > 1- Mount a resource
> > 2- Point you select 2 to that resource.
> >
> > On Tue, Nov 22, 2016 at 9:16 AM, Rob Audenaerde <
> rob.audenae...@gmail.com>
> > wrote:
> >
> >> (question is also on StackOverflow:
> >> http://stackoverflow.com/questions/40736742/wicket-and-wicke
> >> t-select2-both-use-pageparameter-q-how-to-solve
> >>  )
> >>
> >> I have a set of PageParameters for my page, one is q (for query). This
> >> allows for nice URLs like:
> >>
> >> http://myapplication/search?q=myquery.
> >>
> >> But when I have a wicket-select2 component on my page, it initializes
> the
> >> query for the select2 with the same value of the PageParameter q.
> >>
> >> This causes the select2 to return an empty list of options, while the
> user
> >> has not even select anything yet.
> >>
> >> I know I can change the name of my PageParameters (unfortunately, some
> >> clients will have to change urls). Or I can override the methods in
> >> select2
> >> that use the q parameter.
> >>
> >> I wondered if there is a better solution?
> >>
> >> Thanks!
> >>
> >> -Rob
> >>
> >
> >
> >
> > --
> > 
> >
> > Regards,
> >
> > Pi Cuda
> > Web Development with Java/Scala
> > Wicket Consultant
> >
> >
> >
>
>
> --
> 
>
> Regards,
>
> Pi Cuda
> Web Development with Java/Scala
> Wicket Consultant
>



-- 
WBR
Maxim aka solomax


Re: How to solve: Application and Wicket-select2 both use PageParameter 'q'.

2016-11-22 Thread Maxim Solodovnik
Never noticed that :(
I can try to make this parameter configurable via ApplicationSettings [1]
I believe this should solve the problem 

WDYT?

[1]
https://github.com/wicketstuff/core/blob/master/select2-parent/select2/src/main/java/org/wicketstuff/select2/ApplicationSettings.java

On Tue, Nov 22, 2016 at 3:19 PM, Pi P314  wrote:

> you can also use selected to in stateless mode
>
> 1- Mount a resource
> 2- Point you select 2 to that resource.
>
> On Tue, Nov 22, 2016 at 9:16 AM, Rob Audenaerde 
> wrote:
>
> > (question is also on StackOverflow:
> > http://stackoverflow.com/questions/40736742/wicket-and-
> > wicket-select2-both-use-pageparameter-q-how-to-solve
> >  )
> >
> > I have a set of PageParameters for my page, one is q (for query). This
> > allows for nice URLs like:
> >
> > http://myapplication/search?q=myquery.
> >
> > But when I have a wicket-select2 component on my page, it initializes the
> > query for the select2 with the same value of the PageParameter q.
> >
> > This causes the select2 to return an empty list of options, while the
> user
> > has not even select anything yet.
> >
> > I know I can change the name of my PageParameters (unfortunately, some
> > clients will have to change urls). Or I can override the methods in
> select2
> > that use the q parameter.
> >
> > I wondered if there is a better solution?
> >
> > Thanks!
> >
> > -Rob
> >
>
>
>
> --
> 
>
> Regards,
>
> Pi Cuda
> Web Development with Java/Scala
> Wicket Consultant
>



-- 
WBR
Maxim aka solomax


Re: Is there any way to extend ClientProperties

2016-11-21 Thread Maxim Solodovnik
And maybe protocol+context (or window.location.href) :)
mod_proxy, mod_rewrite can change the URL a lot :)

On Tue, Nov 22, 2016 at 10:18 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Hello All,
>
> I wonder is there any way to extend gathered org.apache.wicket.
> protocol.http.ClientProperties?
> I would like to have port in addition to hostname
> Or maybe I can provide PR to wicket so it would have this info by default?
>
> WDYT?
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Is there any way to extend ClientProperties

2016-11-21 Thread Maxim Solodovnik
Hello All,

I wonder is there any way to extend
gathered org.apache.wicket.protocol.http.ClientProperties?
I would like to have port in addition to hostname
Or maybe I can provide PR to wicket so it would have this info by default?

WDYT?

-- 
WBR
Maxim aka solomax


Re: WebSocket close is being called if AjaxDownloader is used

2016-11-16 Thread Maxim Solodovnik
Done:
https://github.com/apache/wicket/pull/190
https://github.com/apache/wicket/pull/191

On Wed, Nov 16, 2016 at 5:14 PM, Martin Grigorov <martin.grigo...@gmail.com>
wrote:

> Hi Maxim,
>
> Please do!
>
> Thank you!
>
> On Nov 16, 2016 10:58 AM, "Maxim Solodovnik" <solomax...@gmail.com> wrote:
>
> > I believe all comments are now addressed,
> > Should I create PR to add AjaxDownload to wicket-extensions? both 7.x and
> > 8.x?
> >
> > On Fri, Nov 11, 2016 at 6:11 PM, Sven Meier <s...@meiers.net> wrote:
> >
> > > +1 on putting it into wicket-extensions.
> > >
> > > Sven
> > >
> > >
> > > Am 11.11.2016 um 10:54 schrieb Martin Grigorov:
> > >
> > >> One class + one .js might be too much for a new module but I don't
> want
> > >> all
> > >> the useless stuff in minis in my application too.
> > >> I still prefer this to be in Wicket core.
> > >>
> > >> Martin Grigorov
> > >> Wicket Training and Consulting
> > >> https://twitter.com/mtgrigorov
> > >>
> > >> On Fri, Nov 11, 2016 at 10:28 AM, Sven Meier <s...@meiers.net> wrote:
> > >>
> > >> I don't think this warrants a new module - just add it to
> > >>> wicketstuff-minis.
> > >>>
> > >>> Sven
> > >>>
> > >>>
> > >>>
> > >>> Am 11.11.2016 um 08:42 schrieb Martin Grigorov:
> > >>>
> > >>> Great work, Maxim!
> > >>>>
> > >>>> Let's move it to WicketStuff as a new module.
> > >>>> I'd like to add -examples module with different use cases so we can
> > see
> > >>>> whether the iframes leak or not for example.
> > >>>> Also I'd like to try to add events like beforeDownload/afterDownload
> > so
> > >>>> apps can show indicators that something is happening.
> > >>>>
> > >>>> Martin Grigorov
> > >>>> Wicket Training and Consulting
> > >>>> https://twitter.com/mtgrigorov
> > >>>>
> > >>>> On Wed, Nov 9, 2016 at 9:13 AM, Ernesto Reinaldo Barreiro <
> > >>>> reier...@gmail.com> wrote:
> > >>>>
> > >>>> Thanks for sharing. I just added a couple of comments/
> > >>>>
> > >>>>> On Wed, Nov 9, 2016 at 4:23 AM, Maxim Solodovnik <
> > solomax...@gmail.com
> > >>>>> >
> > >>>>> wrote:
> > >>>>>
> > >>>>> Hello Martin,
> > >>>>>
> > >>>>>> sorry for the delay
> > >>>>>>
> > >>>>>> here is the repo: https://github.com/solomax/wicket-ajax-download
> > >>>>>> here is the commit with the ajax-download-via-iframe
> implementation:
> > >>>>>> https://github.com/solomax/wicket-ajax-download/commit/
> > >>>>>> 407936d6f506aa047d9a12a3ecb7aa6c866eb052
> > >>>>>>
> > >>>>>> Looking forward for your comments :)
> > >>>>>>
> > >>>>>> On Wed, Nov 9, 2016 at 5:02 AM, Martin Grigorov <
> > mgrigo...@apache.org
> > >>>>>> >
> > >>>>>> wrote:
> > >>>>>>
> > >>>>>> Hi Maxim,
> > >>>>>>>
> > >>>>>>> Do you have progress on this ?
> > >>>>>>>
> > >>>>>>> Martin Grigorov
> > >>>>>>> Wicket Training and Consulting
> > >>>>>>> https://twitter.com/mtgrigorov
> > >>>>>>>
> > >>>>>>> On Thu, Nov 3, 2016 at 9:46 AM, Maxim Solodovnik <
> > >>>>>>> solomax...@gmail.com
> > >>>>>>> wrote:
> > >>>>>>>
> > >>>>>>> I was hoping to get answer like: in 7.x you should use .xxx
> > :)))
> > >>>>>>>
> > >>>>>>>> Going to create example on github and will send it for review :)
> > >>>>>>>>
> > >>>>>>>> On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov <
> > >>>>>>>> mgrigo...@apache.org
> > >>>>>>>> wr

Re: WebSocket close is being called if AjaxDownloader is used

2016-11-16 Thread Maxim Solodovnik
I believe all comments are now addressed,
Should I create PR to add AjaxDownload to wicket-extensions? both 7.x and
8.x?

On Fri, Nov 11, 2016 at 6:11 PM, Sven Meier <s...@meiers.net> wrote:

> +1 on putting it into wicket-extensions.
>
> Sven
>
>
> Am 11.11.2016 um 10:54 schrieb Martin Grigorov:
>
>> One class + one .js might be too much for a new module but I don't want
>> all
>> the useless stuff in minis in my application too.
>> I still prefer this to be in Wicket core.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Fri, Nov 11, 2016 at 10:28 AM, Sven Meier <s...@meiers.net> wrote:
>>
>> I don't think this warrants a new module - just add it to
>>> wicketstuff-minis.
>>>
>>> Sven
>>>
>>>
>>>
>>> Am 11.11.2016 um 08:42 schrieb Martin Grigorov:
>>>
>>> Great work, Maxim!
>>>>
>>>> Let's move it to WicketStuff as a new module.
>>>> I'd like to add -examples module with different use cases so we can see
>>>> whether the iframes leak or not for example.
>>>> Also I'd like to try to add events like beforeDownload/afterDownload so
>>>> apps can show indicators that something is happening.
>>>>
>>>> Martin Grigorov
>>>> Wicket Training and Consulting
>>>> https://twitter.com/mtgrigorov
>>>>
>>>> On Wed, Nov 9, 2016 at 9:13 AM, Ernesto Reinaldo Barreiro <
>>>> reier...@gmail.com> wrote:
>>>>
>>>> Thanks for sharing. I just added a couple of comments/
>>>>
>>>>> On Wed, Nov 9, 2016 at 4:23 AM, Maxim Solodovnik <solomax...@gmail.com
>>>>> >
>>>>> wrote:
>>>>>
>>>>> Hello Martin,
>>>>>
>>>>>> sorry for the delay
>>>>>>
>>>>>> here is the repo: https://github.com/solomax/wicket-ajax-download
>>>>>> here is the commit with the ajax-download-via-iframe implementation:
>>>>>> https://github.com/solomax/wicket-ajax-download/commit/
>>>>>> 407936d6f506aa047d9a12a3ecb7aa6c866eb052
>>>>>>
>>>>>> Looking forward for your comments :)
>>>>>>
>>>>>> On Wed, Nov 9, 2016 at 5:02 AM, Martin Grigorov <mgrigo...@apache.org
>>>>>> >
>>>>>> wrote:
>>>>>>
>>>>>> Hi Maxim,
>>>>>>>
>>>>>>> Do you have progress on this ?
>>>>>>>
>>>>>>> Martin Grigorov
>>>>>>> Wicket Training and Consulting
>>>>>>> https://twitter.com/mtgrigorov
>>>>>>>
>>>>>>> On Thu, Nov 3, 2016 at 9:46 AM, Maxim Solodovnik <
>>>>>>> solomax...@gmail.com
>>>>>>> wrote:
>>>>>>>
>>>>>>> I was hoping to get answer like: in 7.x you should use .xxx :)))
>>>>>>>
>>>>>>>> Going to create example on github and will send it for review :)
>>>>>>>>
>>>>>>>> On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov <
>>>>>>>> mgrigo...@apache.org
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik <
>>>>>>>> solomax...@gmail.com>
>>>>>>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> It seems iframe is the only option :(((
>>>>>>>>>
>>>>>>>>>> Why so sad ?
>>>>>>>>>>
>>>>>>>>> iframe is a good option
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> here is the JS plugin wrapping this idea:
>>>>>>>>>
>>>>>>>>>> http://johnculviner.com/jquery-file-download-plugin-
>>>>>>>>>> for-ajax-like-feature-rich-file-downloads/
>>>>>>>>>> going to perform additional search
>>>>>>>>>>
>>>>>>>>>> Thanks for the idea!
>>>>>>>>>>
>>>>>>>>>> On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro <
>>>>>

Re: WebSocket close is being called if AjaxDownloader is used

2016-11-11 Thread Maxim Solodovnik
In this case it might be good idea to create "full" wicketstuff
project, then move it to core

On Fri, Nov 11, 2016 at 4:54 PM, Martin Grigorov <mgrigo...@apache.org> wrote:
> One class + one .js might be too much for a new module but I don't want all
> the useless stuff in minis in my application too.
> I still prefer this to be in Wicket core.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Nov 11, 2016 at 10:28 AM, Sven Meier <s...@meiers.net> wrote:
>
>> I don't think this warrants a new module - just add it to
>> wicketstuff-minis.
>>
>> Sven
>>
>>
>>
>> Am 11.11.2016 um 08:42 schrieb Martin Grigorov:
>>
>>> Great work, Maxim!
>>>
>>> Let's move it to WicketStuff as a new module.
>>> I'd like to add -examples module with different use cases so we can see
>>> whether the iframes leak or not for example.
>>> Also I'd like to try to add events like beforeDownload/afterDownload so
>>> apps can show indicators that something is happening.
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>>
>>> On Wed, Nov 9, 2016 at 9:13 AM, Ernesto Reinaldo Barreiro <
>>> reier...@gmail.com> wrote:
>>>
>>> Thanks for sharing. I just added a couple of comments/
>>>>
>>>> On Wed, Nov 9, 2016 at 4:23 AM, Maxim Solodovnik <solomax...@gmail.com>
>>>> wrote:
>>>>
>>>> Hello Martin,
>>>>>
>>>>> sorry for the delay
>>>>>
>>>>> here is the repo: https://github.com/solomax/wicket-ajax-download
>>>>> here is the commit with the ajax-download-via-iframe implementation:
>>>>> https://github.com/solomax/wicket-ajax-download/commit/
>>>>> 407936d6f506aa047d9a12a3ecb7aa6c866eb052
>>>>>
>>>>> Looking forward for your comments :)
>>>>>
>>>>> On Wed, Nov 9, 2016 at 5:02 AM, Martin Grigorov <mgrigo...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Hi Maxim,
>>>>>>
>>>>>> Do you have progress on this ?
>>>>>>
>>>>>> Martin Grigorov
>>>>>> Wicket Training and Consulting
>>>>>> https://twitter.com/mtgrigorov
>>>>>>
>>>>>> On Thu, Nov 3, 2016 at 9:46 AM, Maxim Solodovnik <solomax...@gmail.com
>>>>>> wrote:
>>>>>>
>>>>>> I was hoping to get answer like: in 7.x you should use .xxx :)))
>>>>>>> Going to create example on github and will send it for review :)
>>>>>>>
>>>>>>> On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov <mgrigo...@apache.org
>>>>>>> wrote:
>>>>>>>
>>>>>>> On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik <
>>>>>>>>
>>>>>>> solomax...@gmail.com>
>>>>>
>>>>>> wrote:
>>>>>>>>
>>>>>>>> It seems iframe is the only option :(((
>>>>>>>>>
>>>>>>>>> Why so sad ?
>>>>>>>> iframe is a good option
>>>>>>>>
>>>>>>>>
>>>>>>>> here is the JS plugin wrapping this idea:
>>>>>>>>> http://johnculviner.com/jquery-file-download-plugin-
>>>>>>>>> for-ajax-like-feature-rich-file-downloads/
>>>>>>>>> going to perform additional search
>>>>>>>>>
>>>>>>>>> Thanks for the idea!
>>>>>>>>>
>>>>>>>>> On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro <
>>>>>>>>> reier...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> or maybe use a hidden iframe to trigger download...
>>>>>>>>>>
>>>>>>>>>> On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro <
>>>>>>>>>> reier...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> I do not know if this is possible but
>>>>>>>>>>>
>>>>>>>>>>> 1- Open a new tab
>>>>>>>>>>> 2- Set loc

Re: WebSocket close is being called if AjaxDownloader is used

2016-11-11 Thread Maxim Solodovnik
Ok, will try to do it in the beginning of next week
Thanks for the pointer

WBR, Maxim
(from mobile, sorry for the typos)

On Nov 11, 2016 16:28, "Sven Meier" <s...@meiers.net> wrote:

> I don't think this warrants a new module - just add it to
> wicketstuff-minis.
>
> Sven
>
>
> Am 11.11.2016 um 08:42 schrieb Martin Grigorov:
>
>> Great work, Maxim!
>>
>> Let's move it to WicketStuff as a new module.
>> I'd like to add -examples module with different use cases so we can see
>> whether the iframes leak or not for example.
>> Also I'd like to try to add events like beforeDownload/afterDownload so
>> apps can show indicators that something is happening.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Wed, Nov 9, 2016 at 9:13 AM, Ernesto Reinaldo Barreiro <
>> reier...@gmail.com> wrote:
>>
>> Thanks for sharing. I just added a couple of comments/
>>>
>>> On Wed, Nov 9, 2016 at 4:23 AM, Maxim Solodovnik <solomax...@gmail.com>
>>> wrote:
>>>
>>> Hello Martin,
>>>>
>>>> sorry for the delay
>>>>
>>>> here is the repo: https://github.com/solomax/wicket-ajax-download
>>>> here is the commit with the ajax-download-via-iframe implementation:
>>>> https://github.com/solomax/wicket-ajax-download/commit/
>>>> 407936d6f506aa047d9a12a3ecb7aa6c866eb052
>>>>
>>>> Looking forward for your comments :)
>>>>
>>>> On Wed, Nov 9, 2016 at 5:02 AM, Martin Grigorov <mgrigo...@apache.org>
>>>> wrote:
>>>>
>>>>> Hi Maxim,
>>>>>
>>>>> Do you have progress on this ?
>>>>>
>>>>> Martin Grigorov
>>>>> Wicket Training and Consulting
>>>>> https://twitter.com/mtgrigorov
>>>>>
>>>>> On Thu, Nov 3, 2016 at 9:46 AM, Maxim Solodovnik <solomax...@gmail.com
>>>>> wrote:
>>>>>
>>>>> I was hoping to get answer like: in 7.x you should use .xxx :)))
>>>>>> Going to create example on github and will send it for review :)
>>>>>>
>>>>>> On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov <mgrigo...@apache.org
>>>>>> wrote:
>>>>>>
>>>>>> On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik <
>>>>>>>
>>>>>> solomax...@gmail.com>
>>>>
>>>>> wrote:
>>>>>>>
>>>>>>> It seems iframe is the only option :(((
>>>>>>>>
>>>>>>>> Why so sad ?
>>>>>>> iframe is a good option
>>>>>>>
>>>>>>>
>>>>>>> here is the JS plugin wrapping this idea:
>>>>>>>> http://johnculviner.com/jquery-file-download-plugin-
>>>>>>>> for-ajax-like-feature-rich-file-downloads/
>>>>>>>> going to perform additional search
>>>>>>>>
>>>>>>>> Thanks for the idea!
>>>>>>>>
>>>>>>>> On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro <
>>>>>>>> reier...@gmail.com> wrote:
>>>>>>>>
>>>>>>>> or maybe use a hidden iframe to trigger download...
>>>>>>>>>
>>>>>>>>> On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro <
>>>>>>>>> reier...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> I do not know if this is possible but
>>>>>>>>>>
>>>>>>>>>> 1- Open a new tab
>>>>>>>>>> 2- Set location to download URL
>>>>>>>>>> 3- Close the new tab
>>>>>>>>>>
>>>>>>>>>> That way (maybe) page does not close WebSocket connection. It
>>>>>>>>>>
>>>>>>>>> would
>>>>
>>>>> still
>>>>>>>>
>>>>>>>>> be "AJAX"...
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik <
>>>>>>>>>>
>>>>>>>>> solomax...@gmail.com
>

Re: WebSocket close is being called if AjaxDownloader is used

2016-11-08 Thread Maxim Solodovnik
Hello Martin,

sorry for the delay

here is the repo: https://github.com/solomax/wicket-ajax-download
here is the commit with the ajax-download-via-iframe implementation:
https://github.com/solomax/wicket-ajax-download/commit/407936d6f506aa047d9a12a3ecb7aa6c866eb052

Looking forward for your comments :)

On Wed, Nov 9, 2016 at 5:02 AM, Martin Grigorov <mgrigo...@apache.org> wrote:
> Hi Maxim,
>
> Do you have progress on this ?
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Nov 3, 2016 at 9:46 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> I was hoping to get answer like: in 7.x you should use .xxx :)))
>> Going to create example on github and will send it for review :)
>>
>> On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov <mgrigo...@apache.org>
>> wrote:
>>
>> > On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik <solomax...@gmail.com>
>> > wrote:
>> >
>> > > It seems iframe is the only option :(((
>> > >
>> >
>> > Why so sad ?
>> > iframe is a good option
>> >
>> >
>> > > here is the JS plugin wrapping this idea:
>> > > http://johnculviner.com/jquery-file-download-plugin-
>> > > for-ajax-like-feature-rich-file-downloads/
>> > > going to perform additional search
>> > >
>> > > Thanks for the idea!
>> > >
>> > > On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro <
>> > > reier...@gmail.com> wrote:
>> > >
>> > > > or maybe use a hidden iframe to trigger download...
>> > > >
>> > > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro <
>> > > > reier...@gmail.com> wrote:
>> > > >
>> > > > > I do not know if this is possible but
>> > > > >
>> > > > > 1- Open a new tab
>> > > > > 2- Set location to download URL
>> > > > > 3- Close the new tab
>> > > > >
>> > > > > That way (maybe) page does not close WebSocket connection. It would
>> > > still
>> > > > > be "AJAX"...
>> > > > >
>> > > > >
>> > > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik <
>> > solomax...@gmail.com
>> > > >
>> > > > > wrote:
>> > > > >
>> > > > >> I'm afraid It would be not really Ajax .
>> > > > >>
>> > > > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro <
>> > > > >> reier...@gmail.com> wrote:
>> > > > >>
>> > > > >> > maybe open a second browser tab and do the download there...
>> > > > >> >
>> > > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik <
>> > > > solomax...@gmail.com>
>> > > > >> > wrote:
>> > > > >> >
>> > > > >> > > I'll try to create quick-start ASAP
>> > > > >> > >
>> > > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik <
>> > > > >> solomax...@gmail.com>
>> > > > >> > > wrote:
>> > > > >> > >
>> > > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x)
>> > > > >> > > > maybe it can be enhanced to work without unload?
>> > > > >> > > >
>> > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier <s...@meiers.net
>> >
>> > > > wrote:
>> > > > >> > > >
>> > > > >> > > >> AjaxDownload changes the window location - the browser
>> > probably
>> > > > >> > prepares
>> > > > >> > > >> unloading of the page, before opening the attached download
>> > in
>> > > a
>> > > > >> > > separate
>> > > > >> > > >> window.
>> > > > >> > > >>
>> > > > >> > > >> Sven
>> > > > >> > > >>
>> > > > >> > > >>
>> > > > >> > > >>
>> > > > 

Re: WebSocket close is being called if AjaxDownloader is used

2016-11-03 Thread Maxim Solodovnik
I was hoping to get answer like: in 7.x you should use .xxx :)))
Going to create example on github and will send it for review :)

On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > It seems iframe is the only option :(((
> >
>
> Why so sad ?
> iframe is a good option
>
>
> > here is the JS plugin wrapping this idea:
> > http://johnculviner.com/jquery-file-download-plugin-
> > for-ajax-like-feature-rich-file-downloads/
> > going to perform additional search
> >
> > Thanks for the idea!
> >
> > On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > or maybe use a hidden iframe to trigger download...
> > >
> > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > I do not know if this is possible but
> > > >
> > > > 1- Open a new tab
> > > > 2- Set location to download URL
> > > > 3- Close the new tab
> > > >
> > > > That way (maybe) page does not close WebSocket connection. It would
> > still
> > > > be "AJAX"...
> > > >
> > > >
> > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik <
> solomax...@gmail.com
> > >
> > > > wrote:
> > > >
> > > >> I'm afraid It would be not really Ajax .
> > > >>
> > > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro <
> > > >> reier...@gmail.com> wrote:
> > > >>
> > > >> > maybe open a second browser tab and do the download there...
> > > >> >
> > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik <
> > > solomax...@gmail.com>
> > > >> > wrote:
> > > >> >
> > > >> > > I'll try to create quick-start ASAP
> > > >> > >
> > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik <
> > > >> solomax...@gmail.com>
> > > >> > > wrote:
> > > >> > >
> > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x)
> > > >> > > > maybe it can be enhanced to work without unload?
> > > >> > > >
> > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier <s...@meiers.net>
> > > wrote:
> > > >> > > >
> > > >> > > >> AjaxDownload changes the window location - the browser
> probably
> > > >> > prepares
> > > >> > > >> unloading of the page, before opening the attached download
> in
> > a
> > > >> > > separate
> > > >> > > >> window.
> > > >> > > >>
> > > >> > > >> Sven
> > > >> > > >>
> > > >> > > >>
> > > >> > > >>
> > > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov:
> > > >> > > >>
> > > >> > > >>> Hi Maxim,
> > > >> > > >>>
> > > >> > > >>> I don't see any relation between those.
> > > >> > > >>> If it is easy to reproduce please create a quickstart.
> > > >> > > >>>
> > > >> > > >>> Martin Grigorov
> > > >> > > >>> Wicket Training and Consulting
> > > >> > > >>> https://twitter.com/mtgrigorov
> > > >> > > >>>
> > > >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik <
> > > >> > solomax...@gmail.com
> > > >> > > >
> > > >> > > >>> wrote:
> > > >> > > >>>
> > > >> > > >>> Hello,
> > > >> > > >>>>
> > > >> > > >>>> Recently we found weird behavior of AjaxDownloader (similar
> > to
> > > >> this
> > > >> > > [1]
> > > >> > > >>>> one)
> > > >> > > >>>> For some reason at the moment download is initiated
> > > >> > > >>>> WebSocketBehavior::onClose is being called 
> > > >> > > >>>> What is the reason for this?
> > > >> > > >>>>
> > > >> > > >>>>
> > > >> > > >>>> https://cwiki.apache.org/confluence/display/WICKET/
> > > >> > > >>>> AJAX+update+and+file+download+in+one+blow
> > > >> > > >>>>
> > > >> > > >>>> --
> > > >> > > >>>> WBR
> > > >> > > >>>> Maxim aka solomax
> > > >> > > >>>>
> > > >> > > >>>>
> > > >> > > >>
> > > >> > > >> 
> > > >> -
> > > >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > >> > > >> For additional commands, e-mail:
> users-h...@wicket.apache.org
> > > >> > > >>
> > > >> > > >>
> > > >> > > >
> > > >> > > >
> > > >> > > > --
> > > >> > > > WBR
> > > >> > > > Maxim aka solomax
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > --
> > > >> > > WBR
> > > >> > > Maxim aka solomax
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > Regards - Ernesto Reinaldo Barreiro
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> WBR
> > > >> Maxim aka solomax
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > >
> > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: WebSocket close is being called if AjaxDownloader is used

2016-11-03 Thread Maxim Solodovnik
It seems iframe is the only option :(((
here is the JS plugin wrapping this idea:
http://johnculviner.com/jquery-file-download-plugin-for-ajax-like-feature-rich-file-downloads/
going to perform additional search

Thanks for the idea!

On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> or maybe use a hidden iframe to trigger download...
>
> On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > I do not know if this is possible but
> >
> > 1- Open a new tab
> > 2- Set location to download URL
> > 3- Close the new tab
> >
> > That way (maybe) page does not close WebSocket connection. It would still
> > be "AJAX"...
> >
> >
> > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> >> I'm afraid It would be not really Ajax .
> >>
> >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro <
> >> reier...@gmail.com> wrote:
> >>
> >> > maybe open a second browser tab and do the download there...
> >> >
> >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik <
> solomax...@gmail.com>
> >> > wrote:
> >> >
> >> > > I'll try to create quick-start ASAP
> >> > >
> >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik <
> >> solomax...@gmail.com>
> >> > > wrote:
> >> > >
> >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x)
> >> > > > maybe it can be enhanced to work without unload?
> >> > > >
> >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier <s...@meiers.net>
> wrote:
> >> > > >
> >> > > >> AjaxDownload changes the window location - the browser probably
> >> > prepares
> >> > > >> unloading of the page, before opening the attached download in a
> >> > > separate
> >> > > >> window.
> >> > > >>
> >> > > >> Sven
> >> > > >>
> >> > > >>
> >> > > >>
> >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov:
> >> > > >>
> >> > > >>> Hi Maxim,
> >> > > >>>
> >> > > >>> I don't see any relation between those.
> >> > > >>> If it is easy to reproduce please create a quickstart.
> >> > > >>>
> >> > > >>> Martin Grigorov
> >> > > >>> Wicket Training and Consulting
> >> > > >>> https://twitter.com/mtgrigorov
> >> > > >>>
> >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik <
> >> > solomax...@gmail.com
> >> > > >
> >> > > >>> wrote:
> >> > > >>>
> >> > > >>> Hello,
> >> > > >>>>
> >> > > >>>> Recently we found weird behavior of AjaxDownloader (similar to
> >> this
> >> > > [1]
> >> > > >>>> one)
> >> > > >>>> For some reason at the moment download is initiated
> >> > > >>>> WebSocketBehavior::onClose is being called 
> >> > > >>>> What is the reason for this?
> >> > > >>>>
> >> > > >>>>
> >> > > >>>> https://cwiki.apache.org/confluence/display/WICKET/
> >> > > >>>> AJAX+update+and+file+download+in+one+blow
> >> > > >>>>
> >> > > >>>> --
> >> > > >>>> WBR
> >> > > >>>> Maxim aka solomax
> >> > > >>>>
> >> > > >>>>
> >> > > >>
> >> > > >> 
> >> -
> >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > > >> For additional commands, e-mail: users-h...@wicket.apache.org
> >> > > >>
> >> > > >>
> >> > > >
> >> > > >
> >> > > > --
> >> > > > WBR
> >> > > > Maxim aka solomax
> >> > > >
> >> > >
> >> > >
> >> > >
> >> > > --
> >> > > WBR
> >> > > Maxim aka solomax
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Regards - Ernesto Reinaldo Barreiro
> >> >
> >>
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
WBR
Maxim aka solomax


Re: WebSocket close is being called if AjaxDownloader is used

2016-11-03 Thread Maxim Solodovnik
>> Maxim said: websocket.close() triggers the ajax download.
Nope, sorry for my English

I said
   For some reason at the moment download is initiated
   WebSocketBehavior::onClose is being called 

so user clicks "Download", and then, as the result WebSocket#onClose() is
being called
I would really like to work-around this

On Thu, Nov 3, 2016 at 3:04 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Thu, Nov 3, 2016 at 8:46 AM, Sven Meier <s...@meiers.net> wrote:
>
> > AjaxDownload changes the window location - the browser probably prepares
> > unloading of the page, before opening the attached download in a separate
> > window.
> >
>
> This could be the reason but it is the other way around of what Maxim
> explained in his first email.
>
> Maxim said: websocket.close() triggers the ajax download.
>
> Sven's explanation is valid when: the user click the download link, the
> browser does 'location.href=...', the browser triggers 'window.unload' and
> this leads to WebSocket.close() on the client side, the last triggers
> WebSocket#onClose() at the server side
>
>
> >
> > Sven
> >
> >
> >
> > Am 03.11.2016 um 08:33 schrieb Martin Grigorov:
> >
> >> Hi Maxim,
> >>
> >> I don't see any relation between those.
> >> If it is easy to reproduce please create a quickstart.
> >>
> >> Martin Grigorov
> >> Wicket Training and Consulting
> >> https://twitter.com/mtgrigorov
> >>
> >> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik <solomax...@gmail.com>
> >> wrote:
> >>
> >> Hello,
> >>>
> >>> Recently we found weird behavior of AjaxDownloader (similar to this [1]
> >>> one)
> >>> For some reason at the moment download is initiated
> >>> WebSocketBehavior::onClose is being called 
> >>> What is the reason for this?
> >>>
> >>>
> >>> https://cwiki.apache.org/confluence/display/WICKET/
> >>> AJAX+update+and+file+download+in+one+blow
> >>>
> >>> --
> >>> WBR
> >>> Maxim aka solomax
> >>>
> >>>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>



-- 
WBR
Maxim aka solomax


Re: WebSocket close is being called if AjaxDownloader is used

2016-11-03 Thread Maxim Solodovnik
I'm afraid It would be not really Ajax .

On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> maybe open a second browser tab and do the download there...
>
> On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > I'll try to create quick-start ASAP
> >
> > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > AjaxDownload was for wicket 1.5.x (or maybe 6.x)
> > > maybe it can be enhanced to work without unload?
> > >
> > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier <s...@meiers.net> wrote:
> > >
> > >> AjaxDownload changes the window location - the browser probably
> prepares
> > >> unloading of the page, before opening the attached download in a
> > separate
> > >> window.
> > >>
> > >> Sven
> > >>
> > >>
> > >>
> > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov:
> > >>
> > >>> Hi Maxim,
> > >>>
> > >>> I don't see any relation between those.
> > >>> If it is easy to reproduce please create a quickstart.
> > >>>
> > >>> Martin Grigorov
> > >>> Wicket Training and Consulting
> > >>> https://twitter.com/mtgrigorov
> > >>>
> > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik <
> solomax...@gmail.com
> > >
> > >>> wrote:
> > >>>
> > >>> Hello,
> > >>>>
> > >>>> Recently we found weird behavior of AjaxDownloader (similar to this
> > [1]
> > >>>> one)
> > >>>> For some reason at the moment download is initiated
> > >>>> WebSocketBehavior::onClose is being called 
> > >>>> What is the reason for this?
> > >>>>
> > >>>>
> > >>>> https://cwiki.apache.org/confluence/display/WICKET/
> > >>>> AJAX+update+and+file+download+in+one+blow
> > >>>>
> > >>>> --
> > >>>> WBR
> > >>>> Maxim aka solomax
> > >>>>
> > >>>>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>
> > >>
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
WBR
Maxim aka solomax


Re: WebSocket close is being called if AjaxDownloader is used

2016-11-03 Thread Maxim Solodovnik
I'll try to create quick-start ASAP

On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> AjaxDownload was for wicket 1.5.x (or maybe 6.x)
> maybe it can be enhanced to work without unload?
>
> On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier <s...@meiers.net> wrote:
>
>> AjaxDownload changes the window location - the browser probably prepares
>> unloading of the page, before opening the attached download in a separate
>> window.
>>
>> Sven
>>
>>
>>
>> Am 03.11.2016 um 08:33 schrieb Martin Grigorov:
>>
>>> Hi Maxim,
>>>
>>> I don't see any relation between those.
>>> If it is easy to reproduce please create a quickstart.
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>>
>>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik <solomax...@gmail.com>
>>> wrote:
>>>
>>> Hello,
>>>>
>>>> Recently we found weird behavior of AjaxDownloader (similar to this [1]
>>>> one)
>>>> For some reason at the moment download is initiated
>>>> WebSocketBehavior::onClose is being called 
>>>> What is the reason for this?
>>>>
>>>>
>>>> https://cwiki.apache.org/confluence/display/WICKET/
>>>> AJAX+update+and+file+download+in+one+blow
>>>>
>>>> --
>>>> WBR
>>>> Maxim aka solomax
>>>>
>>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: WebSocket close is being called if AjaxDownloader is used

2016-11-03 Thread Maxim Solodovnik
AjaxDownload was for wicket 1.5.x (or maybe 6.x)
maybe it can be enhanced to work without unload?

On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier <s...@meiers.net> wrote:

> AjaxDownload changes the window location - the browser probably prepares
> unloading of the page, before opening the attached download in a separate
> window.
>
> Sven
>
>
>
> Am 03.11.2016 um 08:33 schrieb Martin Grigorov:
>
>> Hi Maxim,
>>
>> I don't see any relation between those.
>> If it is easy to reproduce please create a quickstart.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik <solomax...@gmail.com>
>> wrote:
>>
>> Hello,
>>>
>>> Recently we found weird behavior of AjaxDownloader (similar to this [1]
>>> one)
>>> For some reason at the moment download is initiated
>>> WebSocketBehavior::onClose is being called 
>>> What is the reason for this?
>>>
>>>
>>> https://cwiki.apache.org/confluence/display/WICKET/
>>> AJAX+update+and+file+download+in+one+blow
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


WebSocket close is being called if AjaxDownloader is used

2016-11-02 Thread Maxim Solodovnik
Hello,

Recently we found weird behavior of AjaxDownloader (similar to this [1] one)
For some reason at the moment download is initiated
WebSocketBehavior::onClose is being called 
What is the reason for this?


https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

-- 
WBR
Maxim aka solomax


Re: (Customizable) Fragment as String

2016-11-01 Thread Maxim Solodovnik
I was able to find workaround :)
In case of following modification:
https://github.com/solomax/fragment-as-string/commit/c6d5e8a692242fa2754a39b9cbe964d24c84a97e
Everything works as expected

The only issue is: fragment is wrapped with
DEFAULT_MARKUP: ""
Is there any option to remove it?


On Mon, Oct 17, 2016 at 1:57 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> - org.apache.wicket.markup.IMarkupResourceStreamProvider
> - Component#setMarkup()
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Oct 17, 2016 at 8:33 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Is there other option to have additional markup in the same file?
> >
> > WBR, Maxim
> > (from mobile, sorry for the typos)
> >
> > On Oct 17, 2016 12:44, "Maxim Solodovnik" <solomax...@gmail.com> wrote:
> >
> > That's a pitty :(
> > Thanks for your time
> > It would be nice to have this functionality available
> >
> > WBR, Maxim
> > (from mobile, sorry for the typos)
> >
> > On Oct 16, 2016 04:44, "Martin Grigorov" <mgrigo...@apache.org> wrote:
> >
> > > Sorry, but I don't find a way to make it work.
> > > It will need more thinking and debugging and I have no that much time
> > right
> > > now.
> > > Just use Panel instead of Fragment.
> > > I'll add a comment to ComponentRenderer's javadoc that Fragments are
> not
> > > supported.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Fri, Oct 14, 2016 at 9:14 AM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Many thanks :)
> > > >
> > > > On Fri, Oct 14, 2016 at 2:12 PM, Martin Grigorov <
> mgrigo...@apache.org
> > >
> > > > wrote:
> > > >
> > > > > I'll take a look at the weekend.
> > > > >
> > > > > Martin Grigorov
> > > > > Wicket Training and Consulting
> > > > > https://twitter.com/mtgrigorov
> > > > >
> > > > > On Fri, Oct 14, 2016 at 5:26 AM, Maxim Solodovnik <
> > > solomax...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Yes, the changes were local :(
> > > > > > Here is the quickstart: https://github.com/solomax/fra
> > > gment-as-string
> > > > > >
> > > > > > In case following line is uncommented
> > > > > > https://github.com/solomax/fragment-as-string/blob/
> > > > > > master/src/main/java/org/apache/solomax/HomePage.java#L16
> > > > > > (next one should be commented)
> > > > > > Tests are fails with markup not found exception
> > > > > >
> > > > > > Is it possible to create something like "wicket:visible" (or
> > > > > "om:visible")
> > > > > > tag+attribute so it can act as I call setVisible in Java?
> > > > > >
> > > > > > On Fri, Oct 14, 2016 at 1:14 AM, Martin Grigorov <
> > > mgrigo...@apache.org
> > > > >
> > > > > > wrote:
> > > > > >
> > > > > > > On Thu, Oct 13, 2016 at 6:49 PM, Maxim Solodovnik <
> > > > > solomax...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Hello Martin,
> > > > > > > >
> > > > > > > > Thanks for the quick response!
> > > > > > > >
> > > > > > > > On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov <
> > > > > > mgrigo...@apache.org>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi Maxim,
> > > > > > > > >
> > > > > > > > > On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik <
> > > > > > > solomax...@gmail.com>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > Hello All,
> > > > > > > > > >
> > > > > > > > > > I'm successfully using following code [1] to get Panel as
> > > > String
> > > > > > > > &g

Re: (Customizable) Fragment as String

2016-10-17 Thread Maxim Solodovnik
Is there other option to have additional markup in the same file?

WBR, Maxim
(from mobile, sorry for the typos)

On Oct 17, 2016 12:44, "Maxim Solodovnik" <solomax...@gmail.com> wrote:

That's a pitty :(
Thanks for your time
It would be nice to have this functionality available

WBR, Maxim
(from mobile, sorry for the typos)

On Oct 16, 2016 04:44, "Martin Grigorov" <mgrigo...@apache.org> wrote:

> Sorry, but I don't find a way to make it work.
> It will need more thinking and debugging and I have no that much time right
> now.
> Just use Panel instead of Fragment.
> I'll add a comment to ComponentRenderer's javadoc that Fragments are not
> supported.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Oct 14, 2016 at 9:14 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Many thanks :)
> >
> > On Fri, Oct 14, 2016 at 2:12 PM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > I'll take a look at the weekend.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Fri, Oct 14, 2016 at 5:26 AM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Yes, the changes were local :(
> > > > Here is the quickstart: https://github.com/solomax/fra
> gment-as-string
> > > >
> > > > In case following line is uncommented
> > > > https://github.com/solomax/fragment-as-string/blob/
> > > > master/src/main/java/org/apache/solomax/HomePage.java#L16
> > > > (next one should be commented)
> > > > Tests are fails with markup not found exception
> > > >
> > > > Is it possible to create something like "wicket:visible" (or
> > > "om:visible")
> > > > tag+attribute so it can act as I call setVisible in Java?
> > > >
> > > > On Fri, Oct 14, 2016 at 1:14 AM, Martin Grigorov <
> mgrigo...@apache.org
> > >
> > > > wrote:
> > > >
> > > > > On Thu, Oct 13, 2016 at 6:49 PM, Maxim Solodovnik <
> > > solomax...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hello Martin,
> > > > > >
> > > > > > Thanks for the quick response!
> > > > > >
> > > > > > On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov <
> > > > mgrigo...@apache.org>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Maxim,
> > > > > > >
> > > > > > > On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik <
> > > > > solomax...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Hello All,
> > > > > > > >
> > > > > > > > I'm successfully using following code [1] to get Panel as
> > String
> > > > > > > > Unfortunately It is not possible to get Fragment as String
> this
> > > way
> > > > > :(
> > > > > > > >
> > > > > > >
> > > > > > > You can replace your util with ComponentRenderer#
> > renderComponent()
> > > > > > > https://github.com/apache/wicket/blob/
> > > 70606d73e9165d37c1d8b7c7820279
> > > > > > > fb4be18770/wicket-core/src/main/java/org/apache/wicket/
> > > > > core/util/string/
> > > > > > > ComponentRenderer.java#L86
> > > > > > > The problem here is that your helper page doesn't provide the
> > > > > Fragment's
> > > > > > > markup. Someone has to provide it.
> > > > > > >
> > > > > > >
> > > > > > I have added following block to [2]
> > > > > >
> > > > >
> > > > > No, you have not!
> > > > > There is no 'fragment' in [2] and [3]
> > > > > Or you did it locally ? Better create a branch and point us to it.
> > > > >
> > > > >
> > > > > >  > wicket:id="prefix">
> > > > >  > > > > > wicket:id="title">  > > > > > wicket:id="start"> -  > > > > > wicket:fragment>
> > > > > >
> > > > > > then I have added following c

Re: (Customizable) Fragment as String

2016-10-16 Thread Maxim Solodovnik
That's a pitty :(
Thanks for your time
It would be nice to have this functionality available

WBR, Maxim
(from mobile, sorry for the typos)

On Oct 16, 2016 04:44, "Martin Grigorov" <mgrigo...@apache.org> wrote:

> Sorry, but I don't find a way to make it work.
> It will need more thinking and debugging and I have no that much time right
> now.
> Just use Panel instead of Fragment.
> I'll add a comment to ComponentRenderer's javadoc that Fragments are not
> supported.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Oct 14, 2016 at 9:14 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Many thanks :)
> >
> > On Fri, Oct 14, 2016 at 2:12 PM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > I'll take a look at the weekend.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Fri, Oct 14, 2016 at 5:26 AM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Yes, the changes were local :(
> > > > Here is the quickstart: https://github.com/solomax/
> fragment-as-string
> > > >
> > > > In case following line is uncommented
> > > > https://github.com/solomax/fragment-as-string/blob/
> > > > master/src/main/java/org/apache/solomax/HomePage.java#L16
> > > > (next one should be commented)
> > > > Tests are fails with markup not found exception
> > > >
> > > > Is it possible to create something like "wicket:visible" (or
> > > "om:visible")
> > > > tag+attribute so it can act as I call setVisible in Java?
> > > >
> > > > On Fri, Oct 14, 2016 at 1:14 AM, Martin Grigorov <
> mgrigo...@apache.org
> > >
> > > > wrote:
> > > >
> > > > > On Thu, Oct 13, 2016 at 6:49 PM, Maxim Solodovnik <
> > > solomax...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hello Martin,
> > > > > >
> > > > > > Thanks for the quick response!
> > > > > >
> > > > > > On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov <
> > > > mgrigo...@apache.org>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Maxim,
> > > > > > >
> > > > > > > On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik <
> > > > > solomax...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Hello All,
> > > > > > > >
> > > > > > > > I'm successfully using following code [1] to get Panel as
> > String
> > > > > > > > Unfortunately It is not possible to get Fragment as String
> this
> > > way
> > > > > :(
> > > > > > > >
> > > > > > >
> > > > > > > You can replace your util with ComponentRenderer#
> > renderComponent()
> > > > > > > https://github.com/apache/wicket/blob/
> > > 70606d73e9165d37c1d8b7c7820279
> > > > > > > fb4be18770/wicket-core/src/main/java/org/apache/wicket/
> > > > > core/util/string/
> > > > > > > ComponentRenderer.java#L86
> > > > > > > The problem here is that your helper page doesn't provide the
> > > > > Fragment's
> > > > > > > markup. Someone has to provide it.
> > > > > > >
> > > > > > >
> > > > > > I have added following block to [2]
> > > > > >
> > > > >
> > > > > No, you have not!
> > > > > There is no 'fragment' in [2] and [3]
> > > > > Or you did it locally ? Better create a branch and point us to it.
> > > > >
> > > > >
> > > > > >  > wicket:id="prefix">
> > > > >  > > > > > wicket:id="title">  > > > > > wicket:id="start"> -  > > > > > wicket:fragment>
> > > > > >
> > > > > > then I have added following code to [3]
> > > > > >
> > > > > > Fragment f = new Fragment(TemplatePage.COMP_ID, "subject", this);
> > > > > > f.add(new OmTextLabel(&qu

Re: (Customizable) Fragment as String

2016-10-14 Thread Maxim Solodovnik
Many thanks :)

On Fri, Oct 14, 2016 at 2:12 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> I'll take a look at the weekend.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Oct 14, 2016 at 5:26 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Yes, the changes were local :(
> > Here is the quickstart: https://github.com/solomax/fragment-as-string
> >
> > In case following line is uncommented
> > https://github.com/solomax/fragment-as-string/blob/
> > master/src/main/java/org/apache/solomax/HomePage.java#L16
> > (next one should be commented)
> > Tests are fails with markup not found exception
> >
> > Is it possible to create something like "wicket:visible" (or
> "om:visible")
> > tag+attribute so it can act as I call setVisible in Java?
> >
> > On Fri, Oct 14, 2016 at 1:14 AM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > On Thu, Oct 13, 2016 at 6:49 PM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Hello Martin,
> > > >
> > > > Thanks for the quick response!
> > > >
> > > > On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov <
> > mgrigo...@apache.org>
> > > > wrote:
> > > >
> > > > > Hi Maxim,
> > > > >
> > > > > On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik <
> > > solomax...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hello All,
> > > > > >
> > > > > > I'm successfully using following code [1] to get Panel as String
> > > > > > Unfortunately It is not possible to get Fragment as String this
> way
> > > :(
> > > > > >
> > > > >
> > > > > You can replace your util with ComponentRenderer#renderComponent()
> > > > > https://github.com/apache/wicket/blob/
> 70606d73e9165d37c1d8b7c7820279
> > > > > fb4be18770/wicket-core/src/main/java/org/apache/wicket/
> > > core/util/string/
> > > > > ComponentRenderer.java#L86
> > > > > The problem here is that your helper page doesn't provide the
> > > Fragment's
> > > > > markup. Someone has to provide it.
> > > > >
> > > > >
> > > > I have added following block to [2]
> > > >
> > >
> > > No, you have not!
> > > There is no 'fragment' in [2] and [3]
> > > Or you did it locally ? Better create a branch and point us to it.
> > >
> > >
> > > > 
> > >  > > > wicket:id="title">  > > > wicket:id="start"> -  > > > wicket:fragment>
> > > >
> > > > then I have added following code to [3]
> > > >
> > > > Fragment f = new Fragment(TemplatePage.COMP_ID, "subject", this);
> > > > f.add(new OmTextLabel("prefix", 1151L, langId)
> > > > , new OmTextLabel("title", a.getTitle())
> > > > , new OmTextLabel("start",
> > > > CalendarPatterns.getDateWithTimeByMiliSecondsAn
> dTimeZone(a.getStart(),
> > > > tz))
> > > > , new OmTextLabel("end",
> > > > CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(a.getEnd(),
> > > tz))
> > > > );
> > > >
> > > > so I I was hoping markup should be available  but it's not :(
> > > >
> > > > [3]
> > > > https://github.com/apache/openmeetings/blob/3.1.x/
> > > > openmeetings-service/src/main/java/org/apache/openmeetings/
> > > > service/mail/template/CreatedAppointmentTemplate.java
> > > >
> > > > [2]
> > > > https://github.com/apache/openmeetings/blob/3.1.x/
> > > > openmeetings-service/src/main/java/org/apache/openmeetings/
> > > > service/mail/template/CreatedAppointmentTemplate.html#L33
> > > >
> > > >
> > > > >
> > > > > >
> > > > > > The goal I'm trying to achieve is: store email subject as
> > > > wicket:fragment
> > > > > >
> > > > > > Another question is: is it possible to edit markup like this
> > > > > >  - 
>  > > > > > wicket:id="aa3">
> > > > > >
> > > > > > to be able to remove some blocks without b

Re: (Customizable) Fragment as String

2016-10-13 Thread Maxim Solodovnik
Yes, the changes were local :(
Here is the quickstart: https://github.com/solomax/fragment-as-string

In case following line is uncommented
https://github.com/solomax/fragment-as-string/blob/master/src/main/java/org/apache/solomax/HomePage.java#L16
(next one should be commented)
Tests are fails with markup not found exception

Is it possible to create something like "wicket:visible" (or "om:visible")
tag+attribute so it can act as I call setVisible in Java?

On Fri, Oct 14, 2016 at 1:14 AM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Thu, Oct 13, 2016 at 6:49 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Hello Martin,
> >
> > Thanks for the quick response!
> >
> > On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > Hi Maxim,
> > >
> > > On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Hello All,
> > > >
> > > > I'm successfully using following code [1] to get Panel as String
> > > > Unfortunately It is not possible to get Fragment as String this way
> :(
> > > >
> > >
> > > You can replace your util with ComponentRenderer#renderComponent()
> > > https://github.com/apache/wicket/blob/70606d73e9165d37c1d8b7c7820279
> > > fb4be18770/wicket-core/src/main/java/org/apache/wicket/
> core/util/string/
> > > ComponentRenderer.java#L86
> > > The problem here is that your helper page doesn't provide the
> Fragment's
> > > markup. Someone has to provide it.
> > >
> > >
> > I have added following block to [2]
> >
>
> No, you have not!
> There is no 'fragment' in [2] and [3]
> Or you did it locally ? Better create a branch and point us to it.
>
>
> > 
>  > wicket:id="title">  > wicket:id="start"> -  > wicket:fragment>
> >
> > then I have added following code to [3]
> >
> > Fragment f = new Fragment(TemplatePage.COMP_ID, "subject", this);
> > f.add(new OmTextLabel("prefix", 1151L, langId)
> > , new OmTextLabel("title", a.getTitle())
> > , new OmTextLabel("start",
> > CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(a.getStart(),
> > tz))
> > , new OmTextLabel("end",
> > CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(a.getEnd(),
> tz))
> > );
> >
> > so I I was hoping markup should be available  but it's not :(
> >
> > [3]
> > https://github.com/apache/openmeetings/blob/3.1.x/
> > openmeetings-service/src/main/java/org/apache/openmeetings/
> > service/mail/template/CreatedAppointmentTemplate.java
> >
> > [2]
> > https://github.com/apache/openmeetings/blob/3.1.x/
> > openmeetings-service/src/main/java/org/apache/openmeetings/
> > service/mail/template/CreatedAppointmentTemplate.html#L33
> >
> >
> > >
> > > >
> > > > The goal I'm trying to achieve is: store email subject as
> > wicket:fragment
> > > >
> > > > Another question is: is it possible to edit markup like this
> > > >  -   > > > wicket:id="aa3">
> > > >
> > > > to be able to remove some blocks without breaking the rendering
> > > >
> > > > so I can modify the markup something like this
> > > >  -  > > > wicket:id="aa2">  wicket:remove>
> > > >
> > > > The java code will remain the same:
> > > > comp.add(new Label("aa1", "AA1"), new Label("aa2", "AA2"), new
> > > Label("aa3",
> > > > "AA3"))
> > > >
> > >
> > > Just make aa2 and aa3 inviible (e.g. aa2.setVisible(false))
> > >
> > >
> > Actually we have markup files unpacked, so end users can add some
> > modifications to it
> > So I need to let users to modify fragments without recompiling or java
> > programming
> > re-arraging blocks is OK, but removing 
> >
>
> I'm afraid you will need to use auto-components for such requirement.
> E.g.  in the markup and IComponentResolver in Java that knows
> what to do with such elements in the markup. E.g. it will instantiate a
> Label and set its model by reading some special attribute.
>
>
> >
> >
> >
> > > >
> > > > And I'll get
> > > > AA1
> > > > as a result without any errors/warnings
> > > >
> > > > Thanks in advance!
> > > >
> > > > [1]
> > > > https://github.com/apache/openmeetings/blob/3.1.x/
> > > > openmeetings-service/src/main/java/org/apache/openmeetings/
> > > > service/mail/template/AbstractTemplatePanel.java#L70
> > > >
> > > > --
> > > > WBR
> > > > Maxim aka solomax
> > > >
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: (Customizable) Fragment as String

2016-10-13 Thread Maxim Solodovnik
Hello Martin,

Thanks for the quick response!

On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi Maxim,
>
> On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Hello All,
> >
> > I'm successfully using following code [1] to get Panel as String
> > Unfortunately It is not possible to get Fragment as String this way :(
> >
>
> You can replace your util with ComponentRenderer#renderComponent()
> https://github.com/apache/wicket/blob/70606d73e9165d37c1d8b7c7820279
> fb4be18770/wicket-core/src/main/java/org/apache/wicket/core/util/string/
> ComponentRenderer.java#L86
> The problem here is that your helper page doesn't provide the Fragment's
> markup. Someone has to provide it.
>
>
I have added following block to [2]
   - 

then I have added following code to [3]

Fragment f = new Fragment(TemplatePage.COMP_ID, "subject", this);
f.add(new OmTextLabel("prefix", 1151L, langId)
, new OmTextLabel("title", a.getTitle())
, new OmTextLabel("start",
CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(a.getStart(), tz))
, new OmTextLabel("end",
CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(a.getEnd(), tz))
);

so I I was hoping markup should be available  but it's not :(

[3]
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-service/src/main/java/org/apache/openmeetings/service/mail/template/CreatedAppointmentTemplate.java

[2]
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-service/src/main/java/org/apache/openmeetings/service/mail/template/CreatedAppointmentTemplate.html#L33


>
> >
> > The goal I'm trying to achieve is: store email subject as wicket:fragment
> >
> > Another question is: is it possible to edit markup like this
> >  -   > wicket:id="aa3">
> >
> > to be able to remove some blocks without breaking the rendering
> >
> > so I can modify the markup something like this
> >  -  > wicket:id="aa2"> 
> >
> > The java code will remain the same:
> > comp.add(new Label("aa1", "AA1"), new Label("aa2", "AA2"), new
> Label("aa3",
> > "AA3"))
> >
>
> Just make aa2 and aa3 inviible (e.g. aa2.setVisible(false))
>
>
Actually we have markup files unpacked, so end users can add some
modifications to it
So I need to let users to modify fragments without recompiling or java
programming
re-arraging blocks is OK, but removing 



> >
> > And I'll get
> > AA1
> > as a result without any errors/warnings
> >
> > Thanks in advance!
> >
> > [1]
> > https://github.com/apache/openmeetings/blob/3.1.x/
> > openmeetings-service/src/main/java/org/apache/openmeetings/
> > service/mail/template/AbstractTemplatePanel.java#L70
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


(Customizable) Fragment as String

2016-10-13 Thread Maxim Solodovnik
Hello All,

I'm successfully using following code [1] to get Panel as String
Unfortunately It is not possible to get Fragment as String this way :(

The goal I'm trying to achieve is: store email subject as wicket:fragment

Another question is: is it possible to edit markup like this
 -  

to be able to remove some blocks without breaking the rendering

so I can modify the markup something like this
 -  

The java code will remain the same:
comp.add(new Label("aa1", "AA1"), new Label("aa2", "AA2"), new Label("aa3",
"AA3"))

And I'll get
AA1
as a result without any errors/warnings

Thanks in advance!

[1]
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-service/src/main/java/org/apache/openmeetings/service/mail/template/AbstractTemplatePanel.java#L70

-- 
WBR
Maxim aka solomax


Re: Wicket-jQuery-UI vs. Kendo UI

2016-10-06 Thread Maxim Solodovnik
You can mix components based on your needs and free to mix it :)

On Thu, Oct 6, 2016 at 6:48 PM, Bergmann Manfred
 wrote:
> Hello.
>
> In the wicket-jquery-ui project there are two widget sets, jQuery UI and 
> Kendo UI.
> What’s difference? Are they competing widgets sets or is one a subset of the 
> other, or can they be mixed?
> I.e. looking here:
> http://www.7thweb.net/wicket-jquery-ui/
> Something like the DataTable (Pro) doesn’t seem to be available in Wicket 
> jQuery UI.
>
>
> Manfred
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
WBR
Maxim aka solomax

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



Re: Indicating dialog button don't stop

2016-09-18 Thread Maxim Solodovnik
Hello Sebastien,

sorry for the late response was too busy to check :((
Everything works as expected in samples, will check my code
Thanks a lot for the fix!

On Tue, Sep 13, 2016 at 3:01 AM, Sebastien  wrote:

> Hi Maxim,
>
> This is not intended that the dialog flickers... This is weird and I don't
> see any reason (and I don't see this on my side...)
>
> Can you run the "upload dialog" sample of wicket-jquery-ui-samples to see
> if you do repro it ?
>
> > git clone https://github.com/sebfz1/wicket-jquery-ui.git
> > cd wicket-jquery-ui
> > mvn clean install
> > cd wicket-jquery-ui-samples
> > mvn jetty:run
> (AFAIR)
>
> Thanks in advance,
> SĂ©bastien
>



-- 
WBR
Maxim aka solomax


Re: Indicating dialog button don't stop

2016-09-12 Thread Maxim Solodovnik
Thanks a lot for the SNAPSHOT
It works as expected :) the only issue I was able to see is: dialog
flickers while waiting ... is it expected?

Thanks for the steps will try to use it to debug broken menu item,
will write back :)

On Mon, Sep 12, 2016 at 5:23 AM, Sebastien  wrote:
> Hi Maxim,
>
> I've deployed 7.4.1-SNAPSHOT with the fix.
>
> About debugging the client side, you would :
> - watch the dev tool / network ajax requests and response
> - watch the ajax debug window if there is any js commands in the ajax
> response that has not effect (you can copy/paste them in the brower's dev
> console)
> - look at the rendered source, also for the js commands in the widget
> initialization
> - clone wicket-jquery-ui and put some 'console.log' in the relevant
> javascript statements.
> - if still no clue, start from scratch in a quickstart... :/
>
> Hope this helps,
> Sebastien
>
>



-- 
WBR
Maxim aka solomax

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



Re: Indicating dialog button don't stop

2016-09-11 Thread Maxim Solodovnik
sorry, my bad :(

On Sun, Sep 11, 2016 at 9:13 PM, Martin Grigorov
<martin.grigo...@gmail.com> wrote:
> Hi Maxim,
>
> Please use users@ for these questions.
> Thanks!
>
> On Sep 11, 2016 2:59 PM, "Maxim Solodovnik" <solomax...@gmail.com> wrote:
>
>> Thanks a lot Sebastien! :)))
>>
>> Another question: in some cases onClick handler on menuItem is not
>> working, could you please advise how to debug it?
>> weird thing it sometimes works and sometimes not :( so I need to start
>> debugging on maybe client side
>> what is the best way to do it?
>>
>> On Sun, Sep 11, 2016 at 6:23 PM, Sebastien <seb...@gmail.com> wrote:
>> > Hi Maxim,
>> >
>> > It seems to be a bug on my side, I'm on it...
>> >
>> > Best regards,
>> > Sebastien.
>> >
>> >
>> > On Sun, Sep 11, 2016 at 6:57 AM, Maxim Solodovnik <solomax...@gmail.com>
>> > wrote:
>> >>
>> >> Thanks for the quick answer :)
>> >>
>> >> I'm opening dialog using open method [1]
>> >> In onOpen [2] method I'm adding some internal components (including
>> >> indicating button to enable it (another HACK))
>> >>
>> >> Actually the following scenario doesn't work:
>> >> I perform "heavy" file conversion in onSubmit method [3] in case error
>> >> happend, I'm not closing dialog and displaying error 
>> >> And the indicating button is still "indicating" on this step
>> >>
>> >>
>> >> [1]
>> >> https://github.com/apache/openmeetings/blob/3.2.x/
>> openmeetings-web/src/main/java/org/apache/openmeetings/
>> web/room/sidebar/RoomSidebar.java#L224
>> >> [2]
>> >> https://github.com/apache/openmeetings/blob/3.2.x/
>> openmeetings-web/src/main/java/org/apache/openmeetings/
>> web/room/sidebar/UploadDialog.java#L165
>> >>
>> >> https://github.com/apache/openmeetings/blob/3.2.x/
>> openmeetings-web/src/main/java/org/apache/openmeetings/
>> web/room/sidebar/UploadDialog.java#L197
>> >>
>> >> On Sun, Sep 11, 2016 at 1:39 AM, Sebastien <seb...@gmail.com> wrote:
>> >> > Hi Maxim,
>> >> >
>> >> > Are you re-attaching the dialog after the click somehow, like
>> >> > target.add(theDialogOrItsContainer) ?
>> >> >
>> >> > Best regards,
>> >> > Sebastien.
>> >> >
>> >> >
>> >> >
>> >> > On Sat, Sep 10, 2016 at 7:37 PM, Maxim Solodovnik <
>> solomax...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Hello Sebastien,
>> >> >>
>> >> >> I'm struggling with indicating dialog button, after dialog re-open it
>> >> >> continue "indicating"
>> >> >> I can hack it (remove indicating icon, but this seems to be wrong
>> >> >> solution
>> >> >> :(
>> >> >>
>> >> >> jQuery.event.trigger("ajaxStop");
>> >> >> Also seems to not work :(
>> >> >> What am I doing wrong?
>> >> >>
>> >> >> --
>> >> >> WBR
>> >> >> Maxim aka solomax
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> WBR
>> >> Maxim aka solomax
>> >
>> >
>>
>>
>>
>> --
>> 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: Form from post to multipart

2016-09-05 Thread Maxim Solodovnik
Maybe you can use nested forms?

On Mon, Sep 5, 2016 at 2:51 PM, Đ˜Đ»ŃŒŃ ĐĐ°Ń€Ń‹Đ¶ĐœŃ‹Đč  wrote:

> Hello!
>
> Please help to figure out is there some good solution for the following
> situation:
>
> There is a page with Form with in it. Form contains lots of components
> underneath. And some components can be changed by AJAX from "view"
> representation to "edit". And sometimes "edit" is some file upload
> component. And in this case to work proporly: form encoding should be
> changed to multipart. But I don't want to make it by sending in ajax
> response whole Form, because it's pretty big...  Is there a good way update
> just a component and if parent form is not multipart - switch it to
> multipart?
>
> Thanks,
>
> Ilya
>
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>



-- 
WBR
Maxim aka solomax


Re: Question regarding WebSocketBehavior::onConnect message

2016-09-01 Thread Maxim Solodovnik
The situation is weird  and I don't know how it can be investigated

everything works as expected in case NoVersionMapper is not used.

If I'm using NoVersionMapper page is loaded and work as expected if loaded
via URL
But if after that I'll reload it using Shift+F5 I got continuous reloading,
URL polluting and NPE because Session is NULL.

Maybe you can suggest how this can be debugged?

On Thu, Sep 1, 2016 at 2:44 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> JavaxUpgradeHttpRequest is just a POJO that stores the data from the
> original upgrade request.
> WebSocket requests are not normal HTTP requests so they cannot create an
> http session.
>
> So, if there was an existing HTTP session when the WebSocket connection is
> established then we store the data that is available at that time.
> But if there is no session at that time then this WebSocket connection
> cannot a reference to a newly created one at later point of time.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Sep 1, 2016 at 9:25 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > This only happen in case I'm using NoVersion page mapper
> >
> > On Thu, Sep 1, 2016 at 2:24 PM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > It works as expected with one minor change:
> > > -- Wicket.Event.WebSocket.Opened
> > > ++ Wicket.Event.Topic.WebSocket.Opened
> > >
> > > Thanks :)
> > >
> > > Another question:
> > > Why org.apache.wicket.protocol.ws.javax.JavaxUpgradeHttpRequest.
> > getSession(boolean)
> > > does not creates the session even if boolean parameter is true?
> > > I have weird behavior because of this: on Shift+F5 page continuously
> > > reloading
> > > all page parameters are duplicated in the URL until I got Bad Request
> > 
> > >
> > >
> > > On Thu, Sep 1, 2016 at 12:56 PM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > >> OK
> > >> Will try :)
> > >>
> > >> I had an idea like this, but hoping there is some other way :)
> > >>
> > >> On Thu, Sep 1, 2016 at 12:54 PM, Martin Grigorov <
> mgrigo...@apache.org>
> > >> wrote:
> > >>
> > >>> I think you should listen for the "open" message on the client side
> and
> > >>> once it comes then send a message to ask for the initial update.
> > >>> Something like: Wicket.Event.subscribe(Wicket.
> Event.WebSocket.Opened,
> > >>> function() { Wicket.WebSocket.send("initialRepaint") })
> > >>>
> > >>> Martin Grigorov
> > >>> Wicket Training and Consulting
> > >>> https://twitter.com/mtgrigorov
> > >>>
> > >>> On Thu, Sep 1, 2016 at 7:41 AM, Maxim Solodovnik <
> solomax...@gmail.com
> > >
> > >>> wrote:
> > >>>
> > >>> > It is technically possible ... but with no effect :
> > >>> > What should be the steps to send component tree update on websocket
> > >>> client
> > >>> > connect?
> > >>> >
> > >>> > On Thu, Sep 1, 2016 at 12:35 PM, Martin Grigorov <
> > mgrigo...@apache.org
> > >>> >
> > >>> > wrote:
> > >>> >
> > >>> > > Hi Maxim,
> > >>> > >
> > >>> > > If I remember correctly it is not yet possible to write to the
> > >>> client at
> > >>> > > that point.
> > >>> > > But I might be wrong.
> > >>> > >
> > >>> > > Martin Grigorov
> > >>> > > Wicket Training and Consulting
> > >>> > > https://twitter.com/mtgrigorov
> > >>> > >
> > >>> > > On Thu, Sep 1, 2016 at 7:11 AM, Maxim Solodovnik <
> > >>> solomax...@gmail.com>
> > >>> > > wrote:
> > >>> > >
> > >>> > > > Hello,
> > >>> > > >
> > >>> > > > I wonder why we don't have WebSocketRequestHandler in onConnect
> > >>> message
> > >>> > > > handler.
> > >>> > > > I would like to perform markup update on client connect, and it
> > >>> seems
> > >>> > to
> > >>> > > be
> > >>> > > > impossible without copy/pasting onEvent method code
> > >>> > > >
> > >>> > > > --
> > >>> > > > WBR
> > >>> > > > Maxim aka solomax
> > >>> > > >
> > >>> > >
> > >>> >
> > >>> >
> > >>> >
> > >>> > --
> > >>> > WBR
> > >>> > Maxim aka solomax
> > >>> >
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> WBR
> > >> Maxim aka solomax
> > >>
> > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Question regarding WebSocketBehavior::onConnect message

2016-09-01 Thread Maxim Solodovnik
This only happen in case I'm using NoVersion page mapper

On Thu, Sep 1, 2016 at 2:24 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> It works as expected with one minor change:
> -- Wicket.Event.WebSocket.Opened
> ++ Wicket.Event.Topic.WebSocket.Opened
>
> Thanks :)
>
> Another question:
> Why 
> org.apache.wicket.protocol.ws.javax.JavaxUpgradeHttpRequest.getSession(boolean)
> does not creates the session even if boolean parameter is true?
> I have weird behavior because of this: on Shift+F5 page continuously
> reloading
> all page parameters are duplicated in the URL until I got Bad Request 
>
>
> On Thu, Sep 1, 2016 at 12:56 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> OK
>> Will try :)
>>
>> I had an idea like this, but hoping there is some other way :)
>>
>> On Thu, Sep 1, 2016 at 12:54 PM, Martin Grigorov <mgrigo...@apache.org>
>> wrote:
>>
>>> I think you should listen for the "open" message on the client side and
>>> once it comes then send a message to ask for the initial update.
>>> Something like: Wicket.Event.subscribe(Wicket.Event.WebSocket.Opened,
>>> function() { Wicket.WebSocket.send("initialRepaint") })
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>>
>>> On Thu, Sep 1, 2016 at 7:41 AM, Maxim Solodovnik <solomax...@gmail.com>
>>> wrote:
>>>
>>> > It is technically possible ... but with no effect :
>>> > What should be the steps to send component tree update on websocket
>>> client
>>> > connect?
>>> >
>>> > On Thu, Sep 1, 2016 at 12:35 PM, Martin Grigorov <mgrigo...@apache.org
>>> >
>>> > wrote:
>>> >
>>> > > Hi Maxim,
>>> > >
>>> > > If I remember correctly it is not yet possible to write to the
>>> client at
>>> > > that point.
>>> > > But I might be wrong.
>>> > >
>>> > > Martin Grigorov
>>> > > Wicket Training and Consulting
>>> > > https://twitter.com/mtgrigorov
>>> > >
>>> > > On Thu, Sep 1, 2016 at 7:11 AM, Maxim Solodovnik <
>>> solomax...@gmail.com>
>>> > > wrote:
>>> > >
>>> > > > Hello,
>>> > > >
>>> > > > I wonder why we don't have WebSocketRequestHandler in onConnect
>>> message
>>> > > > handler.
>>> > > > I would like to perform markup update on client connect, and it
>>> seems
>>> > to
>>> > > be
>>> > > > impossible without copy/pasting onEvent method code
>>> > > >
>>> > > > --
>>> > > > WBR
>>> > > > Maxim aka solomax
>>> > > >
>>> > >
>>> >
>>> >
>>> >
>>> > --
>>> > WBR
>>> > Maxim aka solomax
>>> >
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Question regarding WebSocketBehavior::onConnect message

2016-09-01 Thread Maxim Solodovnik
It works as expected with one minor change:
-- Wicket.Event.WebSocket.Opened
++ Wicket.Event.Topic.WebSocket.Opened

Thanks :)

Another question:
Why 
org.apache.wicket.protocol.ws.javax.JavaxUpgradeHttpRequest.getSession(boolean)
does not creates the session even if boolean parameter is true?
I have weird behavior because of this: on Shift+F5 page continuously
reloading
all page parameters are duplicated in the URL until I got Bad Request 


On Thu, Sep 1, 2016 at 12:56 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> OK
> Will try :)
>
> I had an idea like this, but hoping there is some other way :)
>
> On Thu, Sep 1, 2016 at 12:54 PM, Martin Grigorov <mgrigo...@apache.org>
> wrote:
>
>> I think you should listen for the "open" message on the client side and
>> once it comes then send a message to ask for the initial update.
>> Something like: Wicket.Event.subscribe(Wicket.Event.WebSocket.Opened,
>> function() { Wicket.WebSocket.send("initialRepaint") })
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Thu, Sep 1, 2016 at 7:41 AM, Maxim Solodovnik <solomax...@gmail.com>
>> wrote:
>>
>> > It is technically possible ... but with no effect :
>> > What should be the steps to send component tree update on websocket
>> client
>> > connect?
>> >
>> > On Thu, Sep 1, 2016 at 12:35 PM, Martin Grigorov <mgrigo...@apache.org>
>> > wrote:
>> >
>> > > Hi Maxim,
>> > >
>> > > If I remember correctly it is not yet possible to write to the client
>> at
>> > > that point.
>> > > But I might be wrong.
>> > >
>> > > Martin Grigorov
>> > > Wicket Training and Consulting
>> > > https://twitter.com/mtgrigorov
>> > >
>> > > On Thu, Sep 1, 2016 at 7:11 AM, Maxim Solodovnik <
>> solomax...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hello,
>> > > >
>> > > > I wonder why we don't have WebSocketRequestHandler in onConnect
>> message
>> > > > handler.
>> > > > I would like to perform markup update on client connect, and it
>> seems
>> > to
>> > > be
>> > > > impossible without copy/pasting onEvent method code
>> > > >
>> > > > --
>> > > > WBR
>> > > > Maxim aka solomax
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Question regarding WebSocketBehavior::onConnect message

2016-08-31 Thread Maxim Solodovnik
OK
Will try :)

I had an idea like this, but hoping there is some other way :)

On Thu, Sep 1, 2016 at 12:54 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> I think you should listen for the "open" message on the client side and
> once it comes then send a message to ask for the initial update.
> Something like: Wicket.Event.subscribe(Wicket.Event.WebSocket.Opened,
> function() { Wicket.WebSocket.send("initialRepaint") })
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Sep 1, 2016 at 7:41 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > It is technically possible ... but with no effect :
> > What should be the steps to send component tree update on websocket
> client
> > connect?
> >
> > On Thu, Sep 1, 2016 at 12:35 PM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > Hi Maxim,
> > >
> > > If I remember correctly it is not yet possible to write to the client
> at
> > > that point.
> > > But I might be wrong.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Thu, Sep 1, 2016 at 7:11 AM, Maxim Solodovnik <solomax...@gmail.com
> >
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > I wonder why we don't have WebSocketRequestHandler in onConnect
> message
> > > > handler.
> > > > I would like to perform markup update on client connect, and it seems
> > to
> > > be
> > > > impossible without copy/pasting onEvent method code
> > > >
> > > > --
> > > > WBR
> > > > Maxim aka solomax
> > > >
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Question regarding WebSocketBehavior::onConnect message

2016-08-31 Thread Maxim Solodovnik
It is technically possible ... but with no effect :
What should be the steps to send component tree update on websocket client
connect?

On Thu, Sep 1, 2016 at 12:35 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi Maxim,
>
> If I remember correctly it is not yet possible to write to the client at
> that point.
> But I might be wrong.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Sep 1, 2016 at 7:11 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I wonder why we don't have WebSocketRequestHandler in onConnect message
> > handler.
> > I would like to perform markup update on client connect, and it seems to
> be
> > impossible without copy/pasting onEvent method code
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Question regarding WebSocketBehavior::onConnect message

2016-08-31 Thread Maxim Solodovnik
Hello,

I wonder why we don't have WebSocketRequestHandler in onConnect message
handler.
I would like to perform markup update on client connect, and it seems to be
impossible without copy/pasting onEvent method code

-- 
WBR
Maxim aka solomax


Re: Confirmation on drag

2016-08-07 Thread Maxim Solodovnik
Thanks a lot Sebastien, it works as expected :)))

On Fri, Aug 5, 2016 at 8:48 PM, Sebastien <seb...@gmail.com> wrote:

> I agree it's ugly, it is just for the PoC.
>
> Nothing prevent using a jquery-ui dialog intead, but it should be in js
> directly, not trough wicket because it will be too late in the cycle
> (whenever #onDrop should call dialog#open)
> So, something like this:
>
> return new DroppableBehavior(selector, this) {
>
> @Override
> protected JQueryAjaxBehavior 
> newOnDropAjaxBehavior(IJQueryAjaxAware
> source)
> {
> return new OnDropAjaxBehavior(source) {
>
> @Override
> public CharSequence 
> getCallbackFunctionBody(CallbackParameter...
> parameters)
> {
> String dialogId =
> UUID.randomUUID().toString();
>
> String statement = "var $drop = $(this);";
> statement += "$('body').append('Are you sure?');";
> statement +="$( '#" + dialogId + "'
> ).dialog({ title: 'Confirmation', dialogClass: 'no-close', buttons: [";
> statement += "{ text: 'OK', click:
> function() { $drop.append(ui.draggable); $(this).dialog('close'); " +
> super.getCallbackFunctionBody(parameters) + " } },";
> statement += "{ text: 'Cancel', click:
> function() { $( this ).dialog('close'); } } ";
> statement += "],";
> statement += "close: function(event, ui) {
> $(this).dialog('destroy').remove(); }";
> statement += "});";
>
> return statement;
>
> }
> };
> }
> };
>
>
>
> On Fri, Aug 5, 2016 at 3:16 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> Browser native confirm is blocking and ugly :(
>> Is there any option to use jquery-ui confirm?
>>
>> WBR, Maxim
>> (from mobile, sorry for the typos)
>>
>> On Aug 5, 2016 20:09, "Sebastien" <seb...@gmail.com> wrote:
>>
>>> Hi Maxim,
>>>
>>> Seems its a common question in the jquery-ui world...
>>> The best I can propose you for now is something like the following code.
>>> It does *not* use revert, but use a clone helper.
>>> This example is also using a browser-native "confirm" dialog...
>>>
>>> Inspired from http://jsfiddle.net/WbHAr/1/
>>>
>>> Draggable:
>>>
>>> Draggable draggable = new
>>> Draggable("draggable", model) {
>>>
>>> @Override
>>> public void onConfigure(JQueryBehavior behavior)
>>> {
>>> super.onConfigure(behavior);
>>>
>>> behavior.setOption("helper", "'clone'");
>>> }
>>> };
>>>
>>>
>>> Droppable:
>>>
>>> final Droppable droppable = new Droppable("card") {
>>>
>>> @Override
>>> public JQueryBehavior newWidgetBehavior(String selector)
>>> {
>>> return new DroppableBehavior(selector, this) {
>>>
>>> @Override
>>> protected JQueryAjaxBehavior
>>> newOnDropAjaxBehavior(IJQueryAjaxAware source)
>>> {
>>> return new OnDropAjaxBehavior(source) {
>>> @Override
>>> public CharSequence
>>> getCallbackFunctionBody(CallbackParameter... parameters)
>>> {
>>> return String.format("if (confirm('Drop
>>> here?')) { $(this).append(ui.draggable); %s}",
>>> super.getCallbackFunctionBody(parameters));
>>>
>>> }
>>> };
>>> }
>>> };
>>> }
>>>
>>>
>>> Hope this helps :)
>>> Sebastien
>>>
>>> On Fri, Aug 5, 2016 at 2:16 PM, Maxim Solodovnik <solomax...@gmail.com>
>>> wrote:
>>>
>>>> Hello Sebastian,
>>>>
>>>> Is it possible to show confirmation dialog on drop (even pure JS or
>>>> Wicket)
>>>> and "revert" file if user choose cancel?
>>>>
>>>> --
>>>> WBR
>>>> Maxim aka solomax
>>>>
>>>
>>>
>


-- 
WBR
Maxim aka solomax


Re: Confirmation on drag

2016-08-05 Thread Maxim Solodovnik
Browser native confirm is blocking and ugly :(
Is there any option to use jquery-ui confirm?

WBR, Maxim
(from mobile, sorry for the typos)

On Aug 5, 2016 20:09, "Sebastien" <seb...@gmail.com> wrote:

> Hi Maxim,
>
> Seems its a common question in the jquery-ui world...
> The best I can propose you for now is something like the following code.
> It does *not* use revert, but use a clone helper.
> This example is also using a browser-native "confirm" dialog...
>
> Inspired from http://jsfiddle.net/WbHAr/1/
>
> Draggable:
>
> Draggable draggable = new
> Draggable("draggable", model) {
>
> @Override
> public void onConfigure(JQueryBehavior behavior)
> {
> super.onConfigure(behavior);
>
> behavior.setOption("helper", "'clone'");
> }
> };
>
>
> Droppable:
>
> final Droppable droppable = new Droppable("card") {
>
> @Override
> public JQueryBehavior newWidgetBehavior(String selector)
> {
> return new DroppableBehavior(selector, this) {
>
> @Override
> protected JQueryAjaxBehavior 
> newOnDropAjaxBehavior(IJQueryAjaxAware
> source)
> {
> return new OnDropAjaxBehavior(source) {
> @Override
> public CharSequence 
> getCallbackFunctionBody(CallbackParameter...
> parameters)
> {
> return String.format("if (confirm('Drop
> here?')) { $(this).append(ui.draggable); %s}",
> super.getCallbackFunctionBody(parameters));
>
> }
> };
> }
> };
> }
>
>
> Hope this helps :)
> Sebastien
>
> On Fri, Aug 5, 2016 at 2:16 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> Hello Sebastian,
>>
>> Is it possible to show confirmation dialog on drop (even pure JS or
>> Wicket)
>> and "revert" file if user choose cancel?
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>


Confirmation on drag

2016-08-05 Thread Maxim Solodovnik
Hello Sebastian,

Is it possible to show confirmation dialog on drop (even pure JS or Wicket)
and "revert" file if user choose cancel?

-- 
WBR
Maxim aka solomax


Re: Draggable multiple containment

2016-07-20 Thread Maxim Solodovnik
Hello Sebastien,

I finally was able to get back to this task :
Thanks a lot for the pointer! it turns out I have already implemented
"revert" function, but completely forgot about it :(
now everything works as expected

Thanks!

On Fri, Jun 3, 2016 at 6:06 PM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
> After a quick test, 'revert' and 'accept' are enough (and convenient if you
> have a css class for 'file'). But using 'scope' instead of 'accept' also
> works, it's up to you...
> I also confirm you that revert does not prevent #onDrop to be fired (even
> used as a function)...
>
> For instance:
>
> - the droppable
>
> private Droppable newDroppable(String id, String color, final
> String scope)
> {
> return new Droppable(id, Model.of(color)) {
>
> @Override
> public void onConfigure(JQueryBehavior behavior)
> {
> super.onConfigure(behavior);
>
> // behavior.setOption("scope", Options.asString(scope));
> behavior.setOption("accept", Options.asString("." +
> scope)); // css class
> }
> }
>
> - the draggable
>
> private static Draggable newDraggable(String id, String label,
> final String scope)
> {
> return new Draggable(id, Model.of(label)) {
>
> @Override
> public void onConfigure(JQueryBehavior behavior)
> {
> super.onConfigure(behavior);
>
> // behavior.setOption("scope", Options.asString(scope));
> behavior.setOption("revert", true); // or:
> // behavior.setOption("revert", "function(e) {
> // console.log('e', e); // e stands for the droppable
> // console.log('this', this); // this stands for the
> draggable
> // if (this.hasClass('file')) { return true; } }"); // true
> means "do revert"
> }
> };
> }
>
> - html
>
> < div wicket:id="draggable1" class="file">
> my file
> < /div>
> < div wicket:id="draggable2" class="folder">
> my folder
> < /div>
>
>
> Hope this helps,
> Sebastien
>
>
> On Fri, Jun 3, 2016 at 10:03 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Thanks a lot!
> > I'll be on vacation next couple of week, will try to test on return :)
> >
>



-- 
WBR
Maxim aka solomax


Re: Draggable multiple containment

2016-06-03 Thread Maxim Solodovnik
Thanks a lot!
I'll be on vacation next couple of week, will try to test on return :)

On Wed, Jun 1, 2016 at 3:05 AM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
> It should be achievable, using revert and accept/scope
> By reading your post, I suddently have a doubt, revert is not supposed to
> cancel the drop action. The element just go back to its original place but
> onDrop should still be fired. I have to double check tomorrow because
> implementing revert as a function seems to cancel drop event... weird (or i
> didn't paid attention)
> On May 31, 2016 19:34, "Maxim Solodovnik" <solomax...@gmail.com> wrote:
>
> > Hello Sebastien
> >
> > thanks for the reply :)
> > I'll try to describe my use case
> >
> > I do have file free panel, file/folder items on this panel can be *moved*
> > to other folders (there are unmovable root folders and trash)
> > everything works as expected
> >
> > now I need to add "display" panel
> >
> > I would like "file" item can be dropped to this panel BUT visually it
> > should *revert* to original place, but need to be processed by drop
> target.
> > So I cannot set revert option on draggable (files need to be able to be
> > moved)
> > I need to process file in onDrop method, then "visually revert it to the
> > original position"
> > is it too much? :)))
> >
> > On Tue, May 31, 2016 at 6:06 PM, Sebastien <seb...@gmail.com> wrote:
> >
> > > Hi Maxim,
> > >
> > > Sorry for the late answer!
> > >
> > > "Droppable#onDrop, where you can reject the Draggable item/component"
> was
> > > actually misleading.
> > > IIRC it was supposed to mean "if the element is not reverted, then it
> is
> > > accepted ; and if the element is reverted then it is rejected by
> design"
> > >
> > > The most important question to me is: do you know in advance what
> element
> > > can be accepted or not ? (meaning can you recognized them with a
> special
> > > css class for instance or any data-* attribute?)
> > >
> > > 1/ In case of yes, please consider these droppable option (it can
> replace
> > > my previous draggable code snippet)
> > > http://api.jqueryui.com/droppable/#option-accept
> > > http://api.jqueryui.com/droppable/#option-scope
> > >
> > > 2/ in case of no... then consider case 1/ ;)
> > >
> > > In you need additional help on this, please describe a simple/concrete
> > > usecase so I can test further :)
> > >
> > > Best regards,
> > > Sebastien.
> > >
> > >
> > > On Thu, May 26, 2016 at 7:27 PM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Hello Sebastien,
> > > > finally I found free time to continue this work :)
> > > >
> > > > Actually my question was regarding "Droppable#onDrop, where you can
> > > reject
> > > > the Draggable item/component", how this can be achieved?
> > > >
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Draggable multiple containment

2016-05-31 Thread Maxim Solodovnik
Hello Sebastien

thanks for the reply :)
I'll try to describe my use case

I do have file free panel, file/folder items on this panel can be *moved*
to other folders (there are unmovable root folders and trash)
everything works as expected

now I need to add "display" panel

I would like "file" item can be dropped to this panel BUT visually it
should *revert* to original place, but need to be processed by drop target.
So I cannot set revert option on draggable (files need to be able to be
moved)
I need to process file in onDrop method, then "visually revert it to the
original position"
is it too much? :)))

On Tue, May 31, 2016 at 6:06 PM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
> Sorry for the late answer!
>
> "Droppable#onDrop, where you can reject the Draggable item/component" was
> actually misleading.
> IIRC it was supposed to mean "if the element is not reverted, then it is
> accepted ; and if the element is reverted then it is rejected by design"
>
> The most important question to me is: do you know in advance what element
> can be accepted or not ? (meaning can you recognized them with a special
> css class for instance or any data-* attribute?)
>
> 1/ In case of yes, please consider these droppable option (it can replace
> my previous draggable code snippet)
> http://api.jqueryui.com/droppable/#option-accept
> http://api.jqueryui.com/droppable/#option-scope
>
> 2/ in case of no... then consider case 1/ ;)
>
> In you need additional help on this, please describe a simple/concrete
> usecase so I can test further :)
>
> Best regards,
> Sebastien.
>
>
> On Thu, May 26, 2016 at 7:27 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Hello Sebastien,
> > finally I found free time to continue this work :)
> >
> > Actually my question was regarding "Droppable#onDrop, where you can
> reject
> > the Draggable item/component", how this can be achieved?
> >
>



-- 
WBR
Maxim aka solomax


Re: Draggable multiple containment

2016-05-26 Thread Maxim Solodovnik
Hello Sebastien,
finally I found free time to continue this work :)

Actually my question was regarding "Droppable#onDrop, where you can reject
the Draggable item/component", how this can be achieved?

On Wed, May 4, 2016 at 1:28 AM, Sebastien  wrote:

> Hi Maxim,
>
> "revert" options can take a function as argument [1]. maybe you can use it
> and test for an additional css class?
> I did a quick test and it works as expected:
>
> MyDraggable {
>
> @Override
> public void onConfigure(JQueryBehavior behavior)
> {
> super.onConfigure(behavior);
>
> behavior.setOption("revert", "function(e) { console.log('e', e); if
> (e.hasClass('green')) { return true; } }"); // true means "do revert"
> }
> }
>
> In conjunction to Droppable#onDrop, where you can reject the Draggable
> item/component if is not on the correct Droppable
>
> Hope this helps,
> Sebastien
>
> [1] https://api.jqueryui.com/draggable/#option-revert
>



-- 
WBR
Maxim aka solomax


Re: Jqueryui tabs on dialog

2016-05-20 Thread Maxim Solodovnik
Sure, sorry
I my code I have re-added the form (with tabs) via ajax on dialog open
this is why tabs behavior was dropped

i have changed
target.add(form)
with
target.add(form.add(new JQueryUIBehavior("#tabs", "tabs"))
and now everything works as expected

dumb error

On Fri, May 20, 2016 at 12:37 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Fri, May 20, 2016 at 4:16 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > find out resolution myself
> >
> > sorry for the noise, I shouldn't send emails in the middle of the night
> :((
> >
>
> But you should send the solution! :-)
> So other people can reuse it when they need.
>
>
> >
> > On Fri, May 20, 2016 at 12:07 AM, Maxim Solodovnik <solomax...@gmail.com
> >
> > wrote:
> >
> > > Hello Sebastien,
> > >
> > > I'm trying to add tabs to form dialog
> > >
> > > I'm add behavior to the constructor:
> > > add(new JQueryUIBehavior("#tabs", "tabs"));
> > >
> > > I'm adding JS code to onOpen handler
> > > handler.appendJavaScript("$('#tabs').tabs();");
> > >
> > > no luck :( no tabs being displayed :(
> > > What am I doing wrong?
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Jqueryui tabs on dialog

2016-05-19 Thread Maxim Solodovnik
find out resolution myself

sorry for the noise, I shouldn't send emails in the middle of the night :((

On Fri, May 20, 2016 at 12:07 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Hello Sebastien,
>
> I'm trying to add tabs to form dialog
>
> I'm add behavior to the constructor:
> add(new JQueryUIBehavior("#tabs", "tabs"));
>
> I'm adding JS code to onOpen handler
> handler.appendJavaScript("$('#tabs').tabs();");
>
> no luck :( no tabs being displayed :(
> What am I doing wrong?
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Jqueryui tabs on dialog

2016-05-19 Thread Maxim Solodovnik
Hello Sebastien,

I'm trying to add tabs to form dialog

I'm add behavior to the constructor:
add(new JQueryUIBehavior("#tabs", "tabs"));

I'm adding JS code to onOpen handler
handler.appendJavaScript("$('#tabs').tabs();");

no luck :( no tabs being displayed :(
What am I doing wrong?

-- 
WBR
Maxim aka solomax


Re: [ANNONCE] Wicket jQuery UI 7.3.0 released

2016-05-09 Thread Maxim Solodovnik
Thanks a lot Sebastien!

On Mon, May 9, 2016 at 4:24 PM, Sebastien  wrote:

> Dear Wicket jQuery & Kendo UI users,
>
> Wicket jQuery UI 7.3.0 based on Apache Wicket 7.3.0 is now released.
>
> *Changelog:*
>
>
> https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-7.3.0
>
> *Maven dependencies*
>
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-jquery-ui
> 7.3.0
> 
>
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-kendo-ui
> 7.3.0
> 
>
> If you have any *question*, feel free to ask in the forum:
> http://groups.google.com/group/wicket-jquery-ui/
>
> If you notice an *issue*, please report it here:
> https://github.com/sebfz1/wicket-jquery-ui/issues
>
> Enjoy! :)
> Sebastien.
>



-- 
WBR
Maxim aka solomax


Re: [ANNOUNCE] Apache Wicket 7.3.0 Released

2016-05-08 Thread Maxim Solodovnik
Thanks for the release!

On Sat, May 7, 2016 at 9:06 PM, Martijn Dashorst  wrote:

> On 7 May 2016 at 15:59:04, Thorsten Schöning (tschoen...@am-soft.de)
> wrote:
> > Guten Tag Martijn Dashorst,
> > am Samstag, 7. Mai 2016 um 15:00 schrieben Sie:
> >
> > > The Apache Wicket PMC is proud to announce Apache Wicket 7.3.0!
> >
> > Great work. Any idea on how long it takes until the tag will be
> > available on GitHub?
>
> It’s already there:
>
> https://github.com/apache/wicket/releases/tag/rel%2Fwicket-7.3.0
>
>
> Martijn
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Wicket jQuery UI - 4th anniversary!

2016-05-08 Thread Maxim Solodovnik
Thanks a lot Sebastien for the great work!
wicket-jquery-ui helps to make our application to work and look better :)
I really appreciate your quick answers :)

On Wed, May 4, 2016 at 1:32 AM, Sebastien  wrote:

> Thank you Andrea & Tobias, glad to read you like the new site! :)
>
> @Tobias, I will test srcset :)
>
> Best regards,
> Sebastien.
>
>
> On Tue, May 3, 2016 at 7:48 AM, Tobias Soloschenko <
> tobiassolosche...@googlemail.com> wrote:
>
> > Congratulations also from me! Good to see that project is moving forward!
> > Also a very cool design with some fancy animations on hover. :-)
> >
> > One hint: For the background image you can use srcset provided via
> > wicket-core to only load an img with the required size, or to change it
> > when resizing the window. (picture tag - not supported with IE11) - Sweet
> > cat demo:
> >
> > http://googlechrome.github.io/samples/picture-element/
> >
> > If you use the picture tag, you can configure a fallback to be used for
> IE
> > or other browser which do not support it:
> >
> > * http://caniuse.com/#search=picture
> > * http://caniuse.com/#search=srcset
> > * http://caniuse.com/#search=source
> >
> >
> >
> https://ci.apache.org/projects/wicket/guide/7.x/guide/resources.html#resources_3
> >
> > //code
> >
> > 
> > 
> > 
> > 
> > 
> >
> > This will lead to a better performance for mobile devices with a bad
> > connection.
> >
> > kind regards
> >
> > Tobias
> >
> > 2016-05-02 23:03 GMT+02:00 Andrea Del Bene :
> >
> > > Congratulations Sebastien!!! And the new site is REALLY nice!
> > >
> > > Andrea
> > >
> > > On 02/05/2016 22:52, Sebastien wrote:
> > >
> > >> Dear Wicket jQuery UI users,
> > >>
> > >> I'm happy to announce the 4th anniversary of the project since its
> first
> > >> release! :)
> > >>
> > >> *Stats*
> > >>
> > >> A few words about project's stats:
> > >> - visits on the demo site almost reach 550k pageviews since its launch
> > >> - artifact downloads are still increasing
> > >> - Kendo UI is confirming its progression over jQuery UI
> > >>
> > >> There is a (very) big peak on march, which might be due to a recent
> > InfoQ
> > >> interview about Wicket 7.2.0 (on which Wicket jQuery UI was quoted)
> [1].
> > >>
> > >> *Surprise!*
> > >>
> > >> This year, the project gets a very nice birthday gift from my
> > >> best-geek-girl-friend! Thanks to her, the demo site has a brand new
> > >> responsive skin :)
> > >> It is not yet officially active, but you can still have a preview [2],
> > >> your feedback is more than welcome!
> > >>
> > >>
> > >> Thanks again for your confidence and, to whom is concerned, your very
> > >> precious help! :)
> > >>
> > >> -Sebastien.
> > >>
> > >> [1] http://www.infoq.com/news/2016/03/apache-wicket-7.2
> > >> [2] http://163.172.29.241/wicket-jquery-ui/
> > >>
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>
> > >
> > >
> >
>



-- 
WBR
Maxim aka solomax


Re: Draggable multiple containment

2016-04-27 Thread Maxim Solodovnik
Ok

Another question:
Currently Draggable has "revert" option
Is it possible to check item being dropped inside Droppable::onDrop and
"reject" it, so it will revert?

It is not an option for me to setRevert(true), due to I need to perform
some checks depending on where the item was dropped :)


On Wed, Apr 27, 2016 at 1:06 PM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
>
> On Wed, Apr 27, 2016 at 6:38 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Hello Sebastien,
> >
> > It's about jqueryui draggable.
> > According to my tests it only works on first element being selected by
> > selector provided i.e. in case two elements on the page has class="drop
> > target", only one will work as containment
> >
>
> Right, this seems to be by design
>
> *Selector*: The draggable element will be contained to the bounding box of
> the first element found by the selector. If no element is found, no
> containment will be set.
>
>
> >
> > setting containment to empty string helps, but 
> >
>
> I'm afraid you should try to have a more generic/large containment...
> If should show me some code or example I may be more inspired ! :)
>
>
> >
> > On Wed, Apr 27, 2016 at 3:15 AM, Sebastien <seb...@gmail.com> wrote:
> >
> > > Hi Maxim,
> > >
> > > Is it about jQuery or Kendo draggable?
> > >
> > > Sebastien.
> > >
> > > On Tue, Apr 26, 2016 at 7:06 PM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Hello Sebastien,
> > > >
> > > > I'm trying to use Draggable,
> > > > everything works as expected as long as I'm using single selector for
> > the
> > > > "containment" (for ex: ".drop.target" or ".drop.target1")
> > > >
> > > > but fails if I'm using both ".drop.target, .drop.target1"
> > > > Maybe you know are there any limitations?
> > > >
> > > >
> > > > --
> > > > WBR
> > > > Maxim aka solomax
> > > >
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Draggable multiple containment

2016-04-26 Thread Maxim Solodovnik
Hello Sebastien,

It's about jqueryui draggable.
According to my tests it only works on first element being selected by
selector provided i.e. in case two elements on the page has class="drop
target", only one will work as containment

setting containment to empty string helps, but 

On Wed, Apr 27, 2016 at 3:15 AM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
> Is it about jQuery or Kendo draggable?
>
> Sebastien.
>
> On Tue, Apr 26, 2016 at 7:06 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Hello Sebastien,
> >
> > I'm trying to use Draggable,
> > everything works as expected as long as I'm using single selector for the
> > "containment" (for ex: ".drop.target" or ".drop.target1")
> >
> > but fails if I'm using both ".drop.target, .drop.target1"
> > Maybe you know are there any limitations?
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Draggable multiple containment

2016-04-26 Thread Maxim Solodovnik
Hello Sebastien,

I'm trying to use Draggable,
everything works as expected as long as I'm using single selector for the
"containment" (for ex: ".drop.target" or ".drop.target1")

but fails if I'm using both ".drop.target, .drop.target1"
Maybe you know are there any limitations?


-- 
WBR
Maxim aka solomax


Re: Websocket message from Spring bean

2016-04-21 Thread Maxim Solodovnik
Finally was able to test it :)
Everything works as expected! Thanks a lot for the hint!

On Tue, Oct 7, 2014 at 5:49 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Thanks a lot for the tip Martin!
> will give it a try and write back :)
>
> On 7 October 2014 16:39, Martin Grigorov <mgrigo...@apache.org> wrote:
>
>> You use request and session scoped Spring beans in WebSocket request
>> because such requests are not processed by Servlet filters and Spring has
>> no chance to set its proxy objects as request/session attributes.
>>
>> But in Spring bean code you can do:
>> Application app = Application..get("myFilterName");
>> WebSocketSettings wsSettings = WebSocketSettings.Holder.get(app);
>> IWebSocketConnectionRegistry registry =
>> wsSettings.getConnectionRegistry();
>> WebSocketPushBroadcaster broadcaster = new
>> WebSocketPushBroadcaster(registry);
>> broadcaster
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Tue, Oct 7, 2014 at 11:31 AM, Maxim Solodovnik <solomax...@gmail.com>
>> wrote:
>>
>> > To be fair I haven't tried :(
>> > I thought I will have "no session/application bound to current thread"
>> > exceptions :(
>> > I'll test and let you know
>> >
>> > On 7 October 2014 15:21, Martin Grigorov <mgrigo...@apache.org> wrote:
>> >
>> > > Hi,
>> > >
>> > > I think it should work.
>> > > What kind of problems do you face ?
>> > >
>> > > Martin Grigorov
>> > > Wicket Training and Consulting
>> > > https://twitter.com/mtgrigorov
>> > >
>> > > On Fri, Oct 3, 2014 at 4:55 PM, Maxim Solodovnik <
>> solomax...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hello All,
>> > > >
>> > > > I wonder is it possible to send IWebSocketPushMessage from Spring
>> bean?
>> > > (I
>> > > > can access Spring beans from wicket pages, now I need "backward
>> > > > compatibility")
>> > > >
>> > > > Thanks in advance for your help!
>> > > >
>> > > > --
>> > > > WBR
>> > > > Maxim aka solomax
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Mix of Confirmable and Indicating buttons

2016-04-07 Thread Maxim Solodovnik
Thanks Martin,

Will check this solution first :)

On Thu, Apr 7, 2016 at 7:02 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi Maxim, Sebastien,
>
> I haven't checked Wicket-JQuery-UI components but usually it should be as
> simple as http://stackoverflow.com/a/35598376/497381
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Apr 7, 2016 at 2:19 PM, Sebastien <seb...@gmail.com> wrote:
>
>> Ok, please create the ticket and I will have a look. Please specify the
>> urgency, I need to get organized these times!.. :p
>>
>> On Thu, Apr 7, 2016 at 2:12 PM, Maxim Solodovnik <solomax...@gmail.com>
>> wrote:
>>
>> > Hello Sebastien,
>> >
>> > the question is about mix of ConfirmAjaxButton [1] and
>> > IndicatingAjaxButton [2] (not dialog buttons)
>> > I need it to perform "dangerous, long time" operation :)
>> >
>> > I'll create ticket on github :)
>> >
>> > [1]
>> http://www.7thweb.net/wicket-jquery-ui/button/ConfirmAjaxButtonPage?1
>> > [2]
>> >
>> http://www.7thweb.net/wicket-jquery-ui/button/IndicatingAjaxButtonPage?2
>> >
>> > On Thu, Apr 7, 2016 at 5:54 PM, Sebastien <seb...@gmail.com> wrote:
>> >
>> >> Hi Maxim,
>> >>
>> >> On Thu, Apr 7, 2016 at 9:11 AM, Maxim Solodovnik <solomax...@gmail.com
>> >
>> >> wrote:
>> >>
>> >>> Hello Sebastien,
>> >>>
>> >>> I would like to have very specific button:
>> >>> on click confirmation dialog should raise, if OK was selected "work in
>> >>> progress" indicator should be displayed
>> >>> so it is mix of confirmable and Indicating buttons
>> >>>
>> >>> Is this possible?
>> >>>
>> >>
>> >> The most important thing to understand is that dialog's button are not
>> >> regular button, so it is not possible to have a mix of button, unless
>> this
>> >> is a supported Wicket jQuery UI feature (in dialog's button), which is
>> not
>> >> the case IIRC. However, I did it for Kendo's Windows
>> >>
>> >>
>> >>>
>> >>> Additional question: kendo-indication button has option
>> >>> "isDisabledOnClick" I wonder is it possible to add such option to
>> "regular"
>> >>> indicating button?
>> >>>
>> >>
>> >> I can have a look. Please open a request ! :)
>> >> Note for me: should be very careful with #isDisabledOnClick because
>> >> disabling a submitting button may not submit the form properly
>> (disabled
>> >> inputs are not part of the post, so if the button is not part of the
>> post,
>> >> the form might not be processed)
>> >>
>> >>
>> >> Best regards,
>> >> Sebastien.
>> >>
>> >>
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>>
>
>


-- 
WBR
Maxim aka solomax


Re: Mix of Confirmable and Indicating buttons

2016-04-07 Thread Maxim Solodovnik
Hello Sebastien,

the question is about mix of ConfirmAjaxButton [1] and IndicatingAjaxButton
[2] (not dialog buttons)
I need it to perform "dangerous, long time" operation :)

I'll create ticket on github :)

[1] http://www.7thweb.net/wicket-jquery-ui/button/ConfirmAjaxButtonPage?1
[2] http://www.7thweb.net/wicket-jquery-ui/button/IndicatingAjaxButtonPage?2

On Thu, Apr 7, 2016 at 5:54 PM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
> On Thu, Apr 7, 2016 at 9:11 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> Hello Sebastien,
>>
>> I would like to have very specific button:
>> on click confirmation dialog should raise, if OK was selected "work in
>> progress" indicator should be displayed
>> so it is mix of confirmable and Indicating buttons
>>
>> Is this possible?
>>
>
> The most important thing to understand is that dialog's button are not
> regular button, so it is not possible to have a mix of button, unless this
> is a supported Wicket jQuery UI feature (in dialog's button), which is not
> the case IIRC. However, I did it for Kendo's Windows
>
>
>>
>> Additional question: kendo-indication button has option
>> "isDisabledOnClick" I wonder is it possible to add such option to "regular"
>> indicating button?
>>
>
> I can have a look. Please open a request ! :)
> Note for me: should be very careful with #isDisabledOnClick because
> disabling a submitting button may not submit the form properly (disabled
> inputs are not part of the post, so if the button is not part of the post,
> the form might not be processed)
>
>
> Best regards,
> Sebastien.
>
>


-- 
WBR
Maxim aka solomax


Mix of Confirmable and Indicating buttons

2016-04-07 Thread Maxim Solodovnik
Hello Sebastien,

I would like to have very specific button:
on click confirmation dialog should raise, if OK was selected "work in
progress" indicator should be displayed
so it is mix of confirmable and Indicating buttons

Is this possible?

Additional question: kendo-indication button has option "isDisabledOnClick"
I wonder is it possible to add such option to "regular" indicating button?

Thanks in advance

-- 
WBR
Maxim aka solomax


Re: webRTC wickedstuff question

2016-03-25 Thread Maxim Solodovnik
Thanks a lot for clarifications Tobias :)
I hope we will finally move to WebRTC :)
I will ask for help and/or will provide patches :)

On Fri, Mar 25, 2016 at 2:59 AM, Tobias Soloschenko  wrote:

> Hi Dmitry,
>
> I used SimpleWebRTC (https://simplewebrtc.com) to implement the video
> conference and there are also some events that are handling file transfers
> via data channel - have a look at https://simplewebrtc.com/filetransfer
>
> You have to check the version of SimpleWebRTC - there have been a lot of
> updates since I implemented the Wicket integration, so we may need to
> update the lib first.
>
> If you want to send the file that has been transfered from one browser to
> the others via the fileTransfer event back to the server you can make a
> wicket ajax request. I implemented such a request in the summernote editor:
>
>
> https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/editor/js/summernote_init.js#L31
>
> You need at least a signal server which is implemeted in nodejs and a STUN
> server so that data transfers can be initiated from behind your NAT - a
> documentation can be found here:
>
>
> https://github.com/wicketstuff/core/wiki/Html5#webrtc-api-wicketstuff-700-m6
>
> The example project of wicketstuff-html5 show you a demo:
>
>
> https://github.com/wicketstuff/core/tree/master/wicket-html5-parent/wicket-html5-examples
>
> kind regards
>
> Tobias
>
> Am 24.03.16 um 17:01 schrieb Dmitriy -:
>
> Hello Tobias.
> Thank for the library!
>
> I have a question about it.
> I write server and want use webRTC datachannel.
>
> What exactly do I have to implement for using it?
> I mean some protocols like a STUN/TURN/ICE or something else.
>
> --
> Regards,
> Dmitry Bezheckov.
>
>
>


-- 
WBR
Maxim aka solomax


Re: wicketstuff-select2 and Bootstrap 3

2016-01-15 Thread Maxim Solodovnik
I believe same fix (but different CSS) can be applied to wicket-6

On Fri, Jan 15, 2016 at 4:21 PM, Tom Götz  wrote:

> Any chance for a Bootstrap theme (backport) for wicketstuff 6.x (i.e.
> select2 version 3.x) 
? We are currently still using Wicket 6.x and can’t
> update yet because of infrastructure restrictions (app server not
> supporting Java 7 :-/ ) 

>
> Cheers,
>Tom
>
>
> > On 15.01.2016, at 10:02, Ernesto Reinaldo Barreiro 
> wrote:
> >
> > Gabriel,
> >
> > Thanks for sharing! I ended up doing it a bit differently in order to be
> > more compatible with existing select2 component. See
> >
> > https://github.com/wicketstuff/core/pull/453
> >
> > @martin-g, @solomax,
> >
> > Sorry again about white spaces vs tabs noise: I need to find some time to
> > fix that on my idea settings :-(
> >
> >
> > On Thu, Jan 14, 2016 at 6:58 PM, Gabriel Landon  wrote:
> >
> >> Ernesto,
> >>
> >> I've done a simple behavior that I add to the select2 component when
> >> needed.
> >>
> >> public class Select2CssBehavior extends Behavior {
> >>/** serialVersionUID. */
> >>private static final long serialVersionUID = 1L;
> >>/** Select2 CSS for bootstrap. */
> >>private static final CssResourceReference SELECT2_CSS = new
> >> CssResourceReference(Select2CssBehavior.class,
> >>"select2-bootstrap.css");
> >>
> >>@Override
> >>public void renderHead(final Component varComponent, final
> >> IHeaderResponse varResponse) {
> >>super.renderHead(varComponent, varResponse);
> >>varResponse.render(CssHeaderItem.forReference(SELECT2_CSS));
> >>}
> >>
> >> }
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://apache-wicket.1842946.n4.nabble.com/wicketstuff-select2-and-Bootstrap-3-tp4673303p467.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
> >>
> >>
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: wicketstuff-select2 and Bootstrap 3

2016-01-15 Thread Maxim Solodovnik
It has "MIT License" so I see no problems here :)

On Fri, Jan 15, 2016 at 5:22 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> I mean this project
>
> https://fk.github.io/select2-bootstrap-css/
>
> On Fri, Jan 15, 2016 at 11:54 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Maybe for that we can use the CSS from the same project Gabriel
> mentioned:
> > as it was 3.x compatible. For the rest there isn't anything 7.X specific
> I
> > think.
> >
> > On Fri, Jan 15, 2016 at 11:23 AM, Maxim Solodovnik <solomax...@gmail.com
> >
> > wrote:
> >
> >> I believe same fix (but different CSS) can be applied to wicket-6
> >>
> >> On Fri, Jan 15, 2016 at 4:21 PM, Tom Götz <t...@decoded.de> wrote:
> >>
> >> > Any chance for a Bootstrap theme (backport) for wicketstuff 6.x (i.e.
> >> > select2 version 3.x) 
? We are currently still using Wicket 6.x and
> >> can’t
> >> > update yet because of infrastructure restrictions (app server not
> >> > supporting Java 7 :-/ ) 

> >> >
> >> > Cheers,
> >> >Tom
> >> >
> >> >
> >> > > On 15.01.2016, at 10:02, Ernesto Reinaldo Barreiro <
> >> reier...@gmail.com>
> >> > wrote:
> >> > >
> >> > > Gabriel,
> >> > >
> >> > > Thanks for sharing! I ended up doing it a bit differently in order
> to
> >> be
> >> > > more compatible with existing select2 component. See
> >> > >
> >> > > https://github.com/wicketstuff/core/pull/453
> >> > >
> >> > > @martin-g, @solomax,
> >> > >
> >> > > Sorry again about white spaces vs tabs noise: I need to find some
> >> time to
> >> > > fix that on my idea settings :-(
> >> > >
> >> > >
> >> > > On Thu, Jan 14, 2016 at 6:58 PM, Gabriel Landon <glan...@piti.pf>
> >> wrote:
> >> > >
> >> > >> Ernesto,
> >> > >>
> >> > >> I've done a simple behavior that I add to the select2 component
> when
> >> > >> needed.
> >> > >>
> >> > >> public class Select2CssBehavior extends Behavior {
> >> > >>/** serialVersionUID. */
> >> > >>private static final long serialVersionUID = 1L;
> >> > >>/** Select2 CSS for bootstrap. */
> >> > >>private static final CssResourceReference SELECT2_CSS = new
> >> > >> CssResourceReference(Select2CssBehavior.class,
> >> > >>"select2-bootstrap.css");
> >> > >>
> >> > >>@Override
> >> > >>public void renderHead(final Component varComponent, final
> >> > >> IHeaderResponse varResponse) {
> >> > >>super.renderHead(varComponent, varResponse);
> >> > >>varResponse.render(CssHeaderItem.forReference(SELECT2_CSS));
> >> > >>}
> >> > >>
> >> > >> }
> >> > >>
> >> > >>
> >> > >> --
> >> > >> View this message in context:
> >> > >>
> >> >
> >>
> http://apache-wicket.1842946.n4.nabble.com/wicketstuff-select2-and-Bootstrap-3-tp4673303p467.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
> >> > >>
> >> > >>
> >> > >
> >> > >
> >> > > --
> >> > > Regards - Ernesto Reinaldo Barreiro
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
WBR
Maxim aka solomax


RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Hello All,

I'm currently using wicket 7.2.0-SNAPSHOT

have following code in my Application:

mountResource("/recordings/mp4/${id}", new Mp4RecordingResourceReference());
mountResource("/recordings/ogg/${id}", new OggRecordingResourceReference());
mountResource("/recordings/jpg/${id}", new
JpgRecordingResourceReference()); //should be in sync with VideoPlayer

trying to do:
org.apache.wicket.request.cycle.RequestCycle.get().urlFor(new
Mp4RecordingResourceReference(), new PageParameters().add("id", 666))

getting
./recordings/jpg/666
instead of
./recordings/mp4/666

Is there something wrong with my code?

will try to reproduce with 7.2.0 release


-- 
WBR
Maxim aka solomax


Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
sure:
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/Mp4RecordingResourceReference.java

On Wed, Jan 13, 2016 at 4:34 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> port -> paste
>
> On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Can you port the code of Mp4RecordingResourceReference?
> >
> > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <solomax...@gmail.com
> >
> > wrote:
> >
> >> Mp4RecordingResourceReference, OggRecordingResourceReference and
> >> JpgRecordingResourceReference
> >> are subclasses of the same abstract class (not sure if it is important
> or
> >> not)
> >>
> >> On Wed, Jan 13, 2016 at 4:27 PM, Maxim Solodovnik <solomax...@gmail.com
> >
> >> wrote:
> >>
> >> > Hello All,
> >> >
> >> > I'm currently using wicket 7.2.0-SNAPSHOT
> >> >
> >> > have following code in my Application:
> >> >
> >> > mountResource("/recordings/mp4/${id}", new
> >> > Mp4RecordingResourceReference());
> >> > mountResource("/recordings/ogg/${id}", new
> >> > OggRecordingResourceReference());
> >> > mountResource("/recordings/jpg/${id}", new
> >> > JpgRecordingResourceReference()); //should be in sync with VideoPlayer
> >> >
> >> > trying to do:
> >> > org.apache.wicket.request.cycle.RequestCycle.get().urlFor(new
> >> > Mp4RecordingResourceReference(), new PageParameters().add("id", 666))
> >> >
> >> > getting
> >> > ./recordings/jpg/666
> >> > instead of
> >> > ./recordings/mp4/666
> >> >
> >> > Is there something wrong with my code?
> >> >
> >> > will try to reproduce with 7.2.0 release
> >> >
> >> >
> >> > --
> >> > WBR
> >> > Maxim aka solomax
> >> >
> >>
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
WBR
Maxim aka solomax


Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Thanks for the hint!
Will try

On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

>
> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/RecordingResourceReference.java#L52
>
> Maybe just add a name parameter to Mp4RecordingResourceReference? I'm not
> 100% sure but this the equal method of resource reference.
>
> /** * @see java.lang.Object#equals(java.lang.Object) */ @Override public
> boolean equals(final Object obj) { if (this == obj) { return true; } if
> (obj instanceof Key == false) { return false; } Key that = (Key)obj; return
> Objects.equal(scope, that.scope) && // Objects.equal(name, that.name) &&
> //
> Objects.equal(locale, that.locale) && // Objects.equal(style, that.style)
> && // Objects.equal(variation, that.variation); }
>
> On Wed, Jan 13, 2016 at 11:38 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > sure:
> >
> >
> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/Mp4RecordingResourceReference.java
> >
> > On Wed, Jan 13, 2016 at 4:34 PM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > port -> paste
> > >
> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Can you port the code of Mp4RecordingResourceReference?
> > > >
> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
> > solomax...@gmail.com
> > > >
> > > > wrote:
> > > >
> > > >> Mp4RecordingResourceReference, OggRecordingResourceReference and
> > > >> JpgRecordingResourceReference
> > > >> are subclasses of the same abstract class (not sure if it is
> important
> > > or
> > > >> not)
> > > >>
> > > >> On Wed, Jan 13, 2016 at 4:27 PM, Maxim Solodovnik <
> > solomax...@gmail.com
> > > >
> > > >> wrote:
> > > >>
> > > >> > Hello All,
> > > >> >
> > > >> > I'm currently using wicket 7.2.0-SNAPSHOT
> > > >> >
> > > >> > have following code in my Application:
> > > >> >
> > > >> > mountResource("/recordings/mp4/${id}", new
> > > >> > Mp4RecordingResourceReference());
> > > >> > mountResource("/recordings/ogg/${id}", new
> > > >> > OggRecordingResourceReference());
> > > >> > mountResource("/recordings/jpg/${id}", new
> > > >> > JpgRecordingResourceReference()); //should be in sync with
> > VideoPlayer
> > > >> >
> > > >> > trying to do:
> > > >> > org.apache.wicket.request.cycle.RequestCycle.get().urlFor(new
> > > >> > Mp4RecordingResourceReference(), new PageParameters().add("id",
> > 666))
> > > >> >
> > > >> > getting
> > > >> > ./recordings/jpg/666
> > > >> > instead of
> > > >> > ./recordings/mp4/666
> > > >> >
> > > >> > Is there something wrong with my code?
> > > >> >
> > > >> > will try to reproduce with 7.2.0 release
> > > >> >
> > > >> >
> > > >> > --
> > > >> > WBR
> > > >> > Maxim aka solomax
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> WBR
> > > >> Maxim aka solomax
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > >
> > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
WBR
Maxim aka solomax


Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Thanks a lot Ernesto!
I have changed the name and now everything works as expected!

On Wed, Jan 13, 2016 at 4:48 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Thanks for the hint!
> Will try
>
> On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
>>
>> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/RecordingResourceReference.java#L52
>>
>> Maybe just add a name parameter to Mp4RecordingResourceReference? I'm not
>> 100% sure but this the equal method of resource reference.
>>
>> /** * @see java.lang.Object#equals(java.lang.Object) */ @Override public
>> boolean equals(final Object obj) { if (this == obj) { return true; } if
>> (obj instanceof Key == false) { return false; } Key that = (Key)obj;
>> return
>> Objects.equal(scope, that.scope) && // Objects.equal(name, that.name) &&
>> //
>> Objects.equal(locale, that.locale) && // Objects.equal(style, that.style)
>> && // Objects.equal(variation, that.variation); }
>>
>> On Wed, Jan 13, 2016 at 11:38 AM, Maxim Solodovnik <solomax...@gmail.com>
>> wrote:
>>
>> > sure:
>> >
>> >
>> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/Mp4RecordingResourceReference.java
>> >
>> > On Wed, Jan 13, 2016 at 4:34 PM, Ernesto Reinaldo Barreiro <
>> > reier...@gmail.com> wrote:
>> >
>> > > port -> paste
>> > >
>> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
>> > > reier...@gmail.com> wrote:
>> > >
>> > > > Can you port the code of Mp4RecordingResourceReference?
>> > > >
>> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
>> > solomax...@gmail.com
>> > > >
>> > > > wrote:
>> > > >
>> > > >> Mp4RecordingResourceReference, OggRecordingResourceReference and
>> > > >> JpgRecordingResourceReference
>> > > >> are subclasses of the same abstract class (not sure if it is
>> important
>> > > or
>> > > >> not)
>> > > >>
>> > > >> On Wed, Jan 13, 2016 at 4:27 PM, Maxim Solodovnik <
>> > solomax...@gmail.com
>> > > >
>> > > >> wrote:
>> > > >>
>> > > >> > Hello All,
>> > > >> >
>> > > >> > I'm currently using wicket 7.2.0-SNAPSHOT
>> > > >> >
>> > > >> > have following code in my Application:
>> > > >> >
>> > > >> > mountResource("/recordings/mp4/${id}", new
>> > > >> > Mp4RecordingResourceReference());
>> > > >> > mountResource("/recordings/ogg/${id}", new
>> > > >> > OggRecordingResourceReference());
>> > > >> > mountResource("/recordings/jpg/${id}", new
>> > > >> > JpgRecordingResourceReference()); //should be in sync with
>> > VideoPlayer
>> > > >> >
>> > > >> > trying to do:
>> > > >> > org.apache.wicket.request.cycle.RequestCycle.get().urlFor(new
>> > > >> > Mp4RecordingResourceReference(), new PageParameters().add("id",
>> > 666))
>> > > >> >
>> > > >> > getting
>> > > >> > ./recordings/jpg/666
>> > > >> > instead of
>> > > >> > ./recordings/mp4/666
>> > > >> >
>> > > >> > Is there something wrong with my code?
>> > > >> >
>> > > >> > will try to reproduce with 7.2.0 release
>> > > >> >
>> > > >> >
>> > > >> > --
>> > > >> > WBR
>> > > >> > Maxim aka solomax
>> > > >> >
>> > > >>
>> > > >>
>> > > >>
>> > > >> --
>> > > >> WBR
>> > > >> Maxim aka solomax
>> > > >>
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Regards - Ernesto Reinaldo Barreiro
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Regards - Ernesto Reinaldo Barreiro
>> > >
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>>
>>
>>
>> --
>> Regards - Ernesto Reinaldo Barreiro
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Mp4RecordingResourceReference, OggRecordingResourceReference and
JpgRecordingResourceReference
are subclasses of the same abstract class (not sure if it is important or
not)

On Wed, Jan 13, 2016 at 4:27 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Hello All,
>
> I'm currently using wicket 7.2.0-SNAPSHOT
>
> have following code in my Application:
>
> mountResource("/recordings/mp4/${id}", new
> Mp4RecordingResourceReference());
> mountResource("/recordings/ogg/${id}", new
> OggRecordingResourceReference());
> mountResource("/recordings/jpg/${id}", new
> JpgRecordingResourceReference()); //should be in sync with VideoPlayer
>
> trying to do:
> org.apache.wicket.request.cycle.RequestCycle.get().urlFor(new
> Mp4RecordingResourceReference(), new PageParameters().add("id", 666))
>
> getting
> ./recordings/jpg/666
> instead of
> ./recordings/mp4/666
>
> Is there something wrong with my code?
>
> will try to reproduce with 7.2.0 release
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Thanks!
Will check equals next time :)

On Wed, Jan 13, 2016 at 5:17 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Right.
> The "Key" (ResourceReference.Key) is used for the equals().
> In your case the scope is always org.apache.wicket.Application.class, so
> you need to have custom names at least.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Jan 13, 2016 at 12:09 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Glad to be of some help :-)
> >
> > On Wed, Jan 13, 2016 at 12:01 PM, Maxim Solodovnik <solomax...@gmail.com
> >
> > wrote:
> >
> > > Thanks a lot Ernesto!
> > > I have changed the name and now everything works as expected!
> > >
> > > On Wed, Jan 13, 2016 at 4:48 PM, Maxim Solodovnik <
> solomax...@gmail.com>
> > > wrote:
> > >
> > > > Thanks for the hint!
> > > > Will try
> > > >
> > > > On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com> wrote:
> > > >
> > > >>
> > > >>
> > >
> >
> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/RecordingResourceReference.java#L52
> > > >>
> > > >> Maybe just add a name parameter to Mp4RecordingResourceReference?
> I'm
> > > not
> > > >> 100% sure but this the equal method of resource reference.
> > > >>
> > > >> /** * @see java.lang.Object#equals(java.lang.Object) */ @Override
> > public
> > > >> boolean equals(final Object obj) { if (this == obj) { return true; }
> > if
> > > >> (obj instanceof Key == false) { return false; } Key that = (Key)obj;
> > > >> return
> > > >> Objects.equal(scope, that.scope) && // Objects.equal(name,
> that.name)
> > > &&
> > > >> //
> > > >> Objects.equal(locale, that.locale) && // Objects.equal(style,
> > > that.style)
> > > >> && // Objects.equal(variation, that.variation); }
> > > >>
> > > >> On Wed, Jan 13, 2016 at 11:38 AM, Maxim Solodovnik <
> > > solomax...@gmail.com>
> > > >> wrote:
> > > >>
> > > >> > sure:
> > > >> >
> > > >> >
> > > >>
> > >
> >
> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/Mp4RecordingResourceReference.java
> > > >> >
> > > >> > On Wed, Jan 13, 2016 at 4:34 PM, Ernesto Reinaldo Barreiro <
> > > >> > reier...@gmail.com> wrote:
> > > >> >
> > > >> > > port -> paste
> > > >> > >
> > > >> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> > > >> > > reier...@gmail.com> wrote:
> > > >> > >
> > > >> > > > Can you port the code of Mp4RecordingResourceReference?
> > > >> > > >
> > > >> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
> > > >> > solomax...@gmail.com
> > > >> > > >
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > >> Mp4RecordingResourceReference, OggRecordingResourceReference
> > and
> > > >> > > >> JpgRecordingResourceReference
> > > >> > > >> are subclasses of the same abstract class (not sure if it is
> > > >> important
> > > >> > > or
> > > >> > > >> not)
> > > >> > > >>
> > > >> > > >> On Wed, Jan 13, 2016 at 4:27 PM, Maxim Solodovnik <
> > > >> > solomax...@gmail.com
> > > >> > > >
> > > >> > > >> wrote:
> > > >> > > >>
> > > >> > > >> > Hello All,
> > > >> > > >> >
> > > >> > > >> > I'm currently using wicket 7.2.0-SNAPSHOT
> > > >> > > >> >
> > > >> > > >> > have following code in my Application:
> > > >> > > >> >
> > > >> > > >> > mountResource("/recordings/m

Re: wrapper for http://www.eyecon.ro/bootstrap-slider/

2015-12-30 Thread Maxim Solodovnik
Thanks Ernesto
I believe this will be useful component :)

On Wed, Dec 30, 2015 at 5:20 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> https://github.com/l0rdn1kk0n/wicket-bootstrap/pull/574
>
> work in progress :-)
>
> On Wed, Dec 30, 2015 at 9:16 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Thanks to you both for helping keep wicket alive and kicking!
> >
> > On Wed, Dec 30, 2015 at 9:13 AM, Martin Grigorov 
> > wrote:
> >
> >> Thank you, Ernesto!
> >> On Dec 30, 2015 10:12 AM, "Ernesto Reinaldo Barreiro" <
> reier...@gmail.com
> >> >
> >> wrote:
> >>
> >> > Thanks for your replay. I will roll out such an implementation and
> >> create a
> >> > PR against wicket-bootstrap
> >> >
> >> > On Wed, Dec 30, 2015 at 9:09 AM, Tobias Soloschenko <
> >> > tobiassolosche...@googlemail.com> wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > from what I can see on Wicket bootstrap - there is no integration
> for
> >> > that:
> >> > >
> >> > > http://wb-mgrigorov.rhcloud.com/components
> >> > >
> >> > > But it should be no problem to implement it. :-)
> >> > >
> >> > > kind regards
> >> > >
> >> > > Tobias
> >> > >
> >> > > > Am 30.12.2015 um 08:21 schrieb Ernesto Reinaldo Barreiro <
> >> > > reier...@gmail.com>:
> >> > > >
> >> > > > Hi Wicketeers,
> >> > > >
> >> > > > Does anyone has rolled out a wicket wrapper for
> >> > > >
> >> > > > http://www.eyecon.ro/bootstrap-slider/
> >> > > >
> >> > > > ?
> >> > > >
> >> > > > --
> >> > > > Regards - Ernesto Reinaldo Barreiro
> >> > >
> >> > >
> -
> >> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > > For additional commands, e-mail: users-h...@wicket.apache.org
> >> > >
> >> > >
> >> >
> >> >
> >> > --
> >> > Regards - Ernesto Reinaldo Barreiro
> >> >
> >>
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
WBR
Maxim aka solomax


Re: contributing to wicketstuff-core, how to format file in IntelliJ IDEA?

2015-12-29 Thread Maxim Solodovnik
I believe it wouldn't be good idea to re-format the whole module while
preparing PR.
I would use formatters with care

On Tue, Dec 29, 2015 at 7:02 PM, Zala Pierre GOUPIL 
wrote:

> Hi,
>
>
> On Tue, Dec 29, 2015 at 1:44 PM, Tobias Soloschenko <
> tobiassolosche...@googlemail.com> wrote:
>
> > Hi,
> >
> > I think you are looking for that:
> >
> >
> >
> https://github.com/wicketstuff/core/blob/master/config/eclipse/wicket-workspace-javacode-formatter-profile.xml
> >
> >
> >
> There's an Intellij plugin which takes this file as an input and
> auto-applies its guidelines to Java files. It's called: Eclipse Code
> Formatter. It works well.
>
>
> Regards,
>
> Pierre
>
>
>
> --
> Je n'aime pas seulement ma vie, mais aussi celle des autres.
>
> (Blade Runner)
>



-- 
WBR
Maxim aka solomax


Re: Wizard localization

2015-12-12 Thread Maxim Solodovnik
Works as expected, Thanks a lot Sebastien!

On Sat, Dec 12, 2015 at 9:31 PM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> Great Job!
>
> kind regards
>
> Tobias
>
> > Am 12.12.2015 um 16:13 schrieb Sebastien <seb...@gmail.com>:
> >
> > Hi Maxim,
> >
> > Wicket jQuery UI 7.1.1-SNAPSHOT & 6.21.1-SNAPSHOT have been deployed.
> >
> > Enjoy! :)
> > Sebastien.
> >
> > On Fri, Dec 11, 2015 at 4:29 PM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> >> Great, thanks a lot!
> >>
> >>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Wizard localization

2015-12-11 Thread Maxim Solodovnik
I actually don't really like the idea I can broke anything with changing
resolver order :(
Maybe it would be possible to modify Wizard?
I believe this change will made it more flexible
WDYT?

On Fri, Dec 11, 2015 at 3:15 AM, Sebastien  wrote:

> Hi Martin,
>
> > I think Wizard[_lang].properties should be moved to
> org/apache/wicket/extensions/Initializer[_lang].properties
>
> I didn't know (or absolutely forgot) about Initializer[_lang].properties!
> It is a better solution IMO, I will change this in AbstractWizard (Wicket
> jQuery UI)...
> You're are also right that the problem may arise in Wicket Extensions... If
> I have time this WE - and if the solution is agreed - I will try to change
> in Wicket Extension too...
>
> Thanks & best regards,
> Sebastien.
>
>
> On Thu, Dec 10, 2015 at 9:50 PM, Martin Grigorov 
> wrote:
>
> > Hi Maxim,
> >
> > The order of the loaders is defined at:
> >
> >
> https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/settings/ResourceSettings.java#L220-L224
> > You can redefine it by using #getStringResourceLoaders().clear();
> > #getStringResourceLoaders().addAll(betterOrderedList);
> >
> > This is a nasty hack! I agree!
> >
> > I think Wizard[_lang].properties should be moved
> > to org/apache/wicket/extensions/Initializer[_lang].properties
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
>



-- 
WBR
Maxim aka solomax


Re: Wizard localization

2015-12-11 Thread Maxim Solodovnik
Great, thanks a lot!

WBR, Maxim
(from mobile, sorry for the typos)
On Dec 11, 2015 21:11, "Sebastien" <seb...@gmail.com> wrote:

> Fine, I will deploy snapshot this WE...
>
> On Fri, Dec 11, 2015 at 3:57 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Snapshot is OK,
> > I guess 7.2.0 will be released in Dec,Jan :)
> >
> > WBR, Maxim
> > (from mobile, sorry for the typos)
> >
>


Re: Wizard localization

2015-12-11 Thread Maxim Solodovnik
Snapshot is OK,
I guess 7.2.0 will be released in Dec,Jan :)

WBR, Maxim
(from mobile, sorry for the typos)
On Dec 11, 2015 20:42, "Sebastien" <seb...@gmail.com> wrote:

> Hi Maxim,
>
> I have changed for AbstractWizard according to Martin's comment, it works
> very well! :)
> Will a snapshot version be ok for you or do you need a release (7.1.1)?
>
> Thanks & best regards,
> Sebastien.
>
>
> On Fri, Dec 11, 2015 at 3:06 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > I actually don't really like the idea I can broke anything with changing
> > resolver order :(
> > Maybe it would be possible to modify Wizard?
> > I believe this change will made it more flexible
> > WDYT?
> >
>


Re: Wizard localization

2015-12-10 Thread Maxim Solodovnik
Thanks Sebastien :)

Hello All,

I would like to redefine wizard button on "Application level", maybe
someone can suggest how it can be possible to redefine string resource
resolution order?

Here is the original question:
I have question regarding jqueryui wizard button localization, I need to
localize "Finish" button
I have added string on "Application" level (Application.properties.xml file)
bla-bla
and seems to have no effect

this http://www.7thweb.net/wicket-jquery-ui/wizard/DefaultWizardPage page
states I need to create  *MyPage*.properties or *MyWizard*.properties, but
I need to have all translations in 1 file (we have built-in language editor
in our application)

Is it possible to localize the button on "Application level"?


On Thu, Dec 10, 2015 at 10:38 PM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
> This is because default wizard's button values are already defined in
> AbstractWizard.properties. So it can be overridden in *MyPage*.properties
> or *MyWizard*.properties, but not in *MyApplication*.property.
>
> I don't know how to tell *MyApplication*.property to take precedence over
> *MyComponent.properties*. Maybe this is a question for users@ ! :)
>
> Best regards,
> Sebastien.
>
>
> On Thu, Dec 10, 2015 at 5:03 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> Hello Sebastien,
>>
>> not sure which list need to be CC here :(
>> I have question regarding jqueryui wizard button localization, I need to
>> localize "Finish" button
>> I have added string on "Application" level (Application.properties.xml
>> file)
>> bla-bla
>> and seems to have no effect
>>
>> this http://www.7thweb.net/wicket-jquery-ui/wizard/DefaultWizardPage
>> page states I need to create  *MyPage*.properties or *MyWizard*
>> .properties, but I need to have all translations in 1 file (we have
>> built-in language editor in our application)
>>
>> Is it possible to localize the button on "Application level"?
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>


-- 
WBR
Maxim aka solomax


Re: Image based on external url model object

2015-12-04 Thread Maxim Solodovnik
unfortunately I was unable to test it or participate in discussion :(
will try it in next available snapshot :)

On Tue, Dec 1, 2015 at 2:17 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> Hi Martin :-D,
>
> and here it is:
>
> https://github.com/apache/wicket/pull/143
>
> kind regards
>
> Tobias
>
> Am 30.11.15 um 21:00 schrieb Martin Grigorov:
>
> Hi,
>>
>> On Nov 30, 2015 4:21 PM, "Sebastien"  wrote:
>>
>>> Hi Tobias,
>>>
>>> As I stated, I would prefer 2 different models so :
>>> - the main model is used for "src"
>>> - the model is not itself an array of models (I don't recall there is a
>>> such case elsewhere in Wicket)
>>> - it is easier to handle the CPM case
>>>
>>> As the other devs are now back from week-end, it would be nice to have
>>>
>> some
>>
>>> other opinions! :)
>>>
>> I usually wait for the PR to be able to comment on the changes.
>>
>>
>>>
>> https://github.com/klopfdreh/wicket-components-playground/blob/master/wicket-components-playground/src/main/java/org/apache/wicket/markup/html/image/ExternalImage.java
>>
>> There is no commenting functionality in such links.
>>
>> I could comment on the original commits but:
>> 1) I have to find them
>> 2) no one else (but Tobias) will see my comments
>>
>> Thanks & best regards,
>>> Sebastien.
>>>
>>>
>>> On Sat, Nov 28, 2015 at 8:10 AM, Tobias Soloschenko <
>>> tobiassolosche...@googlemail.com> wrote:
>>>
>>> Hi Sebastien,

 thanks for testing :-)

 I thought it would be nice to get all models by the default WebComponent
 method and that they are all stored as defaultmodelobject.

 WDTY?

 Anyway it would safe 2 methods.

 kind regards

 Tobias


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


-- 
WBR
Maxim aka solomax


Re: Image based on external url model object

2015-11-24 Thread Maxim Solodovnik
Will try to check the code this week

On Tue, Nov 24, 2015 at 11:30 PM, Sebastien <seb...@gmail.com> wrote:

> Hi Tobias,
>
> Thanks again, I will try to test this tonight...
>
> Best regards,
> Sebastien.
>
>
>
> On Tue, Nov 24, 2015 at 6:28 PM, Tobias Soloschenko <
> tobiassolosche...@googlemail.com> wrote:
>
> > Here they are:
> >
> >
> >
> https://github.com/klopfdreh/wicket-components-playground/wiki/19.-ExternalImage
> >
> > To test only copy them into your classpath and it would be nice to give
> me
> > some feedback.
> >
> > kind regards
> >
> > Tobias
> >
> > P.S.: If they fit the requirements I'm going to create a PR.
> >
> > Am 24.11.15 um 14:59 schrieb Sebastien:
> >
> > "new Image(String, IModel)" does not work with external urls and
> do
> >> not support compound model :)
> >>
> >>
> >> On Tue, Nov 24, 2015 at 2:29 PM, Martin Grigorov <mgrigo...@apache.org>
> >> wrote:
> >>
> >> I am pretty sure "new Image(String, IModel)" was for such use
> >>> case.
> >>> Looking at the code in 6.x+ I don't see how it could work though.
> >>> So it is either my mistake that it ever worked, or it has been broken
> at
> >>> some point.
> >>>
> >>> I just want to avoid having more than one way to do the same thing.
> This
> >>> will lead to confusion and bad reputation.
> >>> I don't have time to investigate deeply the history of this right now.
> >>>
> >>> Martin Grigorov
> >>> Wicket Training and Consulting
> >>> https://twitter.com/mtgrigorov
> >>>
> >>> On Tue, Nov 24, 2015 at 2:20 PM, Tobias Soloschenko <
> >>> tobiassolosche...@googlemail.com> wrote:
> >>>
> >>> Good point - mhh but the issue here is that the information are not
> >>>>
> >>> stored
> >>>
> >>>> within the model Sebastien and Maxim wanted it to be - or am I wrong?
> >>>>
> >>>> kind regards
> >>>>
> >>>> Tobias
> >>>>
> >>>> Am 24.11.2015 um 14:11 schrieb Martin Grigorov <mgrigo...@apache.org
> >:
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>> Just to make it a little bit confusing: have you considered "new
> >>>>> Image("id", new UrlResourceReference("...")) ?
> >>>>>
> >>>>> Martin Grigorov
> >>>>> Wicket Training and Consulting
> >>>>> https://twitter.com/mtgrigorov
> >>>>>
> >>>>> On Tue, Nov 24, 2015 at 1:43 PM, Tobias Soloschenko <
> >>>>> tobiassolosche...@googlemail.com> wrote:
> >>>>>
> >>>>> I finished it, yesterday.
> >>>>>>
> >>>>>> Going to push it this evening. (First to my repo and create a pull
> >>>>>>
> >>>>> request)
> >>>>
> >>>>> kind regards
> >>>>>>
> >>>>>> Tobias
> >>>>>>
> >>>>>> Am 24.11.2015 um 03:31 schrieb Maxim Solodovnik <
> >>>>>>>
> >>>>>> solomax...@gmail.com
> >>>
> >>>> :
> >>>>>
> >>>>>> Also thanks from me :)
> >>>>>>>
> >>>>>>> On Mon, Nov 23, 2015 at 9:17 PM, Sebastien <seb...@gmail.com>
> >>>>>>>>
> >>>>>>> wrote:
> >>>
> >>>> Thanks a million Tobias! :)
> >>>>>>>>
> >>>>>>>> On Mon, Nov 23, 2015 at 4:09 PM, Tobias Soloschenko <
> >>>>>>>> tobiassolosche...@googlemail.com> wrote:
> >>>>>>>>
> >>>>>>>> Hi,
> >>>>>>>>>
> >>>>>>>>> sounds good - I am going to change the ticket description soon
> and
> >>>>>>>>>
> >>>>>>>> try
> >>>>
> >>>>> to
> >>>>>>
> >>>>>>> implement it.
> >>>>>>>>>
> >>>>>>>>> kind regards
> >>>>>>>>>
> >>>>>>>>> Tobias

Re: Image based on external url model object

2015-11-23 Thread Maxim Solodovnik
Also thanks from me :)

On Mon, Nov 23, 2015 at 9:17 PM, Sebastien <seb...@gmail.com> wrote:

> Thanks a million Tobias! :)
>
> On Mon, Nov 23, 2015 at 4:09 PM, Tobias Soloschenko <
> tobiassolosche...@googlemail.com> wrote:
>
> > Hi,
> >
> > sounds good - I am going to change the ticket description soon and try to
> > implement it.
> >
> > kind regards
> >
> > Tobias
> >
> > > Am 23.11.2015 um 15:45 schrieb Sebastien <seb...@gmail.com>:
> > >
> > > Hi Tobias,
> > >
> > > Sorry for the late reply, busy day...
> > >
> > > Actually Image(String id, IModel model, String url) will not help in
> this
> > > case, I need the url to be in the model, but external url doesn't work
> > with
> > > Image... I was more thinking about an ExternalImage component
> > >
> > > Does it make sense to you?
> > >
> > > Thanks & best regards,
> > > Sebastien.
> > >
> > >
> > > On Mon, Nov 23, 2015 at 6:05 AM, Tobias Soloschenko <
> > > tobiassolosche...@googlemail.com> wrote:
> > >
> > >> Hi,
> > >>
> > >> maybe we can extend the normal image and add a constructor
> Image(String
> > >> id, IModel model, String url) so that the url is used in the src
> > attribute
> > >> (like in MediaComponents)
> > >>
> > >> WDYT?
> > >>
> > >> kind regards
> > >>
> > >> Tobias
> > >>
> > >>> Am 23.11.2015 um 03:45 schrieb Maxim Solodovnik <
> solomax...@gmail.com
> > >:
> > >>>
> > >>> Actually I'm using "hacky" way:
> > >>>
> > >>> if (absolute) {
> > >>> profile.add(new
> > >>> WebMarkupContainer("img").add(AttributeModifier.append("alt",
> > >>> Application.getString(5L)), AttributeModifier.append("src", uri)));
> > >>> } else {
> > >>> profile.add(new Image("img", new ByteArrayResource("image/jpeg") {
> > >>> ..
> > >>>
> > >>> Would love to know if is there any better way
> > >>>
> > >>>> On Mon, Nov 23, 2015 at 4:34 AM, Sebastien <seb...@gmail.com>
> wrote:
> > >>>>
> > >>>> Forgot to mention I've read the following wiki, but as it was a
> little
> > >> bit
> > >>>> old I was wondering if there was nothing newer...
> > >>
> >
> https://cwiki.apache.org/confluence/display/WICKET/How+to+load+an+external+image
> > >>>>
> > >>>>
> > >>>>> On Sun, Nov 22, 2015 at 11:31 PM, Sebastien <seb...@gmail.com>
> > wrote:
> > >>>>>
> > >>>>> Hi all,
> > >>>>>
> > >>>>> I cannot find an Image component that could display an image from
> an
> > >>>>> *external* url, supplied by the model object. My use-case is that I
> > >> have
> > >>>> a
> > >>>>> user object, which have a gravatarUrl property, and I would like to
> > do
> > >>>>> something like "this.add(new ExternalImage("gravatarUrl"));"...
> > >>>>>
> > >>>>> Isn't there any component that actually exists which could do this?
> > >>>>>
> > >>>>> Many thanks in advance,
> > >>>>> Sebastien
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> WBR
> > >>> Maxim aka solomax
> > >>
> > >> -
> > >> 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
> >
> >
>



-- 
WBR
Maxim aka solomax


Re: Image based on external url model object

2015-11-22 Thread Maxim Solodovnik
Actually I'm using "hacky" way:

if (absolute) {
profile.add(new
WebMarkupContainer("img").add(AttributeModifier.append("alt",
Application.getString(5L)), AttributeModifier.append("src", uri)));
} else {
profile.add(new Image("img", new ByteArrayResource("image/jpeg") {
..

Would love to know if is there any better way

On Mon, Nov 23, 2015 at 4:34 AM, Sebastien  wrote:

> Forgot to mention I've read the following wiki, but as it was a little bit
> old I was wondering if there was nothing newer...
>
> https://cwiki.apache.org/confluence/display/WICKET/How+to+load+an+external+image
>
>
> On Sun, Nov 22, 2015 at 11:31 PM, Sebastien  wrote:
>
> > Hi all,
> >
> > I cannot find an Image component that could display an image from an
> > *external* url, supplied by the model object. My use-case is that I have
> a
> > user object, which have a gravatarUrl property, and I would like to do
> > something like "this.add(new ExternalImage("gravatarUrl"));"...
> >
> > Isn't there any component that actually exists which could do this?
> >
> > Many thanks in advance,
> > Sebastien
> >
> >
>



-- 
WBR
Maxim aka solomax


Re: wicketstuff-select2 in wicket 7.1.0

2015-11-06 Thread Maxim Solodovnik
Main fixes are in https://github.com/wicketstuff/core/issues/411
Hopefully will address all issues this week

On Fri, Nov 6, 2015 at 4:55 PM, Martin Grigorov 
wrote:

> Hi,
>
> See https://github.com/wicketstuff/core/issues/429 and
> https://github.com/wicketstuff/core/issues/430.
> It is working in 7.2.0-SNAPSHOT. And 7.0.0 (with Select2 3.x)
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Nov 6, 2015 at 11:51 AM, Rob Audenaerde 
> wrote:
>
> > Has anyone got this working?
> >
> > -Rob
> >
>



-- 
WBR
Maxim aka solomax


Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
Great, thanks a lot!

On Fri, Nov 6, 2015 at 6:21 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi Maxim,
>
> You can use
> tester.getRequest().addParameter(select2.getInputName(), "CA")
> tester.getRequest().addParameter(select2.getInputName(), "BE")
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Nov 6, 2015 at 12:56 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Actually I feel I need method like:
> > formTester.setValue(page.country, new String[]{"CA","BE"});
> >
> > Maybe someone knows how this can be done/work-arounded?
> >
> > On Fri, Nov 6, 2015 at 5:36 PM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > Hello All,
> > >
> > > I'm currently trying to write tests for Select2MultiChoice wicketstuff
> > > component.
> > >
> > > Previously there was an option to set multiple values like this:
> > > formTester.setValue(page.country, "CA,BE");
> > >
> > > In previous version this component was based on HiddenField and
> > everything
> > > was working
> > > In select2 4.0 the preferred way is to use  component
> > > How can I set multiple values for select component in wickettester?
> > > (I can't use *selectMultiple *due to option list is being opened on
> > > component open only)
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
Hello All,

I'm currently trying to write tests for Select2MultiChoice wicketstuff
component.

Previously there was an option to set multiple values like this:
formTester.setValue(page.country, "CA,BE");

In previous version this component was based on HiddenField and everything
was working
In select2 4.0 the preferred way is to use  component
How can I set multiple values for select component in wickettester?
(I can't use *selectMultiple *due to option list is being opened on
component open only)

-- 
WBR
Maxim aka solomax


Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
The only issue with this approach: tester is private :(

On Fri, Nov 6, 2015 at 6:22 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Great, thanks a lot!
>
> On Fri, Nov 6, 2015 at 6:21 PM, Martin Grigorov <mgrigo...@apache.org>
> wrote:
>
>> Hi Maxim,
>>
>> You can use
>> tester.getRequest().addParameter(select2.getInputName(), "CA")
>> tester.getRequest().addParameter(select2.getInputName(), "BE")
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Fri, Nov 6, 2015 at 12:56 PM, Maxim Solodovnik <solomax...@gmail.com>
>> wrote:
>>
>> > Actually I feel I need method like:
>> > formTester.setValue(page.country, new String[]{"CA","BE"});
>> >
>> > Maybe someone knows how this can be done/work-arounded?
>> >
>> > On Fri, Nov 6, 2015 at 5:36 PM, Maxim Solodovnik <solomax...@gmail.com>
>> > wrote:
>> >
>> > > Hello All,
>> > >
>> > > I'm currently trying to write tests for Select2MultiChoice wicketstuff
>> > > component.
>> > >
>> > > Previously there was an option to set multiple values like this:
>> > > formTester.setValue(page.country, "CA,BE");
>> > >
>> > > In previous version this component was based on HiddenField and
>> > everything
>> > > was working
>> > > In select2 4.0 the preferred way is to use  component
>> > > How can I set multiple values for select component in wickettester?
>> > > (I can't use *selectMultiple *due to option list is being opened on
>> > > component open only)
>> > >
>> > > --
>> > > WBR
>> > > Maxim aka solomax
>> > >
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
Actually I feel I need method like:
formTester.setValue(page.country, new String[]{"CA","BE"});

Maybe someone knows how this can be done/work-arounded?

On Fri, Nov 6, 2015 at 5:36 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Hello All,
>
> I'm currently trying to write tests for Select2MultiChoice wicketstuff
> component.
>
> Previously there was an option to set multiple values like this:
> formTester.setValue(page.country, "CA,BE");
>
> In previous version this component was based on HiddenField and everything
> was working
> In select2 4.0 the preferred way is to use  component
> How can I set multiple values for select component in wickettester?
> (I can't use *selectMultiple *due to option list is being opened on
> component open only)
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
My bad, sorry, search formTester for this :(
Thanks again!

On Fri, Nov 6, 2015 at 6:29 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> How so?
> Your test creates the tester (WicketTester) and later uses it to create the
> FormTester: tester.newFormTester(...)
> So it is reachable
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Nov 6, 2015 at 1:26 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > The only issue with this approach: tester is private :(
> >
> > On Fri, Nov 6, 2015 at 6:22 PM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > Great, thanks a lot!
> > >
> > > On Fri, Nov 6, 2015 at 6:21 PM, Martin Grigorov <mgrigo...@apache.org>
> > > wrote:
> > >
> > >> Hi Maxim,
> > >>
> > >> You can use
> > >> tester.getRequest().addParameter(select2.getInputName(), "CA")
> > >> tester.getRequest().addParameter(select2.getInputName(), "BE")
> > >>
> > >> Martin Grigorov
> > >> Wicket Training and Consulting
> > >> https://twitter.com/mtgrigorov
> > >>
> > >> On Fri, Nov 6, 2015 at 12:56 PM, Maxim Solodovnik <
> solomax...@gmail.com
> > >
> > >> wrote:
> > >>
> > >> > Actually I feel I need method like:
> > >> > formTester.setValue(page.country, new String[]{"CA","BE"});
> > >> >
> > >> > Maybe someone knows how this can be done/work-arounded?
> > >> >
> > >> > On Fri, Nov 6, 2015 at 5:36 PM, Maxim Solodovnik <
> > solomax...@gmail.com>
> > >> > wrote:
> > >> >
> > >> > > Hello All,
> > >> > >
> > >> > > I'm currently trying to write tests for Select2MultiChoice
> > wicketstuff
> > >> > > component.
> > >> > >
> > >> > > Previously there was an option to set multiple values like this:
> > >> > > formTester.setValue(page.country, "CA,BE");
> > >> > >
> > >> > > In previous version this component was based on HiddenField and
> > >> > everything
> > >> > > was working
> > >> > > In select2 4.0 the preferred way is to use  component
> > >> > > How can I set multiple values for select component in
> wickettester?
> > >> > > (I can't use *selectMultiple *due to option list is being opened
> on
> > >> > > component open only)
> > >> > >
> > >> > > --
> > >> > > WBR
> > >> > > Maxim aka solomax
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > WBR
> > >> > Maxim aka solomax
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Wicket 7.1.0 breaks OnChangeAjaxBehavior on Select2

2015-10-28 Thread Maxim Solodovnik
It seems we are using AjaxFormComponentUpdatingBehavior("change") in our
project and it works as expected

On Wed, Oct 28, 2015 at 6:37 PM, Peter Henderson <
peter.hender...@starjar.com> wrote:

> I've tried
>
> Wicket 7.1.0 with
> libraryDependencies += "org.wicketstuff" % "wicketstuff-select2" % "7.0.0"
> withSources() withJavadoc()
> and
> libraryDependencies += "org.wicketstuff" % "wicketstuff-select2" % "7.1.0"
> withSources() withJavadoc()
>
>
> Wicket 7.0.0 with select2 7.0.0  (which works)
>
>
> On Wed, Oct 28, 2015 at 12:34 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > BTW which wicket library for select2 are you using?
> >
> > On Wed, Oct 28, 2015 at 6:33 PM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > Will try to check later today
> > > Please file ticket on the github, will try to address it ASAP
> > >
> > > On Wed, Oct 28, 2015 at 6:31 PM, Peter Henderson <
> > > peter.hender...@starjar.com> wrote:
> > >
> > >> Hi fellow users.
> > >>
> > >> A quick heads up.
> > >>
> > >> I've just upgraded from wicket 7.0.0 to 7.1.0.
> > >>
> > >> It looks like something has broken
> > >> OnChangeAjaxBehavior on Select2 form fields.
> > >>
> > >> Hopefully I'll be able to build a quickstart later.
> > >>
> > >>
> > >>
> > >>
> > >> The exception for the record.
> > >>
> > >> org.apache.wicket.core.request.handler.ComponentNotFoundException:
> > >> Component 'form:partFF:fg:fg_body:edit:location' has been removed from
> > >> page.
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:177)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
> > >> at
> > >>
> > >>
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> --
> > >> Peter Henderson
> > >>
> > >> Director
> > >> Starjar Ltd.
> > >> www.starjar.com
> > >> 0330 088 1662
> > >>
> > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> Peter Henderson
>
> Director
> Starjar Ltd.
> www.starjar.com
> 0330 088 1662
>



-- 
WBR
Maxim aka solomax


Re: Wicket 7.1.0 breaks OnChangeAjaxBehavior on Select2

2015-10-28 Thread Maxim Solodovnik
Will try to check later today
Please file ticket on the github, will try to address it ASAP

On Wed, Oct 28, 2015 at 6:31 PM, Peter Henderson <
peter.hender...@starjar.com> wrote:

> Hi fellow users.
>
> A quick heads up.
>
> I've just upgraded from wicket 7.0.0 to 7.1.0.
>
> It looks like something has broken
> OnChangeAjaxBehavior on Select2 form fields.
>
> Hopefully I'll be able to build a quickstart later.
>
>
>
>
> The exception for the record.
>
> org.apache.wicket.core.request.handler.ComponentNotFoundException:
> Component 'form:partFF:fg:fg_body:edit:location' has been removed from
> page.
> at
>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:177)
> at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> at
>
> org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)
> at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
> at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
>
>
>
>
>
>
>
>
>
> --
> Peter Henderson
>
> Director
> Starjar Ltd.
> www.starjar.com
> 0330 088 1662
>



-- 
WBR
Maxim aka solomax


Re: Wicket 7.1.0 breaks OnChangeAjaxBehavior on Select2

2015-10-28 Thread Maxim Solodovnik
BTW which wicket library for select2 are you using?

On Wed, Oct 28, 2015 at 6:33 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Will try to check later today
> Please file ticket on the github, will try to address it ASAP
>
> On Wed, Oct 28, 2015 at 6:31 PM, Peter Henderson <
> peter.hender...@starjar.com> wrote:
>
>> Hi fellow users.
>>
>> A quick heads up.
>>
>> I've just upgraded from wicket 7.0.0 to 7.1.0.
>>
>> It looks like something has broken
>> OnChangeAjaxBehavior on Select2 form fields.
>>
>> Hopefully I'll be able to build a quickstart later.
>>
>>
>>
>>
>> The exception for the record.
>>
>> org.apache.wicket.core.request.handler.ComponentNotFoundException:
>> Component 'form:partFF:fg:fg_body:edit:location' has been removed from
>> page.
>> at
>>
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:177)
>> at
>>
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
>> at
>>
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>> at
>>
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
>> at
>>
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>> at
>>
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
>> at
>>
>> org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)
>> at
>>
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
>> at
>>
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> Peter Henderson
>>
>> Director
>> Starjar Ltd.
>> www.starjar.com
>> 0330 088 1662
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax


Re: Java 7 and 8 features

2015-10-27 Thread Maxim Solodovnik
We are just moved to java7 and start using new features
I personally don't like the idea of moving all code to new java, I move the
areas I currently work on

On Tue, Oct 27, 2015 at 10:57 PM, Gary Gregory 
wrote:

> Hi,
>
> What I see, is that most projects are struggling to move to Java 7, Java 8
> seems out of range. There are a lot of opinions and both sides of each Java
> version for and against. At the end of the day, it's about user feedback
> and committer community involvement. The projects I help on also lack
> manpower and maintaining more than one version is not I see folks wanting
> to do. For myself, I usually want to work on the current version in
> master/trunk and move that along. My work$ development is on Java 7 and
> slated to switch to Java 8 in 2016 I would guess.
>
> Gary
>
> On Tue, Oct 27, 2015 at 9:37 AM, Oliver B. Fischer <
> o.b.fisc...@swe-blog.net> wrote:
>
>> Hi Vinicius,
>>
>> it is mostly to allow people which are bound (for any reason) to older
>> JDK versions to use our software. There is a plenty number of projects
>> which are not able to use newer JDK versions. I know that this is a
>>  controversial topic I think that the majority of us would like to use all
>> these features. But we must not forget the people using our software in
>> their daily work.
>>
>> BYe,
>>
>> Oliver
>>
>> Am 27.10.15 um 16:49 schrieb Vinicius CorrĂȘa de Almeida:
>>
>>> I analized some releases and i noticed that not using java 7 features
>>> like
>>> multi catch and in java 8 do not use lambda expressions and others
>>> features, so i came by this email to know why the developers not using
>>> this
>>> features?
>>>
>>>
>> --
>> N Oliver B. Fischer
>> A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
>> P +49 30 44793251
>> M +49 178 7903538
>> E o.b.fisc...@swe-blog.net
>> S oliver.b.fischer
>> J oliver.b.fisc...@jabber.org
>> X http://xing.to/obf
>>
>>
>
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
> 
> JUnit in Action, Second Edition 
> Spring Batch in Action 
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
WBR
Maxim aka solomax


Re: Wicket & OACC

2015-10-14 Thread Maxim Solodovnik
Sounds interesting :)
Please share your work if possible :)

WBR, Maxim
(from mobile, sorry for the typos)
On Oct 14, 2015 22:19, "Sebastien"  wrote:

> Hi all,
>
> I have the need to manage access control on objects/things and I would like
> to give a try to OACC [1] which looks promising to me.
>
> Does someone knows about a wicket layer over OACC (implementing
> IAuthorizationStrategy, IResource, etc) ? Just to not reinvent the wheel...
>
> Many thanks in advance,
> Sebastien.
>
> [1] http://oaccframework.org/index.html
>


Native Websockets under Tomcat8

2015-09-08 Thread Maxim Solodovnik
Hello All,

I'm facing weird issue trying to run my Wicket6 web application under
tomcat8 (it previously work as expected under tomcat7)
Application uses Tomcat7WebSocketFilter and stacktrace I got:

SEVERE: Exception starting filter OpenmeetingsApplication
java.lang.NoSuchFieldError: ISO_8859_1
at
org.apache.wicket.protocol.ws.tomcat7.Tomcat7WebSocketFilter.(Tomcat7WebSocketFilter.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at
org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:121)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Makes me think I should use "wicket-native-websocket-javax" instead of
"wicket-native-websocket-tomcat" but it seems to be unavailable for wicket6
:(

Are my assumptions correct and I need to upgrade to wicket7 to get things
work with tomcat8?

Thanks in advance

-- 
WBR
Maxim aka solomax


Re: Native Websockets under Tomcat8

2015-09-08 Thread Maxim Solodovnik
Thanks a lot Martin!


On Wed, Sep 9, 2015 at 2:57 AM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi Maxim,
>
> On Tue, Sep 8, 2015 at 10:47 PM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > Hello All,
> >
> > I'm facing weird issue trying to run my Wicket6 web application under
> > tomcat8 (it previously work as expected under tomcat7)
> > Application uses Tomcat7WebSocketFilter and stacktrace I got:
> >
> > SEVERE: Exception starting filter OpenmeetingsApplication
> > java.lang.NoSuchFieldError: ISO_8859_1
> > at
> >
> >
> org.apache.wicket.protocol.ws.tomcat7.Tomcat7WebSocketFilter.(Tomcat7WebSocketFilter.java:43)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> > at
> >
> >
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> > at
> >
> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> > at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> > at java.lang.Class.newInstance(Class.java:442)
> > at
> >
> >
> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:121)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
> > at
> >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
> > at
> >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
> > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > at
> >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
> > at
> >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
> > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > at java.lang.Thread.run(Thread.java:745)
> >
> > Makes me think I should use "wicket-native-websocket-javax" instead of
> >
>
> Right!
>
>
> > "wicket-native-websocket-tomcat" but it seems to be unavailable for
> wicket6
> > :(
> >
>
> It is a WicketStuff project because it depends on Java 7+, and Wicket 6.x
> is built with Java 6.
> Check
>
> http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.wicketstuff%22%20AND%20a%3A%22wicketstuff-native-websocket-javax%22
>
>
>
> >
> > Are my assumptions correct and I need to upgrade to wicket7 to get things
> > work with tomcat8?
> >
>
> Nope. See above.
>
>
> >
> > Thanks in advance
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax


Re: Wicket7: MediaComponent and Source classes

2015-07-06 Thread Maxim Solodovnik
Just have tried :)
hopefully it'll help :)

On Sun, Jul 5, 2015 at 1:40 PM, Tobias Soloschenko 
tobiassolosche...@googlemail.com wrote:

 May it helps when you add me to your contact list.

 kind regards

 Tobias

  Am 05.07.2015 um 07:40 schrieb Maxim Solodovnik solomax...@gmail.com:
 
  Hello Tobias,
 
  Everything seems to work as expected!
  sorry for the late response, your emails are still going into Spam :(((
 
  On Fri, Jul 3, 2015 at 6:34 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  @Maxim: Is there anything left to be done within the media components?
  Otherwise I am going to vote +1
 
  kind regards
 
  Tobias
 
  Am 03.07.2015 um 07:43 schrieb Maxim Solodovnik solomax...@gmail.com
 :
 
  OK, will try
  Thanks
 
  On Fri, Jul 3, 2015 at 11:38 AM, Martin Grigorov mgrigo...@apache.org
 
  wrote:
 
  HI Maxim,
 
  This will lead to a big API break.
  If we change this signature then we will have to change many more to
  keep
  it consistent, and this will lead to a lot of work for the application
  developers to change AjaxRequestTarget with
 IPartialPageRequestHandler.
 
  We may need to make this change for Wicket 8.x if there are many users
  wanting this change, but for now I'd suggest you to create an adapter.
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Fri, Jul 3, 2015 at 7:46 AM, Maxim Solodovnik 
 solomax...@gmail.com
  wrote:
 
  Hello Martin,
 
  I guess following method need to be additionally updated:
 
  org.apache.wicket.ajax.AbstractAjaxTimerBehavior.onTimer
 
  On Thu, Jul 2, 2015 at 6:11 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
 
  The change is rather big:
 
 https://github.com/sebfz1/wicket-jquery-ui/commit/e94f89d8f07f2b1af2b327a4aaec5ddd4b1400af
  I guess many other methods will need to be changed too if one needs
 to
  use
  them with WebSocket.
  The improvement in the Wicket API looked so innocent ...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Thu, Jul 2, 2015 at 2:28 PM, Maxim Solodovnik 
  solomax...@gmail.com
 
  wrote:
 
  Done: https://github.com/sebfz1/wicket-jquery-ui/issues/177
  Sorry, forgot about Sebastians vacation :(
 
  On Thu, Jul 2, 2015 at 5:23 PM, Martin Grigorov 
  mgrigo...@apache.org
  wrote:
 
  @Maxim: Please create an issue at Wicket jQuery UI github.
  Sebastien is on vacation. I can do it but first I need a good
  reason
  for
  the change :-)
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Thu, Jul 2, 2015 at 12:33 PM, Maxim Solodovnik 
  solomax...@gmail.com
  wrote:
 
  @Sebastian could you please modify AbstractDialog.open method to
  be
 
  public final void open(IPartialPageRequestHandler target)
  instead of
  public final void open(AjaxRequestTarget target)
 
  Thanks in advance!
 
 
  On Thu, Jul 2, 2015 at 2:58 PM, Martin Grigorov 
  mgrigo...@apache.org
  wrote:
 
  Yes, another minor cleanup: there is now
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/request/handler/IPartialPageRequestHandler.java
  A base interface for Ajax and WebSocket.
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Thu, Jul 2, 2015 at 11:45 AM, Maxim Solodovnik 
  solomax...@gmail.com
  wrote:
 
  Additionally it looks like WebSocketRequestHandler can not be
  used
  as AjaxRequestTarget any longer
  Previously it was possible to use WebSocketRequestHandler to
  push
  updated
  component .
 
  On Thu, Jul 2, 2015 at 2:42 PM, Maxim Solodovnik 
  solomax...@gmail.com
 
  wrote:
 
  Thanks a lot Tobias!
 
  On Thu, Jul 2, 2015 at 1:03 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  Hi Maxim,
 
  no problem I am going to add the getter this evening.
  Thank
  you
  for
  your
  suggestions! :-)
 
  Maybe the SNAPSHOT isn't refreshed because of the downtime
  of
  the
  buildbot server. However the build was triggered already.
 
  kind regards
 
  Tobias
 
  Am 02.07.2015 um 08:45 schrieb Maxim Solodovnik 
  solomax...@gmail.com
  :
 
  Thanks a lot for the changes Tobias,
  Unfortunately I'm unable to test it due to latest
  7.0.0-SNAPSHOT
  seems
  doesn't contain it :(
 
  And one more question: I would like to be able to modify
  PageParameters
  passed to source, maybe it would be possible to add
  public
  getter
  for
  it?
 
  Thanks in advance
 
  On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  Hi Maxim,
 
  hope the change is like you wanted it to be:
 
 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4
 
  But again: The PackageResourceReference is best
  practice,
  because
  you
  also
  can use readBuffered(false) of it - with this option

Re: Wicket7: MediaComponent and Source classes

2015-07-04 Thread Maxim Solodovnik
Hello Tobias,

Everything seems to work as expected!
sorry for the late response, your emails are still going into Spam :(((

On Fri, Jul 3, 2015 at 6:34 PM, Tobias Soloschenko 
tobiassolosche...@googlemail.com wrote:

 @Maxim: Is there anything left to be done within the media components?
 Otherwise I am going to vote +1

 kind regards

 Tobias

  Am 03.07.2015 um 07:43 schrieb Maxim Solodovnik solomax...@gmail.com:
 
  OK, will try
  Thanks
 
  On Fri, Jul 3, 2015 at 11:38 AM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
  HI Maxim,
 
  This will lead to a big API break.
  If we change this signature then we will have to change many more to
 keep
  it consistent, and this will lead to a lot of work for the application
  developers to change AjaxRequestTarget with IPartialPageRequestHandler.
 
  We may need to make this change for Wicket 8.x if there are many users
  wanting this change, but for now I'd suggest you to create an adapter.
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Fri, Jul 3, 2015 at 7:46 AM, Maxim Solodovnik solomax...@gmail.com
  wrote:
 
  Hello Martin,
 
  I guess following method need to be additionally updated:
 
  org.apache.wicket.ajax.AbstractAjaxTimerBehavior.onTimer
 
  On Thu, Jul 2, 2015 at 6:11 PM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
  The change is rather big:
 
 https://github.com/sebfz1/wicket-jquery-ui/commit/e94f89d8f07f2b1af2b327a4aaec5ddd4b1400af
  I guess many other methods will need to be changed too if one needs to
  use
  them with WebSocket.
  The improvement in the Wicket API looked so innocent ...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Thu, Jul 2, 2015 at 2:28 PM, Maxim Solodovnik 
 solomax...@gmail.com
 
  wrote:
 
  Done: https://github.com/sebfz1/wicket-jquery-ui/issues/177
  Sorry, forgot about Sebastians vacation :(
 
  On Thu, Jul 2, 2015 at 5:23 PM, Martin Grigorov 
  mgrigo...@apache.org
  wrote:
 
  @Maxim: Please create an issue at Wicket jQuery UI github.
  Sebastien is on vacation. I can do it but first I need a good
  reason
  for
  the change :-)
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Thu, Jul 2, 2015 at 12:33 PM, Maxim Solodovnik 
  solomax...@gmail.com
  wrote:
 
  @Sebastian could you please modify AbstractDialog.open method to
  be
 
  public final void open(IPartialPageRequestHandler target)
  instead of
  public final void open(AjaxRequestTarget target)
 
  Thanks in advance!
 
 
  On Thu, Jul 2, 2015 at 2:58 PM, Martin Grigorov 
  mgrigo...@apache.org
  wrote:
 
  Yes, another minor cleanup: there is now
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/request/handler/IPartialPageRequestHandler.java
  A base interface for Ajax and WebSocket.
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Thu, Jul 2, 2015 at 11:45 AM, Maxim Solodovnik 
  solomax...@gmail.com
  wrote:
 
  Additionally it looks like WebSocketRequestHandler can not be
  used
  as AjaxRequestTarget any longer
  Previously it was possible to use WebSocketRequestHandler to
  push
  updated
  component .
 
  On Thu, Jul 2, 2015 at 2:42 PM, Maxim Solodovnik 
  solomax...@gmail.com
 
  wrote:
 
  Thanks a lot Tobias!
 
  On Thu, Jul 2, 2015 at 1:03 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  Hi Maxim,
 
  no problem I am going to add the getter this evening.
  Thank
  you
  for
  your
  suggestions! :-)
 
  Maybe the SNAPSHOT isn't refreshed because of the downtime
  of
  the
  buildbot server. However the build was triggered already.
 
  kind regards
 
  Tobias
 
  Am 02.07.2015 um 08:45 schrieb Maxim Solodovnik 
  solomax...@gmail.com
  :
 
  Thanks a lot for the changes Tobias,
  Unfortunately I'm unable to test it due to latest
  7.0.0-SNAPSHOT
  seems
  doesn't contain it :(
 
  And one more question: I would like to be able to modify
  PageParameters
  passed to source, maybe it would be possible to add
  public
  getter
  for
  it?
 
  Thanks in advance
 
  On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  Hi Maxim,
 
  hope the change is like you wanted it to be:
 
 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4
 
  But again: The PackageResourceReference is best
  practice,
  because
  you
  also
  can use readBuffered(false) of it - with this option
  the
  resource
  is
  streamed directly without loading it into memory. For
  more
  information
  refer to the Javadoc of the method.
 
  kind regards
 
  Tobias
 
  Am 29.06.15 um 10:22 schrieb Maxim Solodovnik:
 
  Thanks a lot!
  It was gmail SPAM filter :(((
  will do migration and examine examples
 
  On Mon, Jun 29

Re: Wicket7: MediaComponent and Source classes

2015-07-02 Thread Maxim Solodovnik
Thanks a lot for the changes Tobias,
Unfortunately I'm unable to test it due to latest 7.0.0-SNAPSHOT seems
doesn't contain it :(

And one more question: I would like to be able to modify PageParameters
passed to source, maybe it would be possible to add public getter for it?

Thanks in advance

On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
tobiassolosche...@googlemail.com wrote:

 Hi Maxim,

 hope the change is like you wanted it to be:


 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4

 But again: The PackageResourceReference is best practice, because you also
 can use readBuffered(false) of it - with this option the resource is
 streamed directly without loading it into memory. For more information
 refer to the Javadoc of the method.

 kind regards

 Tobias

 Am 29.06.15 um 10:22 schrieb Maxim Solodovnik:

 Thanks a lot!
 It was gmail SPAM filter :(((
 will do migration and examine examples

 On Mon, Jun 29, 2015 at 2:18 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  For some reason Tobias' mails are marked as SPAM by GMail...

 Martin Grigorov
 Freelancer. Available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Mon, Jun 29, 2015 at 11:15 AM, Maxim Solodovnik solomax...@gmail.com
 
 wrote:

  sorry, most probably missed that email
 Thanks!

 On Mon, Jun 29, 2015 at 2:14 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  Tobias already explained that it was an oversight and he is going to
 improve it tonight.

 Martin Grigorov
 Freelancer. Available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Mon, Jun 29, 2015 at 11:10 AM, Maxim Solodovnik 

 solomax...@gmail.com

 wrote:

  Thanks Martin :)
 will look through sources :)

 can you please tell me why PackageResourceReference is being used in
 MediaComponent and not ResourceReference? Or maybe Tobias can answer

 this

 question?

 On Mon, Jun 29, 2015 at 2:00 PM, Martin Grigorov 

 mgrigo...@apache.org

 wrote:

  Everything is possible.
 All I need is longer day. 24 hours are not enough...

 Martin Grigorov
 Freelancer. Available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Mon, Jun 29, 2015 at 10:53 AM, Maxim Solodovnik 

 solomax...@gmail.com

 wrote:

  Is it possible update http://www.wicket-library.com/ to have

 wicket7

 examples as well?
 I believe this might be very useful :)

 On Mon, Jun 29, 2015 at 1:49 PM, andrea del bene 

 an.delb...@gmail.com

 wrote:

  Hi,

 in wicket-examples take a look at the project in
 org.apache.wicket.examples.media

 Andrea.


 On 29/06/2015 06:47, Maxim Solodovnik wrote:

  Hello All,

 Recently I have upgraded to Wicket+wicketstuff 7.0.0-M6 and

 found

 lots

 of

 improvements:
 1) AbstractResource is now supports content-range and

 accept-range

 which is great! I'll remove my custom code for this :)
 2) HTML5 Video is supported by wicket itself (was removed from
 wicketstuff)
 which is great :))

 3) MediaComponent requires *PackageResourceReference* as

 resourceReference

 :(( why it can't be ResourceReference?

 Are there any examples in wicket7 regarding new Video

 Component?

 Thanks in advance!




 -

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



 --
 WBR
 Maxim aka solomax



 --
 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




-- 
WBR
Maxim aka solomax


Re: Wicket7: MediaComponent and Source classes

2015-07-02 Thread Maxim Solodovnik
Additionally it looks like WebSocketRequestHandler can not be used
as AjaxRequestTarget any longer
Previously it was possible to use WebSocketRequestHandler to push updated
component .

On Thu, Jul 2, 2015 at 2:42 PM, Maxim Solodovnik solomax...@gmail.com
wrote:

 Thanks a lot Tobias!

 On Thu, Jul 2, 2015 at 1:03 PM, Tobias Soloschenko 
 tobiassolosche...@googlemail.com wrote:

 Hi Maxim,

 no problem I am going to add the getter this evening. Thank you for your
 suggestions! :-)

 Maybe the SNAPSHOT isn't refreshed because of the downtime of the
 buildbot server. However the build was triggered already.

 kind regards

 Tobias

  Am 02.07.2015 um 08:45 schrieb Maxim Solodovnik solomax...@gmail.com:
 
  Thanks a lot for the changes Tobias,
  Unfortunately I'm unable to test it due to latest 7.0.0-SNAPSHOT seems
  doesn't contain it :(
 
  And one more question: I would like to be able to modify PageParameters
  passed to source, maybe it would be possible to add public getter for
 it?
 
  Thanks in advance
 
  On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  Hi Maxim,
 
  hope the change is like you wanted it to be:
 
 
 
 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4
 
  But again: The PackageResourceReference is best practice, because you
 also
  can use readBuffered(false) of it - with this option the resource is
  streamed directly without loading it into memory. For more information
  refer to the Javadoc of the method.
 
  kind regards
 
  Tobias
 
  Am 29.06.15 um 10:22 schrieb Maxim Solodovnik:
 
  Thanks a lot!
  It was gmail SPAM filter :(((
  will do migration and examine examples
 
  On Mon, Jun 29, 2015 at 2:18 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
 
  For some reason Tobias' mails are marked as SPAM by GMail...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 11:15 AM, Maxim Solodovnik 
 solomax...@gmail.com
 
  wrote:
 
  sorry, most probably missed that email
  Thanks!
 
  On Mon, Jun 29, 2015 at 2:14 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
 
  Tobias already explained that it was an oversight and he is going to
  improve it tonight.
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 11:10 AM, Maxim Solodovnik 
 
  solomax...@gmail.com
 
  wrote:
 
  Thanks Martin :)
  will look through sources :)
 
  can you please tell me why PackageResourceReference is being used
 in
  MediaComponent and not ResourceReference? Or maybe Tobias can
 answer
 
  this
 
  question?
 
  On Mon, Jun 29, 2015 at 2:00 PM, Martin Grigorov 
 
  mgrigo...@apache.org
 
  wrote:
 
  Everything is possible.
  All I need is longer day. 24 hours are not enough...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 10:53 AM, Maxim Solodovnik 
 
  solomax...@gmail.com
 
  wrote:
 
  Is it possible update http://www.wicket-library.com/ to have
 
  wicket7
 
  examples as well?
  I believe this might be very useful :)
 
  On Mon, Jun 29, 2015 at 1:49 PM, andrea del bene 
 
  an.delb...@gmail.com
 
  wrote:
 
  Hi,
 
  in wicket-examples take a look at the project in
  org.apache.wicket.examples.media
 
  Andrea.
 
 
  On 29/06/2015 06:47, Maxim Solodovnik wrote:
 
  Hello All,
 
  Recently I have upgraded to Wicket+wicketstuff 7.0.0-M6 and
 
  found
 
  lots
 
  of
 
  improvements:
  1) AbstractResource is now supports content-range and
 
  accept-range
 
  which is great! I'll remove my custom code for this :)
  2) HTML5 Video is supported by wicket itself (was removed from
  wicketstuff)
  which is great :))
 
  3) MediaComponent requires *PackageResourceReference* as
 
  resourceReference
 
  :(( why it can't be ResourceReference?
 
  Are there any examples in wicket7 regarding new Video
 
  Component?
 
  Thanks in advance!
 
 
 
 
 
 -
 
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  --
  WBR
  Maxim aka solomax
 
 
 
  --
  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
 
 
 
 
  --
  WBR
  Maxim aka solomax

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




 --
 WBR
 Maxim aka solomax




-- 
WBR
Maxim aka solomax


Re: Wicket7: MediaComponent and Source classes

2015-07-02 Thread Maxim Solodovnik
Thanks a lot Tobias!

On Thu, Jul 2, 2015 at 1:03 PM, Tobias Soloschenko 
tobiassolosche...@googlemail.com wrote:

 Hi Maxim,

 no problem I am going to add the getter this evening. Thank you for your
 suggestions! :-)

 Maybe the SNAPSHOT isn't refreshed because of the downtime of the buildbot
 server. However the build was triggered already.

 kind regards

 Tobias

  Am 02.07.2015 um 08:45 schrieb Maxim Solodovnik solomax...@gmail.com:
 
  Thanks a lot for the changes Tobias,
  Unfortunately I'm unable to test it due to latest 7.0.0-SNAPSHOT seems
  doesn't contain it :(
 
  And one more question: I would like to be able to modify PageParameters
  passed to source, maybe it would be possible to add public getter for it?
 
  Thanks in advance
 
  On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  Hi Maxim,
 
  hope the change is like you wanted it to be:
 
 
 
 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4
 
  But again: The PackageResourceReference is best practice, because you
 also
  can use readBuffered(false) of it - with this option the resource is
  streamed directly without loading it into memory. For more information
  refer to the Javadoc of the method.
 
  kind regards
 
  Tobias
 
  Am 29.06.15 um 10:22 schrieb Maxim Solodovnik:
 
  Thanks a lot!
  It was gmail SPAM filter :(((
  will do migration and examine examples
 
  On Mon, Jun 29, 2015 at 2:18 PM, Martin Grigorov mgrigo...@apache.org
 
  wrote:
 
  For some reason Tobias' mails are marked as SPAM by GMail...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 11:15 AM, Maxim Solodovnik 
 solomax...@gmail.com
 
  wrote:
 
  sorry, most probably missed that email
  Thanks!
 
  On Mon, Jun 29, 2015 at 2:14 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
 
  Tobias already explained that it was an oversight and he is going to
  improve it tonight.
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 11:10 AM, Maxim Solodovnik 
 
  solomax...@gmail.com
 
  wrote:
 
  Thanks Martin :)
  will look through sources :)
 
  can you please tell me why PackageResourceReference is being used
 in
  MediaComponent and not ResourceReference? Or maybe Tobias can
 answer
 
  this
 
  question?
 
  On Mon, Jun 29, 2015 at 2:00 PM, Martin Grigorov 
 
  mgrigo...@apache.org
 
  wrote:
 
  Everything is possible.
  All I need is longer day. 24 hours are not enough...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 10:53 AM, Maxim Solodovnik 
 
  solomax...@gmail.com
 
  wrote:
 
  Is it possible update http://www.wicket-library.com/ to have
 
  wicket7
 
  examples as well?
  I believe this might be very useful :)
 
  On Mon, Jun 29, 2015 at 1:49 PM, andrea del bene 
 
  an.delb...@gmail.com
 
  wrote:
 
  Hi,
 
  in wicket-examples take a look at the project in
  org.apache.wicket.examples.media
 
  Andrea.
 
 
  On 29/06/2015 06:47, Maxim Solodovnik wrote:
 
  Hello All,
 
  Recently I have upgraded to Wicket+wicketstuff 7.0.0-M6 and
 
  found
 
  lots
 
  of
 
  improvements:
  1) AbstractResource is now supports content-range and
 
  accept-range
 
  which is great! I'll remove my custom code for this :)
  2) HTML5 Video is supported by wicket itself (was removed from
  wicketstuff)
  which is great :))
 
  3) MediaComponent requires *PackageResourceReference* as
 
  resourceReference
 
  :(( why it can't be ResourceReference?
 
  Are there any examples in wicket7 regarding new Video
 
  Component?
 
  Thanks in advance!
 
 
 
 
 
 -
 
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  --
  WBR
  Maxim aka solomax
 
 
 
  --
  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
 
 
 
 
  --
  WBR
  Maxim aka solomax

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




-- 
WBR
Maxim aka solomax


Re: Wicket7: MediaComponent and Source classes

2015-07-02 Thread Maxim Solodovnik
Done: https://github.com/sebfz1/wicket-jquery-ui/issues/177
Sorry, forgot about Sebastians vacation :(

On Thu, Jul 2, 2015 at 5:23 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 @Maxim: Please create an issue at Wicket jQuery UI github.
 Sebastien is on vacation. I can do it but first I need a good reason for
 the change :-)

 Martin Grigorov
 Freelancer. Available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Thu, Jul 2, 2015 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  @Sebastian could you please modify AbstractDialog.open method to be
 
  public final void open(IPartialPageRequestHandler target)
  instead of
  public final void open(AjaxRequestTarget target)
 
  Thanks in advance!
 
 
  On Thu, Jul 2, 2015 at 2:58 PM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
   Yes, another minor cleanup: there is now
  
  
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/request/handler/IPartialPageRequestHandler.java
   A base interface for Ajax and WebSocket.
  
   Martin Grigorov
   Freelancer. Available for hire!
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
   On Thu, Jul 2, 2015 at 11:45 AM, Maxim Solodovnik 
 solomax...@gmail.com
   wrote:
  
Additionally it looks like WebSocketRequestHandler can not be used
as AjaxRequestTarget any longer
Previously it was possible to use WebSocketRequestHandler to push
  updated
component .
   
On Thu, Jul 2, 2015 at 2:42 PM, Maxim Solodovnik 
 solomax...@gmail.com
  
wrote:
   
 Thanks a lot Tobias!

 On Thu, Jul 2, 2015 at 1:03 PM, Tobias Soloschenko 
 tobiassolosche...@googlemail.com wrote:

 Hi Maxim,

 no problem I am going to add the getter this evening. Thank you
 for
   your
 suggestions! :-)

 Maybe the SNAPSHOT isn't refreshed because of the downtime of the
 buildbot server. However the build was triggered already.

 kind regards

 Tobias

  Am 02.07.2015 um 08:45 schrieb Maxim Solodovnik 
   solomax...@gmail.com
:
 
  Thanks a lot for the changes Tobias,
  Unfortunately I'm unable to test it due to latest 7.0.0-SNAPSHOT
   seems
  doesn't contain it :(
 
  And one more question: I would like to be able to modify
PageParameters
  passed to source, maybe it would be possible to add public
 getter
   for
 it?
 
  Thanks in advance
 
  On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
  tobiassolosche...@googlemail.com wrote:
 
  Hi Maxim,
 
  hope the change is like you wanted it to be:
 
 
 

   
  
 
 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4
 
  But again: The PackageResourceReference is best practice,
 because
   you
 also
  can use readBuffered(false) of it - with this option the
  resource
is
  streamed directly without loading it into memory. For more
information
  refer to the Javadoc of the method.
 
  kind regards
 
  Tobias
 
  Am 29.06.15 um 10:22 schrieb Maxim Solodovnik:
 
  Thanks a lot!
  It was gmail SPAM filter :(((
  will do migration and examine examples
 
  On Mon, Jun 29, 2015 at 2:18 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
 
  For some reason Tobias' mails are marked as SPAM by GMail...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 11:15 AM, Maxim Solodovnik 
 solomax...@gmail.com
 
  wrote:
 
  sorry, most probably missed that email
  Thanks!
 
  On Mon, Jun 29, 2015 at 2:14 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
 
  Tobias already explained that it was an oversight and he is
   going
to
  improve it tonight.
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 11:10 AM, Maxim Solodovnik 
 
  solomax...@gmail.com
 
  wrote:
 
  Thanks Martin :)
  will look through sources :)
 
  can you please tell me why PackageResourceReference is
 being
used
 in
  MediaComponent and not ResourceReference? Or maybe Tobias
  can
 answer
 
  this
 
  question?
 
  On Mon, Jun 29, 2015 at 2:00 PM, Martin Grigorov 
 
  mgrigo...@apache.org
 
  wrote:
 
  Everything is possible.
  All I need is longer day. 24 hours are not enough...
 
  Martin Grigorov
  Freelancer. Available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Mon, Jun 29, 2015 at 10:53 AM, Maxim Solodovnik 
 
  solomax...@gmail.com

Re: Wicket7: MediaComponent and Source classes

2015-07-02 Thread Maxim Solodovnik
Thanks for the clarifications Martin
This seems to be caching issue on my side

Could you please answer additional question regarding ListView
It seems to be impossible in latest snapshot to create ListViewA(list,
new List? extends A())
It was working as expected in M6 and previous versions 

On Thu, Jul 2, 2015 at 1:14 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 There is a new build. The snapshots should be updated.

 Martin Grigorov
 Freelancer. Available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Thu, Jul 2, 2015 at 10:03 AM, Tobias Soloschenko 
 tobiassolosche...@googlemail.com wrote:

  Hi Maxim,
 
  no problem I am going to add the getter this evening. Thank you for your
  suggestions! :-)
 
  Maybe the SNAPSHOT isn't refreshed because of the downtime of the
 buildbot
  server. However the build was triggered already.
 
  kind regards
 
  Tobias
 
   Am 02.07.2015 um 08:45 schrieb Maxim Solodovnik solomax...@gmail.com
 :
  
   Thanks a lot for the changes Tobias,
   Unfortunately I'm unable to test it due to latest 7.0.0-SNAPSHOT seems
   doesn't contain it :(
  
   And one more question: I would like to be able to modify PageParameters
   passed to source, maybe it would be possible to add public getter for
 it?
  
   Thanks in advance
  
   On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
   tobiassolosche...@googlemail.com wrote:
  
   Hi Maxim,
  
   hope the change is like you wanted it to be:
  
  
  
 
 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4
  
   But again: The PackageResourceReference is best practice, because you
  also
   can use readBuffered(false) of it - with this option the resource is
   streamed directly without loading it into memory. For more information
   refer to the Javadoc of the method.
  
   kind regards
  
   Tobias
  
   Am 29.06.15 um 10:22 schrieb Maxim Solodovnik:
  
   Thanks a lot!
   It was gmail SPAM filter :(((
   will do migration and examine examples
  
   On Mon, Jun 29, 2015 at 2:18 PM, Martin Grigorov 
 mgrigo...@apache.org
  
   wrote:
  
   For some reason Tobias' mails are marked as SPAM by GMail...
  
   Martin Grigorov
   Freelancer. Available for hire!
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
   On Mon, Jun 29, 2015 at 11:15 AM, Maxim Solodovnik 
  solomax...@gmail.com
  
   wrote:
  
   sorry, most probably missed that email
   Thanks!
  
   On Mon, Jun 29, 2015 at 2:14 PM, Martin Grigorov 
  mgrigo...@apache.org
   wrote:
  
   Tobias already explained that it was an oversight and he is going
 to
   improve it tonight.
  
   Martin Grigorov
   Freelancer. Available for hire!
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
   On Mon, Jun 29, 2015 at 11:10 AM, Maxim Solodovnik 
  
   solomax...@gmail.com
  
   wrote:
  
   Thanks Martin :)
   will look through sources :)
  
   can you please tell me why PackageResourceReference is being used
  in
   MediaComponent and not ResourceReference? Or maybe Tobias can
  answer
  
   this
  
   question?
  
   On Mon, Jun 29, 2015 at 2:00 PM, Martin Grigorov 
  
   mgrigo...@apache.org
  
   wrote:
  
   Everything is possible.
   All I need is longer day. 24 hours are not enough...
  
   Martin Grigorov
   Freelancer. Available for hire!
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
   On Mon, Jun 29, 2015 at 10:53 AM, Maxim Solodovnik 
  
   solomax...@gmail.com
  
   wrote:
  
   Is it possible update http://www.wicket-library.com/ to have
  
   wicket7
  
   examples as well?
   I believe this might be very useful :)
  
   On Mon, Jun 29, 2015 at 1:49 PM, andrea del bene 
  
   an.delb...@gmail.com
  
   wrote:
  
   Hi,
  
   in wicket-examples take a look at the project in
   org.apache.wicket.examples.media
  
   Andrea.
  
  
   On 29/06/2015 06:47, Maxim Solodovnik wrote:
  
   Hello All,
  
   Recently I have upgraded to Wicket+wicketstuff 7.0.0-M6 and
  
   found
  
   lots
  
   of
  
   improvements:
   1) AbstractResource is now supports content-range and
  
   accept-range
  
   which is great! I'll remove my custom code for this :)
   2) HTML5 Video is supported by wicket itself (was removed
 from
   wicketstuff)
   which is great :))
  
   3) MediaComponent requires *PackageResourceReference* as
  
   resourceReference
  
   :(( why it can't be ResourceReference?
  
   Are there any examples in wicket7 regarding new Video
  
   Component?
  
   Thanks in advance!
  
  
  
  
  
  -
  
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
   --
   WBR
   Maxim aka solomax
  
  
  
   --
   WBR
   Maxim aka solomax
  
  
  
   --
   WBR
   Maxim aka solomax
  
  
  
  
  
   -
   To unsubscribe, e-mail: users

Re: Wicket7: MediaComponent and Source classes

2015-07-02 Thread Maxim Solodovnik
@Sebastian could you please modify AbstractDialog.open method to be

public final void open(IPartialPageRequestHandler target)
instead of
public final void open(AjaxRequestTarget target)

Thanks in advance!


On Thu, Jul 2, 2015 at 2:58 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 Yes, another minor cleanup: there is now

 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/request/handler/IPartialPageRequestHandler.java
 A base interface for Ajax and WebSocket.

 Martin Grigorov
 Freelancer. Available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Thu, Jul 2, 2015 at 11:45 AM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  Additionally it looks like WebSocketRequestHandler can not be used
  as AjaxRequestTarget any longer
  Previously it was possible to use WebSocketRequestHandler to push updated
  component .
 
  On Thu, Jul 2, 2015 at 2:42 PM, Maxim Solodovnik solomax...@gmail.com
  wrote:
 
   Thanks a lot Tobias!
  
   On Thu, Jul 2, 2015 at 1:03 PM, Tobias Soloschenko 
   tobiassolosche...@googlemail.com wrote:
  
   Hi Maxim,
  
   no problem I am going to add the getter this evening. Thank you for
 your
   suggestions! :-)
  
   Maybe the SNAPSHOT isn't refreshed because of the downtime of the
   buildbot server. However the build was triggered already.
  
   kind regards
  
   Tobias
  
Am 02.07.2015 um 08:45 schrieb Maxim Solodovnik 
 solomax...@gmail.com
  :
   
Thanks a lot for the changes Tobias,
Unfortunately I'm unable to test it due to latest 7.0.0-SNAPSHOT
 seems
doesn't contain it :(
   
And one more question: I would like to be able to modify
  PageParameters
passed to source, maybe it would be possible to add public getter
 for
   it?
   
Thanks in advance
   
On Mon, Jun 29, 2015 at 9:41 PM, Tobias Soloschenko 
tobiassolosche...@googlemail.com wrote:
   
Hi Maxim,
   
hope the change is like you wanted it to be:
   
   
   
  
 
 https://github.com/apache/wicket/commit/e20bfa738aa64f35b668f05866e0c0b7ca71c1f4
   
But again: The PackageResourceReference is best practice, because
 you
   also
can use readBuffered(false) of it - with this option the resource
  is
streamed directly without loading it into memory. For more
  information
refer to the Javadoc of the method.
   
kind regards
   
Tobias
   
Am 29.06.15 um 10:22 schrieb Maxim Solodovnik:
   
Thanks a lot!
It was gmail SPAM filter :(((
will do migration and examine examples
   
On Mon, Jun 29, 2015 at 2:18 PM, Martin Grigorov 
   mgrigo...@apache.org
wrote:
   
For some reason Tobias' mails are marked as SPAM by GMail...
   
Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov
   
On Mon, Jun 29, 2015 at 11:15 AM, Maxim Solodovnik 
   solomax...@gmail.com
   
wrote:
   
sorry, most probably missed that email
Thanks!
   
On Mon, Jun 29, 2015 at 2:14 PM, Martin Grigorov 
   mgrigo...@apache.org
wrote:
   
Tobias already explained that it was an oversight and he is
 going
  to
improve it tonight.
   
Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov
   
On Mon, Jun 29, 2015 at 11:10 AM, Maxim Solodovnik 
   
solomax...@gmail.com
   
wrote:
   
Thanks Martin :)
will look through sources :)
   
can you please tell me why PackageResourceReference is being
  used
   in
MediaComponent and not ResourceReference? Or maybe Tobias can
   answer
   
this
   
question?
   
On Mon, Jun 29, 2015 at 2:00 PM, Martin Grigorov 
   
mgrigo...@apache.org
   
wrote:
   
Everything is possible.
All I need is longer day. 24 hours are not enough...
   
Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov
   
On Mon, Jun 29, 2015 at 10:53 AM, Maxim Solodovnik 
   
solomax...@gmail.com
   
wrote:
   
Is it possible update http://www.wicket-library.com/ to have
   
wicket7
   
examples as well?
I believe this might be very useful :)
   
On Mon, Jun 29, 2015 at 1:49 PM, andrea del bene 
   
an.delb...@gmail.com
   
wrote:
   
Hi,
   
in wicket-examples take a look at the project in
org.apache.wicket.examples.media
   
Andrea.
   
   
On 29/06/2015 06:47, Maxim Solodovnik wrote:
   
Hello All,
   
Recently I have upgraded to Wicket+wicketstuff 7.0.0-M6
 and
   
found
   
lots
   
of
   
improvements:
1) AbstractResource is now supports content-range and
   
accept-range
   
which is great! I'll remove my custom code for this :)
2) HTML5 Video is supported by wicket itself (was removed
  from
wicketstuff)
which is great :))
   
3) MediaComponent requires

<    1   2   3   4   5   6   7   >