You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Maxim Solodovnik <so...@gmail.com> on 2016/01/13 11:27:34 UTC
RequestCycle.urlFor weird behavior
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
Posted by Maxim Solodovnik <so...@gmail.com>.
Thanks!
Will check equals next time :)
On Wed, Jan 13, 2016 at 5:17 PM, Martin Grigorov <mg...@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 <
> reiern70@gmail.com> wrote:
>
> > Glad to be of some help :-)
> >
> > On Wed, Jan 13, 2016 at 12:01 PM, Maxim Solodovnik <solomax666@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 <
> solomax666@gmail.com>
> > > wrote:
> > >
> > > > Thanks for the hint!
> > > > Will try
> > > >
> > > > On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
> > > > reiern70@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 <
> > > solomax666@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 <
> > > >> > reiern70@gmail.com> wrote:
> > > >> >
> > > >> > > port -> paste
> > > >> > >
> > > >> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> > > >> > > reiern70@gmail.com> wrote:
> > > >> > >
> > > >> > > > Can you port the code of Mp4RecordingResourceReference?
> > > >> > > >
> > > >> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
> > > >> > solomax666@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 <
> > > >> > solomax666@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
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
--
WBR
Maxim aka solomax
Re: RequestCycle.urlFor weird behavior
Posted by Martin Grigorov <mg...@apache.org>.
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 <
reiern70@gmail.com> wrote:
> Glad to be of some help :-)
>
> On Wed, Jan 13, 2016 at 12:01 PM, Maxim Solodovnik <so...@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 <so...@gmail.com>
> > wrote:
> >
> > > Thanks for the hint!
> > > Will try
> > >
> > > On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
> > > reiern70@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 <
> > solomax666@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 <
> > >> > reiern70@gmail.com> wrote:
> > >> >
> > >> > > port -> paste
> > >> > >
> > >> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> > >> > > reiern70@gmail.com> wrote:
> > >> > >
> > >> > > > Can you port the code of Mp4RecordingResourceReference?
> > >> > > >
> > >> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
> > >> > solomax666@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 <
> > >> > solomax666@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
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>
Re: RequestCycle.urlFor weird behavior
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Glad to be of some help :-)
On Wed, Jan 13, 2016 at 12:01 PM, Maxim Solodovnik <so...@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 <so...@gmail.com>
> wrote:
>
> > Thanks for the hint!
> > Will try
> >
> > On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
> > reiern70@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 <
> solomax666@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 <
> >> > reiern70@gmail.com> wrote:
> >> >
> >> > > port -> paste
> >> > >
> >> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> >> > > reiern70@gmail.com> wrote:
> >> > >
> >> > > > Can you port the code of Mp4RecordingResourceReference?
> >> > > >
> >> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
> >> > solomax666@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 <
> >> > solomax666@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
>
--
Regards - Ernesto Reinaldo Barreiro
Re: RequestCycle.urlFor weird behavior
Posted by Maxim Solodovnik <so...@gmail.com>.
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 <so...@gmail.com>
wrote:
> Thanks for the hint!
> Will try
>
> On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
> reiern70@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 <so...@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 <
>> > reiern70@gmail.com> wrote:
>> >
>> > > port -> paste
>> > >
>> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
>> > > reiern70@gmail.com> wrote:
>> > >
>> > > > Can you port the code of Mp4RecordingResourceReference?
>> > > >
>> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
>> > solomax666@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 <
>> > solomax666@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
Posted by Maxim Solodovnik <so...@gmail.com>.
Thanks for the hint!
Will try
On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro <
reiern70@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 <so...@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 <
> > reiern70@gmail.com> wrote:
> >
> > > port -> paste
> > >
> > > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> > > reiern70@gmail.com> wrote:
> > >
> > > > Can you port the code of Mp4RecordingResourceReference?
> > > >
> > > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
> > solomax666@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 <
> > solomax666@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
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
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 <so...@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 <
> reiern70@gmail.com> wrote:
>
> > port -> paste
> >
> > On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> > reiern70@gmail.com> wrote:
> >
> > > Can you port the code of Mp4RecordingResourceReference?
> > >
> > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <
> solomax666@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 <
> solomax666@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
Re: RequestCycle.urlFor weird behavior
Posted by Maxim Solodovnik <so...@gmail.com>.
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 <
reiern70@gmail.com> wrote:
> port -> paste
>
> On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
> > Can you port the code of Mp4RecordingResourceReference?
> >
> > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <solomax666@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 <solomax666@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
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
port -> paste
On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:
> Can you port the code of Mp4RecordingResourceReference?
>
> On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <so...@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 <so...@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
Re: RequestCycle.urlFor weird behavior
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Can you port the code of Mp4RecordingResourceReference?
On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik <so...@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 <so...@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
Re: RequestCycle.urlFor weird behavior
Posted by Maxim Solodovnik <so...@gmail.com>.
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 <so...@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