Re: Wicket Release Plans for 1.5

2009-11-01 Thread Vladimir K

what about promiced auto-detaching models? may we expect it in 1.5?


igor.vaynberg wrote:
 
 possibly. i think i would like this release to be as small as
 possible, centered around the new url stuff. once that is in release
 1.5 and put the new ajax support from ng into 1.6.
 
 trying to release more and more often instead of taking over a year
 and a half like we did with 1.4.0
 
 -igor
 
 On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen
 richard.l.al...@gmail.com wrote:
 Is the Wicket Ajax Next Generation work going into 1.5?

 Also, is there plans for an event bus, sort of like what you see in
 Jonathan
 Locke's 26 wicket tricks source code? I've seen some really nice use of
 event bus in GWT that I think Wicket could benefit from.

 -Richard


 On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote:

  I'm still eager to make WicketTester a first class citizen.

 I'm keen on this too -- is there a 'voting' mechanism in the bug
 tracker for this sort of thing?

 Cheers,
 Dave



 On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
  I'm still eager to make WicketTester a first class citizen.
 
  Martijn
 
  On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote:
 
     Thanks for your answer,
 
  Daniel
 
 
  igor.vaynberg wrote:
 
  the focus of this release is to rewrite url and page handling. the
  focus is on flexibility and pluggability as well as simplification
 of
  use to the end user.
 
  the other major feature is the markupfragment implementation, which
  will allow users access to the markup the component is attached to,
  possibly, at a time earlier then render time.
 
  other then that there will probably be smaller features that will
 not
  go into 1.4.x because they require an api break.
 
  -igor
 
  On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar
 wrote:
 
     Besides, it would be very interesting to know what changes and
 new
  features are planned.
 
  Cheers,
 
  Daniel
 
 
 
 
  --
  View this message in context:
 http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html
  Sent from the Wicket - User 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
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.4 increases type safety for web applications
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
 
  -
  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



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

-- 
View this message in context: 
http://old.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26148878.html
Sent from the Wicket - User 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



wicket + jdbc template app

2009-11-01 Thread Ivan Dudko
Hello, guys!

I want to use wicket with plain jdbc without any persistence framework.
Where i can find template application for this type of data source?

Thank you for answer!


Re: wicket + jdbc template app

2009-11-01 Thread James Carman
Do you want to use spring

On Nov 1, 2009 10:12 AM, Ivan Dudko ivan.du...@gmail.com wrote:

Hello, guys!

I want to use wicket with plain jdbc without any persistence framework.
Where i can find template application for this type of data source?

Thank you for answer!


Re: Wicket Release Plans for 1.5

2009-11-01 Thread Igor Vaynberg
do you guys want a release cycle that will take a year?

the auto-detaching models are perfectly possible now by implementing a
IDetachListener and detaching all fields that implement IDetachable
via reflection.

-igor


On Sun, Nov 1, 2009 at 3:05 AM, Vladimir K koval...@gmail.com wrote:

 what about promiced auto-detaching models? may we expect it in 1.5?


 igor.vaynberg wrote:

 possibly. i think i would like this release to be as small as
 possible, centered around the new url stuff. once that is in release
 1.5 and put the new ajax support from ng into 1.6.

 trying to release more and more often instead of taking over a year
 and a half like we did with 1.4.0

 -igor

 On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen
 richard.l.al...@gmail.com wrote:
 Is the Wicket Ajax Next Generation work going into 1.5?

 Also, is there plans for an event bus, sort of like what you see in
 Jonathan
 Locke's 26 wicket tricks source code? I've seen some really nice use of
 event bus in GWT that I think Wicket could benefit from.

 -Richard


 On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote:

  I'm still eager to make WicketTester a first class citizen.

 I'm keen on this too -- is there a 'voting' mechanism in the bug
 tracker for this sort of thing?

 Cheers,
 Dave



 On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
  I'm still eager to make WicketTester a first class citizen.
 
  Martijn
 
  On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote:
 
     Thanks for your answer,
 
  Daniel
 
 
  igor.vaynberg wrote:
 
  the focus of this release is to rewrite url and page handling. the
  focus is on flexibility and pluggability as well as simplification
 of
  use to the end user.
 
  the other major feature is the markupfragment implementation, which
  will allow users access to the markup the component is attached to,
  possibly, at a time earlier then render time.
 
  other then that there will probably be smaller features that will
 not
  go into 1.4.x because they require an api break.
 
  -igor
 
  On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar
 wrote:
 
     Besides, it would be very interesting to know what changes and
 new
  features are planned.
 
  Cheers,
 
  Daniel
 
 
 
 
  --
  View this message in context:
 http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html
  Sent from the Wicket - User 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
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.4 increases type safety for web applications
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
 
  -
  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




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




 --
 View this message in context: 
 http://old.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26148878.html
 Sent from the Wicket - User 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



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



Re: wicket + jdbc template app

2009-11-01 Thread dtoffe

Just set up your connection in your Application subclass and provide a
method to get it from wherever you need it. Use connection pooling.

Daniel


idudko wrote:
 
 Hello, guys!
 
 I want to use wicket with plain jdbc without any persistence framework.
 Where i can find template application for this type of data source?
 
 Thank you for answer!
 
 

-- 
View this message in context: 
http://old.nabble.com/wicket-%2B-jdbc-template-app-tp26151790p26152287.html
Sent from the Wicket - User 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



Bookmarkable images from db

2009-11-01 Thread Peter Dotchev

Hi,

My app allows users to upload images and I store them in JCR 
http://en.wikipedia.org/wiki/Content_repository_API_for_Java. I can 
get InputStream for each one of them.
I want to display images in specific pages and I want image URLs to be 
stable/bookmarkable. Also I don't want these pages to use the session in 
any way.
I checked again chapter 9 about images from Wicket In Action but such 
use case is not addressed there.


I found that SharedResources allows for stable URLs, but I cannot 
register each individual image.


What approach would you suggest?

Best regards,
Peter




Re: Bookmarkable images from db

2009-11-01 Thread Igor Vaynberg
i would write a servlet.

-igor

On Sun, Nov 1, 2009 at 1:41 PM, Peter Dotchev dotc...@gmail.com wrote:
 Hi,

 My app allows users to upload images and I store them in JCR
 http://en.wikipedia.org/wiki/Content_repository_API_for_Java. I can get
 InputStream for each one of them.
 I want to display images in specific pages and I want image URLs to be
 stable/bookmarkable. Also I don't want these pages to use the session in any
 way.
 I checked again chapter 9 about images from Wicket In Action but such use
 case is not addressed there.

 I found that SharedResources allows for stable URLs, but I cannot register
 each individual image.

 What approach would you suggest?

 Best regards,
 Peter




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



Re: Wicket Release Plans for 1.5

2009-11-01 Thread Vit Rozkovec

+100 for that, I am looking forward to new url stuff.

vitek

Igor Vaynberg wrote:

possibly. i think i would like this release to be as small as
possible, centered around the new url stuff. once that is in release
1.5 and put the new ajax support from ng into 1.6.

trying to release more and more often instead of taking over a year
and a half like we did with 1.4.0

-igor

On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen
richard.l.al...@gmail.com wrote:
  

Is the Wicket Ajax Next Generation work going into 1.5?

Also, is there plans for an event bus, sort of like what you see in Jonathan
Locke's 26 wicket tricks source code? I've seen some really nice use of
event bus in GWT that I think Wicket could benefit from.

-Richard


On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote:



I'm still eager to make WicketTester a first class citizen.


I'm keen on this too -- is there a 'voting' mechanism in the bug
tracker for this sort of thing?

Cheers,
Dave



On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
  

I'm still eager to make WicketTester a first class citizen.

Martijn

On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote:


   Thanks for your answer,

Daniel


igor.vaynberg wrote:
  

the focus of this release is to rewrite url and page handling. the
focus is on flexibility and pluggability as well as simplification of
use to the end user.

the other major feature is the markupfragment implementation, which
will allow users access to the markup the component is attached to,
possibly, at a time earlier then render time.

other then that there will probably be smaller features that will not
go into 1.4.x because they require an api break.

-igor

On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar wrote:


   Besides, it would be very interesting to know what changes and new
features are planned.

Cheers,

Daniel

  


--
View this message in context:
  

http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html
  

Sent from the Wicket - User 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


  


--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

-
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


  


-
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



Re: Bookmarkable images from db

2009-11-01 Thread Alex Objelean

Besides the servlet, there is also a wicket way of do it:

- Use shared resource, which is stateless and bookmarkable 

If you need more informations about this approach, search on forum or just
ask... and I'll provide you with some examples of how I do it..

Alex Objelean


Peter Dotchev wrote:
 
 Hi,
 
 My app allows users to upload images and I store them in JCR 
 http://en.wikipedia.org/wiki/Content_repository_API_for_Java. I can 
 get InputStream for each one of them.
 I want to display images in specific pages and I want image URLs to be 
 stable/bookmarkable. Also I don't want these pages to use the session in 
 any way.
 I checked again chapter 9 about images from Wicket In Action but such 
 use case is not addressed there.
 
 I found that SharedResources allows for stable URLs, but I cannot 
 register each individual image.
 
 What approach would you suggest?
 
 Best regards,
 Peter
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Bookmarkable-images-from-db-tp26154577p26154636.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket Release Plans for 1.5

2009-11-01 Thread Martin Funk


Am 30.10.2009 um 16:42 schrieb Igor Vaynberg:


possibly. i think i would like this release to be as small as
possible, centered around the new url stuff. once that is in release
1.5 and put the new ajax support from ng into 1.6.

trying to release more and more often instead of taking over a year
and a half like we did with 1.4.0

I totally go along with you on that plan.
Release early and release often.

Any other plans on getting back some momentum on the wicket project?

mf


-igor

On Fri, Oct 30, 2009 at 5:10 AM, Richard Allen
richard.l.al...@gmail.com wrote:

Is the Wicket Ajax Next Generation work going into 1.5?

Also, is there plans for an event bus, sort of like what you see in  
Jonathan
Locke's 26 wicket tricks source code? I've seen some really nice  
use of

event bus in GWT that I think Wicket could benefit from.

-Richard


On Fri, Oct 30, 2009 at 4:43 AM, Dave B d...@davebolton.net wrote:


I'm still eager to make WicketTester a first class citizen.


I'm keen on this too -- is there a 'voting' mechanism in the bug
tracker for this sort of thing?

Cheers,
Dave



On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:

I'm still eager to make WicketTester a first class citizen.

Martijn

On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar  
wrote:


   Thanks for your answer,

Daniel


igor.vaynberg wrote:


the focus of this release is to rewrite url and page handling.  
the
focus is on flexibility and pluggability as well as  
simplification of

use to the end user.

the other major feature is the markupfragment implementation,  
which
will allow users access to the markup the component is attached  
to,

possibly, at a time earlier then render time.

other then that there will probably be smaller features that  
will not

go into 1.4.x because they require an api break.

-igor

On Thu, Oct 29, 2009 at 10:38 AM, dtoffe dto...@yahoo.com.ar  
wrote:


   Besides, it would be very interesting to know what changes  
and new

features are planned.

Cheers,

Daniel






--
View this message in context:

http://www.nabble.com/Wicket-Release-Plans-for-1.5-tp26115807p26117927.html

Sent from the Wicket - User 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






--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

-
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






-
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



Re: wicket + jdbc template app

2009-11-01 Thread Pedro Santos
Hi, I got it working using spring. You can see an template application using
spring on wicket stuff: phone book

http://static.springsource.org/spring/docs/2.0.8/reference/jdbc.html

On Sun, Nov 1, 2009 at 5:07 PM, dtoffe dto...@yahoo.com.ar wrote:


Just set up your connection in your Application subclass and provide a
 method to get it from wherever you need it. Use connection pooling.

 Daniel


 idudko wrote:
 
  Hello, guys!
 
  I want to use wicket with plain jdbc without any persistence framework.
  Where i can find template application for this type of data source?
 
  Thank you for answer!
 
 

 --
 View this message in context:
 http://old.nabble.com/wicket-%2B-jdbc-template-app-tp26151790p26152287.html
 Sent from the Wicket - User 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




-- 
Pedro Henrique Oliveira dos Santos


Help with Repeater containing form components with NavigationToolbar

2009-11-01 Thread Richard Nichols
Hi,

I've spent several hours trying to figure this out and to try to understand
how repeaters work with form processing, but some help would be appreciated!
:)

I have a page with a list of questions  answers. The questions are read
from a database and are displayed in a DefaultDataTable repeater, with one
question per row.

I had wanted to display the questions over a number of pages and allow the
user to use the NavigationToolbar to navigate through the list of questions.


However whenever I click the page links, the entered data on the current
page is lost and reverts to the original model values. But if the form is
submitted then the data on that page is retained.

Is it possible to make the NavigationToolbar bind the new values of the form
inputs for the page(s) when navigating between pages? Is this sort of
behaviour allowed?

thanks in advance,
Richard.

-- 
Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/


Re: Help with Repeater containing form components with NavigationToolbar

2009-11-01 Thread Igor Vaynberg
some rough pseudo code

new navigationtoolbar() {
   new pagingnavigator() {
 return new pagingnavigator() {
 new pagingnavigationlink() { return new submitlink(); }
 new pagingnavigationincrementlink() { return new submitlink(); }}}

-igor


On Sun, Nov 1, 2009 at 6:09 PM, Richard Nichols r...@visural.com wrote:
 Hi,

 I've spent several hours trying to figure this out and to try to understand
 how repeaters work with form processing, but some help would be appreciated!
 :)

 I have a page with a list of questions  answers. The questions are read
 from a database and are displayed in a DefaultDataTable repeater, with one
 question per row.

 I had wanted to display the questions over a number of pages and allow the
 user to use the NavigationToolbar to navigate through the list of questions.


 However whenever I click the page links, the entered data on the current
 page is lost and reverts to the original model values. But if the form is
 submitted then the data on that page is retained.

 Is it possible to make the NavigationToolbar bind the new values of the form
 inputs for the page(s) when navigating between pages? Is this sort of
 behaviour allowed?

 thanks in advance,
 Richard.

 --
 Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/


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



Re: Help with Repeater containing form components with NavigationToolbar

2009-11-01 Thread Richard Nichols
Makes sense, thank you!

2009/11/2 Igor Vaynberg igor.vaynb...@gmail.com

 some rough pseudo code

 new navigationtoolbar() {
   new pagingnavigator() {
 return new pagingnavigator() {
 new pagingnavigationlink() { return new submitlink(); }
 new pagingnavigationincrementlink() { return new submitlink();
 }}}

 -igor


 On Sun, Nov 1, 2009 at 6:09 PM, Richard Nichols r...@visural.com wrote:
  Hi,
 
  I've spent several hours trying to figure this out and to try to
 understand
  how repeaters work with form processing, but some help would be
 appreciated!
  :)
 
  I have a page with a list of questions  answers. The questions are read
  from a database and are displayed in a DefaultDataTable repeater, with
 one
  question per row.
 
  I had wanted to display the questions over a number of pages and allow
 the
  user to use the NavigationToolbar to navigate through the list of
 questions.
 
 
  However whenever I click the page links, the entered data on the current
  page is lost and reverts to the original model values. But if the form is
  submitted then the data on that page is retained.
 
  Is it possible to make the NavigationToolbar bind the new values of the
 form
  inputs for the page(s) when navigating between pages? Is this sort of
  behaviour allowed?
 
  thanks in advance,
  Richard.
 
  --
  Richard Nichols :: http://www.visural.com/ ::
 http://www.richardnichols.net/
 

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




-- 
Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/


Re: Bookmarkable images from db

2009-11-01 Thread Vytautas Racelis

Hi,
you may find this class useful for your requirements:

http://xaloon.googlecode.com/svn/trunk/xaloon-wicket-repository/src/main/java/org/xaloon/wicket/component/resource/ImageLink.java

This class takes image from JCR and shows as image.

Peter Dotchev wrote:

Hi,

My app allows users to upload images and I store them in JCR 
http://en.wikipedia.org/wiki/Content_repository_API_for_Java. I can 
get InputStream for each one of them.
I want to display images in specific pages and I want image URLs to be 
stable/bookmarkable. Also I don't want these pages to use the session 
in any way.
I checked again chapter 9 about images from Wicket In Action but such 
use case is not addressed there.


I found that SharedResources allows for stable URLs, but I cannot 
register each individual image.


What approach would you suggest?

Best regards,
Peter






--
Regards,
Vytautas Racelis
---
phone:+370-600-34389
e-mail: turi...@gmail.com
www.xaloon.org
www.leenle.com


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



AW: OSGi Wicket

2009-11-01 Thread Giambalvo, Christian
Maybe OSGi ist o much overhead for my needs.
I just want to be able to load WicketPages from a jar during runtime.
Lets say  i have a wicket app with just the wicketapplication and a homepage 
(extendable through plugins (jar)).
Then during runtime i dropin a jar containing some Pages and i want wicket to 
be able to reach them.
My idea is to to just add the jars to the classloader searchpath and let wicket 
do the rest.
Is this a naive idea or whats the wicket way?

Igor wrote (some time ago):
what we have in wicket is a IClassResolver which we use to allow for
pluggable class resolution.

How can this pluggable resolution be accomplished?

Greetz and thanks

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Sonntag, 1. November 2009 06:40
An: users@wicket.apache.org
Betreff: Re: OSGi Wicket

I do agree Eclipse buddy system in not proper OSGi, but it makes a lot
easier to develop applications because

1- Your application, components, etc, will be same as in any normal Wicket
application (no changes to are needed)
2- If you find out OSGi is not suitable at the end, you can always build the
same application dropping OSGi and using the same (component) factory
services. You will loose hot pluggability and that's it.

I never hit serialization limitation myself. On the  other hand, I do know
from experience that  integrating with certain application servers (using
bridge approach) can be challenging. This is also something to take into
account before deciding to use osgi.

I think Igor is totally right about the things you should weight in deciding
whether to use OSGi or not for a project. OSGi is a way to
achieve pluggability but not the only one.

Best,

Ernesto


On Sun, Nov 1, 2009 at 2:27 AM, David Leangen wic...@leangen.net wrote:


 If you do go with OSGi, you will have problems with classloaders and
 deserialization.

 To my knowledge, nobody has yet solved this (i.e. implemented a good
 solution) in a decent way. The Eclipse buddy system is not proper OSGi,
 IMO.

 pax-wicket does solve this problem (using proper OSGi), but I have
 never used their approach much even though I use the framework.

 Here is a post about this by me with some interesting comments from Igor:

  http://bioscene.blogspot.com/2009/03/serialization-in-osgi.html


 Good luck to you!
 =David




 On Nov 1, 2009, at 3:26 AM, Igor Vaynberg wrote:

  it is easy to create a pluggable application in wicket. all you need
 is a registry of component providers, whether it be something like
 spring [1], a custom registry like brix uses [2] or something more
 advanced like osgi. the choice should be based on the featureset you
 need. eg, if you need hot updating, classloader separation, etc, then
 osgi is good. if not, there are simpler ways to achieve modularity [1]
 [2]. the great news is that wicket lends itself easily to
 modularization.

 [1]
 http://wicketinaction.com/2008/10/creating-pluggable-applications-with-wicket-and-spring/
 [2] http://code.google.com/p/brix-cms/source/browse/#svn/trunk/brix-
 core/src/main/java/brix/registry

 -igor

 2009/10/29 Tomáš Mihok tomas.mi...@cnl.tuke.sk:

 Hello,

 I'm currently designing a new application. One of the requests is to make
 it
 modular. I found out that one of the possibilities to enable loading of
 modules while application is running is OSGi. Is there a
 tool/plugin/guide
 to accomplish this or are there any other possibilities of accomplishing
 same goal?

 Tom

 -
 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



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




Attribute modifier to track location on pages stops request from completing

2009-11-01 Thread pieter claassen
I am sure I am doing something very silly here but 

When I add the following AttributeModifier in my onBeforeRender() method,
the solution works as expected (so I load an image that indicates that this
page is selected)

icon.add(new AttributeModifier(this.src=', null, true, new
Model(urlFor(active)+';)));

However, when I abstract that same code into a private class, the solution
still works and the correct image loads that indicates which page I am on,
but the browser, never completes the request (so the spinning wheel on the
tab keeps on spinning).

icon.add(new ActivateImage(onload, active));
.
 private class ActivateImage extends AttributeModifier {

private ActivateImage(String id, final ResourceReference ref) {
super(id, null, true, new Model(this.src=' + urlFor(ref) +
';));
}
}

Any ideas?

Thanks,
Pieter