clean way to add visibility constraints

2009-04-01 Thread Boydens Joeri (OZ)
Hi,

 

I have this page where I have different components that need to be show
or hidden, depending on the value of some model fields.  I implemented
this by overriding the isVisible method of the components.  Now I was
wondering if there is a less verbose way of handling this? (I can't
group the components because it's not possible in the html markup).  

 

item.add(new TextField(value) {

 public boolean isVisible() {

 
OnlineBookingParametersArticle article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
article.getArticle().getNumberInStock()  0;

 }

   });

   

   item.add(new
Label(article.numberOfArticlesLabel, Geen beschikbaar) {

 public boolean isVisible() {

 
OnlineBookingParametersArticle article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
article.getArticle().getNumberInStock() = 0;

 }

   });

   

   item.add(new
Label(article.description));

 

   item.add(new
WebMarkupContainer(participantInfo) {

 public boolean
isVisible() {

 
OnlineBookingParametersArticle   article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
article.getArticle().getNumberInStock()  0;

 }

   }

   .add(new
Label(article.numberOfRequiredParticipants))

   .add(new
Label(article.maximumNumberOfParticipants)));  

 

   

   item.add(new Link(contactLink){

 @Override

 public void onClick(){

   //TODO : go to correct
page

 }

 @Override

 public boolean isVisible() {

 
OnlineBookingParametersArticle article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
article.getArticle().getNumberInStock() = 0;

 }

   });

 

 



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Mikhail Fursov
Today is the first day of the month :)

On Wed, Apr 1, 2009 at 2:31 PM, Christian Helmbold 
christian.helmb...@yahoo.de wrote:


  I still liked the other name suggestion
 jdave-wicket-webdriver-wicket-fx

 Is it a joke? What's wrong with wicket? I find both name suggestions
 ugly.

 Christian






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




-- 
Mikhail Fursov


Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Jeremy Thomerson
+1, accept above resolution

WOO HOO!!! It's about time!!  Now maybe we'll be enterprise ready and some
people will finally start taking WicketFX seriously!

--
Jeremy Thomerson
http://www.wickettraining.com  (coming soon: http://www.WicketFXTraining.com
)



On Wed, Apr 1, 2009 at 2:02 AM, Martijn Dashorst dasho...@apache.orgwrote:

 The Wicket PMC has discussed the following action. Because I think it
 is prudent that the Wicket community keeps evolving with the state of
 Java, I've created a board resolution to rename Wicket to WicketFX
 (thanks Igor for the suggestion!)

 WHEREAS, the Board of Directors deems it to be in the best interests
 of the Foundation and the Apache Wicket community to rename Apache
 Wicket to Apache WicketFX to get presentation slots at the JavaOne
 conference, and make it easier to obtain JSR status.

 NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the
 Apache Wicket project, be and hereby is renamed to Apache
 WicketFX; and be it further

 RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
 submit or propose new presentations and tutorials to the JavaOne
 Conference concerning Wicket and FX; and be it further

 RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
 submit the Apache WicketFX project to the JCP and obtain JSR status;
 and be it further

 RESOLVED, that the original Apache Wicket PMC be and hereby is
 dissolved of its responsibilities for this day, April 1st, 2009.

 [ ] +1, accept above resolution
 [ ] -1, don't accept above resolution, because ...

 This vote runs for just today, otherwise we won't be able to get it
 accepted by the board this month.

 Martijn

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




Re: [Not a joke] Bug when using HybridUrlCodingStrategy

2009-04-01 Thread Jeremy Thomerson
With a quickstart - sure!

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 1, 2009 at 2:30 AM, Objelean Alex alex.objel...@gmail.comwrote:

 In my application I use HybridUrlCodingStrategy for all my pages. I've
 noticed that when cookies are disabled, the FeedbackPanel isn't visible any
 more (when the form is submitted and there are errors or other types of
 messages - they are simply not shown). When I disable the
 HybridUrlCodingStrategy, everything is ok. Should I create an issue in
 JIRA?

 Alex



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Timo Rantalaiho
On Wed, 01 Apr 2009, Martijn Dashorst wrote:
 [X] -1, don't accept above resolution, because ...

I still liked the other name suggestion jdave-wicket-webdriver-wicket-fx
better, shall I do another vote thread on it?


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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Jeremy Thomerson
If so, we must add annotations and aop in there some where.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 1, 2009 at 2:08 AM, Timo Rantalaiho timo.rantala...@ri.fiwrote:

 On Wed, 01 Apr 2009, Martijn Dashorst wrote:
  [X] -1, don't accept above resolution, because ...

 I still liked the other name suggestion jdave-wicket-webdriver-wicket-fx
 better, shall I do another vote thread on it?




AW: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Christian Helmbold

-1, don't accept above resolution, because ...

I find FX is just a temporary fashion. In a few years FX is history like 
J2EE is. Don't follow every trend. Keep the name short and simple, keep 
Wicket!

Christian






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



[Not a joke] Bug when using HybridUrlCodingStrategy

2009-04-01 Thread Objelean Alex
In my application I use HybridUrlCodingStrategy for all my pages. I've
noticed that when cookies are disabled, the FeedbackPanel isn't visible any
more (when the form is submitted and there are errors or other types of
messages - they are simply not shown). When I disable the
HybridUrlCodingStrategy, everything is ok. Should I create an issue in JIRA?

Alex


London Wicket Event and G20, World Cup

2009-04-01 Thread Cemal A Bayramoglu

FIFA and leaders of the top industrialised nations have asked us to remind
you that as well as our London Wicket Event [1] this evening, there is
also a G20 summit and a World Cup qualifier in London today.

Regards - Cemal
http://jWeekend.com

[1]  http://jWeekend.com/dev/LWUGReg/

.

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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Mikhail Fursov
BTW JWicket FX might be better. You won't confuse it with Wicket.NET at
least!

On Wed, Apr 1, 2009 at 2:32 PM, Mikhail Fursov mike.fur...@gmail.comwrote:

 Today is the first day of the month :)


 On Wed, Apr 1, 2009 at 2:31 PM, Christian Helmbold 
 christian.helmb...@yahoo.de wrote:


  I still liked the other name suggestion
 jdave-wicket-webdriver-wicket-fx

 Is it a joke? What's wrong with wicket? I find both name suggestions
 ugly.

 Christian






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




 --
 Mikhail Fursov




-- 
Mikhail Fursov


AW: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Christian Helmbold

 I still liked the other name suggestion jdave-wicket-webdriver-wicket-fx

Is it a joke? What's wrong with wicket? I find both name suggestions ugly.

Christian






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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Mikhail Fursov
 [ ] -1, don't accept above resolution, because ...
What's in a name? Will it make Wicket more stable or feature-rich?


On Wed, Apr 1, 2009 at 2:02 PM, Martijn Dashorst dasho...@apache.orgwrote:

 The Wicket PMC has discussed the following action. Because I think it
 is prudent that the Wicket community keeps evolving with the state of
 Java, I've created a board resolution to rename Wicket to WicketFX
 (thanks Igor for the suggestion!)

 WHEREAS, the Board of Directors deems it to be in the best interests
 of the Foundation and the Apache Wicket community to rename Apache
 Wicket to Apache WicketFX to get presentation slots at the JavaOne
 conference, and make it easier to obtain JSR status.

 NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the
 Apache Wicket project, be and hereby is renamed to Apache
 WicketFX; and be it further

 RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
 submit or propose new presentations and tutorials to the JavaOne
 Conference concerning Wicket and FX; and be it further

 RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
 submit the Apache WicketFX project to the JCP and obtain JSR status;
 and be it further

 RESOLVED, that the original Apache Wicket PMC be and hereby is
 dissolved of its responsibilities for this day, April 1st, 2009.

 [ ] +1, accept above resolution
 [ ] -1, don't accept above resolution, because ...

 This vote runs for just today, otherwise we won't be able to get it
 accepted by the board this month.

 Martijn

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




-- 
Mikhail Fursov


acegi 1.0.6 + wicket1.3 +spring 2.5

2009-04-01 Thread hhh2100
hi 
   i get problems if you want to chain multiple filters, especially the 
concurrentsessionfilter.
i don't know how about it for my config file.
 
thx . 



AW: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Stefan Lindner
[X] -1, don't accept above resolution, because ...

We should start a vote with a little bit more names. Why not SilverWicket oder 
WicketLight? Or SilverWicket FX.NET for best of both worlds?

-Ursprüngliche Nachricht-
Von: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] Im Auftrag 
von Martijn Dashorst
Gesendet: Mittwoch, 1. April 2009 09:03
An: d...@wicket.apache.org; users@wicket.apache.org
Betreff: VOTE: Rename Apache Wicket to Apache WicketFX

The Wicket PMC has discussed the following action. Because I think it
is prudent that the Wicket community keeps evolving with the state of
Java, I've created a board resolution to rename Wicket to WicketFX
(thanks Igor for the suggestion!)

WHEREAS, the Board of Directors deems it to be in the best interests
of the Foundation and the Apache Wicket community to rename Apache
Wicket to Apache WicketFX to get presentation slots at the JavaOne
conference, and make it easier to obtain JSR status.

NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the
Apache Wicket project, be and hereby is renamed to Apache
WicketFX; and be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit or propose new presentations and tutorials to the JavaOne
Conference concerning Wicket and FX; and be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit the Apache WicketFX project to the JCP and obtain JSR status;
and be it further

RESOLVED, that the original Apache Wicket PMC be and hereby is
dissolved of its responsibilities for this day, April 1st, 2009.

[ ] +1, accept above resolution
[ ] -1, don't accept above resolution, because ...

This vote runs for just today, otherwise we won't be able to get it
accepted by the board this month.

Martijn

-
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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Daan van Etten

Some other suggestions:

Why go with the Wicket FX if you can have Wicket FX 2.0. Ready for Web  
2.0!


Or... the Wacky Wicket, for inclusion in the Ubuntu Linux distro.

Or... Wicket Enterprise Release 4, the version that lags a few years  
in features but is 'supported'


Or... Wicky the Wicking

Or... Wicket4j

Or... YAWF! (Yet Another Web Framework)

Or... WTF! (Wicket The Framework)

In comparison, the original Wicket name seems a bit bland. Please  
consider my suggestions.


Regards,

Daan

Op 1 apr 2009, om 09:39 heeft Mikhail Fursov het volgende geschreven:

BTW JWicket FX might be better. You won't confuse it with Wicket.NET  
at

least!

On Wed, Apr 1, 2009 at 2:32 PM, Mikhail Fursov  
mike.fur...@gmail.comwrote:



Today is the first day of the month :)


On Wed, Apr 1, 2009 at 2:31 PM, Christian Helmbold 
christian.helmb...@yahoo.de wrote:




I still liked the other name suggestion

jdave-wicket-webdriver-wicket-fx

Is it a joke? What's wrong with wicket? I find both name  
suggestions

ugly.

Christian






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





--
Mikhail Fursov





--
Mikhail Fursov



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



VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Martijn Dashorst
The Wicket PMC has discussed the following action. Because I think it
is prudent that the Wicket community keeps evolving with the state of
Java, I've created a board resolution to rename Wicket to WicketFX
(thanks Igor for the suggestion!)

WHEREAS, the Board of Directors deems it to be in the best interests
of the Foundation and the Apache Wicket community to rename Apache
Wicket to Apache WicketFX to get presentation slots at the JavaOne
conference, and make it easier to obtain JSR status.

NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the
Apache Wicket project, be and hereby is renamed to Apache
WicketFX; and be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit or propose new presentations and tutorials to the JavaOne
Conference concerning Wicket and FX; and be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit the Apache WicketFX project to the JCP and obtain JSR status;
and be it further

RESOLVED, that the original Apache Wicket PMC be and hereby is
dissolved of its responsibilities for this day, April 1st, 2009.

[ ] +1, accept above resolution
[ ] -1, don't accept above resolution, because ...

This vote runs for just today, otherwise we won't be able to get it
accepted by the board this month.

Martijn

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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread David Leangen

Or... WTF! (Wicket The Framework)


+1



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



Re: Picket Web Framework -- PHP's answer to Java's Wicket

2009-04-01 Thread Martin Makundi
Hahaha ...

2009/4/1 Otan ghostfigh...@gmail.com:
 Are you a fan of Wicket but you can't use it because your company or client
 is tied with PHP? Have you ever wished that Wicket was available in the PHP
 land?

 Picket to the rescue!

 Picket is a project that aims to bring Wicket's awesome features and
 philosophy to the PHP community. The project was started by YouSoft
 Consulting (Nasdaq: YSFT) and being used internally since 2006. Now that
 Picket 1.1 has been released, and is stable enough for prime time, YouSoft
 opened the source code for public consumption with multi-licenses, namely,
 GPL v2, GPL v3, BSD, Apache, MPL and CDDL.

 For more information, visit its official website at
 http://4thmonth.yousoft.com/1stday/picket

 Have a happy day!


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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread nino martinez wael
+1000 :) thats the best one, for the eye catching factor..::) And it
has that certain ring to it :)

2009/4/1 David Leangen wic...@leangen.net:
 Or... WTF! (Wicket The Framework)

 +1



 -
 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: acegi 1.0.6 + wicket1.3 +spring 2.5

2009-04-01 Thread Martijn Dashorst
2009/4/1 hhh2100 hhh2...@126.com:
   i get problems if you want to chain multiple filters, especially the 
 concurrentsessionfilter.
 i don't know how about it for my config file.

I won't chain multiple filters again, I'm sorry they caused you problems ;-)

On a more serious note:

I'm not a acegi wizard, but it appears to me that you should map the
concurrentsessionfilter before the wicket filter. The web.xml parses
the filters in definition order.

Perhaps the acegi list/forum can help you better.

Martijn

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



NameSpace usage in wicket ?

2009-04-01 Thread FaRHaN
Is there any way to use NameSpace in wicket applicatin ?
Please reply...

Regards,
FaRHaN BaJWa.



  

Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Nano Surbakti
[X] -1, don't accept above resolution, because ...

WicketFool, Cause the voting must be done in April Fool day?

--
Nano Surbakti

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



Re: [Not a joke] Bug when using HybridUrlCodingStrategy

2009-04-01 Thread Alex Objelean

Issue created:  https://issues.apache.org/jira/browse/WICKET-2198 WICKET-2198
. 

Thank you!

Alex Objelean



Jeremy Thomerson-5 wrote:
 
 With a quickstart - sure!
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Wed, Apr 1, 2009 at 2:30 AM, Objelean Alex
 alex.objel...@gmail.comwrote:
 
 In my application I use HybridUrlCodingStrategy for all my pages. I've
 noticed that when cookies are disabled, the FeedbackPanel isn't visible
 any
 more (when the form is submitted and there are errors or other types of
 messages - they are simply not shown). When I disable the
 HybridUrlCodingStrategy, everything is ok. Should I create an issue in
 JIRA?

 Alex

 
 

-- 
View this message in context: 
http://www.nabble.com/-Not-a-joke--Bug-when-using-HybridUrlCodingStrategy-tp22821255p22822020.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



[announce] WASMP , Wicket AsSeMbler Project

2009-04-01 Thread nino martinez wael
Hi Guys

Im happy to announce the new Shiny Wicket Assembler Project on behalf
of the WASMP team. Do you need speed? Then WASMP is for you, in it's
first release it will be able to run on a 386 system and are written
for DOS 3. Initial tests (on the pre alpha release) states that this
out runs a comparative Wicket Java system on a brand new 4 GHZ  4 core
intel system.

We are using native classes (Assembler thru C) to provide these
performance boots.

Stay tuned for more information!

-The WASMP Team

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



Re: NameSpace usage in wicket ?

2009-04-01 Thread nino martinez wael
Can you be more descriptive?

Are you thinking of Javascripts name spaces? You can look at the
openlayers integration on wicketstuff if so.

2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Is there any way to use NameSpace in wicket applicatin ?
 Please reply...

 Regards,
 FaRHaN BaJWa.





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



Wicket and (or) restlet

2009-04-01 Thread Objelean Alex
I'm curious what are the community thoughts about restlet. Have you used
this framework? Can wicket  restlet work together? Have you had any
experience with it?

Thank you!


Re: Page Maps order

2009-04-01 Thread Martijn Dashorst
I'm pretty sure the order is by most recently visited.

Martijn

On Tue, Mar 31, 2009 at 5:10 PM, Pi Trash ptr...@web.de wrote:
 Hi,

 are the pages in Page Maps ordered (e.g. chronological)?

 tia
 
 Pt! Schon vom neuen WEB.DE MultiMessenger gehört?
 Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123


 -
 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.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: WicketTester assertPageLink and BookmarkablePageLink

2009-04-01 Thread Martijn Dashorst
clickLink(book);
assertRenderedPage(Book.class);

Martijn

On Tue, Mar 31, 2009 at 11:56 PM, rock star rckstar2...@gmail.com wrote:
 Hi ! I have a very quick question.
 Is there a way to test a BookmarkablePageLink ? Something similar to the
 assertPageLink method?
 Thanks,
 Alan




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: need Help on [AutoCompleteTextField]

2009-04-01 Thread nino martinez wael
Look at the examples on wicket library, if you need more then you
could try the object autocomplete from wicketstuff..

2009/3/31 FaRHaN farhan.ba...@ymail.com:
 Is there any way to display User Defined values in AutoCompleteTextField 
 (ajax behavior) by using array of values.
 Please refer me some examples and links to demonstrate such type of behaviour.

 Thanks,
 FaRHaN





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



Re: clean way to add visibility constraints

2009-04-01 Thread Daan van Etten
You could write a method that sets the visibility on the relevant  
components.
The Form components have to be visible to that method though (or you  
have to use a visitor).


Regards,

Daan

Op 1 apr 2009, om 08:32 heeft Boydens Joeri (OZ) het volgende  
geschreven:



Hi,



I have this page where I have different components that need to be  
show

or hidden, depending on the value of some model fields.  I implemented
this by overriding the isVisible method of the components.  Now I was
wondering if there is a less verbose way of handling this? (I can't
group the components because it's not possible in the html markup).



item.add(new TextField(value) {

public boolean isVisible() {


OnlineBookingParametersArticle article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

  return
article.getArticle().getNumberInStock()  0;

}

  });



  item.add(new
Label(article.numberOfArticlesLabel, Geen beschikbaar) {

public boolean isVisible() {


OnlineBookingParametersArticle article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

  return
article.getArticle().getNumberInStock() = 0;

}

  });



  item.add(new
Label(article.description));



  item.add(new
WebMarkupContainer(participantInfo) {

public boolean
isVisible() {


OnlineBookingParametersArticle   article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

  return
article.getArticle().getNumberInStock()  0;

}

  }

  .add(new
Label(article.numberOfRequiredParticipants))

  .add(new
Label(article.maximumNumberOfParticipants)));





  item.add(new Link(contactLink){

@Override

public void onClick(){

  //TODO : go to correct
page

}

@Override

public boolean isVisible() {


OnlineBookingParametersArticle article =
(OnlineBookingParametersArticle) getParent().getModel().getObject();

  return
article.getArticle().getNumberInStock() = 0;

}

  });








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



Re: need Help on [AutoCompleteTextField]

2009-04-01 Thread FaRHaN
I have tried examples exist in wicket library but these examples are used to 
display only built-in (countries  languages) values. But i want to display my 
own values stored in an array or in DBIs there any ?

--- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

From: nino martinez wael nino.martinez.w...@gmail.com
Subject: Re: need Help on [AutoCompleteTextField]
To: users@wicket.apache.org
Date: Wednesday, April 1, 2009, 9:05 AM

Look at the examples on wicket library, if you need more then you
could try the object autocomplete from wicketstuff..

2009/3/31 FaRHaN farhan.ba...@ymail.com:
 Is there any way to display User Defined values in AutoCompleteTextField 
 (ajax behavior) by using array of values.
 Please refer me some examples and links to demonstrate such type of behaviour.

 Thanks,
 FaRHaN





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




  

RE: clean way to add visibility constraints

2009-04-01 Thread Boydens Joeri (OZ)

Is there prefered way between the methods below?  

if (condition) {
component.setVisible(false);
}

OR

component {
@Override
public boolean isVisible() {
return !condition;
}

If I use the above I can group my components and set them with the
setVisible method depending on the condition, with the last method I
have to add the the condition to every component.


-Oorspronkelijk bericht-
Van: Daan van Etten [mailto:d...@stuq.nl] 
Verzonden: woensdag 1 april 2009 11:20
Aan: users@wicket.apache.org
Onderwerp: Re: clean way to add visibility constraints

You could write a method that sets the visibility on the relevant  
components.
The Form components have to be visible to that method though (or you  
have to use a visitor).

Regards,

Daan

Op 1 apr 2009, om 08:32 heeft Boydens Joeri (OZ) het volgende  
geschreven:

 Hi,



 I have this page where I have different components that need to be  
 show
 or hidden, depending on the value of some model fields.  I implemented
 this by overriding the isVisible method of the components.  Now I was
 wondering if there is a less verbose way of handling this? (I can't
 group the components because it's not possible in the html markup).



 item.add(new TextField(value) {

 public boolean isVisible() {


 OnlineBookingParametersArticle article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
 article.getArticle().getNumberInStock()  0;

 }

   });



   item.add(new
 Label(article.numberOfArticlesLabel, Geen beschikbaar) {

 public boolean isVisible() {


 OnlineBookingParametersArticle article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
 article.getArticle().getNumberInStock() = 0;

 }

   });



   item.add(new
 Label(article.description));



   item.add(new
 WebMarkupContainer(participantInfo) {

 public boolean
 isVisible() {


 OnlineBookingParametersArticle   article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
 article.getArticle().getNumberInStock()  0;

 }

   }

   .add(new
 Label(article.numberOfRequiredParticipants))

   .add(new
 Label(article.maximumNumberOfParticipants)));





   item.add(new Link(contactLink){

 @Override

 public void onClick(){

   //TODO : go to correct
 page

 }

 @Override

 public boolean isVisible() {


 OnlineBookingParametersArticle article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

   return
 article.getArticle().getNumberInStock() = 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



Re: Picket Web Framework -- PHP's answer to Java's Wicket

2009-04-01 Thread Nano Surbakti
Wow.. looks very promising.
Nice.. nice...

:)

On Wed, Apr 1, 2009 at 12:56 PM, Otan ghostfigh...@gmail.com wrote:
 Are you a fan of Wicket but you can't use it because your company or client
 is tied with PHP? Have you ever wished that Wicket was available in the PHP
 land?

 Picket to the rescue!

 Picket is a project that aims to bring Wicket's awesome features and
 philosophy to the PHP community. The project was started by YouSoft
 Consulting (Nasdaq: YSFT) and being used internally since 2006. Now that
 Picket 1.1 has been released, and is stable enough for prime time, YouSoft
 opened the source code for public consumption with multi-licenses, namely,
 GPL v2, GPL v3, BSD, Apache, MPL and CDDL.

 For more information, visit its official website at
 http://4thmonth.yousoft.com/1stday/picket

 Have a happy day!


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



Re: NameService usage in wicket ?

2009-04-01 Thread FaRHaN
Sorry, it was NameService instead of NameSpace.
I want to use NameService for finding (extracting) values stored in an array. 

For Example, i want to use:
List names = new ArrayList();
names.add(Abe);
names.add(Abel);
String prefix = request.getParameter(name);
NameService service = NameService.getInstance(names);
List matching = service.findNames(prefix);

but getInstance() method of NameService not being eccessible in java class of 
wicket appplication.

Thanks,
FaRHaN.

--- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

From: nino martinez wael nino.martinez.w...@gmail.com
Subject: Re: NameSpace usage in wicket ?
To: users@wicket.apache.org
Date: Wednesday, April 1, 2009, 8:34 AM

Can you be more descriptive?

Are you thinking of Javascripts name spaces? You can look at the
openlayers integration on wicketstuff if so.

2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Is there any way to use NameSpace in wicket applicatin ?
 Please reply...

 Regards,
 FaRHaN BaJWa.





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




  

Re: clean way to add visibility constraints

2009-04-01 Thread Martijn Dashorst
one is static, the other dynamic.

You can make setVisible more dynamic by doing it in page.onBeforeRender

Martijn

On Wed, Apr 1, 2009 at 11:42 AM, Boydens Joeri (OZ) joeri.boyd...@oz.be wrote:

 Is there prefered way between the methods below?

 if (condition) {
        component.setVisible(false);
 }

 OR

 component {
 @Override
 public boolean isVisible() {
        return !condition;
 }

 If I use the above I can group my components and set them with the
 setVisible method depending on the condition, with the last method I
 have to add the the condition to every component.


 -Oorspronkelijk bericht-
 Van: Daan van Etten [mailto:d...@stuq.nl]
 Verzonden: woensdag 1 april 2009 11:20
 Aan: users@wicket.apache.org
 Onderwerp: Re: clean way to add visibility constraints

 You could write a method that sets the visibility on the relevant
 components.
 The Form components have to be visible to that method though (or you
 have to use a visitor).

 Regards,

 Daan

 Op 1 apr 2009, om 08:32 heeft Boydens Joeri (OZ) het volgende
 geschreven:

 Hi,



 I have this page where I have different components that need to be
 show
 or hidden, depending on the value of some model fields.  I implemented
 this by overriding the isVisible method of the components.  Now I was
 wondering if there is a less verbose way of handling this? (I can't
 group the components because it's not possible in the html markup).



 item.add(new TextField(value) {

                                         public boolean isVisible() {


 OnlineBookingParametersArticle     article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

                                               return
 article.getArticle().getNumberInStock()  0;

                                         }

                                   });



                                   item.add(new
 Label(article.numberOfArticlesLabel, Geen beschikbaar) {

                                         public boolean isVisible() {


 OnlineBookingParametersArticle     article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

                                               return
 article.getArticle().getNumberInStock() = 0;

                                         }

                                   });



                                   item.add(new
 Label(article.description));



                                   item.add(new
 WebMarkupContainer(participantInfo) {

                                                     public boolean
 isVisible() {


 OnlineBookingParametersArticle       article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

                                                           return
 article.getArticle().getNumberInStock()  0;

                                                     }

                                               }

                                               .add(new
 Label(article.numberOfRequiredParticipants))

                                               .add(new
 Label(article.maximumNumberOfParticipants)));





                                   item.add(new Link(contactLink){

                                         @Override

                                         public void onClick(){

                                               //TODO : go to correct
 page

                                         }

                                         @Override

                                         public boolean isVisible() {


 OnlineBookingParametersArticle     article =
 (OnlineBookingParametersArticle) getParent().getModel().getObject();

                                               return
 article.getArticle().getNumberInStock() = 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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: NameService usage in wicket ?

2009-04-01 Thread FaRHaN
when i access NameService methods such as NameService service = 
NameService.(dot) the intellisense only shows class rather than all methods of 
NameService. Is there anything missing ?
Thanx again...

--- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

From: nino martinez wael nino.martinez.w...@gmail.com
Subject: Re: NameService usage in wicket ?
To: users@wicket.apache.org
Date: Wednesday, April 1, 2009, 9:27 AM

This should not be a problem.. Im not sure why you get that problem?
Why is it not accessible from you wicket application, it's not
different from any other app. Now there might be something with an
application context.

2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Sorry, it was NameService instead of NameSpace.
 I want to use NameService for finding (extracting) values stored in an array.

 For Example, i want to use:
 List names = new ArrayList();
 names.add(Abe);
 names.add(Abel);
 String prefix = request.getParameter(name);
 NameService service = NameService.getInstance(names);
 List matching = service.findNames(prefix);

 but getInstance() method of NameService not being eccessible in java class of 
 wicket appplication.

 Thanks,
 FaRHaN.

 --- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

 From: nino martinez wael nino.martinez.w...@gmail.com
 Subject: Re: NameSpace usage in wicket ?
 To: users@wicket.apache.org
 Date: Wednesday, April 1, 2009, 8:34 AM

 Can you be more descriptive?

 Are you thinking of Javascripts name spaces? You can look at the
 openlayers integration on wicketstuff if so.

 2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Is there any way to use NameSpace in wicket applicatin ?
 Please reply...

 Regards,
 FaRHaN BaJWa.





 -
 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 and (or) restlet

2009-04-01 Thread Erik van Oosten

There are several mails with opinions regarding this subject.

One way to actually use Restlet and Wicket together is described on 
http://cwiki.apache.org/WICKET/springbean-outside-wicket.html.


Regards,
   Erik.


Objelean Alex wrote:

I'm curious what are the community thoughts about restlet. Have you used
this framework? Can wicket  restlet work together? Have you had any
experience with it?

Thank you!

  


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


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



Application IConverterLocator when using Hibernate friends

2009-04-01 Thread Steve Flasby

Chaps,
need a hint please.

I have my own IConverterLocator which provides standard display of
things like Money, Percentage  other domain types we have invented.

All is good.

Today I enhanced it to handle our Country type. This is an @Entity.
To my surprise the rendering didn't change. It seems I am getting
a wrapped class back from Hibernate (CGLIB artifact) rather than the
real type. (I guess I should have known this already).

The IConverterLocator doesn't know about this class, and can't as it
is dynamically created. Can anyone suggest a way of handling this?


Cheers - Steve

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



Re: need Help on [AutoCompleteTextField]

2009-04-01 Thread nino martinez wael
I dont have any more explicit examples laying around.. Just do it like
you would in any other java application.. And it certainly are
possible...

2009/4/1 FaRHaN farhan.ba...@ymail.com:
 I have tried examples exist in wicket library but these examples are used to 
 display only built-in (countries  languages) values. But i want to display 
 my own values stored in an array or in DBIs there any ?

 --- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

 From: nino martinez wael nino.martinez.w...@gmail.com
 Subject: Re: need Help on [AutoCompleteTextField]
 To: users@wicket.apache.org
 Date: Wednesday, April 1, 2009, 9:05 AM

 Look at the examples on wicket library, if you need more then you
 could try the object autocomplete from wicketstuff..

 2009/3/31 FaRHaN farhan.ba...@ymail.com:
 Is there any way to display User Defined values in AutoCompleteTextField 
 (ajax behavior) by using array of values.
 Please refer me some examples and links to demonstrate such type of 
 behaviour.

 Thanks,
 FaRHaN





 -
 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: NameService usage in wicket ?

2009-04-01 Thread nino martinez wael
This should not be a problem.. Im not sure why you get that problem?
Why is it not accessible from you wicket application, it's not
different from any other app. Now there might be something with an
application context.

2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Sorry, it was NameService instead of NameSpace.
 I want to use NameService for finding (extracting) values stored in an array.

 For Example, i want to use:
 List names = new ArrayList();
 names.add(Abe);
 names.add(Abel);
 String prefix = request.getParameter(name);
 NameService service = NameService.getInstance(names);
 List matching = service.findNames(prefix);

 but getInstance() method of NameService not being eccessible in java class of 
 wicket appplication.

 Thanks,
 FaRHaN.

 --- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

 From: nino martinez wael nino.martinez.w...@gmail.com
 Subject: Re: NameSpace usage in wicket ?
 To: users@wicket.apache.org
 Date: Wednesday, April 1, 2009, 8:34 AM

 Can you be more descriptive?

 Are you thinking of Javascripts name spaces? You can look at the
 openlayers integration on wicketstuff if so.

 2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Is there any way to use NameSpace in wicket applicatin ?
 Please reply...

 Regards,
 FaRHaN BaJWa.





 -
 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 and (or) restlet

2009-04-01 Thread Alexandru Objelean

Actually there are very few informations regarding this subject. Recently I
have found a quote at restlet page (http://www.restlet.org/about/quotes) :
I was working on a small project using Wicket but since switching to
Restlet I will not be going back. Restlet makes java development productive,
fun, and places no real framework burden on a developer.

I didn't have an opportunity to work with restlet, that is why I'm asking
the community about it. 

Alex



Erik van Oosten wrote:
 
 There are several mails with opinions regarding this subject.
 
 One way to actually use Restlet and Wicket together is described on 
 http://cwiki.apache.org/WICKET/springbean-outside-wicket.html.
 
 Regards,
 Erik.
 
 
 Objelean Alex wrote:
 I'm curious what are the community thoughts about restlet. Have you used
 this framework? Can wicket  restlet work together? Have you had any
 experience with it?

 Thank you!

   
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 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://www.nabble.com/Wicket-and-%28or%29-restlet-tp22822162p22824090.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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Will Hoover
+1 

-Original Message-
From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On
Behalf Of Martijn Dashorst
Sent: Wednesday, April 01, 2009 3:03 AM
To: d...@wicket.apache.org; users@wicket.apache.org
Subject: VOTE: Rename Apache Wicket to Apache WicketFX

The Wicket PMC has discussed the following action. Because I think it is
prudent that the Wicket community keeps evolving with the state of Java,
I've created a board resolution to rename Wicket to WicketFX (thanks Igor
for the suggestion!)

WHEREAS, the Board of Directors deems it to be in the best interests of the
Foundation and the Apache Wicket community to rename Apache Wicket to Apache
WicketFX to get presentation slots at the JavaOne conference, and make it
easier to obtain JSR status.

NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the
Apache Wicket project, be and hereby is renamed to Apache WicketFX; and
be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit or propose new presentations and tutorials to the JavaOne Conference
concerning Wicket and FX; and be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit the Apache WicketFX project to the JCP and obtain JSR status; and be
it further

RESOLVED, that the original Apache Wicket PMC be and hereby is dissolved of
its responsibilities for this day, April 1st, 2009.

[ ] +1, accept above resolution
[ ] -1, don't accept above resolution, because ...

This vote runs for just today, otherwise we won't be able to get it accepted
by the board this month.

Martijn

-
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: NameService usage in wicket ?

2009-04-01 Thread nino martinez wael
Thats not a problem with wicket I think?

Im not sure how you've implemented  the nameservice (usually you do
that with static methods), but I'd use IOC instead, it avoids some of
the anti patterns you get into when doing the servicelocator pattern
or the factory pattern..

regards Nino

2009/4/1 FaRHaN farhan.ba...@ymail.com:
 when i access NameService methods such as NameService service = 
 NameService.(dot) the intellisense only shows class rather than all methods 
 of NameService. Is there anything missing ?
 Thanx again...

 --- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

 From: nino martinez wael nino.martinez.w...@gmail.com
 Subject: Re: NameService usage in wicket ?
 To: users@wicket.apache.org
 Date: Wednesday, April 1, 2009, 9:27 AM

 This should not be a problem.. Im not sure why you get that problem?
 Why is it not accessible from you wicket application, it's not
 different from any other app. Now there might be something with an
 application context.

 2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Sorry, it was NameService instead of NameSpace.
 I want to use NameService for finding (extracting) values stored in an array.

 For Example, i want to use:
 List names = new ArrayList();
 names.add(Abe);
 names.add(Abel);
 String prefix = request.getParameter(name);
 NameService service = NameService.getInstance(names);
 List matching = service.findNames(prefix);

 but getInstance() method of NameService not being eccessible in java class 
 of wicket appplication.

 Thanks,
 FaRHaN.

 --- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote:

 From: nino martinez wael nino.martinez.w...@gmail.com
 Subject: Re: NameSpace usage in wicket ?
 To: users@wicket.apache.org
 Date: Wednesday, April 1, 2009, 8:34 AM

 Can you be more descriptive?

 Are you thinking of Javascripts name spaces? You can look at the
 openlayers integration on wicketstuff if so.

 2009/4/1 FaRHaN farhan.ba...@ymail.com:
 Is there any way to use NameSpace in wicket applicatin ?
 Please reply...

 Regards,
 FaRHaN BaJWa.





 -
 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



FileUpload: mark/reset not supported

2009-04-01 Thread Andreas Kaluza
Hi @ all!

 

I have a FileUpload which is not working. My Feedback component recognized:
The file cannot be saved! Cause: mark/reset not supported

What I'm doing is: I pass the input stream from the FileUpload to a method,
which uses it for XML-parsing. With some files it's working with other not.
All files are valid!

 

Is this a FileUpload error, or a parsing error? 

 

Greetings

 

 

 



Re: [announce] WASMP , Wicket AsSeMbler Project

2009-04-01 Thread Johan Compagner
Will WASP and SWARM run on WASMP?

On Wed, Apr 1, 2009 at 10:32, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Hi Guys

 Im happy to announce the new Shiny Wicket Assembler Project on behalf
 of the WASMP team. Do you need speed? Then WASMP is for you, in it's
 first release it will be able to run on a 386 system and are written
 for DOS 3. Initial tests (on the pre alpha release) states that this
 out runs a comparative Wicket Java system on a brand new 4 GHZ  4 core
 intel system.

 We are using native classes (Assembler thru C) to provide these
 performance boots.

 Stay tuned for more information!

 -The WASMP Team

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




Re: [announce] WASMP , Wicket AsSeMbler Project

2009-04-01 Thread nino martinez wael
In theory yes, but we would require Wicket to abstract all classes via
interfaces and make WASP and SWARM to rely on those instead.. Since
the byte code signature are not identical for the code..

2009/4/1 Johan Compagner jcompag...@gmail.com:
 Will WASP and SWARM run on WASMP?

 On Wed, Apr 1, 2009 at 10:32, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

 Hi Guys

 Im happy to announce the new Shiny Wicket Assembler Project on behalf
 of the WASMP team. Do you need speed? Then WASMP is for you, in it's
 first release it will be able to run on a 386 system and are written
 for DOS 3. Initial tests (on the pre alpha release) states that this
 out runs a comparative Wicket Java system on a brand new 4 GHZ  4 core
 intel system.

 We are using native classes (Assembler thru C) to provide these
 performance boots.

 Stay tuned for more information!

 -The WASMP Team

 -
 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



Employ JQuery Accordion in Wicket

2009-04-01 Thread HHB
Hey,
My team lead is insisting on employing JQuery Accordion 
in our Wicket application.
As you know that the Accordion consists of pairs 
of headers and contents panels.
The requirement is to hide/show some pairs 
depending on the user's permission.
Is is possible to do so? if yes, would you 
please give me some clues how to
implement it?
Thanks for help, this is my first Wicket project 
and my team lead is putting the
heavy weight on my shoulders.



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



Re: Should a form submit when sub-form has error's?

2009-04-01 Thread Thijs

If you are referring to
org.apache.wicket.markup.html.form.validation.TestHomePage
Those never run at least not when I call mvn clean package
I had to change it to 
org.apache.wicket.markup.html.form.validation.HomePageTest to get it to 
work. (Which in my view could indicate that there are more tests not 
running)


still checking the actual problem.

Thijs

On 31-3-2009 19:51, Igor Vaynberg wrote:

not it shouldnt. there should already be unit tests that check for
this, can you please check those and provide a patch if possible.

-igor

On Tue, Mar 31, 2009 at 4:34 AM, Thijsvonk.th...@gmail.com  wrote:
   

Hi,

Should a Form submit when a subform has error's?

I have a main-form where I add a panel that contains another form.
This sub-form contains a formvalidator that gives the error.
However the main-form is submitted, but the feedbackpanel does show the
error message set in the sub-form's validator.

Is this expected behavior using 1.4-snapshot?

Because in wicket 1.3.x this does work and the mainform is not submitted.
(I can provide a testcase if needed)


Thijs

-
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

   




How to switch Panels with a Tree?

2009-04-01 Thread Christian Helmbold

Hello,

I want to switch panels with a tree (like switching panels within a 
TabbedPanel), but get an error when clicking more than once on a node.

It should look like this:

+-+
|   (TreePanel)   |
| +-+ |
| |(Tree)   | |
  | * root  |   +---+ |
| | ** Folder A |   |(ContentPanel) | |
| | *** [File1] |   | File1 | |
| | *** File2   |   |   | |
| +-+   +---+ |
+-+

The Panel according to the selected node (File1) is displayed.

The top-level TreePanel contains the Tree and the and the ContentPanel.

Java code of TreePanel:

public class TreePanel extends Panel{

private Tree tree;
private NodePanel selectedPanel;


public TreePanel(String id, NodePanel rootNode)
{
super(id);
DefaultTreeModel treeModel = new 
DefaultTreeModel(rootNode.getAsTreeNode());
selectedPanel = rootNode;

add(selectedPanel);
tree = new Tree(tree, treeModel)
{
@Override
protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
Object userObject = treeNode.getUserObject();
if (userObject instanceof List)
return subtree;
else
{
NodePanel panel = (NodePanel)userObject;
return panel.getTitle();
}
}

@Override
protected void onNodeLinkClicked(AjaxRequestTarget target,
 javax.swing.tree.TreeNode node)
{
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
NodePanel currentPanel = (NodePanel)treeNode.getUserObject();
selectedPanel.replaceWith(currentPanel);
}
};

add(tree);
}

/**
 * Get a reference to the tree to configure or query it.
 * @return
 */
public Tree getTree()
{
return tree;
}

}


In the Page class that uses my TreePanel I add some NodePanls to the tree. When 
I open the Page in the browser, the root panel is displayed as expected. When I 
click on a node the first time everything is fine and the panel gets replaced, 
but when I click on another link I get:

WicketMessage: Method onLinkClicked of interface 
org.apache.wicket.markup.html.link.ILinkListener targeted at component 
[MarkupContainer [Component id = nodeLink]] threw an exception

Root cause:

java.lang.IllegalStateException: This method can only be called on a component 
that has already been added to its parent.
at org.apache.wicket.Component.replaceWith(Component.java:2717)
at 
com.helmbold.wicket.components.tree.TreePanel$1.onNodeLinkClicked(TreePanel.java:53)
...

What's wrong with my code?

Regards
Christian



PS: 

For completeness the code of NodePanel (ContentPanel in the example extends 
NodePanel):

public abstract class NodePanel extends Panel{

private DefaultMutableTreeNode treeNode = new DefaultMutableTreeNode(this);


/**
 * Constructs a NodePanel with the given id.
 * @param id wicket:id
 */
public NodePanel(String id)
{
super(id);
}


/**
 * Wraps this object in a DefaultMutableTreeNode.
 * @return A DefaultMutableTreeNode object which returns this object when
 * DefaultMutableTreeNode#getUserObject() is invoked.
 */
public DefaultMutableTreeNode getAsTreeNode()
{
return treeNode;
}


/**
 * Add a child in the tree hierarchy - not a nested panel this a panel!
 * @param child
 */
public void addChild(NodePanel child)
{
treeNode.add(child.getAsTreeNode());
}


/**
 * @return Title of the Panel that will be displayed as node link in the 
tree.
 */
public abstract String getTitle();

}







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



Modify class : org.apache.wicket.spring.SpringWebApplicationFactory (possible) ?

2009-04-01 Thread cmoulliard

Hi,

Is it possible to modify the following class :
org.apache.wicket.spring.SpringWebApplicationFactory
in order to retrieve the class org.springframework.osgi.BundleContext where
info about class loading are. This is required when Wicket is deployed on
OSGI server

Regards,

Charles Moulliard
SOA Architect

cmoulliard wrote:
 
  Hi,
 
 When I start my Apache Wicket bundle using Apache Service Mix (based on
 Felix and Spring DM), I receive the following error :
  Quote:
   16:35:58,415 | DEBUG | localShell | jetty |
 .service.internal.util.JCLLogger 85 | started
 org.ops4j.pax.web.service.internal.model.ServletMo del-66
 16:35:58,415 | INFO | localShell | HttpServiceProxy |
 ervice.internal.HttpServiceProxy 129 | Registering event listener
 [org.springframework.web.context.ContextLoaderListe n...@196dc61]
 16:35:58,415 | DEBUG | localShell | HttpServiceStarted |
 vice.internal.HttpServiceStarted 324 | Using context
 [ContextModel{id=org.ops4j.pax.web.service.internal
 .model.ContextModel-64,name=reportincident,httpContext=org.ops4j.pax.w
 eb.extender.war.internal.webapphttpcont...@fe404a,
 contextParams={webapp.context=reportincident,
 contextClass=org.springframework.osgi.web.context.
 support.OsgiBundleXmlWebApplicationContext}}]
 16:35:58,415 | INFO | localShell | /reportincident |
 .service.internal.util.JCLLogger 102 | Initializing Spring root
 WebApplicationContext
 16:35:58,415 | INFO | localShell | ContextLoader |
 mework.web.context.ContextLoader 189 | Root WebApplicationContext:
 initialization started
 16:35:58,415 | ERROR | localShell | ContextLoader |
 mework.web.context.ContextLoader 215 | Context initialization failed
 java.lang.IllegalArgumentException: bundle context should be set before
 refreshing the application context
 at org.springframework.util.Assert.notNull(Assert.jav a:112)
 at org.springframework.osgi.context.support.AbstractD
 elegatedExecutionApplicationContext.normalRefresh(
 AbstractDelegatedExecutionApplicationContext.java: 179)
 at org.springframework.osgi.context.support.AbstractD
 elegatedExecutionApplicationContext$NoDependencies
 WaitRefreshExecutor.refresh(AbstractDelegatedExecu
 tionApplicationContext.java:89)
 at org.springframework.osgi.context.support.AbstractD
 elegatedExecutionApplicationContext.refresh(Abstra
 ctDelegatedExecutionApplicationContext.java:175)
 at org.springframework.web.context.ContextLoader.crea
 teWebApplicationContext(ContextLoader.java:255)
 at org.springframework.web.context.ContextLoader.init
 WebApplicationContext(ContextLoader.java:199)
 at org.springframework.web.context.ContextLoaderListe
 ner.contextInitialized(ContextLoaderListener.java: 45)
 Here is the config of my web.xml file :
 
  Quote:
   ?xml version=1.0 encoding=ISO-8859-1?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
 
 display-namereportincident.web/display-name
 
 context-param
 param-namecontextClass/param-name
 param-valueorg.springframework.osgi.web.context.support
 .OsgiBundleXmlWebApplicationContext/param-value
 /context-param
 
 listener
 listener-classorg.springframework.web.context.ContextLoade
 rListener/listener-class
 /listener
 
 filter
 filter-namewicket.reportincident.web/filter-name
 filter-classorg.apache.wicket.protocol.http.WicketFilter /filter-class
 init-param
 param-nameapplicationClassName/param-name
 param-valueorg.apache.camel.example.WicketApplication/param-value
 /init-param
 /filter
 
 filter-mapping
 filter-namewicket.reportincident.web/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 
 
 /web-app
 Any idea to solve this problem is welcome ?
 
 Regards,
 
 Charles
  __
 SOA Architect
 
 
 -
 Charles Moulliard
 SOA Architect
 
 My Blog : http://cmoulliard.blogspot.com/  
 


-
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/java.lang.IllegalArgumentException%3A-bundle-context-should-be-set--before-refreshing-the-application-context-tp22807226p22825852.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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Ames, Tim
Please excuse my EXTREME ignorance, but what exactly does or will the FX mean 
from a Wicket standpoint?  What does it do or allow a developer to do that 
would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

 Or... WTF! (Wicket The Framework)

+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

EMAIL CONFIDENTIALITY NOTICE 

This Email message, and any attachments, may contain confidential 
patient health information that is legally protected. This information 
is intended only for the use of the individual or entity named above. 
The authorized recipient of this information is prohibited from disclosing 
this information to any other party unless required to do so by law 
or regulation and is required to destroy the information after its stated 
need has been fulfilled. If you are not the intended recipient, you are 
hereby notified that any disclosure, copying, distribution, or action 
taken in reliance on the contents of this message is strictly prohibited. 

If you have received this information in error, please notify 
the sender immediately by replying to this message and delete the 
message from your system.


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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Johan Compagner
Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote:

 Please excuse my EXTREME ignorance, but what exactly does or will the FX
 mean from a Wicket standpoint?  What does it do or allow a developer to do
 that would designate it as FX?



 -Original Message-
 From: David Leangen [mailto:wic...@leangen.net]
 Sent: Wednesday, April 01, 2009 4:08 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

  Or... WTF! (Wicket The Framework)

 +1



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

 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

 EMAIL CONFIDENTIALITY NOTICE

 This Email message, and any attachments, may contain confidential
 patient health information that is legally protected. This information
 is intended only for the use of the individual or entity named above.
 The authorized recipient of this information is prohibited from disclosing
 this information to any other party unless required to do so by law
 or regulation and is required to destroy the information after its stated
 need has been fulfilled. If you are not the intended recipient, you are
 hereby notified that any disclosure, copying, distribution, or action
 taken in reliance on the contents of this message is strictly prohibited.

 If you have received this information in error, please notify
 the sender immediately by replying to this message and delete the
 message from your system.


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




RE: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Chenini, Mohamed
Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com] 
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote:

 Please excuse my EXTREME ignorance, but what exactly does or will the
FX
 mean from a Wicket standpoint?  What does it do or allow a developer
to do
 that would designate it as FX?



 -Original Message-
 From: David Leangen [mailto:wic...@leangen.net]
 Sent: Wednesday, April 01, 2009 4:08 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

  Or... WTF! (Wicket The Framework)

 +1



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

 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _

 EMAIL CONFIDENTIALITY NOTICE

 This Email message, and any attachments, may contain confidential
 patient health information that is legally protected. This information
 is intended only for the use of the individual or entity named above.
 The authorized recipient of this information is prohibited from
disclosing
 this information to any other party unless required to do so by law
 or regulation and is required to destroy the information after its
stated
 need has been fulfilled. If you are not the intended recipient, you
are
 hereby notified that any disclosure, copying, distribution, or action
 taken in reliance on the contents of this message is strictly
prohibited.

 If you have received this information in error, please notify
 the sender immediately by replying to this message and delete the
 message from your system.


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



This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.


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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Thies Edeling

+1 but only because it's april fool's day :)

Martijn Dashorst wrote:

The Wicket PMC has discussed the following action. Because I think it
is prudent that the Wicket community keeps evolving with the state of
Java, I've created a board resolution to rename Wicket to WicketFX
(thanks Igor for the suggestion!)

WHEREAS, the Board of Directors deems it to be in the best interests
of the Foundation and the Apache Wicket community to rename Apache
Wicket to Apache WicketFX to get presentation slots at the JavaOne
conference, and make it easier to obtain JSR status.

NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the
Apache Wicket project, be and hereby is renamed to Apache
WicketFX; and be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit or propose new presentations and tutorials to the JavaOne
Conference concerning Wicket and FX; and be it further

RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to
submit the Apache WicketFX project to the JCP and obtain JSR status;
and be it further

RESOLVED, that the original Apache Wicket PMC be and hereby is
dissolved of its responsibilities for this day, April 1st, 2009.

[ ] +1, accept above resolution
[ ] -1, don't accept above resolution, because ...

This vote runs for just today, otherwise we won't be able to get it
accepted by the board this month.

Martijn
  



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



Re: urlFor ResourceStreamRequestTarget returning null

2009-04-01 Thread francisco treacy
thanks maarten, but i still can't get the url for the resource in the
renderHead method.

in the open flash chart example, there are two types of urls built:
 - resourcereferences (easy peasy to get the url)
 - resource, via RequestCycle.get().urlFor(OpenFlashChart.this,
IResourceListener.INTERFACE);

remember, my component is:
public abstract class SWFComponent extends WebMarkupContainer
implements IResourceListener, IHeaderContributor

in my case i need the url to a *resource*, so i tried:

a) RequestCycle.get().urlFor(SWFComponent.this,
IResourceListener.INTERFACE); or urlFor(IResourceListener.INTERFACE);
in the onBeforeRender method
 = it outputs the url to a *bookmarkable page* / not my resource:
?wicket:bookmarkablePage=:app.wicket.project.DocumentPagewicket:interface=:2:docsPanel:viewer:flash::IResourceListener::

b) RequestCycle.get().urlFor(SWFComponent.this,
IResourceListener.INTERFACE); in the renderHead method
 = it outputs the url to another different *bookmarkable page* /
not my resource:
?wicket:bookmarkablePage=:app.wicket.document.DocumentDetailPagewicket:interface=:10:detailPanel:viewer:flash::IResourceListener::

c) urlFor(IResourceListener.INTERFACE); in the renderHead method
 = *sometimes* it works.

this means *sometimes* it outputs
?wicket:interface=:3:docsPanel:viewer:flash::IResourceListener:: 
(this is correct - it works) , but some other times it outputs 
?wicket:bookmarkablePage=:app.wicket.document.DocumentDetailPagewicket:interface=:10:detailPanel:viewer:flash::IResourceListener::
 (this is not correct - it doesn't work).

this mysterious behaviour hasn't occured just once, it randomly
happened after compilation several times.

is this a bug or why does it behave like that? am i misusing the api?
should the resource, markup container and/or header contributor live
in different classes? suggestions?

thanks again

francisco


2009/3/31 Maarten Bosteels mbosteels@gmail.com:
 Have you seen this page [1], it also features an SWFObject.

 http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html

 regards,
 Maarten

 On Tue, Mar 31, 2009 at 3:36 PM, francisco treacy
 francisco.tre...@gmail.com wrote:
 hi all,

 i can't seem to find the way to get an url for a given RequestTarget.
 i'm using wicket 1.4-rc1.

 basically i have an SWFComponent : http://paste.pocoo.org/show/110435/

 my problem is in line 35, when i call urlFor(target) to the renderHead
 method. the target is of type ResourceStreamRequestTarget and when i
 dig into the sources for the urlFor call, i end up in
 WebRequestCodingStrategy#encode:

 // fall through for non-default request targets
                                url = doEncode(requestCycle, requestTarget);

 doEncode javadoc reads:

         * In case you are using custom targets that are not part of the
 default target hierarchy, you
         * need to override this method, which will be called after the
 defaults have been tried. When
         * this doesn't provide a url either (returns null), an exception
 will be thrown by the encode
         * method saying that encoding could not be done.

 where am i supposed to override this method?

 additionally, wicket doesn't seem to throw an exception as stated - it
 silently returns the null value.

 any ideas on how to get the url, or improvements to the code i pasted
 to make it work?

 thank you,

 francisco

 ps: note that the ResourceStreamRequestTarget works fine. for instance
 if i call getRequestCycle().setRequestTarget(target); on renderHead,
 the http response streams the swf file.

 -
 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: Application IConverterLocator when using Hibernate friends

2009-04-01 Thread francisco treacy
something like this might be of help?

if (entity instanceof HibernateProxy) {
entity = (T) ((HibernateProxy)
entity).getHibernateLazyInitializer().getImplementation();
}

francisco



2009/4/1 Steve Flasby st...@flasby.org:
 Chaps,
        need a hint please.

 I have my own IConverterLocator which provides standard display of
 things like Money, Percentage  other domain types we have invented.

 All is good.

 Today I enhanced it to handle our Country type. This is an @Entity.
 To my surprise the rendering didn't change. It seems I am getting
 a wrapped class back from Hibernate (CGLIB artifact) rather than the
 real type. (I guess I should have known this already).

 The IConverterLocator doesn't know about this class, and can't as it
 is dynamically created. Can anyone suggest a way of handling this?


 Cheers - Steve

 -
 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



Extending wicket for non webapp implementations

2009-04-01 Thread Brill Pappin

I'd love to use wicket as a more general template library.
My immediate problem is that I need to build email template library.

Has anyone done an extension that would allow it to process non HTML  
files?


- Brill Pappin

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



AW: Extending wicket for non webapp implementations

2009-04-01 Thread Christian Helmbold

Why don't you use a template engine like FreeMarker? I think Wickets component 
model doesn't work well to create E-Mails.

Christian



  


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



Constructor not being called when Back button clicked

2009-04-01 Thread Steve Swinsburg

Hi all,

I have a Page and on that page a Form which submits via Ajax.

In this page's constructor I added a debug statement that prints a  
message when the constructor is called (for testing). I then submit  
the form, click away, then click Back and in Safari 4 for Mac, the  
page is reconstructed and I see my message again (good). Everything  
works ok (also good).


However, in Firefox for Mac (and for PC and all IE flavours), clicking  
Back has the original search text in the box, and the page is NOT  
reconstructed. Clicking search again throws NPE's because certain  
elements are not initialised properly.


Is there some way to force the page to be reconstructed? Is this some  
caching issue that is causing it to be not reconstructed and hence  
just reused?



thanks,
Steve










smime.p7s
Description: S/MIME cryptographic signature


Re: Extending wicket for non webapp implementations

2009-04-01 Thread James Carman
On Wed, Apr 1, 2009 at 9:57 AM, Brill Pappin br...@pappin.ca wrote:
 I'd love to use wicket as a more general template library.
 My immediate problem is that I need to build email template library.

 Has anyone done an extension that would allow it to process non HTML files?

This question has been asked multiple times in the past.  Check
Nabble's archives for the discussions.  Folks have done it before and
yes, it works.  I had the same objections as Christian before, but
folks insisted they still wanted it.

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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Daan van Etten

FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework  
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
 - WicketFX, Spri..
Wow! You are so cool!

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven:


Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org  
wrote:



Please excuse my EXTREME ignorance, but what exactly does or will the

FX

mean from a Wicket standpoint?  What does it do or allow a developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This  
information

is intended only for the use of the individual or entity named above.
The authorized recipient of this information is prohibited from

disclosing

this information to any other party unless required to do so by law
or regulation and is required to destroy the information after its

stated

need has been fulfilled. If you are not the intended recipient, you

are

hereby notified that any disclosure, copying, distribution, or action
taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.


-
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: Employ JQuery Accordion in Wicket

2009-04-01 Thread pixotec

perhaps this will work: it's a dojo accordion pane for wicket 1.3

http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.accordioncontainer.AccordionContainerSample

try it and respond if it is working.
-- 
View this message in context: 
http://www.nabble.com/Employ-JQuery-Accordion-in-Wicket-tp22825442p22827578.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: AW: Extending wicket for non webapp implementations

2009-04-01 Thread Brill Pappin

Yah, I'm digging in the source right now.

A basic email is one thing, but I was really interested in the nice  
clean 1:1 relationship between resource and code along with the nice  
basic components like list etc.
All you'd really need to do is extend page and create a new type,  
however being what it is, its very much tied to the servlet container  
and its session, which is only partly useful in the same of an  
EmailPage.


After a quick check, I'm thinking that it's not the best solution  
because of its dependency on the servlet spec... but still I dream.


- Brill



On 1-Apr-09, at 10:09 AM, Christian Helmbold wrote:



Why don't you use a template engine like FreeMarker? I think Wickets  
component model doesn't work well to create E-Mails.


Christian






-
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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Ryan Gravener
I'm still waiting on the scala implementation that was talked about around
this time last year.

2009/4/1 Daan van Etten d...@stuq.nl

 FX sounds just way cool.

 WicketFX. Where function meets form. Web development in style.

 Say for yourself, would you rather want to work with a framework called
 Wicket, or a framework called WicketFX?!

 Birthday parties and pub nights never are the same again:
 What technologies you use?
  - WicketFX, Spri..
 Wow! You are so cool!

 Regards,

 Daan

 Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven:


  Same concern here. Why the FX suffix?

 -Original Message-
 From: Johan Compagner [mailto:jcompag...@gmail.com]
 Sent: Wednesday, April 01, 2009 9:33 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

 Failed eXtremely



 On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote:

  Please excuse my EXTREME ignorance, but what exactly does or will the

 FX

 mean from a Wicket standpoint?  What does it do or allow a developer

 to do

 that would designate it as FX?



 -Original Message-
 From: David Leangen [mailto:wic...@leangen.net]
 Sent: Wednesday, April 01, 2009 4:08 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

  Or... WTF! (Wicket The Framework)


 +1



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

 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

 _ _ _


 EMAIL CONFIDENTIALITY NOTICE

 This Email message, and any attachments, may contain confidential
 patient health information that is legally protected. This information
 is intended only for the use of the individual or entity named above.
 The authorized recipient of this information is prohibited from

 disclosing

 this information to any other party unless required to do so by law
 or regulation and is required to destroy the information after its

 stated

 need has been fulfilled. If you are not the intended recipient, you

 are

 hereby notified that any disclosure, copying, distribution, or action
 taken in reliance on the contents of this message is strictly

 prohibited.


 If you have received this information in error, please notify
 the sender immediately by replying to this message and delete the
 message from your system.


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


  
 This email/fax message is for the sole use of the intended
 recipient(s) and may contain confidential and privileged information.
 Any unauthorized review, use, disclosure or distribution of this
 email/fax is prohibited. If you are not the intended recipient, please
 destroy all paper and electronic copies of the original message.


 -
 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




-- 
Ryan Gravener
http://ryangravener.com


Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Brill Pappin

~0/1

I don't care... but I can't say that I think FX makes it cool...
Sounds more like a bad 90's TV show to me :)

As long as it work, I don't care what its called... um... maybe I  
should qualify that... I don't care what its called as long as I won't  
be embarrassed when talking to my clients about it :)


- brill

On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:


FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework  
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
- WicketFX, Spri..
Wow! You are so cool!

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende  
geschreven:



Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org  
wrote:


Please excuse my EXTREME ignorance, but what exactly does or will  
the

FX

mean from a Wicket standpoint?  What does it do or allow a developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  
_ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This  
information
is intended only for the use of the individual or entity named  
above.

The authorized recipient of this information is prohibited from

disclosing

this information to any other party unless required to do so by law
or regulation and is required to destroy the information after its

stated

need has been fulfilled. If you are not the intended recipient, you

are
hereby notified that any disclosure, copying, distribution, or  
action

taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient,  
please

destroy all paper and electronic copies of the original message.


-
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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Roman Zechner



Daan van Etten wrote:

FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework 
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
 - WicketFX, Spri..
Wow! You are so cool!


Hahahaha!!! Oh glourious future, I await thee :-)))

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven:


Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote:


Please excuse my EXTREME ignorance, but what exactly does or will the

FX

mean from a Wicket standpoint?  What does it do or allow a developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This information
is intended only for the use of the individual or entity named above.
The authorized recipient of this information is prohibited from

disclosing

this information to any other party unless required to do so by law
or regulation and is required to destroy the information after its

stated

need has been fulfilled. If you are not the intended recipient, you

are

hereby notified that any disclosure, copying, distribution, or action
taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.


-
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: Constructor not being called when Back button clicked

2009-04-01 Thread Timm Helbig
 Is there some way to force the page to be reconstructed? 
Don't use Ajax, use the default Button insteand

Regards,
Timm

Am Mittwoch, 1. April 2009 16:11:07 schrieb Steve Swinsburg:
 Hi all,

 I have a Page and on that page a Form which submits via Ajax.

 In this page's constructor I added a debug statement that prints a
 message when the constructor is called (for testing). I then submit
 the form, click away, then click Back and in Safari 4 for Mac, the
 page is reconstructed and I see my message again (good). Everything
 works ok (also good).

 However, in Firefox for Mac (and for PC and all IE flavours), clicking
 Back has the original search text in the box, and the page is NOT
 reconstructed. Clicking search again throws NPE's because certain
 elements are not initialised properly.

 Is there some way to force the page to be reconstructed? Is this some
 caching issue that is causing it to be not reconstructed and hence
 just reused?


 thanks,
 Steve



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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Daan van Etten

To make it a bit less painful:
Look at the date.

:-)

Daan

Op 1 apr 2009, om 16:25 heeft Brill Pappin het volgende geschreven:


~0/1

I don't care... but I can't say that I think FX makes it cool...
Sounds more like a bad 90's TV show to me :)

As long as it work, I don't care what its called... um... maybe I  
should qualify that... I don't care what its called as long as I  
won't be embarrassed when talking to my clients about it :)


- brill

On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:


FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework  
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
- WicketFX, Spri..
Wow! You are so cool!

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende  
geschreven:



Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org  
wrote:


Please excuse my EXTREME ignorance, but what exactly does or will  
the

FX
mean from a Wicket standpoint?  What does it do or allow a  
developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  
_ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This  
information
is intended only for the use of the individual or entity named  
above.

The authorized recipient of this information is prohibited from

disclosing

this information to any other party unless required to do so by law
or regulation and is required to destroy the information after its

stated

need has been fulfilled. If you are not the intended recipient, you

are
hereby notified that any disclosure, copying, distribution, or  
action

taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged  
information.

Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient,  
please

destroy all paper and electronic copies of the original message.


-
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: DatePicker, TextField and AjaxEventBehavior

2009-04-01 Thread Michal Hybler

If someone have same problem I have solved that by using DateTextField
instead of DateField from wicket extension.
M.

Michal Hybler wrote:
 
 Hi,
 i have problem with using datepicker in wicket. I have TextField and
 DatePicker attached to it.
 
 final TextField dateFieldfrom = new TextField(validityFrom,
   new 
 Model(userClassification.getValidity().getValidFrom()));
   dateFieldfrom.add(new DatePicker());
   dateFieldfrom.add(new 
 DateFieldBehaviour(DateFieldBehaviour.FROM,
   userClassification));
 If value of textField is changed it invokes onEvent method. Its good.
 Now I need to get value from textField with selected date. I have tried
 getValue(), getModelObject() etc. Everything returns original value. New
 value is displayed correctly but i cant get it from textField.
 Any ideas?
 
 Thx for your help.
 With regards Michal
 

-- 
View this message in context: 
http://www.nabble.com/DatePicker%2C-TextField-and-AjaxEventBehavior-tp22738598p22828791.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: Constructor not being called when Back button clicked

2009-04-01 Thread Matej Knopp
You need to add Cache-control: no-store header to prevent firefox from
caching the page on back button. Look at

WebPage#setHeaders(WebResponse response)

-Matej

On Wed, Apr 1, 2009 at 5:15 PM, Timm Helbig timm.hel...@th-hosting.net wrote:
 Is there some way to force the page to be reconstructed?
 Don't use Ajax, use the default Button insteand

 Regards,
 Timm

 Am Mittwoch, 1. April 2009 16:11:07 schrieb Steve Swinsburg:
 Hi all,

 I have a Page and on that page a Form which submits via Ajax.

 In this page's constructor I added a debug statement that prints a
 message when the constructor is called (for testing). I then submit
 the form, click away, then click Back and in Safari 4 for Mac, the
 page is reconstructed and I see my message again (good). Everything
 works ok (also good).

 However, in Firefox for Mac (and for PC and all IE flavours), clicking
 Back has the original search text in the box, and the page is NOT
 reconstructed. Clicking search again throws NPE's because certain
 elements are not initialised properly.

 Is there some way to force the page to be reconstructed? Is this some
 caching issue that is causing it to be not reconstructed and hence
 just reused?


 thanks,
 Steve



 -
 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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Ames, Tim
Yeah, I picked up on that of course AFTER I asked the question.  This day was 
named just for ME!  I feel so privileged.

-Original Message-
From: Daan van Etten [mailto:d...@stuq.nl]
Sent: Wednesday, April 01, 2009 11:11 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

To make it a bit less painful:
Look at the date.

:-)

Daan

Op 1 apr 2009, om 16:25 heeft Brill Pappin het volgende geschreven:

 ~0/1

 I don't care... but I can't say that I think FX makes it cool...
 Sounds more like a bad 90's TV show to me :)

 As long as it work, I don't care what its called... um... maybe I
 should qualify that... I don't care what its called as long as I
 won't be embarrassed when talking to my clients about it :)

 - brill

 On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:

 FX sounds just way cool.

 WicketFX. Where function meets form. Web development in style.

 Say for yourself, would you rather want to work with a framework
 called Wicket, or a framework called WicketFX?!

 Birthday parties and pub nights never are the same again:
 What technologies you use?
 - WicketFX, Spri..
 Wow! You are so cool!

 Regards,

 Daan

 Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende
 geschreven:

 Same concern here. Why the FX suffix?

 -Original Message-
 From: Johan Compagner [mailto:jcompag...@gmail.com]
 Sent: Wednesday, April 01, 2009 9:33 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

 Failed eXtremely



 On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org
 wrote:

 Please excuse my EXTREME ignorance, but what exactly does or will
 the
 FX
 mean from a Wicket standpoint?  What does it do or allow a
 developer
 to do
 that would designate it as FX?



 -Original Message-
 From: David Leangen [mailto:wic...@leangen.net]
 Sent: Wednesday, April 01, 2009 4:08 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

 Or... WTF! (Wicket The Framework)

 +1



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

 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 _ _
 _ _ _

 EMAIL CONFIDENTIALITY NOTICE

 This Email message, and any attachments, may contain confidential
 patient health information that is legally protected. This
 information
 is intended only for the use of the individual or entity named
 above.
 The authorized recipient of this information is prohibited from
 disclosing
 this information to any other party unless required to do so by law
 or regulation and is required to destroy the information after its
 stated
 need has been fulfilled. If you are not the intended recipient, you
 are
 hereby notified that any disclosure, copying, distribution, or
 action
 taken in reliance on the contents of this message is strictly
 prohibited.

 If you have received this information in error, please notify
 the sender immediately by replying to this message and delete the
 message from your system.


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


 
 This email/fax message is for the sole use of the intended
 recipient(s) and may contain confidential and privileged
 information.
 Any unauthorized review, use, disclosure or distribution of this
 email/fax is prohibited. If you are not the intended recipient,
 please
 destroy all paper and electronic copies of the original message.


 -
 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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

EMAIL CONFIDENTIALITY NOTICE 

This Email message, and any attachments, may contain confidential 
patient health information that is legally protected. This information 
is intended only for the use of the individual or entity named above. 
The authorized recipient of this information is prohibited from disclosing 
this information to any other party unless required to do so by law 
or regulation and is 

where is AuthenticatedWebApplication

2009-04-01 Thread Khlystov Alexandr

|
Hello all!

I see sample at http://www.wicket-library.com/wicket-examples/authentication

but I don't see class 
org.apache.wicket.authentication.AuthenticatedWebApplication; in 
wicket-1.3.5.jar?


Where could I find it?

Thanks in advance.
|

--
Khlystov Alexandr


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



Re: where is AuthenticatedWebApplication

2009-04-01 Thread James Carman
wicket-auth-roles-1.3.5.jar

On Wed, Apr 1, 2009 at 11:51 AM, Khlystov Alexandr a...@ovservice.org wrote:
 |
 Hello all!

 I see sample at http://www.wicket-library.com/wicket-examples/authentication

 but I don't see class
 org.apache.wicket.authentication.AuthenticatedWebApplication; in
 wicket-1.3.5.jar?

 Where could I find it?

 Thanks in advance.
 |

 --
 Khlystov Alexandr


 -
 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: where is AuthenticatedWebApplication

2009-04-01 Thread Jeremy Thomerson
TRUNK:
./wicket-auth-roles/src/main/java/org/apache/wicket/authentication/AuthenticatedWebApplication.java

1.3-X:
./jdk-1.5/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/AuthenticatedWebApplication.java


--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 1, 2009 at 10:51 AM, Khlystov Alexandr a...@ovservice.org wrote:

 |
 Hello all!

 I see sample at
 http://www.wicket-library.com/wicket-examples/authentication

 but I don't see class
 org.apache.wicket.authentication.AuthenticatedWebApplication; in
 wicket-1.3.5.jar?

 Where could I find it?

 Thanks in advance.
 |

 --
 Khlystov Alexandr


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




Wicket-Extensions Installation

2009-04-01 Thread Tomáš Mihok
Hi there,

I would like to ask for a guide or a page explaining installation
process of wicket-extensions. I need especially TabbedPanel and
TabControl. Thx oin advance.


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



Re: where is AuthenticatedWebApplication

2009-04-01 Thread Khlystov Alexandr


James, and Jeremy from other letter - thanks!

James Carman пишет:

wicket-auth-roles-1.3.5.jar

On Wed, Apr 1, 2009 at 11:51 AM, Khlystov Alexandr a...@ovservice.org wrote:
  

|
Hello all!

I see sample at http://www.wicket-library.com/wicket-examples/authentication

but I don't see class
org.apache.wicket.authentication.AuthenticatedWebApplication; in
wicket-1.3.5.jar?

Where could I find it?

Thanks in advance.
|

--
Khlystov Alexandr


-
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



  



--
Khlystov Alexandr


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



Re: Constructor not being called when Back button clicked

2009-04-01 Thread Mathias P.W Nilsson

Like matej says

@Override
protected void setHeaders(WebResponse response) { 
   response.setHeader(Pragma, no-cache); 
  response.setHeader(Cache-Control, no-cache, max-age=0,
must-revalidate, no-store); 

   } 
-- 
View this message in context: 
http://www.nabble.com/Constructor-not-being-called-when-Back-button-clicked-tp22827398p22829529.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 and (or) restlet

2009-04-01 Thread Igor Vaynberg
restlet is for building services not uis, that quote makes absolutely no sense.

-igor

On Wed, Apr 1, 2009 at 4:01 AM, Alexandru Objelean
alex.objel...@gmail.com wrote:

 Actually there are very few informations regarding this subject. Recently I
 have found a quote at restlet page (http://www.restlet.org/about/quotes) :
 I was working on a small project using Wicket but since switching to
 Restlet I will not be going back. Restlet makes java development productive,
 fun, and places no real framework burden on a developer.

 I didn't have an opportunity to work with restlet, that is why I'm asking
 the community about it.

 Alex



 Erik van Oosten wrote:

 There are several mails with opinions regarding this subject.

 One way to actually use Restlet and Wicket together is described on
 http://cwiki.apache.org/WICKET/springbean-outside-wicket.html.

 Regards,
     Erik.


 Objelean Alex wrote:
 I'm curious what are the community thoughts about restlet. Have you used
 this framework? Can wicket  restlet work together? Have you had any
 experience with it?

 Thank you!



 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 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://www.nabble.com/Wicket-and-%28or%29-restlet-tp22822162p22824090.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: Modify class : org.apache.wicket.spring.SpringWebApplicationFactory (possible) ?

2009-04-01 Thread Igor Vaynberg
you can quiet easily implement your own version that works with your
environment.

-igor

On Wed, Apr 1, 2009 at 5:58 AM, cmoulliard cmoulli...@gmail.com wrote:

 Hi,

 Is it possible to modify the following class :
 org.apache.wicket.spring.SpringWebApplicationFactory
 in order to retrieve the class org.springframework.osgi.BundleContext where
 info about class loading are. This is required when Wicket is deployed on
 OSGI server

 Regards,

 Charles Moulliard
 SOA Architect

 cmoulliard wrote:

  Hi,

 When I start my Apache Wicket bundle using Apache Service Mix (based on
 Felix and Spring DM), I receive the following error :
  Quote:
   16:35:58,415 | DEBUG | localShell | jetty |
 .service.internal.util.JCLLogger 85 | started
 org.ops4j.pax.web.service.internal.model.ServletMo del-66
 16:35:58,415 | INFO | localShell | HttpServiceProxy |
 ervice.internal.HttpServiceProxy 129 | Registering event listener
 [org.springframework.web.context.ContextLoaderListe n...@196dc61]
 16:35:58,415 | DEBUG | localShell | HttpServiceStarted |
 vice.internal.HttpServiceStarted 324 | Using context
 [ContextModel{id=org.ops4j.pax.web.service.internal
 .model.ContextModel-64,name=reportincident,httpContext=org.ops4j.pax.w
 eb.extender.war.internal.webapphttpcont...@fe404a,
 contextParams={webapp.context=reportincident,
 contextClass=org.springframework.osgi.web.context.
 support.OsgiBundleXmlWebApplicationContext}}]
 16:35:58,415 | INFO | localShell | /reportincident |
 .service.internal.util.JCLLogger 102 | Initializing Spring root
 WebApplicationContext
 16:35:58,415 | INFO | localShell | ContextLoader |
 mework.web.context.ContextLoader 189 | Root WebApplicationContext:
 initialization started
 16:35:58,415 | ERROR | localShell | ContextLoader |
 mework.web.context.ContextLoader 215 | Context initialization failed
 java.lang.IllegalArgumentException: bundle context should be set before
 refreshing the application context
 at org.springframework.util.Assert.notNull(Assert.jav a:112)
 at org.springframework.osgi.context.support.AbstractD
 elegatedExecutionApplicationContext.normalRefresh(
 AbstractDelegatedExecutionApplicationContext.java: 179)
 at org.springframework.osgi.context.support.AbstractD
 elegatedExecutionApplicationContext$NoDependencies
 WaitRefreshExecutor.refresh(AbstractDelegatedExecu
 tionApplicationContext.java:89)
 at org.springframework.osgi.context.support.AbstractD
 elegatedExecutionApplicationContext.refresh(Abstra
 ctDelegatedExecutionApplicationContext.java:175)
 at org.springframework.web.context.ContextLoader.crea
 teWebApplicationContext(ContextLoader.java:255)
 at org.springframework.web.context.ContextLoader.init
 WebApplicationContext(ContextLoader.java:199)
 at org.springframework.web.context.ContextLoaderListe
 ner.contextInitialized(ContextLoaderListener.java: 45)
 Here is the config of my web.xml file :

  Quote:
   ?xml version=1.0 encoding=ISO-8859-1?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4

 display-namereportincident.web/display-name

 context-param
 param-namecontextClass/param-name
 param-valueorg.springframework.osgi.web.context.support
 .OsgiBundleXmlWebApplicationContext/param-value
 /context-param

 listener
 listener-classorg.springframework.web.context.ContextLoade
 rListener/listener-class
 /listener

 filter
 filter-namewicket.reportincident.web/filter-name
 filter-classorg.apache.wicket.protocol.http.WicketFilter /filter-class
 init-param
 param-nameapplicationClassName/param-name
 param-valueorg.apache.camel.example.WicketApplication/param-value
 /init-param
 /filter

 filter-mapping
 filter-namewicket.reportincident.web/filter-name
 url-pattern/*/url-pattern
 /filter-mapping


 /web-app
 Any idea to solve this problem is welcome ?

 Regards,

 Charles
  __
 SOA Architect


 -
 Charles Moulliard
 SOA Architect

 My Blog : http://cmoulliard.blogspot.com/



 -
 Charles Moulliard
 SOA Architect

 My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
 --
 View this message in context: 
 http://www.nabble.com/java.lang.IllegalArgumentException%3A-bundle-context-should-be-set--before-refreshing-the-application-context-tp22807226p22825852.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: Constructor not being called when Back button clicked

2009-04-01 Thread Steve Swinsburg
Yup, got that in but the problem still exists, the constructor is not  
being called when the browser goes back to that page. It *could* be  
because my Wicket app is running in an iframe (sucks, but unavoidable)  
so the request params are being screwed up and Wicket is not  
initialising the page properly. Still all works fine in Safari4  
though. Odd.


Thanks for the replies.



On 1 Apr 2009, at 17:03, Mathias P.W Nilsson wrote:



Like matej says

@Override
protected void setHeaders(WebResponse response) {
  response.setHeader(Pragma, no-cache);
 response.setHeader(Cache-Control, no-cache, max-age=0,
must-revalidate, no-store);

  }
--
View this message in context: 
http://www.nabble.com/Constructor-not-being-called-when-Back-button-clicked-tp22827398p22829529.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





smime.p7s
Description: S/MIME cryptographic signature


Re: How to switch Panels with a Tree?

2009-04-01 Thread Matej Knopp
Hi,

  selectedPanel.replaceWith(currentPanel);

 java.lang.IllegalStateException: This method can only be called on a 
 component that has already been added to its parent.
at org.apache.wicket.Component.replaceWith(Component.java:2717)

Obviously your selected panel is not added to page and you try to call
replaceWith on it.

-Matej

On Wed, Apr 1, 2009 at 2:58 PM, Christian Helmbold
christian.helmb...@yahoo.de wrote:

 Hello,

 I want to switch panels with a tree (like switching panels within a 
 TabbedPanel), but get an error when clicking more than once on a node.

 It should look like this:

 +-+
 |               (TreePanel)                   |
 | +-+                             |
 | |    (Tree)   |                             |
  | * root      |   +---+ |
 | | ** Folder A |   |    (ContentPanel)     | |
 | | *** [File1] |   | File1                 | |
 | | *** File2   |   |                       | |
 | +-+   +---+ |
 +-+

 The Panel according to the selected node (File1) is displayed.

 The top-level TreePanel contains the Tree and the and the ContentPanel.

 Java code of TreePanel:
 
 public class TreePanel extends Panel{

    private Tree tree;
    private NodePanel selectedPanel;


    public TreePanel(String id, NodePanel rootNode)
    {
        super(id);
        DefaultTreeModel treeModel = new 
 DefaultTreeModel(rootNode.getAsTreeNode());
        selectedPanel = rootNode;

        add(selectedPanel);
        tree = new Tree(tree, treeModel)
        {
           �...@override
            protected String renderNode(TreeNode node)
            {
                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
                Object userObject = treeNode.getUserObject();
                if (userObject instanceof List)
                    return subtree;
                else
                {
                    NodePanel panel = (NodePanel)userObject;
                    return panel.getTitle();
                }
            }

           �...@override
            protected void onNodeLinkClicked(AjaxRequestTarget target,
                                 javax.swing.tree.TreeNode node)
            {
                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
                NodePanel currentPanel = (NodePanel)treeNode.getUserObject();
                selectedPanel.replaceWith(currentPanel);
            }
        };

        add(tree);
    }

    /**
     * Get a reference to the tree to configure or query it.
     * @return
     */
    public Tree getTree()
    {
        return tree;
    }

 }
 

 In the Page class that uses my TreePanel I add some NodePanls to the tree. 
 When I open the Page in the browser, the root panel is displayed as expected. 
 When I click on a node the first time everything is fine and the panel gets 
 replaced, but when I click on another link I get:

 WicketMessage: Method onLinkClicked of interface 
 org.apache.wicket.markup.html.link.ILinkListener targeted at component 
 [MarkupContainer [Component id = nodeLink]] threw an exception

 Root cause:

 java.lang.IllegalStateException: This method can only be called on a 
 component that has already been added to its parent.
 at org.apache.wicket.Component.replaceWith(Component.java:2717)
 at 
 com.helmbold.wicket.components.tree.TreePanel$1.onNodeLinkClicked(TreePanel.java:53)
 ...

 What's wrong with my code?

 Regards
 Christian



 PS:

 For completeness the code of NodePanel (ContentPanel in the example extends 
 NodePanel):
 
 public abstract class NodePanel extends Panel{

    private DefaultMutableTreeNode treeNode = new DefaultMutableTreeNode(this);


    /**
     * Constructs a NodePanel with the given id.
     * @param id wicket:id
     */
    public NodePanel(String id)
    {
        super(id);
    }


    /**
     * Wraps this object in a DefaultMutableTreeNode.
     * @return A DefaultMutableTreeNode object which returns this object when
     * DefaultMutableTreeNode#getUserObject() is invoked.
     */
    public DefaultMutableTreeNode getAsTreeNode()
    {
        return treeNode;
    }


    /**
     * Add a child in the tree hierarchy - not a nested panel this a panel!
     * @param child
     */
    public void addChild(NodePanel child)
    {
        treeNode.add(child.getAsTreeNode());
    }


    /**
     * @return Title of the Panel that will be displayed as node link in the 
 tree.
     */
    public abstract String getTitle();

 }
 






 

Re: Wicket-Extensions Installation

2009-04-01 Thread Kaspar Fischer

On 01.04.2009, at 17:58, Tomáš Mihok wrote:


Hi there,

I would like to ask for a guide or a page explaining installation
process of wicket-extensions. I need especially TabbedPanel and
TabControl. Thx oin advance.


I cannot answer about the existence of the page. -- But if you are  
using Maven, just add a dependency


dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-extensions/artifactId
version1.4-SNAPSHOT/version
/dependency

to your pom.xml, with 1.4-SNAPSHOT as shown or the desired version of  
wicket-extensions. Maven will take care of the rest and you will be  
able use TabbedPanel, etc. (You can use http://wicket.apache.org/quickstart.html 
 to get an initial project structure for use with maven; then add the  
above dependency.)


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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Marko Sibakov

Timo Rantalaiho wrote:

On Wed, 01 Apr 2009, Martijn Dashorst wrote:
  

[X] -1, don't accept above resolution, because ...



I still liked the other name suggestion jdave-wicket-webdriver-wicket-fx
better, shall I do another vote thread on it?
  

Someone has already made logo for us

http://3.bp.blogspot.com/_hXCPcd3owoI/RwvVRW1wlBI/ACE/UcDATzR4F9c/s1600/logo.jpg


-
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: How to switch Panels with a Tree?

2009-04-01 Thread Igor Vaynberg
selectedPanel.replaceWith(currentPanel);
selectedPanel=currentPanel;

-igor

On Wed, Apr 1, 2009 at 5:58 AM, Christian Helmbold
christian.helmb...@yahoo.de wrote:

 Hello,

 I want to switch panels with a tree (like switching panels within a 
 TabbedPanel), but get an error when clicking more than once on a node.

 It should look like this:

 +-+
 |               (TreePanel)                   |
 | +-+                             |
 | |    (Tree)   |                             |
  | * root      |   +---+ |
 | | ** Folder A |   |    (ContentPanel)     | |
 | | *** [File1] |   | File1                 | |
 | | *** File2   |   |                       | |
 | +-+   +---+ |
 +-+

 The Panel according to the selected node (File1) is displayed.

 The top-level TreePanel contains the Tree and the and the ContentPanel.

 Java code of TreePanel:
 
 public class TreePanel extends Panel{

    private Tree tree;
    private NodePanel selectedPanel;


    public TreePanel(String id, NodePanel rootNode)
    {
        super(id);
        DefaultTreeModel treeModel = new 
 DefaultTreeModel(rootNode.getAsTreeNode());
        selectedPanel = rootNode;

        add(selectedPanel);
        tree = new Tree(tree, treeModel)
        {
           �...@override
            protected String renderNode(TreeNode node)
            {
                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
                Object userObject = treeNode.getUserObject();
                if (userObject instanceof List)
                    return subtree;
                else
                {
                    NodePanel panel = (NodePanel)userObject;
                    return panel.getTitle();
                }
            }

           �...@override
            protected void onNodeLinkClicked(AjaxRequestTarget target,
                                 javax.swing.tree.TreeNode node)
            {
                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
                NodePanel currentPanel = (NodePanel)treeNode.getUserObject();
                selectedPanel.replaceWith(currentPanel);
            }
        };

        add(tree);
    }

    /**
     * Get a reference to the tree to configure or query it.
     * @return
     */
    public Tree getTree()
    {
        return tree;
    }

 }
 

 In the Page class that uses my TreePanel I add some NodePanls to the tree. 
 When I open the Page in the browser, the root panel is displayed as expected. 
 When I click on a node the first time everything is fine and the panel gets 
 replaced, but when I click on another link I get:

 WicketMessage: Method onLinkClicked of interface 
 org.apache.wicket.markup.html.link.ILinkListener targeted at component 
 [MarkupContainer [Component id = nodeLink]] threw an exception

 Root cause:

 java.lang.IllegalStateException: This method can only be called on a 
 component that has already been added to its parent.
 at org.apache.wicket.Component.replaceWith(Component.java:2717)
 at 
 com.helmbold.wicket.components.tree.TreePanel$1.onNodeLinkClicked(TreePanel.java:53)
 ...

 What's wrong with my code?

 Regards
 Christian



 PS:

 For completeness the code of NodePanel (ContentPanel in the example extends 
 NodePanel):
 
 public abstract class NodePanel extends Panel{

    private DefaultMutableTreeNode treeNode = new DefaultMutableTreeNode(this);


    /**
     * Constructs a NodePanel with the given id.
     * @param id wicket:id
     */
    public NodePanel(String id)
    {
        super(id);
    }


    /**
     * Wraps this object in a DefaultMutableTreeNode.
     * @return A DefaultMutableTreeNode object which returns this object when
     * DefaultMutableTreeNode#getUserObject() is invoked.
     */
    public DefaultMutableTreeNode getAsTreeNode()
    {
        return treeNode;
    }


    /**
     * Add a child in the tree hierarchy - not a nested panel this a panel!
     * @param child
     */
    public void addChild(NodePanel child)
    {
        treeNode.add(child.getAsTreeNode());
    }


    /**
     * @return Title of the Panel that will be displayed as node link in the 
 tree.
     */
    public abstract String getTitle();

 }
 






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



-
To unsubscribe, e-mail: 

Re: Wicket and (or) restlet

2009-04-01 Thread Casper Bang
 restlet is for building services not uis, that quote makes absolutely no
 sense.


While I agree the quote smells of FUD, one doesn't necessarily exclude the
other. The beauty of REST is its statelessness, addressability,
representation negotiation, caching and other ways it embraces HTTP rather
than run away from it (and use overloaded POST's with tiny RPC handlers for
everything).

In Jersey it's also possible to serve (dynamic) HTML through a standard
templating engine, I'm doing this currently and achieving very high
scalability while keeping things simple. The caveat with this approach is
that you are stuck to the classic templating model and components don't
really exist apart from whatever jQuery/ExtJS stuff you wire up manually.

So probably like the OP, I can't help but wonder about the possebility of
Wicket running on top as a model-view technology - or perhaps just a
programming model adopted after Wicket.

/Casper


Re: Wicket and (or) restlet

2009-04-01 Thread Igor Vaynberg
huh? wicket is trying to address a completely different problem space
- which is orthogonal to what restlet and other rest-like services are
trying to achieve.

do any of these restlet-like services provide anything to help you
generate the ui? do they have jstl tags? components? templating?
nothing out of the box right? you have to glue that yourself on top of
them.

-igor

On Wed, Apr 1, 2009 at 10:05 AM, Casper Bang cas...@jbr.dk wrote:
 restlet is for building services not uis, that quote makes absolutely no
 sense.


 While I agree the quote smells of FUD, one doesn't necessarily exclude the
 other. The beauty of REST is its statelessness, addressability,
 representation negotiation, caching and other ways it embraces HTTP rather
 than run away from it (and use overloaded POST's with tiny RPC handlers for
 everything).

 In Jersey it's also possible to serve (dynamic) HTML through a standard
 templating engine, I'm doing this currently and achieving very high
 scalability while keeping things simple. The caveat with this approach is
 that you are stuck to the classic templating model and components don't
 really exist apart from whatever jQuery/ExtJS stuff you wire up manually.

 So probably like the OP, I can't help but wonder about the possebility of
 Wicket running on top as a model-view technology - or perhaps just a
 programming model adopted after Wicket.

 /Casper


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



Re: drag and drop

2009-04-01 Thread Daniel Ferreira Castro
I was reading the drag and drop thread, started on March 19th and trying to
use the *yui *ajax implementation as the yui example suggests.But I am
recieving an exception like that

It is wierd because I declared the class field TargetSlot as transient.  No
matter if I declare it as transient or not, the result is the same.

Did anyone have any similar bug?  how to solve it?

ERROR - Objects- Error serializing object class
com.jasp.ecommfwk.pages.common.layout.Index [object=[Page class =
com.jasp.ecommfwk.pages.common.layout.Index, id = 0, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class:
org.wicketstuff.yui.markup.html.dragdrop.TargetSlot
Field hierarchy is:
  0 [class=com.jasp.ecommfwk.pages.common.layout.Index, path=0]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private org.apache.wicket.markup.html.link.PopupSettings
org.apache.wicket.markup.html.link.Link.popupSettings[2]
[class=org.apache.wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel,
path=0:tabs]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private org.apache.wicket.markup.html.link.PopupSettings
org.apache.wicket.markup.html.link.Link.popupSettings[1]
[class=com.jasp.ecommfwk.pages.common.layout.panels.configuracao.ConfiguracaoPanel,
path=0:tabs:panel]
private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.extensions.markup.html.tabs.TabbedPanel,
path=0:tabs:panel:Configuracoes]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
private org.apache.wicket.markup.html.link.PopupSettings
org.apache.wicket.markup.html.link.Link.popupSettings[1]
[class=com.jasp.ecommfwk.pages.vitrine.ConfiguracaoVitrinePanel,
path=0:tabs:panel:Configuracoes:panel]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
private final java.lang.Object[]
org.apache.wicket.model.StringResourceModel.parameters[0][2]
[class=org.wicketstuff.yui.markup.html.dragdrop.DragDropGroup,
path=0:tabs:panel:Configuracoes:panel:dragDrop]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
private java.lang.Object
org.apache.wicket.markup.html.form.FormComponent.validators[2]
[class=org.wicketstuff.yui.markup.html.dragdrop.DragDropGroup$3,
path=0:tabs:panel:Configuracoes:panel:dragDrop:targetListView]
  java.lang.Object org.apache.wicket.Component.data
[class=org.apache.wicket.model.util.ListModel]
private java.lang.Object
org.apache.wicket.model.util.GenericBaseModel.object
[class=java.util.ArrayList]
  private java.lang.Object
org.apache.wicket.model.util.GenericBaseModel.object[write:1]
[class=org.wicketstuff.yui.markup.html.dragdrop.TargetSlot] - field
that is not serializable
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:349)
at
org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
at
org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:497)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1116)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:504)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at

Re: Wicket and (or) restlet

2009-04-01 Thread Casper Bang
True, but as I said, one does not necessarily exclude the other. In its
current state such a use of Jersey is best suited for low-interactivity,
data-driven applications - but the same could be said for other web
frameworks such as Stripes.

Jersey provides implicit and explicit views through JSP's out of the box:
http://blogs.sun.com/sandoz/entry/mvcj

That's the way I use it, people have plugged in their own template layers.
I'd be interested in a component model such as Wicket on top, which is why I
reacted to this thread. I think there's a broad understanding that the
Wicket model makes programmers happy.

/Casper

On Wed, Apr 1, 2009 at 7:25 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 huh? wicket is trying to address a completely different problem space
 - which is orthogonal to what restlet and other rest-like services are
 trying to achieve.

 do any of these restlet-like services provide anything to help you
 generate the ui? do they have jstl tags? components? templating?
 nothing out of the box right? you have to glue that yourself on top of
 them.

 -igor

 On Wed, Apr 1, 2009 at 10:05 AM, Casper Bang cas...@jbr.dk wrote:
  restlet is for building services not uis, that quote makes absolutely no
  sense.
 
 
  While I agree the quote smells of FUD, one doesn't necessarily exclude
 the
  other. The beauty of REST is its statelessness, addressability,
  representation negotiation, caching and other ways it embraces HTTP
 rather
  than run away from it (and use overloaded POST's with tiny RPC handlers
 for
  everything).
 
  In Jersey it's also possible to serve (dynamic) HTML through a standard
  templating engine, I'm doing this currently and achieving very high
  scalability while keeping things simple. The caveat with this approach is
  that you are stuck to the classic templating model and components don't
  really exist apart from whatever jQuery/ExtJS stuff you wire up manually.
 
  So probably like the OP, I can't help but wonder about the possebility of
  Wicket running on top as a model-view technology - or perhaps just a
  programming model adopted after Wicket.
 
  /Casper
 

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




Re: Wicket and (or) restlet

2009-04-01 Thread Jonathan Locke


interesting.  yeah, igor's right.  wicket is not for web services.

i prefer jersey to restlet and jersey plays fine with wicket.


Casper Bang-3 wrote:
 
 restlet is for building services not uis, that quote makes absolutely no
 sense.

 
 While I agree the quote smells of FUD, one doesn't necessarily exclude the
 other. The beauty of REST is its statelessness, addressability,
 representation negotiation, caching and other ways it embraces HTTP rather
 than run away from it (and use overloaded POST's with tiny RPC handlers
 for
 everything).
 
 In Jersey it's also possible to serve (dynamic) HTML through a standard
 templating engine, I'm doing this currently and achieving very high
 scalability while keeping things simple. The caveat with this approach is
 that you are stuck to the classic templating model and components don't
 really exist apart from whatever jQuery/ExtJS stuff you wire up manually.
 
 So probably like the OP, I can't help but wonder about the possebility of
 Wicket running on top as a model-view technology - or perhaps just a
 programming model adopted after Wicket.
 
 /Casper
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-and-%28or%29-restlet-tp22822162p22832474.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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Vladimir K

good joke :)

-- 
View this message in context: 
http://www.nabble.com/VOTE%3A-Rename-Apache-Wicket-to-Apache-WicketFX-tp22820921p22832563.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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Brill Pappin

Caught red handed :)

I never remember... and since the kids didn't pull anything on me this  
morning as a reminder, it went completely over my head :)


- Brill

On 1-Apr-09, at 11:10 AM, Daan van Etten wrote:


To make it a bit less painful:
Look at the date.

:-)

Daan

Op 1 apr 2009, om 16:25 heeft Brill Pappin het volgende geschreven:


~0/1

I don't care... but I can't say that I think FX makes it cool...
Sounds more like a bad 90's TV show to me :)

As long as it work, I don't care what its called... um... maybe I  
should qualify that... I don't care what its called as long as I  
won't be embarrassed when talking to my clients about it :)


- brill

On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:


FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework  
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
- WicketFX, Spri..
Wow! You are so cool!

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende  
geschreven:



Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org  
wrote:


Please excuse my EXTREME ignorance, but what exactly does or  
will the

FX
mean from a Wicket standpoint?  What does it do or allow a  
developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  
_ _ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This  
information
is intended only for the use of the individual or entity named  
above.

The authorized recipient of this information is prohibited from

disclosing
this information to any other party unless required to do so by  
law

or regulation and is required to destroy the information after its

stated
need has been fulfilled. If you are not the intended recipient,  
you

are
hereby notified that any disclosure, copying, distribution, or  
action

taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged  
information.

Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient,  
please

destroy all paper and electronic copies of the original message.


-
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




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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Igor Vaynberg
did it make a swoosh sound? :)

-igor

On Wed, Apr 1, 2009 at 11:20 AM, Brill Pappin br...@pappin.ca wrote:
 Caught red handed :)

 I never remember... and since the kids didn't pull anything on me this
 morning as a reminder, it went completely over my head :)

 - Brill

 On 1-Apr-09, at 11:10 AM, Daan van Etten wrote:

 To make it a bit less painful:
 Look at the date.

 :-)

 Daan

 Op 1 apr 2009, om 16:25 heeft Brill Pappin het volgende geschreven:

 ~0/1

 I don't care... but I can't say that I think FX makes it cool...
 Sounds more like a bad 90's TV show to me :)

 As long as it work, I don't care what its called... um... maybe I should
 qualify that... I don't care what its called as long as I won't be
 embarrassed when talking to my clients about it :)

 - brill

 On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:

 FX sounds just way cool.

 WicketFX. Where function meets form. Web development in style.

 Say for yourself, would you rather want to work with a framework called
 Wicket, or a framework called WicketFX?!

 Birthday parties and pub nights never are the same again:
 What technologies you use?
 - WicketFX, Spri..
 Wow! You are so cool!

 Regards,

 Daan

 Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven:

 Same concern here. Why the FX suffix?

 -Original Message-
 From: Johan Compagner [mailto:jcompag...@gmail.com]
 Sent: Wednesday, April 01, 2009 9:33 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

 Failed eXtremely



 On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote:

 Please excuse my EXTREME ignorance, but what exactly does or will the

 FX

 mean from a Wicket standpoint?  What does it do or allow a developer

 to do

 that would designate it as FX?



 -Original Message-
 From: David Leangen [mailto:wic...@leangen.net]
 Sent: Wednesday, April 01, 2009 4:08 AM
 To: users@wicket.apache.org
 Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

 Or... WTF! (Wicket The Framework)

 +1



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

 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

 _ _ _

 EMAIL CONFIDENTIALITY NOTICE

 This Email message, and any attachments, may contain confidential
 patient health information that is legally protected. This information
 is intended only for the use of the individual or entity named above.
 The authorized recipient of this information is prohibited from

 disclosing

 this information to any other party unless required to do so by law
 or regulation and is required to destroy the information after its

 stated

 need has been fulfilled. If you are not the intended recipient, you

 are

 hereby notified that any disclosure, copying, distribution, or action
 taken in reliance on the contents of this message is strictly

 prohibited.

 If you have received this information in error, please notify
 the sender immediately by replying to this message and delete the
 message from your system.


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


 
 This email/fax message is for the sole use of the intended
 recipient(s) and may contain confidential and privileged information.
 Any unauthorized review, use, disclosure or distribution of this
 email/fax is prohibited. If you are not the intended recipient, please
 destroy all paper and electronic copies of the original message.


 -
 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



 -
 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 and (or) restlet

2009-04-01 Thread Alex Objelean

Jonathan, can you elaborate? Why do you think jersey is better? Have you any
experience of integrating it with wicket?

Thanks!


Jonathan Locke wrote:
 
 
 interesting.  yeah, igor's right.  wicket is not for web services.
 
 i prefer jersey to restlet and jersey plays fine with wicket.
 
 
 Casper Bang-3 wrote:
 
 restlet is for building services not uis, that quote makes absolutely no
 sense.

 
 While I agree the quote smells of FUD, one doesn't necessarily exclude
 the
 other. The beauty of REST is its statelessness, addressability,
 representation negotiation, caching and other ways it embraces HTTP
 rather
 than run away from it (and use overloaded POST's with tiny RPC handlers
 for
 everything).
 
 In Jersey it's also possible to serve (dynamic) HTML through a standard
 templating engine, I'm doing this currently and achieving very high
 scalability while keeping things simple. The caveat with this approach is
 that you are stuck to the classic templating model and components don't
 really exist apart from whatever jQuery/ExtJS stuff you wire up manually.
 
 So probably like the OP, I can't help but wonder about the possebility of
 Wicket running on top as a model-view technology - or perhaps just a
 programming model adopted after Wicket.
 
 /Casper
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-and-%28or%29-restlet-tp22822162p22832756.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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread James Carman
On Wed, Apr 1, 2009 at 2:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 did it make a swoosh sound? :)

More like a race car!

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



Transformin a form into a component

2009-04-01 Thread Daniel Ferreira Castro
I have a doubt about componentizing a Form.

If I create a class, MyForm.java, that extends Form
Inside of it I declare all the form componets.

After that I create the markup with all the components present on
MyForm.java.  I call it MyForm.html

If I want to use it on a page, like MyPage for instance, how should I
declare the form component on my page markup?
It will be like that?  Or are there any more steps to take to be able to
componentize a form?

MyPage.html
...
form wicket:id=myform/form

MyPage.java
private final MyForm myform = new myForm(myform);
...
this.add(myform);

?

-- 
Two rules to succeed in life:
1 - don´t tell people everything you know.

We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill


Re: Transformin a form into a component

2009-04-01 Thread Igor Vaynberg
put it into a panel

-igor

On Wed, Apr 1, 2009 at 11:46 AM, Daniel Ferreira Castro
dfcas...@gmail.com wrote:
 I have a doubt about componentizing a Form.

 If I create a class, MyForm.java, that extends Form
 Inside of it I declare all the form componets.

 After that I create the markup with all the components present on
 MyForm.java.  I call it MyForm.html

 If I want to use it on a page, like MyPage for instance, how should I
 declare the form component on my page markup?
 It will be like that?  Or are there any more steps to take to be able to
 componentize a form?

 MyPage.html
 ...
 form wicket:id=myform/form

 MyPage.java
 private final MyForm myform = new myForm(myform);
 ...
 this.add(myform);

 ?

 --
 Two rules to succeed in life:
 1 - don´t tell people everything you know.
 
 We shall go on to the end.
 We shall fight in France
 We shall fightover the seas and oceans.
 We shall fight with growing confidence and growing strength in the air.
 We shall defend our island whatever the cost may be
 We shall fight on beaches, we shall fight on the landing grounds,
 We shall fight in the fields and in the streets,
 We shall fight on the hills.
 We shall never surrender.
 Winston Churchill


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



DropDown Models

2009-04-01 Thread Luther Baker
This select impl works just fine ... creating a project that must include a
Category from a drop down:

public AddProjectForm(final String id)
{
super(id);

this.project = new Project();
*this.setModel(new CompoundPropertyModel(this.project));*

// category
*IModel categoryModel = new PropertyModel(this.project,
category);*
IModel detachableModel = new LoadableDetachableModel()
{
private static final long serialVersionUID =
-7673902927079196813L;

@Override
protected Object load()
{
ListCategory categories =
ServiceLocator.getPersistenceService().findAll(Category.class);
return categories;
}
};
ChoiceRenderer cr = new ChoiceRenderer(name, id);
DropDownChoice ddc = new DropDownChoice(category, *
categoryModel*, detachableModel, cr);
ddc.setRequired(true);
this.add(ddc);


I see that I set a model for the form -- and then I set another model
(albeit the same one) for the Drop Down.

In another case, I have a simple page that tries to DELETE a CATEGORY.

private static class DelCategoryForm extends Form
{
private Category category;

public DelCategoryForm(final String id)
{
super(id);

this.category = new Category();
*this.setModel(new Model(this.category));*

// category
*IModel categoryModel = new Model(this.category);*
IModel detachableModel = new LoadableDetachableModel()
{
private static final long serialVersionUID =
-6814520399090264461L;

@Override
protected Object load()
{
ListCategory categories =
ServiceLocator.getPersistenceService().findAll(Category.class);
return categories;
}
};
ChoiceRenderer cr = new ChoiceRenderer(name, id);
DropDownChoice ddc = new DropDownChoice(categories, *
categoryModel*, detachableModel, cr);
ddc.setRequired(true);
this.add(ddc);

In this case, I don't think I need the CompoundPropertyModel or
PropertyModel since, the contents of the DROP DOWN indeed are everything I
need. So I changed the both to simply Model.

Unfortunately, values are always 'null' in the onSubmit handler of the
delete implementation. Any quick thoughts on what I'm doing incorrectly
here? Basically, I'm trying to populate the Category object with the select.
It works for the 1st example - but not in the second. In the first, it is a
property of a containing object - in the 2nd, it is the loan object.

Thanks,

-Luther


Re: urlFor ResourceStreamRequestTarget returning null

2009-04-01 Thread francisco treacy
i updated to 1.4-rc2, but that didn't help.

right now, with exactly the same codebase, the url is being correctly
generated in my development environment - but outputting the bad url
in our continuous integration server version.

i set up several breakpoints in the WebRequestCodingStrategy class to
analyze step by step how urls are being built. but i have no idea when
it is going to start working differently again, and be able to
compare. i'm really puzzled.

hints anyone, on what could be causing this? so i can go debug there

thanks

francisco



2009/4/1 francisco treacy francisco.tre...@gmail.com:
 thanks maarten, but i still can't get the url for the resource in the
 renderHead method.

 in the open flash chart example, there are two types of urls built:
  - resourcereferences (easy peasy to get the url)
  - resource, via RequestCycle.get().urlFor(OpenFlashChart.this,
 IResourceListener.INTERFACE);

 remember, my component is:
 public abstract class SWFComponent extends WebMarkupContainer
 implements IResourceListener, IHeaderContributor

 in my case i need the url to a *resource*, so i tried:

 a) RequestCycle.get().urlFor(SWFComponent.this,
 IResourceListener.INTERFACE); or urlFor(IResourceListener.INTERFACE);
 in the onBeforeRender method
     = it outputs the url to a *bookmarkable page* / not my resource:
 ?wicket:bookmarkablePage=:app.wicket.project.DocumentPagewicket:interface=:2:docsPanel:viewer:flash::IResourceListener::

 b) RequestCycle.get().urlFor(SWFComponent.this,
 IResourceListener.INTERFACE); in the renderHead method
     = it outputs the url to another different *bookmarkable page* /
 not my resource:
 ?wicket:bookmarkablePage=:app.wicket.document.DocumentDetailPagewicket:interface=:10:detailPanel:viewer:flash::IResourceListener::

 c) urlFor(IResourceListener.INTERFACE); in the renderHead method
     = *sometimes* it works.

 this means *sometimes* it outputs
 ?wicket:interface=:3:docsPanel:viewer:flash::IResourceListener:: 
 (this is correct - it works) , but some other times it outputs 
 ?wicket:bookmarkablePage=:app.wicket.document.DocumentDetailPagewicket:interface=:10:detailPanel:viewer:flash::IResourceListener::
  (this is not correct - it doesn't work).

 this mysterious behaviour hasn't occured just once, it randomly
 happened after compilation several times.

 is this a bug or why does it behave like that? am i misusing the api?
 should the resource, markup container and/or header contributor live
 in different classes? suggestions?

 thanks again

 francisco


 2009/3/31 Maarten Bosteels mbosteels@gmail.com:
 Have you seen this page [1], it also features an SWFObject.

 http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html

 regards,
 Maarten

 On Tue, Mar 31, 2009 at 3:36 PM, francisco treacy
 francisco.tre...@gmail.com wrote:
 hi all,

 i can't seem to find the way to get an url for a given RequestTarget.
 i'm using wicket 1.4-rc1.

 basically i have an SWFComponent : http://paste.pocoo.org/show/110435/

 my problem is in line 35, when i call urlFor(target) to the renderHead
 method. the target is of type ResourceStreamRequestTarget and when i
 dig into the sources for the urlFor call, i end up in
 WebRequestCodingStrategy#encode:

 // fall through for non-default request targets
                                url = doEncode(requestCycle, requestTarget);

 doEncode javadoc reads:

         * In case you are using custom targets that are not part of the
 default target hierarchy, you
         * need to override this method, which will be called after the
 defaults have been tried. When
         * this doesn't provide a url either (returns null), an exception
 will be thrown by the encode
         * method saying that encoding could not be done.

 where am i supposed to override this method?

 additionally, wicket doesn't seem to throw an exception as stated - it
 silently returns the null value.

 any ideas on how to get the url, or improvements to the code i pasted
 to make it work?

 thank you,

 francisco

 ps: note that the ResourceStreamRequestTarget works fine. for instance
 if i call getRequestCycle().setRequestTarget(target); on renderHead,
 the http response streams the swf file.

 -
 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: Transformin a form into a component

2009-04-01 Thread Daniel Ferreira Castro
Thanks, it worked. :)

On Wed, Apr 1, 2009 at 3:49 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 put it into a panel

 -igor

 On Wed, Apr 1, 2009 at 11:46 AM, Daniel Ferreira Castro
 dfcas...@gmail.com wrote:
  I have a doubt about componentizing a Form.
 
  If I create a class, MyForm.java, that extends Form
  Inside of it I declare all the form componets.
 
  After that I create the markup with all the components present on
  MyForm.java.  I call it MyForm.html
 
  If I want to use it on a page, like MyPage for instance, how should I
  declare the form component on my page markup?
  It will be like that?  Or are there any more steps to take to be able to
  componentize a form?
 
  MyPage.html
  ...
  form wicket:id=myform/form
 
  MyPage.java
  private final MyForm myform = new myForm(myform);
  ...
  this.add(myform);
 
  ?
 
  --
  Two rules to succeed in life:
  1 - don´t tell people everything you know.
  
  We shall go on to the end.
  We shall fight in France
  We shall fightover the seas and oceans.
  We shall fight with growing confidence and growing strength in the air.
  We shall defend our island whatever the cost may be
  We shall fight on beaches, we shall fight on the landing grounds,
  We shall fight in the fields and in the streets,
  We shall fight on the hills.
  We shall never surrender.
  Winston Churchill
 

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




-- 
Two rules to succeed in life:
1 - don´t tell people everything you know.

We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill


Re: Wicket and (or) restlet

2009-04-01 Thread Jonathan Locke


well, i'd be the first to admit i don't know either of these two products
deeply, but for the kinds of applications i have for web services, i found
jersey to have really easy, transparent support for request parameter
processing. you just annotate some parameters, create a jaxb schema and add
an @Path attribute and you've pretty much got a web service. although it
looks like a nice architecture that sticks to REST terminology, i at least
couldn't find how restlet made some of this grunt work easy (but then maybe
i missed that somehow).


Alexandru Objelean wrote:
 
 Jonathan, can you elaborate? Why do you think jersey is better? Have you
 any experience of integrating it with wicket?
 
 Thanks!
 
 
 Jonathan Locke wrote:
 
 
 interesting.  yeah, igor's right.  wicket is not for web services.
 
 i prefer jersey to restlet and jersey plays fine with wicket.
 
 
 Casper Bang-3 wrote:
 
 restlet is for building services not uis, that quote makes absolutely
 no
 sense.

 
 While I agree the quote smells of FUD, one doesn't necessarily exclude
 the
 other. The beauty of REST is its statelessness, addressability,
 representation negotiation, caching and other ways it embraces HTTP
 rather
 than run away from it (and use overloaded POST's with tiny RPC handlers
 for
 everything).
 
 In Jersey it's also possible to serve (dynamic) HTML through a standard
 templating engine, I'm doing this currently and achieving very high
 scalability while keeping things simple. The caveat with this approach
 is
 that you are stuck to the classic templating model and components don't
 really exist apart from whatever jQuery/ExtJS stuff you wire up
 manually.
 
 So probably like the OP, I can't help but wonder about the possebility
 of
 Wicket running on top as a model-view technology - or perhaps just a
 programming model adopted after Wicket.
 
 /Casper
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-and-%28or%29-restlet-tp22822162p22833918.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



  1   2   >