Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-07 Thread Igor Vaynberg

yes i have been while there were legal issues unresolved (we were waiting on
other people for their iclas). now they all are afaik and we can do a
release. so lets concentrate on that.

if we do provide a new generified version, then lets make that 1.4 and make
1.3 the last jdk1.4 and put that into maintenance. we dont have the
resources to fix bugs twice everywhere.

-igor


On 3/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 backport everything new and useful into 1.4 (or seems like even 1.3since
 you guys got such itchy fingers).

Those itchy fingers are easily explained: we'd like to get in those
'missing' features in asap so that we don't have to worry about
backporting them in the future! Furthermore, don't play such an
innocent kid, because you've been guilty of applying or at least
encouraging quite a few ajax and header contribution backports
yourself!

 at that point we will decide whether or
 not we will make 1.3 or 1.4 the last java1.4 version, and from then on
move
 on to java5 with the older version being in _maintenance_ mode.

We have to take some responsibility here don't we? If we decide to
reverse the constructor change, that doesn't mean we just drop the
whole thing right away. As you have read in the thread so far, people
/are/ using those generics, so we /should/ provide a proper upgrade
path. And I mean very soon, not just in some distant future. So, yes,
we have to either keep 2.0 alive for bug fixes and stuff, or we have
to provide a version that is as close to 1.3 as possible, but with
generics/ java 5 support.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Test of panels

2007-03-07 Thread Igor Vaynberg

looks like you are passing int he wrong path to the form?

-igor


On 3/7/07, Murat Yücel [EMAIL PROTECTED] wrote:


Hi Jean

Yes i have tried tester.newFormTester(form). I get the following error:

junit.framework.AssertionFailedError: path: 'form' does no exist for page:
DummyPanelPage
at wicket.util.tester.WicketTester.getComponentFromLastRenderedPage (
WicketTester.java:399)
at wicket.util.tester.WicketTester.newFormTester(WicketTester.java
:557)
at wicket.util.tester.WicketTester.newFormTester(WicketTester.java
:540)

Do i have to override DummyPanelPage? It seems like i dont have to because
it is a dummy
container containing the panel i want to test.

/Murat

2007/3/7, Jean-Baptiste Quenot [EMAIL PROTECTED]:

 * Murat Yücel:

  Is it possible to test a panel that includes a form and make use
  of ajax?  If yes  how is it possible and do  you have an example
  :)...
 
  I am already using this method WicketTester.startPanel but i can
  only test that the panel  is rendered without any errors. I cant
  retrieve  the  form  element. Well  i cant  figure  out  how  to
  retrieve them :)

 Have you tried tester.newFormTester(form)
 --
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

 -

 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Issue when trying to specify Spring dependency through annotations

2007-03-07 Thread Igor Vaynberg

sounds like you have a bad/wrong version cglib jar on your classpath

the second way is better, the way the book describes is indeed deprecated

-igor


On 3/7/07, ZedroS Schwart [EMAIL PROTECTED] wrote:


Hi all

I've a goal, a simple one I think : using Spring through annotations
in my wicket application.

To do so, I tried with both the wiki and the book Pro Wicket. Each
time I end up with the same error : java.lang.NoClassDefFoundError:
net/sf/cglib/proxy/Callback.

Do you have any clue ?

BTW, I've a side question : Pro Wicket tells to extend
AnnotSpringWebApplication to be able to use the annotations. The wiki
just tells to add this line in the init() :
addComponentInstantiationListener(new SpringComponentInjector(this));

Which way is the best ? I guess the second one, since the class
AnnotSpringWebApplication is deprecated, but I'm wondering...

Thanks again in advance
ZedroS

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: VOTE: backporting wicket 2.0 model change to 1.3

2007-03-07 Thread Igor Vaynberg

notice this will break any existing user imodel subclasses. mostly it should
be trivial to fix, but if you do use the component argument in the get/set
object it will not be so trivial.

-igor


On 3/7/07, Johan Compagner [EMAIL PROTECTED] wrote:


In 2.0 we have a model change:

IModel.getObject(Component) - IModel.getObject()
IModel.setObject(Component,Object) - IModel.setObject(Object)

So if you want to object from a component in 2.0 you only have to do:

component.getModel().getObject()

instead of


component.getModel().getObject()

That XXX is depending on what kind of model you use. If the component
did inherit a CompoundModel then you have to specify the component.this
If you where owner of the compoundmodel then you shouldn't specify
anything (null)

This is all fixed in 2.0 and now we can backport it to 1.3:

1 port it to 1.3

2 don't port it to 1.3

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket homepage Lucida Sans font

2007-03-07 Thread Igor Vaynberg

http://wicketframework.org/ ?

no problem here: vista/ffox 1.5.x

-igor


On 3/7/07, Xavier Hanin [EMAIL PROTECTED] wrote:


On 3/7/07, remco bos [EMAIL PROTECTED] wrote:

 I just upgraded firefox (from 1.5.0.10 to 2.0.0.2). I still have the
 same problem... And it's not only my home pc, but also my pc at work and on
 my laptop...


I use firefox 2.0.0.2, but only tested on my laptop (dell inspiron with
windows XP service pack 2) where I don't have the problem. But maybe its due
to the font installed on the machine (I have Lucida Sans as far as I can
say).

Xavier

Does any one else has this problem??


 - Original Message 
 From: Xavier Hanin [EMAIL PROTECTED]
 To: wicket-user@lists.sourceforge.net
 Sent: Wednesday, March 7, 2007 10:21:41 PM
 Subject: Re: [Wicket-user] Wicket homepage Lucida Sans font

 On 3/7/07, remco bos  [EMAIL PROTECTED] wrote:
 
  Just a few notes on the font used by the wicket homepage...
 
  The wicket homepage uses a font Lucida Sans which looks very very
  ugly in Windows / Firefox. Firefox can't handle Lucida Sans correctly
  (neither does IE on my computer)...The Lucida Sans Unicode font looks
  similar but doesn't have those problems.
 

 FYI, I don't have the same problem on my windows XP box under firefox
 2.0, IE 7 or Opera 9.

 - Xavier


 --
  Never miss an email again!
  Yahoo! 
Toolbarhttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/alerts
 you the instant new Mail arrives.Check it out.
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 --
 It's here! Your new message!
 Get new email 
alertshttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/with
 the free Yahoo!
 Toolbar.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket homepage Lucida Sans font

2007-03-07 Thread Igor Vaynberg

cause ff2 on vista has issues

-igor


On 3/7/07, Johan Compagner [EMAIL PROTECTED] wrote:


igor! FF1.5??
why use such an old thing why you use such a just new maybe barely release
worthy os? ;)

johan


On 3/7/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 http://wicketframework.org/ ?

 no problem here: vista/ffox 1.5.x

 -igor


 On 3/7/07, Xavier Hanin [EMAIL PROTECTED] wrote:
 
   On 3/7/07, remco bos [EMAIL PROTECTED] wrote:
  
   I just upgraded firefox (from 1.5.0.10 to 2.0.0.2). I still have the
   same problem... And it's not only my home pc, but also my pc at work and 
on
   my laptop...
  
 
  I use firefox 2.0.0.2, but only tested on my laptop (dell inspiron
  with windows XP service pack 2) where I don't have the problem. But maybe
  its due to the font installed on the machine (I have Lucida Sans as far as
  I can say).
 
  Xavier
 
   Does any one else has this problem??
  
  
   - Original Message 
   From: Xavier Hanin [EMAIL PROTECTED]
   To: wicket-user@lists.sourceforge.net
   Sent: Wednesday, March 7, 2007 10:21:41 PM
   Subject: Re: [Wicket-user] Wicket homepage Lucida Sans font
  
   On 3/7/07, remco bos  [EMAIL PROTECTED] wrote:
   
Just a few notes on the font used by the wicket homepage...
   
The wicket homepage uses a font Lucida Sans which looks very
very ugly in Windows / Firefox. Firefox can't handle Lucida Sans 
correctly
(neither does IE on my computer)...The Lucida Sans Unicode font looks
similar but doesn't have those problems.
   
  
   FYI, I don't have the same problem on my windows XP box under
   firefox 2.0, IE 7 or Opera 9.
  
   - Xavier
  
  
   --
Never miss an email again!
Yahoo! 
Toolbarhttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/alerts
 you the instant new Mail arrives.Check it out.
   
   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT  business topics through brief surveys-and earn
cash
   

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys-and earn cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
   --
   It's here! Your new message!
   Get new email 
alertshttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/with
 the free Yahoo!
   Toolbar.
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys-and earn cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get

Re: [Wicket-user] Wicket homepage Lucida Sans font

2007-03-07 Thread Igor Vaynberg

ff2 worked find on xp

-igor


On 3/7/07, Johan Compagner [EMAIL PROTECTED] wrote:


is it vista or ff2 ;)

On 3/7/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 cause ff2 on vista has issues

 -igor


 On 3/7/07, Johan Compagner  [EMAIL PROTECTED] wrote:
 
  igor! FF1.5??
  why use such an old thing why you use such a just new maybe barely
  release worthy os? ;)
 
  johan
 
 
  On 3/7/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
http://wicketframework.org/ ?
  
   no problem here: vista/ffox 1.5.x
  
   -igor
  
  
   On 3/7/07, Xavier Hanin [EMAIL PROTECTED] wrote:
   
 On 3/7/07, remco bos [EMAIL PROTECTED] wrote:

 I just upgraded firefox (from 1.5.0.10 to 2.0.0.2). I still have
 the same problem... And it's not only my home pc, but also my pc at 
work and
 on my laptop...

   
I use firefox 2.0.0.2, but only tested on my laptop (dell inspiron
with windows XP service pack 2) where I don't have the problem. But 
maybe
its due to the font installed on the machine (I have Lucida Sans as 
far as
I can say).
   
Xavier
   
 Does any one else has this problem??


 - Original Message 
 From: Xavier Hanin [EMAIL PROTECTED]
 To: wicket-user@lists.sourceforge.net
 Sent: Wednesday, March 7, 2007 10:21:41 PM
 Subject: Re: [Wicket-user] Wicket homepage Lucida Sans font

 On 3/7/07, remco bos  [EMAIL PROTECTED] wrote:
 
  Just a few notes on the font used by the wicket homepage...
 
  The wicket homepage uses a font Lucida Sans which looks very
  very ugly in Windows / Firefox. Firefox can't handle Lucida Sans 
correctly
  (neither does IE on my computer)...The Lucida Sans Unicode font 
looks
  similar but doesn't have those problems.
 

 FYI, I don't have the same problem on my windows XP box under
 firefox 2.0, IE 7 or Opera 9.

 - Xavier


 --
  Never miss an email again!
  Yahoo! 
Toolbarhttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/alerts
 you the instant new Mail arrives.Check it out.
 
 
  
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
  to share your
  opinions on IT  business topics through brief surveys-and
  earn cash
 
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 
-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys-and earn
 cash

 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 --
 It's here! Your new message!
 Get new email 
alertshttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/with
 the free Yahoo!
 Toolbar.


 
-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys-and earn
 cash

 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT  business topics through brief surveys-and earn
cash
   

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys

Re: [Wicket-user] Issue when trying to specify Spring dependency through annotations

2007-03-07 Thread Igor Vaynberg

ah well, thats the problem. cglib is a requirement of wicket-spring. it is
in the pom.xml

-igor


On 3/7/07, ZedroS Schwart [EMAIL PROTECTED] wrote:


Thanks for your reply.

However, I don't understand how come this issue with the cglib jar,
which I don't even have in my classpath...

In case it could help, here is the complete stack trace :
java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Callback

wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(
AnnotProxyFieldValueFactory.java:100)
wicket.injection.Injector.inject(Injector.java:110)
wicket.injection.ConfigurableInjector.inject(
ConfigurableInjector.java:24)
wicket.injection.ComponentInjector.onInstantiation(
ComponentInjector.java:54)
wicket.Application.notifyComponentInstantiationListeners(
Application.java:823)
wicket.Component.init(Component.java:574)
wicket.MarkupContainer.init(MarkupContainer.java:115)
wicket.Page.init(Page.java:193)
wicket.markup.html.WebPage.init(WebPage.java:119)
org.zedros.commun.BasePage.init(BasePage.java:12)
org.zedros.forms.LoginPage.init(LoginPage.java:36)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java
:58)

wicket.request.target.component.BookmarkablePageRequestTarget.newPage(
BookmarkablePageRequestTarget.java:267)

wicket.request.target.component.BookmarkablePageRequestTarget.getPage(
BookmarkablePageRequestTarget.java:286)

wicket.request.target.component.BookmarkablePageRequestTarget.processEvents
(BookmarkablePageRequestTarget.java:205)

wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:65)

wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
(AbstractCompoundRequestCycleProcessor.java:57)
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
:896)
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
wicket.RequestCycle.step(RequestCycle.java:1010)
wicket.RequestCycle.steps(RequestCycle.java:1084)
wicket.RequestCycle.request(RequestCycle.java:454)
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Do you have any idea ?

Thanks again
ZedroS

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] was Re: Fwd: VOTE: backporting wicket 2.0 model change to 1.3

2007-03-07 Thread Igor Vaynberg

lets keep the roadmap discussion out of this thread.

-igor


On 3/7/07, Al Maw [EMAIL PROTECTED] wrote:


Johan Compagner wrote:
 In 2.0 we have a model change:
[...]
 1 port it to 1.3

 2 don't port it to 1.3

I'm afraid I'm very much -1 on this for 1.3.

I have a bunch of really complex models built using the current 1.3
models, and I expect other people do too.

At the moment, 1.2.x - 1.3 migration (even for a fairly complex site)
isn't terribly complicated. Putting this in will make it so.

I'd have probably an entire week's worth of rewriting and testing to
update my code (yes, I do have that many complex wrapper models). I just
won't have the time to do that before we want to be releasing beta and
RC builds of 1.3, so I'd suddenly find myself without a nice big complex
app to test against any more. I expect many many people would be in this
situation.

Models are one of the harder things to get your head around in Wicket,
complicated wrapped ones doubly so. Forcing users to suddenly update
large chunks of complex code won't happen - a lot of people will stick
with their current SNAPSHOT 1.3 versions for a while until they have the
time to devote to fixing this. This will mean the beta and RC builds
won't as much testing, which is a really bad idea IMHO.

In my opinion we could, within the next:
-
   1 week  - Push 1.3-betas as-is.
2/3 weeks - Bug fix as people test it and push out rc's when
 we feel it's solid and stable.
   4 weeks - Rename 1.x branch to 1.3.x.
   - Release 1.3.0 final and put 1.3.x immediately into
 maintenance mode.
   - Create 1.4.x branch from 1.3.0 tag.
   - Merge the model changes from trunk to 1.4.x.
   - Backport anything else from trunk to 1.4.x that's
 not JDK5-specific.
   6 weeks - Push out 1.4-betas
7/8 weeks - Push out 1.4-rc's
   9 weeks - Push out 1.4.0 final
   - Create 1.5.x branch from 1.4.0 tag.
   - Backport/add generics, covariance and other JDK 5 trunk
 features to the 1.5.x branch.
   - Move trunk to 2.0_deprecated_-_use_1.5.x_instead
14+ weeks - Release 1.5.0

Suggestions to make this work:
--
We won't backport from 1.4.x - 1.3.x.
We won't actively develop trunk.
We will push 1.4 out very soon after 1.3, and encourage migration.
We will have this in a public roadmap so people can see it coming.

Notes on what you think is insanity, but actually isn't:

We will of course end up with five(!) branches (1.2.x, 1.3.x, 1.4.x,
1.5.x and what's currently trunk). This may seem like madness to you,
but I reckon it isn't:

During 1.3 development, 2.x is low activity, 1.2.x negligible.
During 1.4 development, 1.3.x and 2.x are low, 1.2.x negligible.
During 1.5 development, only 1.4.x will also be quite active.

Once 1.5.0 is out, we can properly deprecate 2.0. People currently using
it may not like being told to migrate to 1.5.x, but that shouldn't be
too hard (much less hard than going from 1.3-2.0) and there shouldn't
be too many of them. I guess that's the price you sometimes pay for
using unreleased software. :-/

I'd envisage 1.4.x will require some backports from 1.5.x. We'd
obviously encourage core developers and patchers to upgrade their sites
to use 1.5.x, do active development on that, and therefore try to only
ever backport from 1.5.x to 1.4.x, not forward-port the other way around.

If you think I'm smoking crack, the above is utterly unreasonable, you
want to kick me out of the gang, or you have any better ideas or
suggestions as to how to keep everyone happy, please shout now. :-)

Best regards,

Alastair

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-07 Thread Igor Vaynberg

On 3/7/07, aozster [EMAIL PROTECTED] wrote:



Eelco Hillenius wrote:

 2) What do you think of the constructor change? Do you prefer 1.3's
 add style or 2.0's style of passing in the parent construction time.

  After I've read wiki about the constructor change I suddenly
oppose
 this idea.
 Why ?
   - Component should not rely on language level constructor for
domain
 specific life cycle ( It actually defines life cycle for JVM/CLR level
 object,or component ),



constructors have nothing to do with the vm

It should rely on component container life cycle

 service which specify the life cycle method and contract for component
 developer, init beforeAttach afterAttach beforeRender afterRender etc.



wicket is not a managed framework. you are in charge of instantiation the
components, thus constructors.


  - Component architecture for specific domain like GUI  should define
 life cycle method that ensure which resources are avaliable in that
 method.



we do, but like i said we let you be in control of instantiation because we
believe that delivers you the most flexibility


  - By assuming that component should have knowledge about the
 enclosing structure in constructor, It means
 Sturcture of the enclosing component should avaiable before it can be
 constructed or
 every components should know about the structure they will live in
before
 they can be constructed which make component more dependent.



yes but this is a gui framework with markup. you cant really compare it to
layout manager gui frameworks. this is also a framework where you have
separation of concerns, designers, etc. so we have a few special
requirements.

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Exception using @SpringBean and HibernateSessionFactory - wicket 1.3

2007-03-06 Thread Igor Vaynberg

do like the message says:

You can switch to JDK based serialization by
calling: wicket.util.lang.Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
method of your application

i think there is a bug in our optimized serialization where it doesnt handle
proxies properly yet

-igor



On 3/6/07, Michel Wichers [EMAIL PROTECTED] wrote:


Hi all,

we received the following exception within a WebPage using an injected
SpringBean - HibernateSessionFactory via sublassed LocalSessionFactoryBean
:

ERROR - Objects : Error serializing object class
de.ponton.box.core.ui.detail.Detail [object=[Page class =
de.ponton.box.core.ui.detail.Detail, id = 0, version = 0]]
wicket.util.io.WicketSerializeableException: Error writing fields for
wicket.proxy.$Proxy7
de.ponton.box.core.ui.detail.Detail-sessionFactory
NOTE: if you feel Wicket is at fault with this exception, please report
to the mailing list. You can switch to JDK based serialization by
calling: wicket.util.lang.Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
method of your application
at
wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:806)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at
wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(
ClassStreamHandler.java:860)
at
wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387)
at
wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at wicket.util.lang.Objects.objectToByteArray(Objects.java:1102)
at
wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:408)
at wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java
:49)
at
wicket.protocol.http.FilePageStore$PageSerializingThread.run(
FilePageStore.java:705)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at
wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:397)
at
wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
... 10 more
ERROR - FilePageStore$PageSerializingThread : Error in page save thread
java.lang.NullPointerException
at
wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:413)
at wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java
:49)
at
wicket.protocol.http.FilePageStore$PageSerializingThread.run(
FilePageStore.java:705)
at java.lang.Thread.run(Thread.java:595)
shouldn't happen


Here is the applicationContextSnippet:
...
bean id=mergedSessionFactory
class=de.ponton.box.core.bootstrap.DynamicSessionFactoryBean
singleton=true
property name=dataSource
ref bean=dataSource /
/property


we are subclassing LocalSessionFactoryBean from spring:

...
public class DynamicSessionFactoryBean extends LocalSessionFactoryBean
{
...

and here is the code snippet:

@SpringBean
SessionFactory sessionFactory;


This has worked with Wicket 1.2.5...

Any ideas?

--
Best regards / Mit freundlichen Grüßen
Michel Wichers
_
Ponton Consulting GmbH voice:  +49.40.69213-340
http://www.ponton-consulting.de/   fax:+49.40.69213-355
Dorotheenstrasse 60mobile: +49.175.566 9970
D-22301 Hamburgmailto:[EMAIL PROTECTED]
_

HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz
Ponton Consulting is a Member of C1 Group (www.c1-group.com)
_



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Pushing data to the Ajax client in wicket?

2007-03-06 Thread Igor Vaynberg

class NewChatMsgEvent implements ComentEvent {
...
}

final WebMarkupContainer chatwindow=new WebMarkupContainer(chatwindow);
chatwindow.add(new CometBehavior(NewChatMsgEvent.class) {
  protected void onEvent(CometEvent e, ComentTarget t) {
   t.addComponent(chatwindow);
   }
}

form.add(new SendChatButton() {
 public void onsubmit() {
  getApplication().getCometBroadcaster().publish(new
NewChatMsgEvent());
  }
}

something like that should do quiet nicely i think

the broadcaster then has to find all active pages that have a behavior that
subscribed to this event and trigger them.

-igor



On 3/6/07, Johan Compagner [EMAIL PROTECTED] wrote:


i am planning to build an abstraction for cometd support (jetty and tomcat
now)
inside wicket. So that it really works like a ajax behavior that has a
constant open connection
where that you can get and then write the components you need.
I first need to build that we can release and get the page again (set the
pagemap barrier and release it when in idle mode)


If somebody has nice idea's/api for this please speak!

johan


On 3/6/07, Peter Neubauer [EMAIL PROTECTED] wrote:

 Hi there,
 I am trying to push out events that contain the moving locations of a
 users buddies, so I can update the GMap on the page using plain JS and
 the GMarkerManager.

 Right now I am using Pushlet for this, but that has the disadvantage
 that it is not integrated into Wicket, and it uses a generic broadcast
 mechanism, much like JMS subscribing to topics from JS.

 Is there any way to get this functionality working using Wicket, e.g.
 the GMap not being reloaded, just moving the markers on a pull/push
 interval?

 Thanks for any hints!

 /peter


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question: Sometimes our web pages come back incomplete.

2007-03-06 Thread Igor Vaynberg

ive only heard of this happening when wicket pages were rendered inside
sitemesh, is that what you are doing?

-igor


On 3/6/07, Thomas R. Corbin [EMAIL PROTECTED] wrote:


It seems as though some of the data just doesn't come back until we do a
refresh.

We're using wicket 1.2.5.

We've got a form and then after the form we have a DefaultDataTable with
some
rows.

Sometimes it seems like it stops drawing the page after part of the form,
maybe after the second datepicker.

Does this sound familiar?

Do you have any suggestions?

I am no wicket or web wizard, so any hints would be appreciated.
Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question: Sometimes our web pages come back incomplete.

2007-03-06 Thread Igor Vaynberg

im not sure if a solution has been found. afaik its some weird bug in
sitemesh. search the mailing list for sitemesh to see other threads

-igor


On 3/6/07, Thomas R. Corbin [EMAIL PROTECTED] wrote:


On Tuesday, 06 March 2007 10:57 am, Igor Vaynberg escreveu:
 ive only heard of this happening when wicket pages were rendered inside
 sitemesh, is that what you are doing?

Jeez.   Yes!   That's exactly what we're doing.

We have been thinking of getting rid of sitemesh once we're
totatlly off of
webwork and onto wicket.   Then we can just use wicket composition.

I guess we need to accelerate that!

Or is there some temporary solution?

Thanks!  Wow.


 -igor

 On 3/6/07, Thomas R. Corbin [EMAIL PROTECTED] wrote:
  It seems as though some of the data just doesn't come back until we do
a
  refresh.
 
  We're using wicket 1.2.5.
 
  We've got a form and then after the form we have a DefaultDataTable
with
  some
  rows.
 
  Sometimes it seems like it stops drawing the page after part of the
form,
  maybe after the second datepicker.
 
  Does this sound familiar?
 
  Do you have any suggestions?
 
  I am no wicket or web wizard, so any hints would be appreciated.
  Thanks.
 
 
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Spring Annotations

2007-03-06 Thread Igor Vaynberg

the released wicket-spring-annot jar is bad, rebuild it from source or use
the one from 1.2.4

-igor


On 3/6/07, jklcom99 [EMAIL PROTECTED] wrote:



I'm trying out Wicket Spring Annotation Integration example and I'm
getting
this error at server startup

2007-03-06 13:32:29.030::WARN:  failed example
java.lang.Error: Unresolved compilation problems:
The import wicket.injection.IFieldValueFactory cannot be resolved
IFieldValueFactory cannot be resolved to a type
factory cannot be resolved
IFieldValueFactory cannot be resolved to a type
factory cannot be resolved

Can some tell me what I am missing?
--
View this message in context:
http://www.nabble.com/Wicket-Spring-Annotations-tf3357621.html#a9338799
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using the session

2007-03-06 Thread Igor Vaynberg

On 3/6/07, Jason Roelofs [EMAIL PROTECTED] wrote:



Would you mine expounding on this a little more? This comes across to me
as it's bad programming practice to follow paradigms set in place for the
past 10+ years (Web session being a hash of strings at it's most basic
implementation).



so why even look into wicket? why not use servlets directly? after all they
have been around for 10+ years :)

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

pros:

* free to call any method in the constructor like getpage(), urlfor(), etc.

* access to markup attributes in constructor as opposed to render time

* fail at component instantiation time rather then render time if there is a
hierarchy-java mismatch - so you get a java line-precise error as opposed
to our error webpage

cons:

* code explosion
2.0: http://papernapkin.org/pastebin/view/4900
1.3: http://papernapkin.org/pastebin/view/4908

* hacks necessary for nontrivial components
GridView.populate()
http://papernapkin.org/pastebin/view/4902
notice fake1,fake2 parents necessary for child item instantiation and which
are later removed

* more limited in how the hierarchy is created since it MUST be created
top-down

* replacing components is less explicit.
1.3: a.replaceWith(new B());
2.0: new B(a.getParent(), a.getId());

-igor




On 3/6/07, Jonathan Locke [EMAIL PROTECTED] wrote:




i would like to see a list of what we'd lose by not supporting the
constructor change.  i actually prefer the add() usage and always
have.  i just don't want us to forget why we originally wanted to
make the constructor change.  the only two things i can recall are:

- better diagnostics, but i can't recall exactly /what/ diagnostics we
thought we'd get

- ability to make component init dependent on parental context.  this
might
be either xml association or component data somehow.  i can't think of any
times i've been screaming to do this, but can anyone give some of the best
examples so we can evaluate what we'd be losing here?


Eelco Hillenius wrote:

 Hi,

 We (Wicket's developers) are having some discussion over 1.3 vs 2.0
 and how difficult it is as a nun-funded project to spend so much time
 synchronizing the branches.

 A major issue in the discussion is that not everyone is convinced
 anymore that the constructor change in 2.0 is for the better. There
 are pros and cons for sure, but we want to get your opinion on this.

 Please help us out giving your opinion. We want to know:

 1) Who uses 2.0 for serious projects?

 2) What do you think of the constructor change? Do you prefer 1.3's
 add style or 2.0's style of passing in the parent construction time.

 3) If we would ever backtrack on the constructor change (*if*, don't
 panic for now) how much trouble would that give you?

 Please don't be shy giving your opinion. This is an important issue in
 the future development of Wicket.

 Regards,

 Eelco


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9342589
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

because the parent must be known at construction time and by YOU since YOU
are the one calling new. so if there is an indirection somewhere like there
is with the toolbars you have to use a factory in order to get the correct
parent passed to you by the component at a later time.

-igor


On 3/6/07, cowwoc [EMAIL PROTECTED] wrote:



Why does code explosion happen as a consequence of the
constructor
change?

Gili

Igor Vaynberg wrote:
 pros:

 * free to call any method in the constructor like getpage(), urlfor(),
etc.

 * access to markup attributes in constructor as opposed to render time

 * fail at component instantiation time rather then render time if there
 is a hierarchy-java mismatch - so you get a java line-precise error as
 opposed to our error webpage

 cons:

 * code explosion
 2.0: http://papernapkin.org/pastebin/view/4900
 1.3: http://papernapkin.org/pastebin/view/4908
 http://papernapkin.org/pastebin/view/4908

 * hacks necessary for nontrivial components
 GridView.populate()
 http://papernapkin.org/pastebin/view/4902
 notice fake1,fake2 parents necessary for child item instantiation and
 which are later removed

 * more limited in how the hierarchy is created since it MUST be created
 top-down

 * replacing components is less explicit.
 1.3: a.replaceWith(new B());
 2.0: new B(a.getParent(), a.getId());

 -igor




 On 3/6/07, *Jonathan Locke* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:



 i would like to see a list of what we'd lose by not supporting the
 constructor change.  i actually prefer the add() usage and always
 have.  i just don't want us to forget why we originally wanted to
 make the constructor change.  the only two things i can recall are:

 - better diagnostics, but i can't recall exactly /what/ diagnostics
we
 thought we'd get

 - ability to make component init dependent on parental
 context.  this might
 be either xml association or component data somehow.  i can't think
 of any
 times i've been screaming to do this, but can anyone give some of
 the best
 examples so we can evaluate what we'd be losing here?


 Eelco Hillenius wrote:
 
  Hi,
 
  We (Wicket's developers) are having some discussion over 1.3 vs
2.0
  and how difficult it is as a nun-funded project to spend so much
time
  synchronizing the branches.
 
  A major issue in the discussion is that not everyone is convinced
  anymore that the constructor change in 2.0 is for the better.
There
  are pros and cons for sure, but we want to get your opinion on
this.
 
  Please help us out giving your opinion. We want to know:
 
  1) Who uses 2.0 for serious projects?
 
  2) What do you think of the constructor change? Do you prefer 1.3
's
  add style or 2.0's style of passing in the parent construction
time.
 
  3) If we would ever backtrack on the constructor change (*if*,
don't
  panic for now) how much trouble would that give you?
 
  Please don't be shy giving your opinion. This is an important
issue in
  the future development of Wicket.
 
  Regards,
 
  Eelco
 
 

-

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys-and earn
cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:

http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9342589
 
http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9342589

 Sent from the Wicket - User mailing list archive at Nabble.com
 http://Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

well it is useful when constructing javascript behaviors because they can
create urls to pass to javascript at construction time instead of doing it
at a later point (onattach?). but it is mere convinience.

-igor


On 3/6/07, Jonathan Locke [EMAIL PROTECTED] wrote:




just thinking out loud, there is no workaround for the constructor pros.
are there any important things people really /need/ to get done that we're
making impossible without the constructor change?  i don't care to much
about accessing markup attributes in the constructor because i don't care
much about driving code from markup.  but what about the others?  are
there
any useful things we'd lose?

i think i can live without the perfect error reporting as wicket error
reporting seems good enough to me now.  it's almost certainly not worth a
code explosion to get this alone.

   jon


igor.vaynberg wrote:

 pros:

 * free to call any method in the constructor like getpage(), urlfor(),
 etc.

 * access to markup attributes in constructor as opposed to render time

 * fail at component instantiation time rather then render time if there
is
 a
 hierarchy-java mismatch - so you get a java line-precise error as
 opposed
 to our error webpage

 cons:

 * code explosion
 2.0: http://papernapkin.org/pastebin/view/4900
 1.3: http://papernapkin.org/pastebin/view/4908

 * hacks necessary for nontrivial components
 GridView.populate()
 http://papernapkin.org/pastebin/view/4902
 notice fake1,fake2 parents necessary for child item instantiation and
 which
 are later removed

 * more limited in how the hierarchy is created since it MUST be created
 top-down

 * replacing components is less explicit.
 1.3: a.replaceWith(new B());
 2.0: new B(a.getParent(), a.getId());

 -igor




 On 3/6/07, Jonathan Locke [EMAIL PROTECTED] wrote:



 i would like to see a list of what we'd lose by not supporting the
 constructor change.  i actually prefer the add() usage and always
 have.  i just don't want us to forget why we originally wanted to
 make the constructor change.  the only two things i can recall are:

 - better diagnostics, but i can't recall exactly /what/ diagnostics we
 thought we'd get

 - ability to make component init dependent on parental context.  this
 might
 be either xml association or component data somehow.  i can't think of
 any
 times i've been screaming to do this, but can anyone give some of the
 best
 examples so we can evaluate what we'd be losing here?


 Eelco Hillenius wrote:
 
  Hi,
 
  We (Wicket's developers) are having some discussion over 1.3 vs 2.0
  and how difficult it is as a nun-funded project to spend so much time
  synchronizing the branches.
 
  A major issue in the discussion is that not everyone is convinced
  anymore that the constructor change in 2.0 is for the better. There
  are pros and cons for sure, but we want to get your opinion on this.
 
  Please help us out giving your opinion. We want to know:
 
  1) Who uses 2.0 for serious projects?
 
  2) What do you think of the constructor change? Do you prefer 1.3's
  add style or 2.0's style of passing in the parent construction time.
 
  3) If we would ever backtrack on the constructor change (*if*, don't
  panic for now) how much trouble would that give you?
 
  Please don't be shy giving your opinion. This is an important issue
in
  the future development of Wicket.
 
  Regards,
 
  Eelco
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:

http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9342589
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Igor Vaynberg

yeah, with our new headercontributor stuff some of these problems no longer
matter

-igor


On 3/6/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 i don't care to much
 about accessing markup attributes in the constructor because i don't
care
 much about driving code from markup.

If you create components that are based on or work together with
Javascript components, this is a nice feature to have. Driving code
from markup sounds more negative than it is, as when working with ajax
and javascript, you *need* this, and the ability to do it at any time
is nice.

There are workarounds, and I found that in the end I'm often coupling
such components on render time anyway (e.g. using header contributors
with LoadableDetachableModels).

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IMPORTANT: your opinion on the constructor

2007-03-06 Thread Igor Vaynberg

On 3/6/07, Stefan Lindner [EMAIL PROTECTED] wrote:


To speak as an end-user:


 2) What do you think of the constructor change? Do you prefer 1.3's
We prefer the 2.0 constructor.



what about it do you prefer?




in most cases. But I was convinced of the advantages that the new
constructor has and the question is now
1. Are the proposed advantages no longer advantages



they still are, although less so with the new headercontributor stuff

2. Does the new constructor make anything impossible that was possible with

the old style contructor?



yes. it makes indirectly creating children more difficult. it also makes
moving components very difficult.

3. What does the wicket 1.x users prevent to switch to the 2.0 style that

goes beyond a simple syntax change?



because the constructor is more limiting in the way you create hierarchies
(see point 2) you need to rewrite parts of your code in a non-trivial manner

going the other way 2.0-1.x should be trivial

-igor


Stefan Lindner




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Exception using @SpringBean and HibernateSessionFactory - wicket 1.3

2007-03-06 Thread Igor Vaynberg

if its injected through @springbean its ok

-igor


On 3/6/07, Al Maw [EMAIL PROTECTED] wrote:


Michel Wichers wrote:
 we received the following exception within a WebPage using an injected
 SpringBean - HibernateSessionFactory via sublassed
LocalSessionFactoryBean :

...

 de.ponton.box.core.ui.detail.Detail-sessionFactory

It looks to me like that class has a reference to sessionFactory.
Needless to say, you shouldn't do that! You can't serialise your session
factory - it has connections to the database, etc.

So I don't think this is a bug in our serialization, but instead someone
having a SessionFactory reference where they shouldn't.

Al

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Exception using @SpringBean and HibernateSessionFactory - wicket 1.3

2007-03-06 Thread Igor Vaynberg

create a jira issue and assign it to johan :)

-igor


On 3/6/07, Michel Wichers [EMAIL PROTECTED] wrote:


Hi Igor,

using the default factory works ... however a fix would be great ;-)

Thanks  for your help.

Regards,

Michel

Igor Vaynberg schrieb:
 do like the message says:

 You can switch to JDK based serialization by
 calling: wicket.util.lang.Objects
 .setObjectStreamFactory(new
 IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
 method of your application

 i think there is a bug in our optimized serialization where it doesnt
 handle proxies properly yet

 -igor



 On 3/6/07, *Michel Wichers* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Hi all,

 we received the following exception within a WebPage using an
injected
 SpringBean - HibernateSessionFactory via sublassed
 LocalSessionFactoryBean :

 ERROR - Objects : Error serializing object class
 de.ponton.box.core.ui.detail.Detail [object=[Page class =
 de.ponton.box.core.ui.detail.Detail, id = 0, version = 0]]
 wicket.util.io.WicketSerializeableException: Error writing fields
for
 wicket.proxy.$Proxy7
 de.ponton.box.core.ui.detail.Detail-sessionFactory
 NOTE: if you feel Wicket is at fault with this exception, please
 report
 to the mailing list. You can switch to JDK based serialization by
 calling: wicket.util.lang.Objects.setObjectStreamFactory (new
 IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
 method of your application
 at
 wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:806)
 at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
 at
 wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(
ClassStreamHandler.java:860)
 at
 wicket.util.io.ClassStreamHandler.writeFields
 (ClassStreamHandler.java:387)
 at
 wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
 at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
 at wicket.util.lang.Objects.objectToByteArray(Objects.java:1102)
 at
 wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java
:408)
 at
 wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java:49)
 at
 wicket.protocol.http.FilePageStore$PageSerializingThread.run(
FilePageStore.java:705)
 at java.lang.Thread.run(Thread.java:595)
 Caused by: java.lang.NullPointerException
 at
 wicket.util.io.ClassStreamHandler.writeFields
 (ClassStreamHandler.java:397)
 at
 wicket.util.io.WicketObjectOutputStream.writeObjectOverride(
WicketObjectOutputStream.java:779)
 ... 10 more
 ERROR - FilePageStore$PageSerializingThread : Error in page save
 thread
 java.lang.NullPointerException
 at
 wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java
:413)
 at
 wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java
:49)
 at
 wicket.protocol.http.FilePageStore$PageSerializingThread.run
 (FilePageStore.java:705)
 at java.lang.Thread.run(Thread.java:595)
 shouldn't happen


 Here is the applicationContextSnippet:
 ...
 bean id=mergedSessionFactory
 class=
 de.ponton.box.core.bootstrap.DynamicSessionFactoryBean
 singleton=true
 property name=dataSource
 ref bean=dataSource /
 /property
 

 we are subclassing LocalSessionFactoryBean from spring:

 ...
 public class DynamicSessionFactoryBean extends
LocalSessionFactoryBean
 {
 ...

 and here is the code snippet:
 
 @SpringBean
 SessionFactory sessionFactory;
 

 This has worked with Wicket 1.2.5...

 Any ideas?

 --
 Best regards / Mit freundlichen Grüßen
 Michel Wichers

_
 Ponton Consulting GmbH voice:  +49.40.69213-340
 http://www.ponton-consulting.de/   fax:+49.40.69213-355
 Dorotheenstrasse 60mobile: +49.175.566 9970
 D-22301
 Hamburgmailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]

_

 HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz
 Ponton Consulting is a Member of C1 Group (www.c1-group.com
 http://www.c1-group.com)

_




-

 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash

http

Re: [Wicket-user] Questions about non-wicket ajax call to wicket component

2007-03-05 Thread Igor Vaynberg

see ComponentRequestTarget which will render a markup of a certain component
only

and RequestCycle.urlFor(Component,RequestInterface) which will create a url
to any callback method on any component

-igor




On 3/5/07, Michael K [EMAIL PROTECTED] wrote:


Hi,

I got a problem when i tried to use yui-ext updateManager script to load
wicket component via XHR. Here is what I 've done so far:

I created a js script that contain a Yui-ext's Dialog panel and embedded
into the header page. Next, I override Wicket.link's getOnClickScript(url)
so that the onclick script will callback the yui-ext.updateManager script
with a given url. Now, that works fine but my next challenge is to generate
a url that points to a panel so that when the script make a request, wicket
will response to that particular panel. My other solution is to load an
entire page into IFramepageIFrame, but I prefer using divpanel/div.
Any suggestion?


Thanks,
Michael

--
8:00? 8:25? 8:40? Find a flick in no time
with theYahoo! Search movie showtime shortcut.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] StatelessForm and setRedirect(true) in the onSubmit method

2007-03-05 Thread Igor Vaynberg

dont know if there is a problem with stateless pages and redirects, but
wicket's default redirect-to-buffer render strategy should already eliminate
that popup by performing a redirect

-igor


On 3/5/07, Matthew Kwong [EMAIL PROTECTED] wrote:



Hi guys,

I encountered a problem in the stateless form, which is in my login page.

The form code is as below:

public final void onSubmit() {
// Get session info
DataStoreSession session = (DataStoreSession)getSession();

// Sign the user in
if (session.authenticate(username, password)) {
if (!continueToOriginalDestination()) {
setRedirect(true);
setResponsePage(new DataStoreTabbedPanelPage());
}
}
else {
error(getLocalizer().getString(loginError, this, Unable to sign
you in));
}
}

DataStoreTabbedPanelPage is a stateful page with all the components and
panels. The session is also created after submit. However, when I click
other pages, it gives me Expired Page. The reason I want to redirect
because
when the user successfully login, and press F5, firefox gives them a popup
for them to resubmit the form and create another session.

Is there any problem with the setRedirect(true) in stateless form?

Matthew Kwong
--
View this message in context:
http://www.nabble.com/StatelessForm-and-setRedirect%28true%29-in-the-onSubmit-method-tf3347688.html#a9308281
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] URL problem in phonebook app

2007-03-05 Thread Igor Vaynberg

in latest 1.3 the wicket path param should not be necessary because wicket
will scan your web.xml to find it for you

-igor


On 3/5/07, John Patterson [EMAIL PROTECTED] wrote:


I have reverted to Wicket 1.3 now because of this and the NPE problem
being thrown due to a null version manager.  So from what I remember...

I initially had no filterPath parameter in my web.xml because the
filter was mapped to the webroot /*

Then I copied the configuration from the phonebook app and found that
this did not work either and that the phonebook app is broken due to
this bug.

When debugging I could see that the method
WicketFilter.isWicketRequest() was testing /app (from the filterPath
arg) against /app/ and incorrectly returning false.

On 2 Mar 2007, at 17:45, Eelco Hillenius wrote:

 How did you configure the filter in web.xml?

 Eelco

 On 2/26/07, John Patterson [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to use the wicket filter in trunk but cannot get it to
 respond to a url to my home page.  The same problem seems to happen
 with the phonebook app.  When I run the phonebook app I enter http://
 localhost:8080/phonebook which redirects to http://localhost:8080/
 phonebook/app.

 The method WicketFilter.isWicketRequest() returns false and so the
 request is ignored.

 John.

 -
 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] removeComponent?

2007-03-05 Thread Igor Vaynberg

maybe you are not using a detachable model for your listview?

-igor


On 3/5/07, Jason Roelofs [EMAIL PROTECTED] wrote:


How do I tell Wicket to clear out an object who's underlying
implementation (db record, in this case) was just deleted? Current flow:

 - Delete link clicked, sends Ajax request
 - onClick deletes the object from DB, tells to redraw entire list of
objects
 - my now deleted object still gets rendered
 - Click on Delete link again, throws error because of course, the guy
doesn't actually exist

Is there some caching going on that I can clear?

Thanks

Jason

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket exemples down

2007-03-05 Thread Igor Vaynberg

wicketstuff.org/wicket13

-igor


On 3/5/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


Wicket exemple is down :
http://www.wicket-library.com/wicket-examples

I got a proxy error.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket exemples down

2007-03-05 Thread Igor Vaynberg

yes, thats the idea

-igor


On 3/5/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


Thanks.  Will it be the new standard example server.

I use it often just to get simple idea most of the time! :)

On 3/5/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 wicketstuff.org/wicket13

 -igor


 On 3/5/07, Marc-Andre Houle  [EMAIL PROTECTED] wrote:

  Wicket exemple is down :
  http://www.wicket-library.com/wicket-examples
 
  I got a proxy error.
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-03-05 Thread Igor Vaynberg

where is the link to the page? or are you not able to create it at all? wiki
is open to anyone to edit as long as you create a login.

-igor


On 3/5/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED]
wrote:


Hi, I'm trying to post in the wiki but in the middle of the process I
try to save and appears a message telling me that I don't have
permissions. The page is Creating a FormComponent AjaxBehavior.
Anyone can help me?

On 28-02-2007, at 15:17, Eelco Hillenius wrote:

 would be cool if you could create a wiki page explaining how you
 built it.
 not only is it a cool component, but outlining the process will
 help others
 a lot.

 I second that.

 Eelco

 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: removeComponent?

2007-03-05 Thread Igor Vaynberg

that should be ifne provided that HibernateListModel is detaching properly.
i dont use databinder so i couldnt tell you. maybe you should post this on
the databinder mailing list.

if it is indeed detaching properly then the wicket-side of things looks
fine. maybe you are caching the query in hibernate?

-igor


On 3/5/07, Jason Roelofs [EMAIL PROTECTED] wrote:


Crap, Gmail keybindings screwed me up. Posting the rest...

Well, I am using a detachable model. Here's basically what I've got (using
Databinder, HibernateListModel implements IDetachable):

IModel rules = new HibernateListModel(...);

add(new PropertyListView(rules, rules) {
  void populateItem(final ListItem item) {
item.add(new AjaxFallbackLink(delete) {
  void onClick(target) {

 // what do I do here? I hibernate.delete(obj), and addComponent,
but doesn't work

   }
}
  }
});

Is there a different version of ListView I should be using?

Jason

On 3/5/07, Jason Roelofs  [EMAIL PROTECTED] wrote:

 Well, I am using a detachable model. Here's basically what I've got
 (using Databinder, HibernateListModel implements IDetachable):

 IModel rules = new HibernateListModel(...);

 add(new PropertyListView(rules, rules) {

 });

 On 3/5/07, Marc-Andre Houle  [EMAIL PROTECTED] wrote:
 
  Make sure that you populate your list in the onAttach instead of the
  constructor.  Most of the time, that was my error.  Or, make sure your model
  is updated at the redraw
 
  -- Forwarded message --
  From: Jason Roelofs [EMAIL PROTECTED]
  Date: Mar 5, 2007 11:25 AM
  Subject: [Wicket-user] removeComponent?
  To: wicket-user@lists.sourceforge.net
 
  How do I tell Wicket to clear out an object who's underlying
  implementation (db record, in this case) was just deleted? Current flow:
 
   - Delete link clicked, sends Ajax request
   - onClick deletes the object from DB, tells to redraw entire list of
  objects
   - my now deleted object still gets rendered
   - Click on Delete link again, throws error because of course, the guy
  doesn't actually exist
 
  Is there some caching going on that I can clear?
 
  Thanks
 
  Jason
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net 's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-03-05 Thread Igor Vaynberg

i was able to create it here:

http://cwiki.apache.org/confluence/display/WICKET/Creating+a+FormComponentAjaxBehavior

-igor


On 3/5/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED]
wrote:


Hi, if you try to add a new page you can see A new page you were
adding on Mar 02, 2007 12:15 called Creating a FormComponent
AjaxBehavior was not saved. Do you want to resume editing or discard
it? that my page, but a can't resume or discard it.


On 05-03-2007, at 15:22, Igor Vaynberg wrote:

 where is the link to the page? or are you not able to create it at
 all? wiki
 is open to anyone to edit as long as you create a login.

 -igor


 On 3/5/07, Manuel Alejandro de Brito Fontes
 [EMAIL PROTECTED]
 wrote:

 Hi, I'm trying to post in the wiki but in the middle of the process I
 try to save and appears a message telling me that I don't have
 permissions. The page is Creating a FormComponent AjaxBehavior.
 Anyone can help me?

 On 28-02-2007, at 15:17, Eelco Hillenius wrote:

  would be cool if you could create a wiki page explaining how you
  built it.
  not only is it a cool component, but outlining the process will
  help others
  a lot.
 
  I second that.
 
  Eelco
 
 
 -
 -
  ---
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn
 cash
  http://www.techsay.com/default.php?
  page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Error with 1.2.5 and Spring

2007-03-05 Thread Igor Vaynberg

i think the released wicket-spring jar is foobared. can you try building
from source?

-igor

On 3/5/07, Matt Welch [EMAIL PROTECTED] wrote:


I'm only just now upgrading to Wicket 1.2.5 and I've run into an issue.
I'm certain this is an problem on my side and not a bug because other people
would have run into this and reported by now and I can't find any reports
like this on the mailing list.

I'm using Maven. I switched my three wicket dependencies (wicket,
wicket-spring, and wicket-spring-annot) from version 1.2.4 to 1.2.5 and
I'm now receiving an error. Everything compiles fine in my code, but when I
start up jetty I see:

--
java.lang.Error: Unresolved compilation problems:
The import wicket.injection.IFieldValueFactory cannot be resolved
IFieldValueFactory cannot be resolved to a type
factory cannot be resolved
IFieldValueFactory cannot be resolved to a type
factory cannot be resolved

at wicket.spring.injection.annot.AnnotSpringInjector.init(
AnnotSpringInjector.java:4)
at wicket.spring.injection.annot.SpringComponentInjector.init(
SpringComponentInjector.java:96)
at wicket.spring.injection.annot.SpringComponentInjector.init(
SpringComponentInjector.java:68)
at com.ptc.fusion.web.FusionWebApplication.init(
FusionWebApplication.java:55)
at wicket.protocol.http.WicketServlet.init(WicketServlet.java:299)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(
ServletHolder.java:442)
at org.mortbay.jetty.servlet.ServletHolder.doStart(
ServletHolder.java:259)
at org.mortbay.component.AbstractLifeCycle.start (
AbstractLifeCycle.java:40)
at org.mortbay.jetty.servlet.ServletHandler.initialize(
ServletHandler.java:593)
at org.mortbay.jetty.servlet.Context.startContext(Context.java
:139)
at org.mortbay.jetty.webapp.WebAppContext.startContext (
WebAppContext.java:1191)
at org.mortbay.jetty.handler.ContextHandler.doStart(
ContextHandler.java:481)
at org.mortbay.jetty.webapp.WebAppContext.doStart(
WebAppContext.java:434)
at org.mortbay.component.AbstractLifeCycle.start (
AbstractLifeCycle.java:40)
at org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start(
Jetty6PluginWebApplication.java:147)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.changesDetected
(AbstractJettyRunMojo.java :372)
at org.mortbay.jetty.plugin.util.Scanner.run(Scanner.java:159)
--

If I remove the following line in my WebAppliciation.init() method,
everything starts up fine:

addComponentInstantiationListener(new SpringComponentInjector(this));

Of course, when remove that, I can no longer inject Spring beans with the
@SpringBean annotation.

I'm a little stuck here. If I switch back to 1.2.4, it's all fine again.
Any ideas?

Matt



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I make CheckBoxMultipleChoice show horizontal instead of vertical?

2007-03-05 Thread Igor Vaynberg

override getprefix/getsuffix to return whatever html you want

-igor


On 3/5/07, Thomas R. Corbin [EMAIL PROTECTED] wrote:



I know that must be a dumb question, but I just can't quite get it.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] building wicket-stuff snapshots

2007-03-05 Thread Igor Vaynberg

nothing special, just mvn install

the webserver links to the local maven repository :)

-igor


On 3/5/07, Ryan Sonnek [EMAIL PROTECTED] wrote:


I'm working on setting up the wicket-contrib-scriptaculous project on the
wicket-stuff bamboo server, and would like to know if it's possible to have
it automatically publish snapshots to the wicket-stuff maven repo?

anything special needed to set this up?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I make CheckBoxMultipleChoice show horizontal instead of vertical?

2007-03-05 Thread Igor Vaynberg

well if you want it to be horizontal then you can do something like this:

setprefix(div style=\float:left;\);
setsuffix(/div);

-igor


On 3/5/07, Thomas R. Corbin [EMAIL PROTECTED] wrote:


On Monday, 05 March 2007 04:22 pm, Igor Vaynberg escreveu:
 override getprefix/getsuffix to return whatever html you want

Ok, sorry - but I'm not sure what html I want there.

I'm more of a swing programmer than a web programmer.


 -igor

 On 3/5/07, Thomas R. Corbin [EMAIL PROTECTED] wrote:
  I know that must be a dumb question, but I just can't quite get it.
 
 
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Components final add() method a flaw by design?

2007-03-05 Thread Igor Vaynberg

onattach() { if (size()1) throw new IllagelStateException(more then one
child added to component that must only have one child); }

-igor


On 3/5/07, Chris Lintz [EMAIL PROTECTED] wrote:



Hi all,
I have just found an annoying design flaw that prevents me from creating
components that need exactly say 2 child components (no more no less).  I
understand why the Components add() method is final, but the framework
gives
me  no other option of enforcing exact number of children components
leaving
the code wide open for misuse on certain components.

For example, I am creating my own FeedbackBorder that displays component
error messages directly under the component.  Each of these Feedbackborder
objects can only contain 1 component and 1 component only (dont want the
developer callling add() multiple times.  I cannot even wrap the Border
object because the FeedbackBorder object itself needs to extend from
Component in order to be added to a form.  This seems like a bad design
not
being able to easily enforce rules around how many child components can be
part of a particular component.

Please let me know your thoughts.

--
View this message in context:
http://www.nabble.com/Components-final-add%28%29-method-a-flaw-by-design--tf3352685.html#a9323530
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Components final add() method a flaw by design?

2007-03-05 Thread Igor Vaynberg

why? whats the point? you would generate a runtime exception in both cases.
in some variant of add you would fail earlier then in onattach, but the
error message makes it very clear what is wrong.

its just bloat imho. you will never have a design that pleases everyone, in
this case i dont think we will make things any better.

-igor


On 3/5/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


On 3/5/07, Chris Lintz [EMAIL PROTECTED] wrote:

 I was hoping to prevent any one implementing the component from ever
being
 able to add more than one at development time by wrapping add() with
 something like setComponent().  I guess I will have to lean on the
method
 below and fall back on run-time exceptions.

 Thanks.  That is helpful although not ideal.

I agree that it is not very elegant. Igor and others, how about adding
a protected non-final method like allowAdd or something?

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Unexplained behavior...

2007-03-05 Thread Igor Vaynberg

do the urls in those img tags point back to the page? :)

eg img src=/ will do it

-igor


On 3/5/07, Corey Puffalt [EMAIL PROTECTED] wrote:


Hi...

I'm new to Wicket so hopefully this will be obvious to someone else.  I'm
seeing what seems (to me) to be strange behavior.  I've got a page into
which I'm rendering some Labels with models that contain some HTML.  These
Labels are being rendered inside a DataView (though I doubt that makes a
difference).  The code in the constructor for my page looks something like
this:

...
DataView dataView = new DataView(pageable, new EntryDataProvider())
{
  protected void populateItem(final Item item)
  {
log.debug(Populating  + item);
Entry entry = (Entry)item.getModelObject();

item.add(new Label(message, entry.getMessage
()).setEscapeModelStrings(false));

  }
};
add(dataView);
...

The strange behavior I'm seeing is that my Page is being constructed
multiple times and it appears to be somehow due to the HTML content in my
Label?!?  If I setEscapeModelStrings(true) then my Page is only constructed
once but otherwise it is constructed multiple times.  I've added some
additional debug logging and it seems to be somehow related to some embedded
img tags in the HTML I'm outputting.  Can anyone explain what is going on
here?  Does anyone know how I can prevent my Page from being unnecessarily
constructed multiple times?

Thanks,
Corey

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Unexplained behavior...

2007-03-05 Thread Igor Vaynberg

if the page is mounted that will do it

lets say you have a mount /foo

and in that html you have img src=gif/image.gif/

the full path is /foo/gif/image.gif

which will match your page mounted at /foo

-igor


On 3/5/07, Corey Puffalt [EMAIL PROTECTED] wrote:


The URLs that seem to be triggering the extra page constructions look like
img src=gif/image.gif.  (I only know this because the PageParameters seem
to be gif = image.gif.)

Corey

On 3/5/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 do the urls in those img tags point back to the page? :)

 eg img src=/ will do it

 -igor


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Absolute minimal Hello World sample not working

2007-03-04 Thread Igor Vaynberg

i think this is generally an antipattern. its never a good idea to put jars
like wicket,spring into server's shared lib dirs because anything static
then becomes shared across all webapps. it can have some strange sideffects.

for example take wicket's springbean injection stuff. it keeps the injector
in a static field, and the injector is tied to the application. so if you do
this then webapp A can get an injector that works with webapp B because they
now shared the static field that is shared across the webapps.

-igor


On 3/4/07, Dan Brough [EMAIL PROTECTED] wrote:


Chris Colman wrote:
 I found the problem: had to put the wicket jars in my web app's 'lib'
 directory and not in 'common/lib'.

I noticed this problem with jetty.
wicket.protocol.http.WicketFilter sets the context class loader to the
filters class loader
which can't see your web application classes.
I worked around this by extending the WicketFilter with the override:

protected ClassLoader getClassLoader() {
return Thread.currentThread().getContextClassLoader();
}

so that my new WicketFilter would keep the default context class loader.
Mow I can stick all my wicket jars in the servers lib directory instead
of having to put them in the webapps lib directory.

Anyone know what problems this might cause me ? .. or perhaps the logic
behind wicket changing
the context class loader for the request threads ?

cheers,
Dan Brough.




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] multi-file upload component

2007-03-03 Thread Igor Vaynberg

look inside the javascript:

* Licence:
*   Use this however/wherever you like, just don't blame me if it breaks
anything.

that IS the license. the attribution is completely optional. it is there in
devel mode, but will be gone in prod mode because the js will be
stripped/compressed.

i already added a notice in NOTICE file giving him attribution there as well

-igor


On 3/3/07, Frank Bille [EMAIL PROTECTED] wrote:


On 3/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote:

 I guess we'd rather keep the credit in the code. That is what he's
 asking for.


It's not part of the license though. It's not a requirement. I don't
personally mind that the header stays, but as far as I can see all he's
asking is for attribution.

It was more if someone has a problem with having a big header in the
javascript file.


And IANAL, but this doesn't seem like a license that is
 compatible with the ASL. I think we should pass it by @legal, just to
 make sure.


Hmm, IMO it looks like he is putting it in public domain, but I guess
since he isn't stating that explicitly perhaps he is actually making it
incompatible with ASL.

I would say that he is *not* specifying a license, but more terms of use.

But @legal to be sure +1

Frank

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to submit a form using a LINK and NO JAVASCRIPT

2007-03-03 Thread Igor Vaynberg

with no javascript a link cannot submit a form, only input type=submit/
can, so use that. so you need pagination that uses input type=submit
elements

-igor


On 3/3/07, Shams Mahmood [EMAIL PROTECTED] wrote:


Hi,

I an caught up in a problem where I cannot use javascript,
but i need a Link to submit my Form.

Basically my problem is I have pagination in my page where
the user can select items using checkboxes in a check group.
When he uses the pagination links i am required to update and hold the
values in my model for his previous choices.
Finally after browsing through the various pages he may interact with
the form's Submit Button.
The problem I am facing because I cannot use AjaxBehavior on the onUpdate
method of the checkboxes. hence i require to get my form submitted when
the link
is clicked to update my check grouyp's model.

Shams

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Defining link text for a ListView

2007-03-02 Thread Igor Vaynberg

most components in wicket are. the nesting of components must follow the
nesting in html.

-igor


On 3/2/07, Chris Colman [EMAIL PROTECTED] wrote:


 instead of
 item.add(new link(categoryLink){});
 item.add(new label(categoryname))
 do
 Link link=new linke(categoryLink);
 item.add(link);
 link.add(new label(categoryname));

Ok, so Link is a kind of composite component that can have subcomponents
- like the label.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RequestCycle ThreadLocal

2007-03-02 Thread Igor Vaynberg

but why are these things tied to request threads? doesnt sound like they
should be.

-igor


On 3/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


On 3/2/07, Robert . [EMAIL PROTECTED] wrote:
 Well, I am converting an existing Tapestry application to Wicket (due to
 performance and stability problems).
 The architecture is done is such a way that it is necessary to render
 responses in a different thread than where the original request comes
in.

 The web application has to deal with asynchronous communication with a
 server. I will give you an example.
 The browser sends a request that it wants to submit X.
 The web application receives this and put task A on the event queue that
 sends it to the server application.
 In the meantime task A waits.
 The server application then sends a request to the web application that
it
 needs information about Y.
 The web application retrieves the current cycle and renders a response
so
 the user can answer the question about Y.
 And it continues like that when finally task A gets its response from
the
 server and renders in a request cycle other than
 the one causing the request.

 This architecture existed before any web application was developed for
it.

I think your best bet is to take a close look at Wicket servlet and
see how it prepares and executes request.

Let the application object create the web request,set the application
thread local, get the session, create a custom response object (this
is where you probably want to capture your output, see for instance
BufferedWebResponse) and then let the session create a request cycle
(which is not meant for reuse mind you) using those request and
response objects. Execute the request cycle (cycle.request()) and then
do something with the response object that should now hold the render
result. And don't forget to cleanup.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Difference between Wicket FileUpload and Apache Commons FileUpload

2007-03-02 Thread Igor Vaynberg

it is a copy, what we did was take out whatever pieces we needed from the
commons-upload. that way we dont have an extra dependency and we only use
the small portion that we need.

-igor


On 3/2/07, MadDog [EMAIL PROTECTED] wrote:



Wicket's FileUpload component appears to be an exact copy(or very close
copy)
of the Apache Commons FileUpload component.  What are the
differences?  Why
doesn't Wicket just use Apache Commons FileUpload?

-MadDog
--
View this message in context:
http://www.nabble.com/Difference-between-Wicket-FileUpload-and-Apache-Commons-FileUpload-tf3335183.html#a9274948
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Page creation from db

2007-03-01 Thread Igor Vaynberg

the niceset woiuld be to use panels instead of pages. that way you mount a
page onto /mountpoint, when its hit you read the rest of the parameters,
query the db for the panel class, instantiate it and add it to the page.
nice and clean. there is really very little difference between page and
panel functionality-wise.

i dont have the code infront of me, but i would think this should be doable
within the pagemap factory

-igor

On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote:


Hi,
I'm looking for a pattern to create page instances from a configuration in
db.
I sounds really weird but the scenario is this:

- A request comes in for /mountpoint/dynamicpart1/part2/part3
- A lookup is made to db for a PageConfig with urlPart =
dynamicpart1/part2/part3
  PageConfig contains a className and 1 or more params where the
mandatory param is the id for the modelObject for the page.

- Use reflection to find a corresponding page in the class hierarchy.
- Instantiate.
- Let wicket render it...

I've looked at the IPageFactory but that seems to late in the
processing because the page class is already determined.

I guess some kind of urldecoding strategy is needed but I don't know
the internals of wickets processing parts that well.

Would appreciate any pointers to where to look!

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Query Regarding Data Table

2007-03-01 Thread Igor Vaynberg

in datatable you cannot insert rows in arbitrary format - it really is a
datagrid. what you want is to go higher in the hierarchy and use a dataview,
that way you are in total control of rows and columns.

-igor


On 3/1/07, Anupama pullela [EMAIL PROTECTED] wrote:


Hi,
Is there a way to insert an arbitrary table(with different columns from
main table , for example something like I have a product table and if I
click on a particular row its inventories list to be displayed in the next
row)  as a row of a Data Table.
 I thought of overriding newRowItem and newCellItem methods but I am not
very sure about how to do it.
Can you help me out in this regard.
Thanks  Regards
Anupama

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Resuable AddressPanel

2007-03-01 Thread Igor Vaynberg

On 3/1/07, Murat Yücel [EMAIL PROTECTED] wrote:


Hi Igor

Dont we convert types? The model below is converting a string to an
address object, so i guess
it could be called a converter.



as far as i can see he wants to convert some fields of address object into a
string, and then back.

I can see in the example that you have written to Flemming that you suggest

at least two models.
AddressModel and AddressLineModel. Do you need the first AddressModel?
Cant you just use
a normal wicket Model or what is the purpose of the AddressModel?



addressmodel is just the model that provides the address object. it would
need to be there whether or not you were doing any of this conversion or
not.

-igor


Kind regards


/Murat Yücel

2007/2/28, Igor Vaynberg [EMAIL PROTECTED]:

 why use a type converter? you are not converting types...

 i would use a model to do this

 class addrlinemodel implements imodelstring {
  private imodel addrmodel;


   public String getobject() {
   address addr=addrmodel.getobject();
   return addr.streetnumber+ +addr.streetname;
   }
   public void setobject(String object) {
  address addr=addrmodel.getobject();
 string[] parts=object.split();
 //decide what goes where
 addr.streetname=parts[2];
 ...
 }
 }

 -igor


 On 2/28/07, Flemming Boller [EMAIL PROTECTED] wrote:

   Hi
 
  I have a challenge about creating a reuseable Panel for my pojo called
  Address.
 
  class Address {
 
  String streetName;
  String streetNumber;
  String floor;
  String letter;
  String door;
  String zipCode;
  String city;
  }
 
 
  What I would like is to concatenate streetName, streetNumber, floor,
  letter, door into ONE textfield (wicket:id=address)
  ZipCode and city have their own TextFields and PropertyModel is used
  here.
 
 
  For concatening the fields above I have used a ITypeConverter, which
  converts the one textfield into an new Address object.
  My problem is that the zipCode and city is bound to the old object, so
  the new Address object is missing the zipCode and city.
 
 
  Do any of you guys know a solution to this problem? Should I use a
  ITypeConverter at all? Or should I take a whole other approch.
 
 
  Regards
  Flemming
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] repeaters and inheritance

2007-03-01 Thread Igor Vaynberg

but you can do that

listview has newlistitem, there you can create the proper listitem subclass

then in populate item you do

item.add(((MyItem)item).getPricingPanel())

it is simply a matter of taste - whether something like this belongs in the
class hierarchy or is it orthogonal and merits its own resolution mechanism.

-igor


On 3/1/07, Scott Swank [EMAIL PROTECTED] wrote:


Thank you Eelco  Iman.

I was hoping to have a custom component that played the role of the
ListItem but which had methods such as

abstract Panel getPricingPanle()

which were variously implemented in subclasses as

return new ShowPricingPanel() or
return new HotelPricingPanel()

instead of pushing that determination off to a factory.  Oh, and the
issue isn't just one of handling pricing, but rather of markup 
display as well.

Cheers,
Scott



On 2/28/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
 Another solution would be to put all the complexity of managing items
into a
 general CartPanel class, but that wont get much cleaner I guess. One
thing
 that comes to mind is, If you have a Pricing domain object to handle
pricing
 issues, and a Summary object to handle the items summary , you can
somehow
 get rid of the inheritance hierarchy and manage them with a single Item
 class at the top, and two dependent objects(Pricing and Summary). The
actual
 smell I sniff in your code is the parallel inheritance hierarchies in
the
 domain objects and UI. Thats what forces you to use a factory.


 On 3/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  On 2/28/07, Scott Swank [EMAIL PROTECTED] wrote:
   In our application we have several places where we are construction
an
   html table but the content of the rows varies by ProductType.  For
   example:
  
   column 1. always an image
   column 2. the pricing: for hotels by room, for shows by ticket, for
   limo by hours
   column 3. item summary: for hotels the rooms/nights, for shows the
   seats and show time, etc
   column 4. the total
  
   There is a natural class hierarchy here where we have
  
   AbstractItem
 HotelItem
 ShowItem
 LimoItem
  
   I'd like to have a comparable hierarchy of perhaps RepeaterRow
   objects that could have methods such as:
  
   AbstractItemRow
 protected abstract Panel getPricingPanel();
 protected abstract Panel getSummaryPanel();
  
   I've gotten this working with a ListView, but I'm doing things like:
  
 populateItem(ListItem listItem) {
   final AbstractItem cartItem =
 (AbstractItem)listItem.getModelObject();
   add(CartPanelFactory.getPricingPanel(cartItem));
   add(CartPanelFactory.getSummaryPanel(cartItem));
 }
  
   Is there a cleaner way than delegating this decision about which
Panel
   I need to a factory?
 
  That looks like a fine pattern to me tbh. What don't you like about
it?
 
  Eelco
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
 your
  opinions on IT  business topics through brief surveys-and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Scott Swank
reformed mathematician

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Page creation from db

2007-03-01 Thread Igor Vaynberg

so now that ive looked at ipagefactory what you want should be pretty easy
if you still want to use pages

mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy

then in ipagefactory do this:

Page newPage(final Class? extends Page pageClass, final PageParameters
parameters) {
 if (pageClass.equals(MyFactoryPage.class)) {
// we hit our marker factory page
String url=buildurlfromparameters(params);
String resolvedpageclass=resolveclassfromurl(url);
 PageParameters resolvedparams=resolveparamsfromurl(url);
return super.newPage(resolvedpageclass, resolvedparams);
 } else { return super.newPage(pageClass, parameters); }
}

MyFactoryPage is just an empty page, it really only serves as a marker for
when you hit that mount point.

makes sense?

-igor


On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


the niceset woiuld be to use panels instead of pages. that way you mount a
page onto /mountpoint, when its hit you read the rest of the parameters,
query the db for the panel class, instantiate it and add it to the page.
nice and clean. there is really very little difference between page and
panel functionality-wise.

i dont have the code infront of me, but i would think this should be
doable within the pagemap factory

-igor

On 3/1/07, Mats Norén  [EMAIL PROTECTED] wrote:

 Hi,
 I'm looking for a pattern to create page instances from a configuration
 in db.
 I sounds really weird but the scenario is this:

 - A request comes in for /mountpoint/dynamicpart1/part2/part3
 - A lookup is made to db for a PageConfig with urlPart =
 dynamicpart1/part2/part3
   PageConfig contains a className and 1 or more params where the
 mandatory param is the id for the modelObject for the page.

 - Use reflection to find a corresponding page in the class hierarchy.
 - Instantiate.
 - Let wicket render it...

 I've looked at the IPageFactory but that seems to late in the
 processing because the page class is already determined.

 I guess some kind of urldecoding strategy is needed but I don't know
 the internals of wickets processing parts that well.

 Would appreciate any pointers to where to look!

 /Mats


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax indicators and form submits

2007-03-01 Thread Igor Vaynberg

you are adding two behaviors to the same button that both compete for the
onclick attribute - a formcomponentupdatingbehavior and
ajaxformsubmitbehavior. you have two choices:

create a compound behavior out of the two

or let the ajaxformsubmitbehavior implement iajaxindicatoraware directly

-igor


On 3/1/07, Apaar Trivedi [EMAIL PROTECTED] wrote:


 I have setup an AjaxIndicator to show up when I press a button, but the
onclick event seems to be overridden when I set this up.  For my button, the
onclick event is tied to a form submit, causing the form to update.  But
when I had an onclick behavior which pops up the indicator, the form no
longer gets submitted, but the indicator does pop up.



how can I also make the form submit happen for an onclick?  Below is the
code which I am referring to:



public class AjaxIndicator extends WebMarkupContainer{



public AjaxIndicator (String id){

super(id);

setOutputMarkupId(true);

}



/* (non-Javadoc)

 * @see wicket.Component#onComponentTag(wicket.markup.ComponentTag
)

 */

protected void onComponentTag(ComponentTag tag) {

// TODO Auto-generated method stub

super.onComponentTag(tag);

tag.put(src, 
http://localhost:8080/dell-ren/i/temp/ajax-loader.gif;);



}

}





private void setupPanel() {



final AjaxIndicator imgContainer = new
AjaxIndicator(indicatorImg);

form.add (imgContainer);



class usersOrGroupsBehavior extends
AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware {

usersOrGroupsBehavior(){

super(onclick);

}



/* (non-Javadoc)

 * @see
wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId()

 */

public String getAjaxIndicatorMarkupId() {

return imgContainer.getMarkupId();

}



/* (non-Javadoc)

 * @see
wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate(
wicket.ajax.AjaxRequestTarget)

 */

protected void onUpdate(AjaxRequestTarget arg0) {



try {

Thread.sleep(5000);

} catch (InterruptedException e) {

}



}

}





Button searchButton = new Button(searchButton, new
StringResourceModel(searchButton, this, null));

searchButton.add(new AjaxFormSubmitBehavior(form, onclick) {

protected void onSubmit(AjaxRequestTarget target) {

try {

Thread.sleep(5000);

} catch (InterruptedException e) {

throw RenRuntimeException.wrapWithRenRuntimeException
(e);

}

Collection ldapUsers =
getUsersOrGroupsFromLdap(getLdapQuery(), getGroupsToSearchWithin());

populateUsersOrGroupsList(ldapUsers);



// make the add button visible once we've populated the
selectable users list

addButton.setVisible(true);

target.addComponent(UserGroupPickerPanel.this);



}

});



searchButton.add(new usersOrGroupsBehavior());

}

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax indicators and form submits

2007-03-01 Thread Igor Vaynberg

then you get two requests, prob not something the user wanted in the first
place.

i talked to him on irc, he did what i suggested, and it all works for him
now.

that second behavior was there just for the indicator, but the first
behavior can just implement that interface and be all good.

-igor


On 3/1/07, Johan Compagner [EMAIL PROTECTED] wrote:


can't we attach those different ajax behaviors now with the new
wicket-event.js?

johan

On 3/1/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 you are adding two behaviors to the same button that both compete for
 the onclick attribute - a formcomponentupdatingbehavior and
 ajaxformsubmitbehavior. you have two choices:

 create a compound behavior out of the two

 or let the ajaxformsubmitbehavior implement iajaxindicatoraware directly

 -igor


 On 3/1/07, Apaar Trivedi  [EMAIL PROTECTED] wrote:

   I have setup an AjaxIndicator to show up when I press a button, but
  the onclick event seems to be overridden when I set this up.  For my button,
  the onclick event is tied to a form submit, causing the form to update.  But
  when I had an onclick behavior which pops up the indicator, the form no
  longer gets submitted, but the indicator does pop up.
 
 
 
  how can I also make the form submit happen for an onclick?  Below is
  the code which I am referring to:
 
 
 
  public class AjaxIndicator extends WebMarkupContainer{
 
 
 
  public AjaxIndicator (String id){
 
  super(id);
 
  setOutputMarkupId(true);
 
  }
 
 
 
  /* (non-Javadoc)
 
   * @see wicket.Component#onComponentTag(
  wicket.markup.ComponentTag)
 
   */
 
  protected void onComponentTag(ComponentTag tag) {
 
  // TODO Auto-generated method stub
 
  super.onComponentTag(tag);
 
  tag.put(src, 
  http://localhost:8080/dell-ren/i/temp/ajax-loader.gif;);
 
 
 
  }
 
  }
 
 
 
 
 
  private void setupPanel() {
 
 
 
  final AjaxIndicator imgContainer = new
  AjaxIndicator(indicatorImg);
 
  form.add (imgContainer);
 
 
 
  class usersOrGroupsBehavior extends
  AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware {
 
  usersOrGroupsBehavior(){
 
  super(onclick);
 
  }
 
 
 
  /* (non-Javadoc)
 
   * @see
  wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId()
 
   */
 
  public String getAjaxIndicatorMarkupId() {
 
  return imgContainer.getMarkupId();
 
  }
 
 
 
  /* (non-Javadoc)
 
   * @see
  wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate(
  wicket.ajax.AjaxRequestTarget)
 
   */
 
  protected void onUpdate(AjaxRequestTarget arg0) {
 
 
 
  try {
 
  Thread.sleep(5000);
 
  } catch (InterruptedException e) {
 
  }
 
 
 
  }
 
  }
 
 
 
 
 
  Button searchButton = new Button(searchButton, new
  StringResourceModel(searchButton, this, null));
 
  searchButton.add(new AjaxFormSubmitBehavior(form, onclick) {
 
  protected void onSubmit(AjaxRequestTarget target) {
 
  try {
 
  Thread.sleep(5000);
 
  } catch (InterruptedException e) {
 
  throw
  RenRuntimeException.wrapWithRenRuntimeException(e);
 
  }
 
  Collection ldapUsers =
  getUsersOrGroupsFromLdap(getLdapQuery(), getGroupsToSearchWithin());
 
  populateUsersOrGroupsList(ldapUsers);
 
 
 
  // make the add button visible once we've populated
  the selectable users list
 
  addButton.setVisible(true);
 
  target.addComponent(UserGroupPickerPanel.this);
 
 
 
  }
 
  });
 
 
 
  searchButton.add(new usersOrGroupsBehavior());
 
  }
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user

Re: [Wicket-user] Dynamic Page creation from db

2007-03-01 Thread Igor Vaynberg

use extension by delegation instead of inheritance

-igor


On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote:


Forgot to ask, but it seems that DefaultPageFactory has a lot of final
methods in 1.3.
Is there another option?

/Mats


On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote:
 Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks!

 On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  so now that ive looked at ipagefactory what you want should be pretty
easy
  if you still want to use pages
 
  mount a MyFactoryPage onto the /mountpointurl using
indexedurlcodingstrategy
 
  then in ipagefactory do this:
 
  Page newPage(final Class? extends Page pageClass, final
PageParameters
  parameters) {
if (pageClass.equals(MyFactoryPage.class)) {
   // we hit our marker factory page
   String url=buildurlfromparameters(params);
   String resolvedpageclass=resolveclassfromurl(url);
PageParameters resolvedparams=resolveparamsfromurl(url);
   return super.newPage(resolvedpageclass, resolvedparams);
} else { return super.newPage(pageClass, parameters); }
  }
 
  MyFactoryPage is just an empty page, it really only serves as a marker
for
  when you hit that mount point.
 
  makes sense?
 
  -igor
 
 
  On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   the niceset woiuld be to use panels instead of pages. that way you
mount a
   page onto /mountpoint, when its hit you read the rest of the
parameters,
   query the db for the panel class, instantiate it and add it to the
page.
   nice and clean. there is really very little difference between page
and
   panel functionality-wise.
  
   i dont have the code infront of me, but i would think this should be
   doable within the pagemap factory
  
   -igor
  
   On 3/1/07, Mats Norén  [EMAIL PROTECTED] wrote:
   
Hi,
I'm looking for a pattern to create page instances from a
configuration
in db.
I sounds really weird but the scenario is this:
   
- A request comes in for /mountpoint/dynamicpart1/part2/part3
- A lookup is made to db for a PageConfig with urlPart =
dynamicpart1/part2/part3
  PageConfig contains a className and 1 or more params where the
mandatory param is the id for the modelObject for the page.
   
- Use reflection to find a corresponding page in the class
hierarchy.
- Instantiate.
- Let wicket render it...
   
I've looked at the IPageFactory but that seems to late in the
processing because the page class is already determined.
   
I guess some kind of urldecoding strategy is needed but I don't
know
the internals of wickets processing parts that well.
   
Would appreciate any pointers to where to look!
   
/Mats
   
   
   
 
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share
your
opinions on IT  business topics through brief surveys-and earn
cash
   
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting to another internal page

2007-03-01 Thread Igor Vaynberg

throw new restartresponseexception

-igor


On 3/1/07, David Robison [EMAIL PROTECTED] wrote:


I have a wicket application where, when I'm constructing the requested
page, if I detect an error, I want to stop processing the page and
redirect to another page and display the error. However, everything I
tried reports an error that I did not finish mapping the first page. Is
this possible with Wicket? Any other ideas of how to approach this
problem?
Thanks, David Robison

--

David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: [EMAIL PROTECTED]
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/titles/1597816523.htm





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX Issue - component not enabled or visible, redirecting to calling page

2007-03-01 Thread Igor Vaynberg

can we see the stacktrace please?

-igor


On 3/1/07, Aaron Hiniker [EMAIL PROTECTED] wrote:


I implemented a drag-n-drop using scriptaculous.  On my home PC,
everything was working fine, I can drag my products into a droppable
container and the container updates itself via AJAX just fine no
page refreshes.

I checked in the code, came into work today and rebuilt the app.  Now
when I drag my objects, I get a different behavior.  The first drop
executes fine and the droppable container refreshes itself via ajax.
The second time I drop the whole page refreshes and the drop doesn't
take place.

I get the following message in the logs:

[AbstractRequestTargetResolverStrategy] component not enabled or
visible, redirecting to calling page, component: [MarkupContainer
[Component id = image, page = blah.blah.ProductSearchPage, path =
1:searchPanel:resultsContainer:results:results:2:image.ProductImage,
isVisible = true, isVersioned = true]]

I'm not sure what's happening here. But let me explain the code/events a
bit more.

DraggableSource is an AbstractTransformerBehavior that I can add to any
component.  It add javascript to invoke scriptaculous to make the object
draggable, and also registers a callback url with the element
(element.dndCallbackUrl=behavior url).  The behavior url is called
when the component is dropped into a DraggableTarget.

DraggableTarget is a MarkupContainer with an AbstractTransformerBehavior
to add the javascript to make the container a drop target.  When an
object is dropped, it invokes the dropped elements dndCallbackUrl to
invoke the behavior.  It also appends it's markupId to the url so that I
can associate the container with the dropped object from within the
behavior.


So the problem is:  what causes the behavior url to become invalid?
From one drop to the next, the only markup that refreshes is the actual
container that the object is dropped into, so what could cause the
behavior's callback url to become invalid on the 2nd drop if the
component that behavior is tied to is never refreshed?

Sorry if this is hard to understand.. I guess to simplify the whole
question:   why am I getting a component not enabled or visible,
redirecting to calling page  when the component itself is never
refreshed, or had it's visibility toggled?

Latest wicket 2.0 from svn update earlier today.

Aaron


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Specifying a class for the p's generated by MultiLineLabel

2007-03-01 Thread Igor Vaynberg

style .multi p { font-color:red;}/style
div class=multi wicket:id=multilinelabel/div

-igor


On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote:


Is it possible to specify the CSS class for the p's generated by the
MultiLineLabel component?

Currently it generates:

pfirst line/p
psecond line/p

Is it possible to get it to generate something like:

p class=myMultiLineClassfirst line/p
p class=myMultiLineClasssecond line/p

Or is there a better way to achieve this using CSS that I have missed?
Maybe via inherited properties or something?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] multi-file upload component

2007-03-01 Thread Igor Vaynberg

a few people were talking about the need to have a component that can upload
multiple files as opposed to creating a bunch of fileuploadfields. last
night i implemented one. see multifileuploadfield and its example [1]. right
now its only in 1.x, once its been flushed out/field tested i will port it
to 2.0 so give it a try, looking forward to feedback.

[1] http://wicketstuff.org/wicket13/upload/multi

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Congratulations on Wicket's error reporting

2007-03-01 Thread Igor Vaynberg

glad to hear it

-igor


On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote:


I must congratulate the Wicket developers on Wicket's error reporting
system. It's truly magnificent.

Whenever I have an error in my markup or a problem in one of my Java
classes Wicket displays a HTML page with a very thorough outline of the
problem which usually contains sufficient information to point me
straight to the cause of the problem.

I find this level of error reporting very productive and beneficial.

Congratulations!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX Issue - component not enabled or visible, redirecting to calling page - CLOSED

2007-03-01 Thread Igor Vaynberg

thats why i wanted the stack trace, couldnt find the damn thing

-igor


On 3/1/07, Aaron Hiniker [EMAIL PROTECTED] wrote:


 I searched for AbstractRequestTargetResolverStrategy in the source tree,
and it wasn't there.  So apparently it was removed recently, but was still
lingering in my target/classes directory.  I did a mvn clean install,
redeployed and now everything works as expected.  My bad.. sorry..

Aaron


Aaron Hiniker wrote:

There is no stack trace, only the log output from
AbstractRequestTargetResolverStrategy.  I have DEBUG logging enabled as
well.

Aaron

Igor Vaynberg wrote:

can we see the stacktrace please?

-igor


On 3/1/07, Aaron Hiniker [EMAIL PROTECTED] wrote:

 I implemented a drag-n-drop using scriptaculous.  On my home PC,
 everything was working fine, I can drag my products into a droppable
 container and the container updates itself via AJAX just fine no
 page refreshes.

 I checked in the code, came into work today and rebuilt the app.  Now
 when I drag my objects, I get a different behavior.  The first drop
 executes fine and the droppable container refreshes itself via ajax.
 The second time I drop the whole page refreshes and the drop doesn't
 take place.

 I get the following message in the logs:

 [AbstractRequestTargetResolverStrategy] component not enabled or
 visible, redirecting to calling page, component: [MarkupContainer
 [Component id = image, page = blah.blah.ProductSearchPage, path =
 1:searchPanel:resultsContainer:results:results:2:image.ProductImage,
 isVisible = true, isVersioned = true]]

 I'm not sure what's happening here. But let me explain the code/events a
 bit more.

 DraggableSource is an AbstractTransformerBehavior that I can add to any
 component.  It add javascript to invoke scriptaculous to make the object

 draggable, and also registers a callback url with the element
 (element.dndCallbackUrl=behavior url).  The behavior url is called
 when the component is dropped into a DraggableTarget.

 DraggableTarget is a MarkupContainer with an AbstractTransformerBehavior

 to add the javascript to make the container a drop target.  When an
 object is dropped, it invokes the dropped elements dndCallbackUrl to
 invoke the behavior.  It also appends it's markupId to the url so that I

 can associate the container with the dropped object from within the
 behavior.


 So the problem is:  what causes the behavior url to become invalid?
 From one drop to the next, the only markup that refreshes is the actual

 container that the object is dropped into, so what could cause the
 behavior's callback url to become invalid on the 2nd drop if the
 component that behavior is tied to is never refreshed?

 Sorry if this is hard to understand.. I guess to simplify the whole
 question:   why am I getting a component not enabled or visible,
 redirecting to calling page  when the component itself is never
 refreshed, or had it's visibility toggled?

 Latest wicket 2.0 from svn update earlier today.

 Aaron



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


--

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

--

___
Wicket-user mailing list
[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/wicket-user


--

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

--

___
Wicket-user mailing list
[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

Re: [Wicket-user] help: how to reverse the order of RepeatingView's children

2007-03-01 Thread Igor Vaynberg

override repeatingview.renderiterator() and reverse the order

-igor


On 3/1/07, Otan [EMAIL PROTECTED] wrote:


[Wicket 2.0] The javadoc says that RepeatingView renders all of its
children in order they were added. Could anyone give me a pointer or a
demonstration on how to reverse the order of a RepeatingView's children?
Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Defining link text for a ListView

2007-03-01 Thread Igor Vaynberg

instead of
item.add(new link(categoryLink){});
item.add(new label(categoryname))
do
Link link=new linke(categoryLink);
item.add(link);
link.add(new label(categoryname));

-igor


On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote:


I have a list view and I need each item in the list to display a HREF
link and text. Both the link target URL and the link text are different
for each item in the list.

Using the following causes a component 'categoryName' not found error:

span wicket:id = items
h2 style=line-height: 2px
a href=# wicket:id=categoryLink
span
wicket:id=categoryNamePizza/span
/a
/h2

span wicket:id=categoryDescHmmm, yum./span
/span

Without changing any .java files I move the categoryName span tag to
outside the HREF and it works without error - although my HREF tag link
text is wrong:

span wicket:id = items
h2 style=line-height: 2px
a href=# wicket:id=categoryLink
Fixed name but want a variable
name
/a
/h2
span wicket:id=categoryNamecategory
name/span
span wicket:id=categoryDescHmmm, yum./span
/span

How do I get content from my ListItem embedded into the a href IN HERE
/a?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Igor Vaynberg

the only reason it wouldnt work is that the table captures the onclick event
and doesnt bubble it up to the link. but, in general, you shouldnt use table
inside anchors as was said

-igor


On 2/28/07, Dipu [EMAIL PROTECTED] wrote:


 Thanks very much , if thats the case then i can inform the page designers
about that.

Regards
Dipu

- Original Message -
*From:* Ivo van Dongen [EMAIL PROTECTED]
*To:* wicket-user@lists.sourceforge.net
*Sent:* Wednesday, February 28, 2007 12:08 PM
*Subject:* Re: [Wicket-user] Ajax Link + IE7 problem

Hi,

Using a table in a link is probably not standards compliant. I don't know
if that is the problem here, but this kind of thing can cause a lot of
problems with javascript.

See http://htmlhelp.com/reference/html40/special/a.html for the element
specs.

Ivo

On 2/28/07, Dipu  [EMAIL PROTECTED] wrote:

  Hi All,


 Ajax Link doesnt work on IE 7 when there is a table in between the
 anchor tags.

 If we change the following line in the LinksPage.html from ajax expample

 counter 1:
 span wicket:id=c1/span  a href=# wicket:id =c1-linkincrement/
 a ( ajax-only link )
 to
 counter 1:
 span wicket:id=c1/span  a href=# wicket:id =c1-linktable
 trtd increment/td/tr/table  /a ( ajax-only link )
 it will stop working.

 Does anyone has any idea why ???

 Regards
 Dipu







 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

--

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

--

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Igor Vaynberg

http://wicketstuff.org/wicket13/niceurl/

-igor


On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote:


Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - Wicket rocks massively!

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPageo=76165

to something like:

http://myserver.com/helloworld/LocationPageo=76165

?

Regards.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Resuable AddressPanel

2007-02-28 Thread Igor Vaynberg

why use a type converter? you are not converting types...

i would use a model to do this

class addrlinemodel implements imodelstring {
private imodel addrmodel;


 public String getobject() {
 address addr=addrmodel.getobject();
 return addr.streetnumber+ +addr.streetname;
 }
 public void setobject(String object) {
address addr=addrmodel.getobject();
   string[] parts=object.split();
   //decide what goes where
   addr.streetname=parts[2];
   ...
   }
}

-igor


On 2/28/07, Flemming Boller [EMAIL PROTECTED] wrote:


Hi

I have a challenge about creating a reuseable Panel for my pojo called
Address.

class Address {

String streetName;
String streetNumber;
String floor;
String letter;
String door;
String zipCode;
String city;
}


What I would like is to concatenate streetName, streetNumber, floor,
letter, door into ONE textfield (wicket:id=address)
ZipCode and city have their own TextFields and PropertyModel is used here.


For concatening the fields above I have used a ITypeConverter, which
converts the one textfield into an new Address object.
My problem is that the zipCode and city is bound to the old object, so the
new Address object is missing the zipCode and city.


Do any of you guys know a solution to this problem? Should I use a
ITypeConverter at all? Or should I take a whole other approch.


Regards
Flemming


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Igor Vaynberg

would be cool if you could create a wiki page explaining how you built it.
not only is it a cool component, but outlining the process will help others
a lot.

-igor


On 2/28/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED]
wrote:


Hi, the alerticon contains the tooltip, just pass the mouse over the image
and show the message.

On 28-02-2007, at 7:05, Vincent Demay wrote:

Hi manuel,

Confluence about wicket-contrib-dojo is unfortunatly not up to date, but
there are also some cool validation methods in wicket-contrib-dojo (
1.X-SNAPSHOT because it is the most maintained).
You can take a look at live exemple (comes from svn repo :
wicket-contrib-dojo-example (
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff)) :
http://www.demay-fr.net:8080/WCD13/app/ (end of the first column)

I will try to update confluence documentation asap but I don't have
enought time for the moment.

What you did is interesting, I thought about writing something like that
but with a tooltip on the alerticon instead of a classical feedbackPanel

--
Vincent Demay
http://www.demay-fr.net/blog


Manuel Alejandro de Brito Fontes a écrit :

Hi, I'm using wicket to build a prototype and found interesting the
content of this:
http://wicketstuff.org/confluence/display/STUFFWIKI/DojoFeedbackIndicator
and
http://wicketstuff.org/confluence/display/STUFFWIKI/DojoValidationAjaxHandler
My problem was that the validation only works until I submit the form, the
indicator only appears after the submit of the form and the message of the
caption contains all the errors of the feedback.
So I create a validation that not depends on dojo, indicate the error of
the validation, show the alerticon on fail and persist after the submit of
the form.
If is useful to someone, here attach a quick-start.
To use it add the behavior to any field, i.e.: Form 
field.add(newFormFieldValidator(ClientEvent.
event));
The code works on 2.0-SNAPSHOT (I don't use 1.x, so I don't known the API
changes).

 PS: Thanks for so powerful and flexible framework and sorry for my bad
english.


--

--
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

--
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can templates have an extension other than .html?

2007-02-28 Thread Igor Vaynberg

that is an interesting comment indeed. if it was really true then
webpage.getmarkuptype() would be final. anyone else mind to comment?

-igor


On 2/28/07, Matt Welch [EMAIL PROTECTED] wrote:


I'm a little concerned by the Note int he javadocs for this method:

Note: The markup type must be equal to the extension of the markup file.
In the case of WebPages, it must always be html.


Does that mean that the string html has some meaning beyond just telling
the framework what file extension to retrieve?


On 2/28/07, Carfield Yim [EMAIL PROTECTED] wrote:

 Should be just override WebPage. getMarkupType()

 
http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebPage.html#getMarkupType()

 
http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebPage.html#getMarkupType%28%29

 On 3/1/07, Matt Welch [EMAIL PROTECTED] wrote:
  I'd like my template files to have an extension other than .html. Is
 that
  possible?
 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FormComponent mask

2007-02-28 Thread Igor Vaynberg

zapatec do it with javascript, which is really the only way to go about it.
once you figure out the javascript it is trivial to hook it into wicket.

-igor


On 2/28/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED]
wrote:


Hi, I have a question about field mask, It's possible do something like
this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html or similar
to
http://java.sun.com/docs/books/tutorial/uiswing/components/formattedtextfield.htmlin
 wicket?
I miss something in the documentation?.  I only found the IConverter interface
doing override of the method getConverter(Class? type) in a TextField
declaration. The problem is that getConverter() modify my model and I don't
want that.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FormComponent mask

2007-02-28 Thread Igor Vaynberg

so you want the user to enter 1,000,000 but on serverside that to be
100? then you need a maskconverter that will convert the string to
integer.

-igor


On 2/28/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED]
wrote:


Yes, I'ts simple, the problem is when I modify the content of the
textfield the value of the object is with the mask, not the value
behind.
For instance, I have a textfield that only accept integer numbers
(thats is easy with new PatternValidator( \\d+ ) ), now I want that
the user enter the number  100 and in the event onblur  occur
apply a mask to the number, i.e 1,000,000 or when I write the number
going applying the mask inline. All that works perfect with
javascript, but the problem is what happens behind that. The number
is not 100 it's 1,000,000, so if exist a validation between two
fields i'm screw, I have to know if the field contains a mask or not.
In addition if I do formcomponent.validate() and formcomponent.isValid
() returns false.
The explication is confused or I'm confused?

On 28-02-2007, at 16:04, Igor Vaynberg wrote:

 zapatec do it with javascript, which is really the only way to go
 about it.
 once you figure out the javascript it is trivial to hook it into
 wicket.

 -igor


 On 2/28/07, Manuel Alejandro de Brito Fontes
 [EMAIL PROTECTED]
 wrote:

 Hi, I have a question about field mask, It's possible do something
 like
 this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html or
 similar
 to
 http://java.sun.com/docs/books/tutorial/uiswing/components/
 formattedtextfield.htmlin wicket?
 I miss something in the documentation?.  I only found the
 IConverter interface
 doing override of the method getConverter(Class? type) in a
 TextField
 declaration. The problem is that getConverter() modify my model
 and I don't
 want that.


 -
 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple sections of markup replaced by subclassed markup

2007-02-28 Thread Igor Vaynberg

no we do not, but what we do support is

wicket:headstuff/wicket:head which will put stuff into head element of
the page

so wicket:head.../wicket:headwicket:extend.../wicket:extend

-igor


On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote:


I have a situation where I have the need to place a wicket:child / in
the head and another in the body of a superclass markup page. Ie,. The
derived class markups need the ability to provide both header (typically
javascript) and body markup to be inserted when the page is rendered.

Does wicket support multiple wicket:child / tags in a single
superclass markup page or is there a limit of 1 per page?


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Igor Vaynberg

are you sure you need to specify a different pagemap? that is only needed
when you work with frames/popups

meanwhile ive reopened the issue.

-igor


On 2/28/07, Chris Colman [EMAIL PROTECTED] wrote:


 http://wicketstuff.org/maven/repository/org/apache/wicket/

 where is the link to the bug? maybe we should backport it

 -igor

https://issues.apache.org/jira/browse/WICKET-215?page=com.atlassian.jira
.plugin.system.issuetabpanels:all-tabpanel

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree Node Link and Page Expired Issue

2007-02-28 Thread Igor Vaynberg

what you want is

getsessionsettings().setpagemapevictionstrategy(new
leastrecentlyaccessedevictionstrategy(15))

-igor



On 2/28/07, Lan Boon Ping [EMAIL PROTECTED] wrote:


Hi all,

I have a Page Expired issue in tree node link,  for example I have a tree,
when i click on any node 6 times or more and  click 5 times on Back button
back to first visited page,  and click on any tree node I will get Page
Expired exception. Does anyone know how to solve this problem? By the way, I
have increased pageMap size (getSessionSettings().setMaxPageMaps)  from 5 to
15, but it doesn't solve the problem.

Regards
Boon Ping.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using wicket:enclosure

2007-02-27 Thread Igor Vaynberg

read the javadoc of enclosure resolver

-igor


On 2/27/07, Otan [EMAIL PROTECTED] wrote:


I'm using the head in trunk. I'm getting the following error:

java.text.ParseException: Unkown tag name with Wicket namespace: 'enclosure'. 
Might be you haven't installed the appropriate resolver?


What should I do?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

changing the parent

an item can shift between rows as items are removed and added so it needs to
be attached to different items

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


changing the parent? or attach it to the parent again after removing?

johan


On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 gridview doesnt yet work with 2.0 because we still havent decided on how
 to do reparenting

 -igor


 On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
 
  [ Wicket 2.0 ]
  I can't make my GridView to work as I expect it to behave. It's
  javadoc seems outdated yet. Can someone fix the Wicket-example for GridView
  so that I could have a reference about its usage? Thanks.
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Igor Vaynberg

no special need. i thought i already changed it to a div a while back...but
i guess not. please create a jira issue.

-igor


On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:


Thanks, I'll Try that. I was just wondering if there was some special need
for that span or that it just as well could be a div. If so, perhaps it's
wise to do so to make it as easy as possible to remain standards compliant.

On 2/27/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:

 I think you can just extends AjaxTabbedPanel and provide your own markup
 if you want.  It is what I have done with lot of wicket component...  Not
 done it for now on AjaxTabPanel, but it can be done.

  On 2/27/07, Ivo van Dongen [EMAIL PROTECTED] wrote:

  Hi,
 
  We ran into a little problem with the (Ajax)TabbedPanel. The markup is
  defined as:
 
  *wicket:panel*
  *div class=
 
  **tab-row***
  *ul*
*li wicket:id=**
 
  tabs***
*a href=**#** wicket:id=**
 
  linkspan wicket:id=**title**
  *[[tab title]]
 
  */span**/a*
*/li*
  */ul
  *
  *
 
  /div*
  *span wicket:id=**panel** class=**tab-panel
 
  ***[panel]*/span*
  */wicket:panel*
 
 
 
  This leads us ito problems because a span tag is an inline element and
  shouldn't contain any block level elements. Our designer is having
  difficulties creating a consistent layout with it and we would like to be as
  accesible as possible. Is there a reason why the panels are using a span?
 
  Can I override the markup somehow (bij extending)? Perhaps this can be
  changed to a div ?
 
  Thanks in advance,
  Ivo
 
  --
  Ivo van Dongen
  Func. Internet Integration
  W http://www.func.nl
  T +31 20 423
  F +31 20 4223500
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NPE in find method of MarkupFragmentFinder class...

2007-02-27 Thread Igor Vaynberg

sounds pretty strange, show us your code

-igor


On 2/27/07, Swaroop Belur [EMAIL PROTECTED] wrote:


Hello all

In the find method there is this piece of code which compares  a tag's ID
to another component's id

Code snippet

[  ...
   markupStream.setCurrentIndex(component.markupIndex);
MarkupElement elem = markupStream.get();
if (elem instanceof ComponentTag)
{
ComponentTag tag = (ComponentTag)elem;
if (tag.getId().equals(component.getId()))
{
// Ok, found it
return markupStream;
}
}

.
]

Background:

I am designing a page which has a collapsable panel. I feel that I have
called
setOutputMarkupId in the relevant places for the panels to be refreshed
because
when panel refresh happens the second time i click (a plus icon to expand
)
The problem is that It does NOT happen the first time and i simply click
the second time and panel refreshes.

[ i am using ajaxrequesttarget.replace and ajaxrequesttarget.addcomponent]

Problem

The problem i am facing is that the every odd numbered ajax request gives
a NPE for tag.getId()

So while debugging thru this section, I observed that eclipse shows the
stringified
expression of  this tag (instance of ComponentTag) as /span ..??


My Modification

I just  added a null pointer check for tag.getID and then on it worked
properly for every odd numbered Ajax Request .

Any suggestions ?

-Swaroop










-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

why clone? why not have a reassign(parent) or some such method on the
component?

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


that would be a problem
Some how we have do a clone with a new parent:

component.clone(parent)

johan


On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 changing the parent

 an item can shift between rows as items are removed and added so it
 needs to be attached to different items

 -igor


 On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:

   changing the parent? or attach it to the parent again after removing?
 
  johan
 
 
  On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   gridview doesnt yet work with 2.0 because we still havent decided on
   how to do reparenting
  
   -igor
  
  
   On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
   
[ Wicket 2.0 ]
I can't make my GridView to work as I expect it to behave. It's
javadoc seems outdated yet. Can someone fix the Wicket-example for 
GridView
so that I could have a reference about its usage? Thanks.
   
   

-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your
job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

well yeah, it should only be used in rare circumstances. the javadoc should
describe what borks when this is used

-igor


On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


we can do that. But then we reintroduced add()

ok you say it from the other side but we have to open up something then
because reassign() has to call something on the parent (add)
i guess package scope will work for this

Then we have all the things we now can do in the constructor that don't
work anymore
like the markup id. the attributes of the tag. etc.

johan


On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 why clone? why not have a reassign(parent) or some such method on the
 component?

 -igor


 On 2/27/07, Johan Compagner  [EMAIL PROTECTED] wrote:
 
  that would be a problem
  Some how we have do a clone with a new parent:
 
  component.clone(parent)
 
  johan
 
 
  On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   changing the parent
  
   an item can shift between rows as items are removed and added so it
   needs to be attached to different items
  
   -igor
  
  
   On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:
  
 changing the parent? or attach it to the parent again after
removing?
   
johan
   
   
On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 gridview doesnt yet work with 2.0 because we still havent
 decided on how to do reparenting

 -igor


 On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
 
  [ Wicket 2.0 ]
  I can't make my GridView to work as I expect it to behave.
  It's javadoc seems outdated yet. Can someone fix the Wicket-example 
for
  GridView so that I could have a reference about its usage? Thanks.
 
 
  
-
  Using Tomcat but need to do more? Need to support web
  services, security?
  Get stuff done quickly with pre-integrated technology to make
  your job easier.
  Download IBM WebSphere Application Server v.1.0.1 based on
  Apache Geronimo
 
  
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 
-
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make
 your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on
 Apache Geronimo

 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT  business topics through brief surveys-and earn
cash
   

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
   share your
   opinions on IT  business topics through brief surveys-and earn cash
  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

Re: [Wicket-user] Wicket 2.0 example for GridView is broken

2007-02-27 Thread Igor Vaynberg

this is only a problem when an item reuse strategy is used

lets say you have a gridview with max 2 columns and you have 4 items
A B == row item 1
C D == row item 2

so now when you repaint the row items are regenerated, but we want to keep A
B C D components the same, so we have to reparent them to the new row items

-igor



On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:


what if the developer uses a gridview for components that are much deeper
in the hierarchy
and because we say the markup id is from now on stable. and it uses that
one in its constructor
Is it then when gridview reshuffles it still the case?

johan


On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 well yeah, it should only be used in rare circumstances. the javadoc
 should describe what borks when this is used

 -igor


 On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:
 
  we can do that. But then we reintroduced add()
 
  ok you say it from the other side but we have to open up something
  then
  because reassign() has to call something on the parent (add)
  i guess package scope will work for this
 
  Then we have all the things we now can do in the constructor that
  don't work anymore
  like the markup id. the attributes of the tag. etc.
 
  johan
 
 
  On 2/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   why clone? why not have a reassign(parent) or some such method on
   the component?
  
   -igor
  
  
   On 2/27/07, Johan Compagner  [EMAIL PROTECTED] wrote:
   
that would be a problem
Some how we have do a clone with a new parent:
   
component.clone(parent)
   
johan
   
   
On 2/27/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 changing the parent

 an item can shift between rows as items are removed and added so
 it needs to be attached to different items

 -igor


 On 2/27/07, Johan Compagner [EMAIL PROTECTED] wrote:

   changing the parent? or attach it to the parent again after
  removing?
 
  johan
 
 
  On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   gridview doesnt yet work with 2.0 because we still havent
   decided on how to do reparenting
  
   -igor
  
  
   On 2/13/07, Otan  [EMAIL PROTECTED] wrote:
   
[ Wicket 2.0 ]
I can't make my GridView to work as I expect it to behave.
It's javadoc seems outdated yet. Can someone fix the 
Wicket-example for
GridView so that I could have a reference about its usage? 
Thanks.
   
   

-
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
   

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   
-
   Using Tomcat but need to do more? Need to support web
   services, security?
   Get stuff done quickly with pre-integrated technology to
   make your job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on
   Apache Geronimo
  
   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
  to share your
  opinions on IT  business topics through brief surveys-and
  earn cash
 
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 
-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys-and earn
 cash

 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Igor Vaynberg

On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:


Why can't I have:

add(new DropDownChoice(gated, model, {AND, OR},  {, |});

or better yet:

add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});



you can

class mydropdownchoice extends dropdownchoice {
 public mydropdownchoice(id, model, final object[] choices) {
  super(id, model);
  arraylist choiceslist=new arraylist();
  for (int i=0;ichoices.length;i++) {
choiceslist.add(choices[i][0]);
  }
  setchoices(choiceslist);
  setrenderer(new ichoicerenderer() {
  Object getDisplayValue(Object object) {
return choices[getchoices().indexof(object)][1];
   }
   String getIdValue(T object, int index) { return object; }
   }
}

or something very close to that.

what you have to realize is that your usecase is not very representative of
whats out there.

one, you have only a few choices
two, your list of choices is hardcoded
three, you dont mind keeping those choices and their values in session

these three things are not true for most usecases ive come across

most usecases you have a list of objects, like Person, that you load from
the database. you dont know how many, and you dont want to keep the list in
session. dropdownchoice is optimized for that usage:

add(new dropdownchoice(people, model, new LoadableDetachableModel() {
load() { return db.loadpeople(); }, new ChoiceRenderer(personId,
fullName));

this also happens to be the most generic form. nothing stops you from
subclassing and optimizing the usage for your usecases

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DropDownChoice confusion

2007-02-27 Thread Igor Vaynberg

On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:



Your example, Eelco, is amazingly verbose, but I can see how it works.
However, to Igor, what is wrong with a hard-coded list of values for a
select box? Why is my suggestion of doing it so wrong, or not fitting in the
Wicket philosophy?



did i say it was wrong? or doesnt fit with the philosophy?

i simply said it is not a very common usecase and we optimize core
components for what we think the most common usecases are

-igor



Jason


On 2/27/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

 Your case would be:

 class Option {
   String key;
   String value;
   public Option(String key, String value) {
 this.key = key;
 this.value = value;
   }
 }
 add(new DropDownChoice(gated, model,   Arrays.asList(new Option[]{
 new Option(, AND), new Option(|, OR) }), new
 ChoiceRenderer(value, key));

 Of course, the model has to reference an existing option.

 Looking from the example you gave, your problem lies in how to work
 with models. And this is a common thing for people new to Wicket. It
 seems the obvious thing to do for people is to keep working with
 Strings rather than full objects (like Option is), and rather then
 putting the model central, do things like
 myDropDownChoice.getModelValue().

 If you encountered more components you didn't think were obvious, please
 share.

 Eelco

 On 2/27/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  I'm sorry to hear you don't find the API as obvious. DropDownChoice
  seems to be one of the larger offenders usually, though there haven't
  been any good suggestions about how to improve this either. Speaking
  of which... patches and concrete suggestions are more helpful than
  rants as you can imagine. We're pretty open to suggestions in general.

 
  add(new DropDownChoice(gated, model, { {, AND}, {|, OR}});
 
  How would that work together with the model? Just set AND or OR as the

  model value?
 
  Eelco
 
 
  On 2/27/07, Jason Roelofs [EMAIL PROTECTED] wrote:
   Which of course makes perfect sense...
  
   I'm sorry if I come across as crash, it's because I'm very annoyed.
 I
   thought Wicket was the coolest Java framework out there, but now
 that I've
   used it for 2 weeks on, I can't say that anymore. Every time I've
 moved on
   to the next part of my website, it takes me 2+ hours to figure out
 how, and
   I'm not talking about entire pages, I'm talking about components of
 pages. A
   select, an Ajax-ified form, etc. Why do I have to deal with
   IChoiceRenderers? Besides how the documentation doesn't tell me how
 to use
   the thing, nor do the examples explain how it works, just here ya
 go, copy
   this. It just doesn't make sense.
  
   Back to the matter at hand, does anyone have example code using
   wicket-extensions Select and SelectOptions? There is absolutely NO
 usage
   documentation on getting all that working together.
  
   Anyway, sorry about the rant, I'm just getting more disappointed
 with Wicket
   in general. It may be different than other Java frameworks, but I
 cannot say
   that it's any better. I like the idea, I like some of the
 implementation of
   it (how Ajaxing components work, best I've seen), but using the
 framework
   has been an exercise in frustration from day 2.
  
   So I'll head back to banging on the DropDownChoice, I'll get it
 eventually,
   though I'm open for suggestions.
  
   Jason
  
  
   On 2/27/07, Robert Novotny [EMAIL PROTECTED] wrote:
   
The DropDownChoice allows you to specify in one of its
 constructors a
   custom
implementation of IChoiceRenderer, which can be used to customize
 the item
IDs and labels. You may try to have a look on the IChoiceRenderer
 and the
ChoiceRenderer (which is its default implementation) JavaDoc.
   
   
Jason Roelofs wrote:

 Why is nothing in Wicket obvious?

 I want:

 select ...
   option value=AND/option
   option value=|OR/option
 /select

 My model has a 'gated' field that is either '' or '|'

 Why can't I have:

 add(new DropDownChoice(gated, model, {AND, OR},  {,
 |});

 or better yet:

 add(new DropDownChoice(gated, model, { {, AND}, {|,
 OR}});

 (assuming properly created arrays, of course)?

 How is this supposed to work?

 Thanks

 Jason


  
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share
 your
 opinions on IT  business topics through brief surveys-and earn
 cash

  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

   https://lists.sourceforge.net/lists/listinfo/wicket-user


   
--
View this message in context:
  
 

Re: [Wicket-user] How about a PrinterLink in Wicket Links

2007-02-26 Thread Igor Vaynberg

huh?

-igor

On 2/26/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:



PrinterLink print = new PrinterLink(printoutlink, PageToPrint.class);

any need for this










-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Maven repository for wicket-dojo and wicket-scriptaculous?

2007-02-26 Thread Igor Vaynberg

yes, you can create user groups and assign them to projects, etc.

so far no one from wicket-stuff asked to be added. you are an admin in
bamboo btw, so you can add them too.

-igor


On 2/26/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:


* Igor Vaynberg:

 if  project/wicket-stuff  maintainers   add  their  projects  to
 our   bamboo  instance   the   snapshots  will   be  housed   at
 wicketstuff.org/maven/repository

Thanks Igor, nice idea.  I just did it:


http://wicketstuff.org/maven/repository/wicket-stuff/wicket-contrib-dojo/1.3-incubating-SNAPSHOT/

http://wicketstuff.org/bamboo/browse/DOJO-CORE

However bamboo is not accessible to all wicket-stuff maintainers
yet.  Is it possible to configure access control in Bamboo, so
that XXX maintainer only has access to XXX?
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Maven repository for wicket-dojo and wicket-scriptaculous?

2007-02-26 Thread Igor Vaynberg

give me the login name you want, and i will set you up an account

-igor


On 2/26/07, Ryan Sonnek [EMAIL PROTECTED] wrote:


Igor,
I'd love to get the wicket-scriptaculous project involved in this as
well.  what account information do you need to set this up?

On 2/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 yes, you can create user groups and assign them to projects, etc.

 so far no one from wicket-stuff asked to be added. you are an admin in
 bamboo btw, so you can add them too.

 -igor


 On 2/26/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 
  * Igor Vaynberg:
 
   if  project/wicket-stuff  maintainers   add  their  projects  to
   our   bamboo  instance   the   snapshots  will   be  housed   at
   wicketstuff.org/maven/repository
 
  Thanks Igor, nice idea.  I just did it:
 
  
http://wicketstuff.org/maven/repository/wicket-stuff/wicket-contrib-dojo/1.3-incubating-SNAPSHOT/
 
 
  http://wicketstuff.org/bamboo/browse/DOJO-CORE
 
  However bamboo is not accessible to all wicket-stuff maintainers
  yet.  Is it possible to configure access control in Bamboo, so
  that XXX maintainer only has access to XXX?
  --
   Jean-Baptiste Quenot
  aka  John Banana   Qwerty
  http://caraldi.com/jbq/
 
  -
 
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Newbie : Null Pointer on Page

2007-02-26 Thread Igor Vaynberg

  List procedure = (List) item.getModelObject();
  item.add(new Label(equipment, (String) procedure.get(0)));

can procedure be null? because thats what it looks like.

-igor



On 2/26/07, Stewr [EMAIL PROTECTED] wrote:



I'm using Wicket 1.2.4 and working with a simple page to show a ListView.
Here is the constructor for the page.

public Results(List resultsList) {
   ListView procedures = new ListView(procedures, resultsList) {

   protected void populateItem(ListItem item) {

   List procedure = (List) item.getModelObject();
   item.add(new Label(equipment, (String) procedure.get
(0)));
   }

   };
   add(procedures);

   }

I call this constructor from the submit button on another page.

searchForm.add(new Button(search){

   protected void onSubmit() {

   try {
   List results =
lotusService.getLockoutsUsingEquipmentSearch(getSearchCriteria());
   if(results.size() 0){
   setResponsePage(new Results(results));
   }

   } catch (LotusServiceException e) {
   e.printStackTrace();
   }
   }
   });

The results page is very simple.
html
head
   titleList of Procedures/title
/head

body
 Hello
   table
   tr wicket:id=procedures
   tdspan wicket:id=equipment//td
   /tr
   /table

/body
/html


What happens is that I get a null pointer exception thrown on ListView
procedures = new ListView(procedures, resultsList).  The null pointer
states Method threw 'java.lang.NullPointerException' exception.  Cannot
evaluate com.dmflavors.lockout.view.pages.Results$1.toString().  The
program
is not stopped by the exception and the Results page is rendered but
without
any ListView.  The resultsList list referred to in the ListView call is
populated with values, which are actually other lists...so it is a List of
Lists.  Any help would be appreciated.

--
View this message in context:
http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9161474
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Newbie : Null Pointer on Page

2007-02-26 Thread Igor Vaynberg

give us the full stacktrace please

-igor



On 2/26/07, Stewr [EMAIL PROTECTED] wrote:



Thanks for the quick reply...procedure is not null at any point when this
error is occurring.



igor.vaynberg wrote:

List procedure = (List) item.getModelObject();
item.add(new Label(equipment, (String)
 procedure.get(0)));

 can procedure be null? because thats what it looks like.

 -igor



 On 2/26/07, Stewr [EMAIL PROTECTED] wrote:


 I'm using Wicket 1.2.4 and working with a simple page to show a
ListView.
 Here is the constructor for the page.

 public Results(List resultsList) {
ListView procedures = new ListView(procedures, resultsList) {

protected void populateItem(ListItem item) {

List procedure = (List) item.getModelObject();
item.add(new Label(equipment, (String) procedure.get
 (0)));
}

};
add(procedures);

}

 I call this constructor from the submit button on another page.

 searchForm.add(new Button(search){

protected void onSubmit() {

try {
List results =
 lotusService.getLockoutsUsingEquipmentSearch(getSearchCriteria());
if(results.size() 0){
setResponsePage(new Results(results));
}

} catch (LotusServiceException e) {
e.printStackTrace();
}
}
});

 The results page is very simple.
 html
 head
titleList of Procedures/title
 /head

 body
  Hello
table
tr wicket:id=procedures
tdspan wicket:id=equipment//td
/tr
/table

 /body
 /html


 What happens is that I get a null pointer exception thrown on ListView
 procedures = new ListView(procedures, resultsList).  The null pointer
 states Method threw 'java.lang.NullPointerException' exception.  Cannot
 evaluate com.dmflavors.lockout.view.pages.Results$1.toString().  The
 program
 is not stopped by the exception and the Results page is rendered but
 without
 any ListView.  The resultsList list referred to in the ListView call is
 populated with values, which are actually other lists...so it is a List
 of
 Lists.  Any help would be appreciated.

 --
 View this message in context:

http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9161474
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9162055
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Unknown Runtime Exception in Ajax?

2007-02-26 Thread Igor Vaynberg

it should find the element once its been added to dom. perhaps you are
calling the javascript that needs that id a tad too early? try
target.appendjavascript instead of prepand

-igor


On 2/26/07, dukejansen [EMAIL PROTECTED] wrote:



Yes, I've tested some more and I only get this error in my Ajax debug
window
under IE. In Firefox, it correctly loads the modal window.

However, in Firefox it fails a few steps later because it is unable to
locate a form element by ID, when clearly the form element is coming back
as
part of the Ajax request, I can see it in the log.

Are there known issues with Ajax not being able to find elements by ID
when
those elements only exist in markup that was updated by Ajax, and they
weren't in the original markup?

I'm trying to build a very Ajax-dependent UI that has multiple nested
modal
windows and lots of ajax tabbed panels and so forth. Should I scale back
my
optimism? Are there tricks/pitfalls I should be aware of?

Using 1.2.4.

-Jason


igor.vaynberg wrote:

 ive seen that in explorer before when it encounters something it cannot
do
 (like change outerhtml of a tr). it is a very helpful message :) i bet
 that
 code looks like this

 try {
  processjavascript();
 } catch (Throwable e) {
   // we should never get here
   throw new Exception(Unknown Error);
 }

 :)

 -igor

 On 2/25/07, dukejansen [EMAIL PROTECTED] wrote:


 Hmm. Yeah, have done this. All the event code gets through just fine,
it
 steps all the way back out with no obvious exception. I'll start
setting
 some exception breakpoints and see if I can't find it.

 I wanted to rule out the possibility that the error message was
something
 client-side before I kept trying to find it server side.


 Ryan Holmes wrote:
 
  Set a breakpoint in the Java code that handles the Ajax event and
  then the problem is usually pretty obvious...
 
  -Ryan
 
  On Feb 25, 2007, at 3:54 PM, dukejansen wrote:
 
 
  INFO: Response parsed. Now invoking steps...
  ERROR: Error while parsing response: Unknown runtime error
  INFO: Invoking post-call handler(s)...
  INFO: Invoking failure handler(s)...
 
  How can I dig deeper into this Unknown runtime error? I see
  nothing in the
  server logs. Thought I'd ask for simple tips for debugging this
  sort of ajax
  response before taking the time to describe the full context of my
  problem.
  --
  View this message in context: http://www.nabble.com/%22Unknown-
  Runtime-Exception%22-in-Ajax--tf3290142.html#a9151269
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
--
  ---
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?
  page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:

http://www.nabble.com/%22Unknown-Runtime-Exception%22-in-Ajax--tf3290142.html#a9151938
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/%22Unknown-Runtime-Exception%22-in-Ajax--tf3290142.html#a9163216
Sent from the Wicket - User 

Re: [Wicket-user] Newbie : Null Pointer on Page

2007-02-26 Thread Igor Vaynberg

it should be output into the log, so must be in the intellij console?

-igor


On 2/26/07, Stewr [EMAIL PROTECTED] wrote:



Unfortunately I can't get the full stacktrace because the exception seems
to
be handled by the framework before it reaches my code.  I can see the
exception occur in the debugger, IntelliJ displays it, thens steps past
it,
but I can't catch it.


igor.vaynberg wrote:

 give us the full stacktrace please

 -igor



 On 2/26/07, Stewr [EMAIL PROTECTED] wrote:


 Thanks for the quick reply...procedure is not null at any point when
this
 error is occurring.



 igor.vaynberg wrote:
 
 List procedure = (List) item.getModelObject();
 item.add(new Label(equipment, (String)
  procedure.get(0)));
 
  can procedure be null? because thats what it looks like.
 
  -igor
 
 
 
  On 2/26/07, Stewr [EMAIL PROTECTED] wrote:
 
 
  I'm using Wicket 1.2.4 and working with a simple page to show a
 ListView.
  Here is the constructor for the page.
 
  public Results(List resultsList) {
 ListView procedures = new ListView(procedures, resultsList)
{
 
 protected void populateItem(ListItem item) {
 
 List procedure = (List) item.getModelObject();
 item.add(new Label(equipment, (String)
procedure.get
  (0)));
 }
 
 };
 add(procedures);
 
 }
 
  I call this constructor from the submit button on another page.
 
  searchForm.add(new Button(search){
 
 protected void onSubmit() {
 
 try {
 List results =
  lotusService.getLockoutsUsingEquipmentSearch(getSearchCriteria());
 if(results.size() 0){
 setResponsePage(new Results(results));
 }
 
 } catch (LotusServiceException e) {
 e.printStackTrace();
 }
 }
 });
 
  The results page is very simple.
  html
  head
 titleList of Procedures/title
  /head
 
  body
   Hello
 table
 tr wicket:id=procedures
 tdspan wicket:id=equipment//td
 /tr
 /table
 
  /body
  /html
 
 
  What happens is that I get a null pointer exception thrown on
ListView
  procedures = new ListView(procedures, resultsList).  The null
 pointer
  states Method threw 'java.lang.NullPointerException' exception.
 Cannot
  evaluate com.dmflavors.lockout.view.pages.Results$1.toString().  The
  program
  is not stopped by the exception and the Results page is rendered but
  without
  any ListView.  The resultsList list referred to in the ListView call
 is
  populated with values, which are actually other lists...so it is a
 List
  of
  Lists.  Any help would be appreciated.
 
  --
  View this message in context:
 

http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9161474
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:

http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9162055
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief 

Re: [Wicket-user] Uploading from an applet

2007-02-26 Thread Igor Vaynberg

On 2/26/07, MadDog [EMAIL PROTECTED] wrote:



My questions are:

1.  Is this the safe and correct place to do this?  If not, where/when
should I be able to safely call this code?



yes, this is the place

2.  What is the purpose of onAttach()?


to allow components to perform some initialization on every request.

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Unknown Runtime Exception in Ajax?

2007-02-25 Thread Igor Vaynberg

ive seen that in explorer before when it encounters something it cannot do
(like change outerhtml of a tr). it is a very helpful message :) i bet that
code looks like this

try {
processjavascript();
} catch (Throwable e) {
 // we should never get here
 throw new Exception(Unknown Error);
}

:)

-igor

On 2/25/07, dukejansen [EMAIL PROTECTED] wrote:



Hmm. Yeah, have done this. All the event code gets through just fine, it
steps all the way back out with no obvious exception. I'll start setting
some exception breakpoints and see if I can't find it.

I wanted to rule out the possibility that the error message was something
client-side before I kept trying to find it server side.


Ryan Holmes wrote:

 Set a breakpoint in the Java code that handles the Ajax event and
 then the problem is usually pretty obvious...

 -Ryan

 On Feb 25, 2007, at 3:54 PM, dukejansen wrote:


 INFO: Response parsed. Now invoking steps...
 ERROR: Error while parsing response: Unknown runtime error
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

 How can I dig deeper into this Unknown runtime error? I see
 nothing in the
 server logs. Thought I'd ask for simple tips for debugging this
 sort of ajax
 response before taking the time to describe the full context of my
 problem.
 --
 View this message in context: http://www.nabble.com/%22Unknown-
 Runtime-Exception%22-in-Ajax--tf3290142.html#a9151269
 Sent from the Wicket - User mailing list archive at Nabble.com.


 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/%22Unknown-Runtime-Exception%22-in-Ajax--tf3290142.html#a9151938
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Maven repository for wicket-dojo and wicket-scriptaculous?

2007-02-23 Thread Igor Vaynberg

if project/wicket-stuff maintainers add their projects to our bamboo
instance the snapshots will be housed at wicketstuff.org/maven/repository

-igor


On 2/23/07, Gohan [EMAIL PROTECTED] wrote:



Hi,

Does anybody know of a maven repo for the wicket-stuff components such as
wicket-dojo and wicket-scriptaculous?
--
View this message in context:
http://www.nabble.com/Maven-repository-for-wicket-dojo-and-wicket-scriptaculous--tf3277642.html#a9115285
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DataTable (date format)

2007-02-23 Thread Igor Vaynberg

class datepropcol extends propertycolumn {
imodel createlabelmodel(imodel rowmodel) {
  final imodel prop=super.createlabelmodel(rowmodel);
  return new abstractreadonlymodel() {
   object getobject() {
Date date=(Date)prop.getObject();
String str=formatdate...
return str;
 }
}
}
-igor



On 2/23/07, Kingen Star [EMAIL PROTECTED] wrote:


Hi.

Is there an easy way to format the date that the DataTable is displaying?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] I propose a slight change to setObject exception message

2007-02-23 Thread Igor Vaynberg

easiest way is to create a jira issue

-igor


On 2/23/07, ChuckDeal [EMAIL PROTECTED] wrote:



In my specific case it is Wicket 1.3, AbstractDetachableModel,
setObject();
but I image it would apply in other cases as well.

Does anyone else see any value to making this small change to the
exception
message?

Currently:
throw new WicketRuntimeException(unable to set object  + object + ,
model:  + this
+ , called with component  +
component, e);

Proposed:
throw new WicketRuntimeException(unable to set object  + object +
\nmodel:  + this
+ \n called with component  +
component, e);

Basically, put the three parts of the exception on different lines.  Why?
Well, the toString output of the model that is attached to the failing
component is HUGE and it makes it hard to find the exception readily.
Having the parts on different lines would allow me to easily recognize the
component that is failing instead of have to search for the phrase called
with component in the error message to seek to the correct location in
the
message.

I know, it is trivial to search the message, but I am a fan of the tool
working for me.  I would be willing to submit a patch, I would just need
to
know the approved format as well as what exceptions message to change.

Chuck
--
View this message in context:
http://www.nabble.com/I-propose-a-slight-change-to-setObject-exception-message-tf3278997.html#a9119249
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Pure JavaScript calls from Links

2007-02-23 Thread Igor Vaynberg

at the end of javascript you have to return false; this will prevent the
href from executing

-igor


On 2/23/07, Will Morton [EMAIL PROTECTED] wrote:


I am having some issues getting my Wicket application to work.  Any
assistance would be much appreciated.

I have a bunch of pre-defined JavaScript functions that I am including in
headers.  There are some links on my site that, when clicked, should call
one of these pre-defined JS functions.  However, I need to create these
links using Wicket, because the arguments to the functions are being pulled
out of the database.  When the user clicks on these links, the JS function
should be executed, but the user's browser should NOT hit the website.

I have tried creating Link objects and overwriting getOnClickScript() to
return the function call, and onClick() with an empty method, however this
empty onClick() stills seems to make Wicket hit the website.

From within my Page class, I want to create the JavaScript, and have just
that JavaScript execute, and nothing else to happen at all.  Can anyone tell
me how to set up my Link not to do this?

Thanks in advance!

Will


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax form validation error messages

2007-02-23 Thread Igor Vaynberg

there is a form examples in wicket-examples

wicket-stuff.org/wicket13

go to ajax examples/form

-igor


On 2/23/07, Jason Roelofs [EMAIL PROTECTED] wrote:


The list archives at sourceforge are giving me a 500 error, so I don't
know if this has been answered.

What's the best way to push error messages out to the page via Ajax? I
have a small form (text field, submit, cancel). I want to make sure that the
field is not blank.

Thanks

Jason

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Ajax Debug: Channel busy - postponing ...

2007-02-23 Thread Igor Vaynberg

that means you are sending multiple requests over the same ajax channel but
at a rate higher then those requests are processed on the server side so
they get queued

-igor


On 2/23/07, Konstantin [EMAIL PROTECTED] wrote:



I get:
INFO: Initiating Ajax GET request on ...
INFO: Invoking pre-call handler(s) ...
INFO: Channel busy - postponing ...

What does it mean ? I create a modal progress control in pre-call
handler
and because I do not get success nor failure answers (in which I turn off
progress control) it loops forever ...
Can you tell me what is wrong ?

Wicket 1.2.5, Mozilla FireFox 2.0
--
View this message in context:
http://www.nabble.com/Wicket-Ajax-Debug%3A-Channel-busy---postponing-...-tf3279219.html#a9120006
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Internal error with wizard example

2007-02-23 Thread Igor Vaynberg

eelco fix it!

-igor


On 2/23/07, Xavier Hanin [EMAIL PROTECTED] wrote:


Hi,

I've just noticed that the wizard examples on wicketstuff.org/wicket13display an 
Internal error page when you hit the previous button. Is this a
known bug?

Xavier

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Internal error with wizard example

2007-02-23 Thread Igor Vaynberg

which change was that?

-igor


On 2/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Interestingly, I also just found out that Igor's change for the
default button now results in a button being drawn in the left corner.
I'm sure it works with IE though.

Eelco

On 2/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 What browser and how do you do that?

 Eelco

 On 2/23/07, Xavier Hanin [EMAIL PROTECTED] wrote:
  Hi,
 
  I've just noticed that the wizard examples on wicketstuff.org/wicket13
  display an Internal error page when you hit the previous button. Is
this a
  known bug?
 
  Xavier
 
 
-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share your
  opinions on IT  business topics through brief surveys-and earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Internal error with wizard example

2007-02-23 Thread Igor Vaynberg

naah, you dont need the default button :)

see how i do it in teachscape, i use some css trickery to make add the
buttons in the proper order in html (finish, next, back, cancel) but reorder
them in the opposite order using css

doesnt fix the problem you are describing though, im going to check it out

-igor


On 2/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Igor, you said setting it invisible didn't work for IE, right? Looks
like we have to decide what to output based on the browser then :(

Eelco


On 2/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Interestingly, I also just found out that Igor's change for the
 default button now results in a button being drawn in the left corner.
 I'm sure it works with IE though.

 Eelco

 On 2/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  What browser and how do you do that?
 
  Eelco
 
  On 2/23/07, Xavier Hanin [EMAIL PROTECTED] wrote:
   Hi,
  
   I've just noticed that the wizard examples on
wicketstuff.org/wicket13
   display an Internal error page when you hit the previous button.
Is this a
   known bug?
  
   Xavier
  
  
-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
share your
   opinions on IT  business topics through brief surveys-and earn cash
  
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Ajax Debug: Channel busy - postponing ...

2007-02-23 Thread Igor Vaynberg

you are using 1.2.5 or lower? there is an open bug for that already
-igor


On 2/23/07, Konstantin [EMAIL PROTECTED] wrote:



Ok with that.

But I figured out another bug or a feature. When I navigate through pages
of
my site I sometimes get page with wicket-ajax.js in header and sometimes
without ... so my ajax is broken on that page. I suspect that it began to
start happening when I've created navigation with OnMouseDown events with
window.location.href='+urlFor(mySuperPage.class, new PageProperties())'
...
maybe it is somehow done in a wrong way ?



igor.vaynberg wrote:

 that means you are sending multiple requests over the same ajax channel
 but
 at a rate higher then those requests are processed on the server side so
 they get queued

 -igor


 On 2/23/07, Konstantin [EMAIL PROTECTED] wrote:


 I get:
 INFO: Initiating Ajax GET request on ...
 INFO: Invoking pre-call handler(s) ...
 INFO: Channel busy - postponing ...

 What does it mean ? I create a modal progress control in pre-call
 handler
 and because I do not get success nor failure answers (in which I turn
off
 progress control) it loops forever ...
 Can you tell me what is wrong ?

 Wicket 1.2.5, Mozilla FireFox 2.0
 --
 View this message in context:

http://www.nabble.com/Wicket-Ajax-Debug%3A-Channel-busy---postponing-...-tf3279219.html#a9120006
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/Wicket-Ajax-Debug%3A-Channel-busy---postponing-...-tf3279219.html#a9124357
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


<    4   5   6   7   8   9   10   11   12   13   >