AW: OSGi Wicket

2009-10-31 Thread Giambalvo, Christian
Hi,

i'm also interested in making a modular, during runtime extensible wicket 
appliaction.
Meaning a Wicketapplication which can be extended by plugins during runtime.
Can OSGi accomplish this?
Could you please explain the wstarter a little bit more in detail.
I only developed normal wicket web applications and the wstarter demo doesn't 
look clear to me.

Regards,

Chris

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Freitag, 30. Oktober 2009 06:22
An: users@wicket.apache.org
Betreff: Re: OSGi Wicket

If you don't mind tying yourself to equinox these two projects

http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter
http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter.demo

might be of some help. The launcher inlcuded with the demo

http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/wicket-app.launch

Is for eclipse 3.4. If you are using 3.5 just tell me and I'll add one.

Regards,

Ernesto


http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter
2009/10/30 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



Re: OSGi Wicket

2009-10-31 Thread Ernesto Reinaldo Barreiro
Hi Chris,

Comments inlined.

2009/10/31 Giambalvo, Christian christian.giamba...@excelsisnet.com

 Hi,

 i'm also interested in making a modular, during runtime extensible wicket
 appliaction.
 Meaning a Wicketapplication which can be extended by plugins during
 runtime.
 Can OSGi accomplish this?


Yes, OSGi can accomplish that. You can add/remove/stop/start bundles
(plugins) at runtime.

Could you please explain the wstarter a little bit more in detail.
 I only developed normal wicket web applications and the wstarter demo
 doesn't look clear to me.


Right now I do not have much time to go into lengthy explanations:-(... but.

1- The entry point of the application is the class
http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/src/com/antilia/wstarter/demo/Activator.java
2- This class just registers a tracker which will listen for the the
start/stop of an HTTP service. This service HTTP allows to register
servlets.
So when the service starts I just register a WicketServlet under the context
demo-app.
3-An important part is that the bundle com.antilia.wstarter is a super
bundle that can read classes form other bundles see
http://code.google.com/p/antilia/source/browse/com.antilia.wstarter/META-INF/MANIFEST.MF
and the line
Eclipse-BuddyPolicy: registered
4-Bundle 
com.antilia.wstarter.demohttp://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MF
 declares com.antilia.wstarter as a buddy. See Eclipse-RegisterBuddy:
com.antilia.wstarter at
http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MF
This allows com.antilia.wstarter reading classes from
com.antilia.wstarter.demohttp://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MF

There are other places where you can read about OSGi, Services, Service
Trackers, etc. You will have to understand some few concepts before you can
get yourself going.
http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MFIf
I find sometime I might write a wiki page explaining things more in
detail... if that would be of some interest?

Hope this help.

Best,

Ernesto


Regards,

 Chris

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Freitag, 30. Oktober 2009 06:22
 An: users@wicket.apache.org
 Betreff: Re: OSGi Wicket

 If you don't mind tying yourself to equinox these two projects

 http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter

 http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter.demo

 might be of some help. The launcher inlcuded with the demo


 http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/wicket-app.launch

 Is for eclipse 3.4. If you are using 3.5 just tell me and I'll add one.

 Regards,

 Ernesto


 http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter
 2009/10/30 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




Re: OSGi Wicket

2009-10-31 Thread Igor Vaynberg
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



Re: urlFor(ResourceReference) strangeness

2009-10-31 Thread pieter claassen
Alex,

My apologies, but I cannot reproduce this issue again. Even if I mount a
page and then land on that page, I now get the correct behaviour with the
default URL encoding strategy. I am wondering if I called the correct
urlFor()? No good speculating on this though

If I see this again, I will investigate and file a bug if needed.

Thanks for the feedback.
Pieter

On Wed, Oct 28, 2009 at 10:56 AM, Alex Objelean alex_objel...@yahoo.comwrote:


 Still, is this acceptable for you? Is my statement about mounting true? If
 it
 is, could you create a jira issue for this?

 Alex


 pieter claassen-2 wrote:
 
  Alex,
 
  The problem went away. I had some pages mounted (I landed on a mounted
  page)
  and others not so as soon as I removed all the mounted pages, the problem
  went away).
 
  Rgds,
  Pieter
 
  On Wed, Oct 28, 2009 at 7:31 AM, Alex Objelean
  alex_objel...@yahoo.comwrote:
 
 
  I am pretty sure, it is a bug. The reason why the
  urlFor(ResourceReference)
  is not working properly is because you are using
  BookmarkablePageRequestTargetUrlCodingStrategy for page mounting or a
  similar strategy which encodes the params like this:
  http://server/context/param1/value1/param2/value2 ... To prove that
 this
  is
  a bug, try to change (just for test purpose) the mounting to
  QueryStringUrlCodingStrategy, to make the url look like this:
  http://server/context?param1=value1. I suspect that when the url is
  built,
  it depends on the page url from where the urlFor(ResourceReference) is
  called... and wicket doesn't remove the parameters from the url and mess
  this up... The real problem is when you are trying to build an absolute
  url
  for a ResourceReference. If this is indeed the reason of the problem, we
  should raise a jira issue...
 
  Alex Objelean
 
 
  pieter claassen-2 wrote:
  
   Ok, but I have a panel and I want to add an Image to the panel but
 when
  I
   log into my application I get the ../../.. prefix, and the
   ResourceReference
   then fails. However, once I click on any link, the prefix disappears
  and
   then my panel can find the ResourceReference. Am I misunderstanding
 how
   resource references should be used?
  
   Thanks,
   Pieter
  
   On Tue, Oct 27, 2009 at 4:21 PM, Ryan McKinley ryan...@gmail.com
  wrote:
  
   urlFor( ) uses the current request to get a relative path.  If the
   location
   you are calling urlFor() from changes, it will get a new location
  
   Note the only difference between the two urls is the ../../.. prefix
  
  
   On Oct 27, 2009, at 11:05 AM, pieter claassen wrote:
  
WHen I start my application, my urlFor() returns a different URL
 than
   when
   I
   call it a second time?
  
 ResourceReference iconref = new ResourceReference(anchorclass,
   iconname);
 System.out.println(URL: +urlFor(iconref));
  
   First time it returns:
   URL:
  
  
 
 ../../../resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/document.png
  
   second time:
   URL:
  
  
 
 resources/com.musmato.wicket.pages.styles.option1.Option1StyleAnchor/document.png
  
   Any ideas?
  
   Thanks
   Pieter
   --
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   Pieter Claassen
   musmato.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/urlFor%28ResourceReference%29-strangeness-tp26079363p26089957.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
 
 
 
 
  --
  Pieter Claassen
  musmato.com
 
 

 --
 View this message in context:
 http://www.nabble.com/urlFor%28ResourceReference%29-strangeness-tp26079363p26091991.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




-- 
Pieter Claassen
musmato.com


Re: 508 accessibility support

2009-10-31 Thread Ryan McKinley


takes values for alt attribute .  Like the sortable columns   , If I  
can set

value for alt attribute that would be really nice.


how about:
div.add( new AttributeModifier( alt, true, new ModelString( what  
it should say... ))



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



open modal window w/o ajax resolved?

2009-10-31 Thread Jason Novotny


Hi,

   I was trying to figure out how to display wicketmodal once a page is 
created-- this has been a popular issue

http://issues.apache.org/jira/browse/WICKET-12

It seems just a week ago it has been marked resolved in  wicket 1.4.4, 
can someone tell me what the fix is or what I need to do in my code, 
asuming I've grabbed the v. 1.4..4 of this file?


Also, is it possible to have a non-modal wicketmodal? If I want to use 
this component as a normal dialog, or is there a better component?


   Thanks, Jason


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



Re: OSGi Wicket

2009-10-31 Thread David Leangen


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



Re: OSGi Wicket

2009-10-31 Thread Ernesto Reinaldo Barreiro
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