Re: Migration 1.4 - 7.0: org.apache.wicket.markup.html.link.PageLink

2015-08-24 Thread Jörg Schaible
Martin Grigorov wrote:

 Hi,
 
 The easy fix is: use BookmarkablePageLink.
 
 The class has been deprecated for 1.5 and removed for 6.x, I think.
 I will be easier for you if you upgrade from 1.4 to 1.5, then to 6.x and
 finally to 7.0.0.
 This way you will see the deprecation warnings and the new suggestions.

Thanks.

Cheers,
Jörg


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



Re: Add components inside the footer and header of a Modal

2015-08-24 Thread Marco Di Sabatino Di Diodoro

Hi Martin,

Il 24/08/2015 12:16, Martin Grigorov ha scritto:

Hi,

1. File an issue so that becomes more user friendly.

I opened the issue on git


2. You can roll MyModal that extends from Modal and has MyModal.html with
the extra components in header and footer. In MyModal#onInitialize() you
can use get(header).add(anExtraHeaderComponent)
I followed your suggestion and I added a new button in the footer. At 
first time I can see my Modal. If I close and reopen I have this exception:
org.apache.wicket.markup.MarkupNotFoundException: Failed to find markup 
file associated


If I remove my button, I can open and close without problems.

Marco

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Aug 24, 2015 at 11:46 AM, Marco Di Sabatino Di Diodoro 
marco.disabat...@tirasa.net wrote:


Hi all,

I'm using wicket-bootstrap to implement a new console.
In this moment, I'm implementing my Modal with
de.agilecoders.wicket.core.markup.html.bootstrap.dialog.Modal component.

I would like to add some components in the header or footer, but all
fields are declared private and the aren't getter and setter methods.
What can I do? Any suggestions?

Regards
Marco

--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/




--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/



Wicket Felix

2015-08-24 Thread Jörg Schaible
Hi,

I am migrating an old Wicket application running in Apache Felix and I 
wonder how I should register my initializer. According the migration docs I 
should move and rename the /wicket.properties file to META-
INF/wicket/package.properties.

However, in Felix I have an URL for this resource like 
bundle://18.0:1/META-INF/wicket/. This is obviously not supported in 
Application.collectWicketProperties().

For now, I can return to the deprecated name and location, but I wonder what 
is the migration path when this support is dropped?

Why do you iterate over all existing files anyway, when you stop the 
iteration at the first occurrence (at least for jar protocol)? The easiest 
solution would be to look again for a known resource, simply gain the name 
of the properties file from the current application instance: 
this.getClass().getPackage.getName() + .properties

Then you can stop making assumptions about the URL. Unfortunately it is not 
possible to overwrite this behavior now because the interesting methods are 
either final or private.

Cheers,
Jörg


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



Re: New Community page

2015-08-24 Thread Mihir Chhaya
Thanks,  Andrea. Very helpful links for developers like me and, everybody
else looking into Wicket site for any other reason.

My humble observation though; there is 'CONTRIBUTE' link before
'COMMUNITY'. Would it be helpful in 'linking' those two or having reference
of COMMUNITY on the other one?  Or, Contribute section mentioning other
projects (WicketStuff and Wicket-Bootstrap - with reference to COMMUNITY
page)

I hope I have not confused with mention of my observation above.

Thanks again to you and the wicket team,

-Mihir.





On Mon, Aug 24, 2015, 5:25 AM Andrea Del Bene an.delb...@gmail.com wrote:

 Hi folks,

 I've uploaded a new page on our site called 'Community' where anyone can
 find the different community-driven resources for Wicket.

 https://wicket.apache.org/community/

 I hope you will like it!

 Andrea



Re: Wicket Felix

2015-08-24 Thread Christoph Läubrich
Just a hint: If you like to use Wicket inside OSGi, maybe 
https://ops4j1.jira.com/wiki/display/paxwicket/Pax+Wicket might be an 
alternative instead of doing all things manually. You might also find a 
hint about the initilizer there...


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



Re: Add components inside the footer and header of a Modal

2015-08-24 Thread Martin Grigorov
Hi,

1. File an issue so that becomes more user friendly.
2. You can roll MyModal that extends from Modal and has MyModal.html with
the extra components in header and footer. In MyModal#onInitialize() you
can use get(header).add(anExtraHeaderComponent)

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Aug 24, 2015 at 11:46 AM, Marco Di Sabatino Di Diodoro 
marco.disabat...@tirasa.net wrote:

 Hi all,

 I'm using wicket-bootstrap to implement a new console.
 In this moment, I'm implementing my Modal with
 de.agilecoders.wicket.core.markup.html.bootstrap.dialog.Modal component.

 I would like to add some components in the header or footer, but all
 fields are declared private and the aren't getter and setter methods.
 What can I do? Any suggestions?

 Regards
 Marco

 --
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PMC Member
 http://people.apache.org/~mdisabatino/




Add components inside the footer and header of a Modal

2015-08-24 Thread Marco Di Sabatino Di Diodoro

Hi all,

I'm using wicket-bootstrap to implement a new console.
In this moment, I'm implementing my Modal with 
de.agilecoders.wicket.core.markup.html.bootstrap.dialog.Modal component.


I would like to add some components in the header or footer, but all 
fields are declared private and the aren't getter and setter methods.

What can I do? Any suggestions?

Regards
Marco

--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/



New Community page

2015-08-24 Thread Andrea Del Bene
Hi folks,

I've uploaded a new page on our site called 'Community' where anyone can
find the different community-driven resources for Wicket.

https://wicket.apache.org/community/

I hope you will like it!

Andrea


Re: wicket-bootstrap project

2015-08-24 Thread Martin Grigorov
Hi,


On Mon, Aug 24, 2015 at 9:49 PM, michal vas michalvasa...@gmail.com wrote:

 I try to create a poc with a bootstrap style and I saw the wicket-bootstrap
 project.

 Why are the pros and cons using this wrapper ?


Pros:
 - integration with third party bootstrap plugins, i.e. not part of
Bootstrap itself
 - easier migration to Bootstrap.next, because Bootstrap devs tend to make
a lot of breaking changes in major versions and you either get the
migration for (almost) free by upgrading Wicket-Bootstrap or you have to go
over your HTML files and migrate yourself


 Why not using bootstrap directly in the html pages only ?


It is possible to use Wicket-Bootstrap both ways.
Many components in bootstrap-core just generate the correct HTML for you,
e.g. buttons, carousel, etc.
You can just avoid these components and apply the expected (by Bootstrap)
HTML yourself in your markup files.


 Using the wicket-bootstrap project wouldn't make the java code too much
 linked with the bootstrap framework ?


It would.

The benefit of Wicket-Bootstrap is the collection of integrations with
third party Bootstrap widgets



 Best regards,
 Michal



Re: Add components inside the footer and header of a Modal

2015-08-24 Thread Martin Grigorov
Hi,

On Mon, Aug 24, 2015 at 4:05 PM, Marco Di Sabatino Di Diodoro 
marco.disabat...@tirasa.net wrote:

 Hi Martin,

 Il 24/08/2015 12:16, Martin Grigorov ha scritto:

 Hi,

 1. File an issue so that becomes more user friendly.

 I opened the issue on git

 2. You can roll MyModal that extends from Modal and has MyModal.html with
 the extra components in header and footer. In MyModal#onInitialize() you
 can use get(header).add(anExtraHeaderComponent)

 I followed your suggestion and I added a new button in the footer. At
 first time I can see my Modal. If I close and reopen I have this exception:
 org.apache.wicket.markup.MarkupNotFoundException: Failed to find markup
 file associated

 If I remove my button, I can open and close without problems.


Without giving us more information (e.g. code and/or stacktrace) we cannot
tell you what is wrong.




 Marco

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Mon, Aug 24, 2015 at 11:46 AM, Marco Di Sabatino Di Diodoro 
 marco.disabat...@tirasa.net wrote:

 Hi all,

 I'm using wicket-bootstrap to implement a new console.
 In this moment, I'm implementing my Modal with
 de.agilecoders.wicket.core.markup.html.bootstrap.dialog.Modal component.

 I would like to add some components in the header or footer, but all
 fields are declared private and the aren't getter and setter methods.
 What can I do? Any suggestions?

 Regards
 Marco

 --
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PMC Member
 http://people.apache.org/~mdisabatino/



 --
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PMC Member
 http://people.apache.org/~mdisabatino/




Re: wicket-bootstrap project

2015-08-24 Thread michal vas
thank you for your detailed reply
Michal

2015-08-24 22:00 GMT+02:00 Martin Grigorov mgrigo...@apache.org:

 Hi,


 On Mon, Aug 24, 2015 at 9:49 PM, michal vas michalvasa...@gmail.com
 wrote:

  I try to create a poc with a bootstrap style and I saw the
 wicket-bootstrap
  project.
 
  Why are the pros and cons using this wrapper ?
 

 Pros:
  - integration with third party bootstrap plugins, i.e. not part of
 Bootstrap itself
  - easier migration to Bootstrap.next, because Bootstrap devs tend to make
 a lot of breaking changes in major versions and you either get the
 migration for (almost) free by upgrading Wicket-Bootstrap or you have to go
 over your HTML files and migrate yourself


  Why not using bootstrap directly in the html pages only ?
 

 It is possible to use Wicket-Bootstrap both ways.
 Many components in bootstrap-core just generate the correct HTML for you,
 e.g. buttons, carousel, etc.
 You can just avoid these components and apply the expected (by Bootstrap)
 HTML yourself in your markup files.


  Using the wicket-bootstrap project wouldn't make the java code too much
  linked with the bootstrap framework ?
 

 It would.

 The benefit of Wicket-Bootstrap is the collection of integrations with
 third party Bootstrap widgets


 
  Best regards,
  Michal
 



Re: Wicket Felix

2015-08-24 Thread Martin Grigorov
Hi,


On Mon, Aug 24, 2015 at 4:06 PM, Jörg Schaible joerg.schai...@swisspost.com
 wrote:

 Hi,

 I am migrating an old Wicket application running in Apache Felix and I
 wonder how I should register my initializer. According the migration docs I
 should move and rename the /wicket.properties file to META-
 INF/wicket/package.properties.

 However, in Felix I have an URL for this resource like
 bundle://18.0:1/META-INF/wicket/. This is obviously not supported in
 Application.collectWicketProperties().


We can make this method protected or add another method where you could
plug custom logic.


 For now, I can return to the deprecated name and location, but I wonder
 what
 is the migration path when this support is dropped?

 Why do you iterate over all existing files anyway, when you stop the
 iteration at the first occurrence (at least for jar protocol)? The easiest
 solution would be to look again for a known resource, simply gain the
 name
 of the properties file from the current application instance:
 this.getClass().getPackage.getName() + .properties


Because wicket.properties is something like a plugin system. It is not
properties of the Application, but properties which may define Application
extensions/mixins - o.a.w.IInitilizer.
I.e. by using IInitialize any Wicket library could participate in the
application start/stop to setup/cleanup whatever it needs.



 Then you can stop making assumptions about the URL. Unfortunately it is not
 possible to overwrite this behavior now because the interesting methods are
 either final or private.


Patches/PullRequests are very welcome!



 Cheers,
 Jörg


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




wicket-bootstrap project

2015-08-24 Thread michal vas
I try to create a poc with a bootstrap style and I saw the wicket-bootstrap
project.

Why are the pros and cons using this wrapper ?
Why not using bootstrap directly in the html pages only ?
Using the wicket-bootstrap project wouldn't make the java code too much
linked with the bootstrap framework ?

Best regards,
Michal