Re: [Wicket-user] Strategy for printable pages

2007-01-22 Thread Frank Bille

I normally use css for print friendly pages:

http://meyerweb.com/eric/articles/webrev/21.html
http://alistapart.com/articles/goingtoprint/

Frank


On 1/21/07, MClark00 [EMAIL PROTECTED] wrote:



Hi,

I'd like to support the ability to have a 'Printable Version' link on all
pages which make sense to print in my application.  My first thought on
how
to do this would be to have the content of those pages always be a panel,
and then I could do something like this, where PrintablePage is a simple
empty page which includes one div called contentPanel.

Panel contentPanel = new FooPanel(contentPanel);
add( contentPanel );

add( new Link(printableVersion){

   public void onClick(){
  setResponsePage( new PrintablePage(contentPanel) );
   }

});


I'm still a wicket beginner, so if there is a better strategy for this
please let me know.  I searched the forum and reference guide and couldn't
find one.

Thanks!

Matt
--
View this message in context:
http://www.nabble.com/Strategy-for-printable-pages-tf3049342.html#a8476340
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] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-22 Thread Otan

Let me further explain the trouble that I'm struggling...

When I was still using ResourceStreamLocator, everything works fine. The I
just renamed ResourceStreamLocator to ResourceStreamFactory because it seems
that that's the only change to do in my part. Just renaming didn't work. I
did a necessary modification on my CustomResourceFactory according to what's
in the wicket examples but still getting the same error (see my original
post).

I don't know what I'm doing wrong. The following debug message is all I got:

DEBUG wicket.util.resource.UrlResourceStream - cannot convert url:
jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html to file (URI
scheme is not file), falling back to the inputstream for polling

DEBUG wicket.util.resource.UrlResourceStream - cannot convert url:
jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html to file (URI
scheme is not file), falling back to the inputstream for polling

DEBUG wicket.util.resource.UrlResourceStream - cannot convert url:
jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html to file (URI
scheme is not file), falling back to the inputstream for polling

DEBUG wicket.util.resource.UrlResourceStream - cannot convert url:
jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html to file (URI
scheme is not file), falling back to the inputstream for polling

ERROR wicket.RequestCycle - Markup of type 'html' for component '
packedge.HomePage' not found. Enable debug messages for
wicket.util.resourceto get a list of all filenames tried: ...
(trimmed)

Thanks for any help.

By the way, I think Jonathan is right that instead of the locate() method,
it's nicer to be named newXXX()

On 14/01/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:


Please see CustomResourceStreamFactory in the custom resource loading
examples for how it works, or OsgiResourceStreamFactory as another
example. You simply extend ResourceStreamFactory, subclass the
appropriate locate() method (you usually must not forget to call
super.locate()) and register your factory with the resource settings.
Thats it.

Just out of curiosity, what are you using it for? How and why did you
change/extend the default behavior?

Juergen

On 1/14/07, Otan [EMAIL PROTECTED] wrote:
 having my code refactored to use ResourceStreamFactory (from using
 ResourceStreamLocator before), my program no longer works and I now
receive
 a MarkupNotFoundException. Could someone clarify to me how is the proper
use
 of ResourceStreamFactory and what new things to understand regarding
custom
 markup loading.

 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] Error when retrieving session property

2007-01-22 Thread Landry Soules
Thanks a lot Eelco and Igor.

add(new Label(username, new PropertyModel(this, 
customSession.user.firstName))) works very well.



Eelco Hillenius a écrit :
 LOL. Of course.

 Eelco

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

 add(new Label(username, new PropertyModel(this,
 customSession.user.firstName)));

 -igor



 On 1/21/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
 or even:

public SignInSuccess(String id) {
super(id);
add(new Label(username, new PropertyModel(new
 PropertyModel(customSession.user), firstName)));
SignOutForm signOut = new SignOutForm(signOutForm);
add(signOut);
}
 
 Erm, I mean:

public SignInSuccess(String id) {
   super(id);
   add(new Label(username, new PropertyModel(new
 PropertyModel(this, customSession.user), firstName)));
   SignOutForm signOut = new SignOutForm(signOutForm);
   add(signOut);
   }


   
 -
 
 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] spring integration question

2007-01-22 Thread Johan Compagner

i already fixed this by not using a file at all but just directly the
inputstream

All test are running fine now on my windows machine. Can somebody with a mac
or linux
look why there are still one or two test failing?

It has to do something with encoding i guess.

johan


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


On 1/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

 The licence header test fails. If you provide parameter
 -Dmaven.test.skip=true, the project builds and works fine.

 Frank, if you are reading this, wouldn't

 licenseHeader = url.getFile();

 work better than

 licenseHeader = new wicket.util.file.File(new
 URI(url.toString())).readString(); ?


I guess so. Let me take a look at it later today.

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


[Wicket-user] form validation

2007-01-22 Thread tbt

Hi! I'm a newbie to wicket and I'd like to know how to get multiple inputs
into a single form validation class.
eg:- i have several components in a form and in order to validate one
component, i need the input of several other components. currently i'm
extending AbstractValidator and implementing IValidator. i override the
validate(FormComponent component) method and do my validations here.
currently i'm able to retrieve the value only for a single component. I
tried to get the other values from the model but it only gets updated when
the form is submitted.(onSubmit() method). How should i retrieve the values
of the other componenets?
-- 
View this message in context: 
http://www.nabble.com/form-validation-tf3052664.html#a8485974
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


Re: [Wicket-user] spring integration question

2007-01-22 Thread Frank Bille

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


i already fixed this by not using a file at all but just directly the
inputstream



Yeah saw that. :)

All test are running fine now on my windows machine. Can somebody with a mac

or linux
look why there are still one or two test failing?

It has to do something with encoding i guess.



Which tests are you talking about?

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


Re: [Wicket-user] spring integration question

2007-01-22 Thread Johan Compagner

see: http://wicketstuff.org/bamboo/start.action

and then:

http://wicketstuff.org/bamboo/browse/WICKET2X-WICKET/latest

don't look at the 85 errors. as far as i can see it is only one. But thats a
Bamboo bug.

johan




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


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

 i already fixed this by not using a file at all but just directly the
 inputstream


Yeah saw that. :)

All test are running fine now on my windows machine. Can somebody with a
 mac or linux
 look why there are still one or two test failing?

 It has to do something with encoding i guess.


Which tests are you talking about?

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] form validation

2007-01-22 Thread Erik van Oosten
Hi Tbt,

You can work with form validators:
http://cwiki.apache.org/WICKET/validating-related-fields.html

Regards,
 Erik.


tbt schreef:
 Hi! I'm a newbie to wicket and I'd like to know how to get multiple inputs
 into a single form validation class.
 eg:- i have several components in a form and in order to validate one
 component, i need the input of several other components. 
   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.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


Re: [Wicket-user] spring integration question

2007-01-22 Thread Frank Bille

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


http://wicketstuff.org/bamboo/browse/WICKET2X-WICKET/latest



Ok, that one. I'll take a look at that tonight. Btw has anyone reported that
test count bug in bamboo?

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


[Wicket-user] wicket.markup.html.include.Include replace text

2007-01-22 Thread Matthijs Wensveen
Hi,
I'm using an Include component to include some 'static' html file. The 
problem is that the html file references path that depend on the context 
path of the application so I would like to dynamically replace some text 
in the html file with the context path. i.e.: a 
href=${contextPath}/my/other.htmllink/a.

What would be the 'wicket' way to do this? I've looked at 
VariableInterpolator and that seems like an interesting class to use, 
but I don't know how and where. One idea would be to write a 
IResponseFilter but if it can be done in an easier way I would prefer 
that of course.

Thanks in advance,
Matthijs

-- 
Matthijs Wensveen
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


[Wicket-user] [wicket 1.2.4] is it possible to use attributeapender on RadioChoice?

2007-01-22 Thread Nino Wael
Hi 

 

I want to append something on my RadioChoice's onclick method. If I just add 
the attributeappender then the base markup container gets appended:

 

div wicket:id=radiochoice onclick=showlayerinput a/input/div

 

Problem is that I have a sort of div layer that needs to be triggered once the 
user clicks one of the radio's, and the above code gets triggered if the user 
manages to click somewhere near the radio but outside the label and the radio 
itself. In order for it to work I need to add an appender to the input element:

div wicket:id=radiochoice input a onclick=showlayer/input/div

 

Then the script will only be run if the radios actually are clicket. Im 
guessing that I need to use radio and radiogroup for this.

 

But it would be easier for me if I could just append the radio of the 
radiochoice since we are already using this.

-Nino

 

-
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] how to abort the xmlhttprequest

2007-01-22 Thread Prashant Khanal
Hello all,
Is there any way to abort the xmlhttprequest in
wicket. As XMLHttpRequest object has got abort()
method to abort the request. Can it be used in wicket.


 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

-
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 abort the xmlhttprequest

2007-01-22 Thread Nino Wael
Why do you need to cancel it?


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal
Sent: 22. januar 2007 12:09
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] how to abort the xmlhttprequest

Hello all,
Is there any way to abort the xmlhttprequest in
wicket. As XMLHttpRequest object has got abort()
method to abort the request. Can it be used in wicket.


 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

-
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.markup.html.include.Include replace text

2007-01-22 Thread Ivo van Dongen

Hi,

I've used 
PackagedTextTemplatehttp://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/util/resource/PackagedTextTemplate.htmla
couple of times in the past to include some macro like replacements.
You
can use the string from the template in a label and use setEscapeModelStrings()
to let the html be rendered normally. I've used this for javascript in the
past, but I don't see any problems in using it for html includes.
Look at this 
componenthttp://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/ajax/calendar/YUICalendar.java?revision=367view=markupand
its
templatehttp://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/resources/org/webical/web/components/ajax/calendar/calendarInitWithConfiguration.js?view=markupfor
an example.

Hope it helps,
Ivo

On 1/22/07, Matthijs Wensveen [EMAIL PROTECTED] wrote:


Hi,
I'm using an Include component to include some 'static' html file. The
problem is that the html file references path that depend on the context
path of the application so I would like to dynamically replace some text
in the html file with the context path. i.e.: a
href=${contextPath}/my/other.htmllink/a.

What would be the 'wicket' way to do this? I've looked at
VariableInterpolator and that seems like an interesting class to use,
but I don't know how and where. One idea would be to write a
IResponseFilter but if it can be done in an easier way I would prefer
that of course.

Thanks in advance,
Matthijs

--
Matthijs Wensveen
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] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-22 Thread Juergen Donnerstag
Just renaming doesn't work. ResourceStreamFactory implements Wickets
default implementation. I guess you forgot to call super.locate(...)
in your factory?

regards
Juergen

On 1/22/07, Otan [EMAIL PROTECTED] wrote:
 Let me further explain the trouble that I'm struggling...

 When I was still using ResourceStreamLocator, everything works fine. The I
 just renamed ResourceStreamLocator to ResourceStreamFactory because it seems
 that that's the only change to do in my part. Just renaming didn't work. I
 did a necessary modification on my CustomResourceFactory according to what's
 in the wicket examples but still getting the same error (see my original
 post).

 I don't know what I'm doing wrong. The following debug message is all I got:

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 ERROR wicket.RequestCycle - Markup of type 'html' for component
 'packedge.HomePage' not found. Enable debug messages for
 wicket.util.resource to get a list of all filenames tried: ... (trimmed)

 Thanks for any help.

 By the way, I think Jonathan is right that instead of the locate() method,
 it's nicer to be named newXXX()

 On 14/01/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  Please see CustomResourceStreamFactory in the custom resource loading
  examples for how it works, or OsgiResourceStreamFactory as another
  example. You simply extend ResourceStreamFactory, subclass the
  appropriate locate() method (you usually must not forget to call
  super.locate()) and register your factory with the resource settings.
  Thats it.
 
  Just out of curiosity, what are you using it for? How and why did you
  change/extend the default behavior?
 
  Juergen
 
  On 1/14/07, Otan [EMAIL PROTECTED] wrote:
   having my code refactored to use ResourceStreamFactory (from using
   ResourceStreamLocator before), my program no longer works and I now
 receive
   a MarkupNotFoundException. Could someone clarify to me how is the proper
 use
   of ResourceStreamFactory and what new things to understand regarding
 custom
   markup loading.
  
   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




-
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.markup.html.include.Include replace text

2007-01-22 Thread Matthijs Wensveen
Hi Ivo,

Thanks! Lennaert had a similar problem and was able to solve it using 
TextTemplate.

I solved my problem by creating an override of Include.onComponentTagBody :

add(new Include(include, index.html) {
@Override
protected void onComponentTagBody(MarkupStream markupStream, 
ComponentTag openTag) {
// the original string
String content = importAsString();

// the variables to replace
MapString, String variables = new HashMapString, 
String();
variables.put(contextPath, 
getApplication().getApplicationSettings().getContextPath());
   
String newContent = 
MapVariableInterpolator.interpolate(content, variables);
replaceComponentTagBody(markupStream, openTag, newContent);
}
});

Regards,
Matthijs

Ivo van Dongen wrote:
 Hi,

 I've used PackagedTextTemplate 
 http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/util/resource/PackagedTextTemplate.html
  
 a couple of times in the past to include some macro like replacements. 
 You can use the string from the template in a label and use 
 setEscapeModelStrings() to let the html be rendered normally. I've 
 used this for javascript in the past, but I don't see any problems in 
 using it for html includes.
 Look at this component 
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/ajax/calendar/YUICalendar.java?revision=367view=markup
  
 and its template 
 http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/resources/org/webical/web/components/ajax/calendar/calendarInitWithConfiguration.js?view=markup
  
 for an example.

 Hope it helps,
 Ivo
 ||
 On 1/22/07, *Matthijs Wensveen* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi,
 I'm using an Include component to include some 'static' html file. The
 problem is that the html file references path that depend on the
 context
 path of the application so I would like to dynamically replace
 some text
 in the html file with the context path. i.e.: a
 href=${contextPath}/my/other.htmllink/a.

 What would be the 'wicket' way to do this? I've looked at
 VariableInterpolator and that seems like an interesting class to use,
 but I don't know how and where. One idea would be to write a
 IResponseFilter but if it can be done in an easier way I would prefer
 that of course.

 Thanks in advance,
 Matthijs

 --
 Matthijs Wensveen
 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
 
 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


 

 -
 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
   


-- 
Matthijs Wensveen
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


Re: [Wicket-user] Highlighting error components

2007-01-22 Thread Gennadiy . Vasilevskiy

THanks for your help. It worked.
Gennadiy


-
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 1.2.4] is it possible to use attributeapender on RadioChoice?

2007-01-22 Thread Johan Compagner

use RadioGroup and append it on all the Radio's instead of the group.

johan

On 1/22/07, Nino Wael [EMAIL PROTECTED] wrote:


 Hi



I want to append something on my RadioChoice's onclick method. If I just
add the attributeappender then the base markup container gets appended:



div wicket:id=radiochoice onclick=showlayerinput a/input/div



Problem is that I have a sort of div layer that needs to be triggered once
the user clicks one of the radio's, and the above code gets triggered if the
user manages to click somewhere near the radio but outside the label and the
radio itself. In order for it to work I need to add an appender to the input
element:

div wicket:id=radiochoice input a onclick=showlayer/input/div



Then the script will only be run if the radios actually are clicket. Im
guessing that I need to use radio and radiogroup for this.



But it would be easier for me if I could just append the radio of the
radiochoice since we are already using this.

*-Nino***



-
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] spring integration question

2007-01-22 Thread Johan Compagner

yes:

http://jira.atlassian.com/browse/BAM-732

they say it is a maven error???

johan




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


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

 http://wicketstuff.org/bamboo/browse/WICKET2X-WICKET/latest


Ok, that one. I'll take a look at that tonight. Btw has anyone reported
that test count bug in bamboo?

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


[Wicket-user] Removing messages from FeedBackPanel

2007-01-22 Thread Peter Thomas

Hi,

One of the recent mailing-list messages had a very nice solution to add css
behavior so that error form fields get highlighted - e.g. red border.
(Thanks Igor!)

Now suppose I have a form + feedbackPanel with many fields that have the
RequiredValidator error.  Instead of showing a repetitive list of messages
corresponding to each of the fields that need input, I want to show a single
message like Please enter required fields.  And the user can visually
identify the fields that need input as they will be highlighted.

And any other kind of errors (e.g. type conversion) need to be individually
listed in the feedback panel like usual.

I know that you can filter messages on a FeedbackPanel, but what I really
need is some way to pre-process the list of messages before displaying
them.  Is this possible?

Also, is there an easy way with a FeedbackMessage instance to determine if
the error is a RequiredValidator kind of error?

Thanks,

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


Re: [Wicket-user] spring integration question

2007-01-22 Thread Frank Bille

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


yes:

http://jira.atlassian.com/browse/BAM-732

they say it is a maven error???



Yeah it looks like it. Have never seen it before. Take a look at the
attached file which is taken from the latest build.

I'll take a look at this as well tonight.

Frank
?xml version=1.0 encoding=UTF-8 ?
testsuite errors=0 skipped=0 tests=10 time=0.26 failures=0 name=wicket.util.tester.WicketTesterTest
  properties
property value=Java(TM) 2 Runtime Environment, Standard Edition name=java.runtime.name/
property value=/usr/local/jdk1.5.0/jre/lib/i386 name=sun.boot.library.path/
property value=1.5.0-p3-root_09_jun_2006_16_06 name=java.vm.version/
property value=Sun Microsystems Inc. name=java.vm.vendor/
property value=http://java.sun.com/; name=java.vendor.url/
property value=: name=path.separator/
property value=Java HotSpot(TM) Client VM name=java.vm.name/
property value=sun.io name=file.encoding.pkg/
property value=unknown name=sun.os.patch.level/
property value=Java Virtual Machine Specification name=java.vm.specification.name/
property value=/data/home/wicket/var/data/bamboo/xml-data/build-dir/WICKET1X-WICKET name=user.dir/
property value=1.5.0-p3-root_09_jun_2006_16_06 name=java.runtime.version/
property value=sun.awt.X11GraphicsEnvironment name=java.awt.graphicsenv/
property value=/data/home/wicket/var/data/bamboo/xml-data/build-dir/WICKET1X-WICKET name=basedir/
property value=/usr/local/jdk1.5.0/jre/lib/endorsed name=java.endorsed.dirs/
property value=i386 name=os.arch/
property value=/var/tmp/ name=java.io.tmpdir/
property value=
 name=line.separator/
property value=Sun Microsystems Inc. name=java.vm.specification.vendor/
property value=FreeBSD name=os.name/
property value=ISO8859-1 name=sun.jnu.encoding/
property value=/usr/local/jdk1.5.0/jre/lib/i386/client:/usr/local/jdk1.5.0/jre/lib/i386:/usr/local/jdk1.5.0/jre/../lib/i386:/usr/lib:/usr/local/lib name=java.library.path/
property value=Java Platform API Specification name=java.specification.name/
property value=49.0 name=java.class.version/
property value=HotSpot Client Compiler name=sun.management.compiler/
property value=6.1-RELEASE name=os.version/
property value=/home/wicket name=user.home/
property value=Europe/Amsterdam name=user.timezone/
property value=sun.print.PSPrinterJob name=java.awt.printerjob/
property value=ISO8859-1 name=file.encoding/
property value=1.5 name=java.specification.version/
property value=wicket name=user.name/
property value=/home/wicket/tomcat/webapps/maven/repository/org/apache/maven/surefire/surefire-api/2.0/surefire-api-2.0.jar:/home/wicket/tomcat/webapps/maven/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/wicket/tomcat/webapps/maven/repository/org/apache/maven/surefire/surefire-booter/2.0/surefire-booter-2.0.jar name=java.class.path/
property value=1.0 name=java.vm.specification.version/
property value=32 name=sun.arch.data.model/
property value=/usr/local/jdk1.5.0/jre name=java.home/
property value=Sun Microsystems Inc. name=java.specification.vendor/
property value=en name=user.language/
property value=mixed mode name=java.vm.info/
property value=1.5.0-p3 name=java.version/
property value=/usr/local/jdk1.5.0/jre/lib/ext name=java.ext.dirs/
property value=/usr/local/jdk1.5.0/jre/lib/rt.jar:/usr/local/jdk1.5.0/jre/lib/i18n.jar:/usr/local/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/local/jdk1.5.0/jre/lib/jsse.jar:/usr/local/jdk1.5.0/jre/lib/jce.jar:/usr/local/jdk1.5.0/jre/lib/charsets.jar:/usr/local/jdk1.5.0/jre/classes name=sun.boot.class.path/
property value=Sun Microsystems Inc. name=java.vendor/
property value=/home/wicket/tomcat/webapps/maven/repository name=localRepository/
property value=/ name=file.separator/
property value=http://java.sun.com/cgi-bin/bugreport.cgi; name=java.vendor.url.bug/
property value=little name=sun.cpu.endian/
property value=UnicodeLittle name=sun.io.unicode.encoding/
property value= name=sun.cpu.isalist/
  /properties
  testcase time=7.973 name=testLicenseHeaders/
  testcase time=0.034 name=testSimple/
  testcase time=0.013 name=testVariableAssignmentParser/
  testcase time=0.001 name=testIntegerVariableAssignmentParser/
  testcase time=0.015 name=testCommaSeparatedVariableParser/
  testcase time=0.004 name=testTagParser/
  testcase time=0.514 name=testGetStringValidString/
  testcase time=0.005 name=testGetStringMissingStringReturnDefault/
  testcase time=0.007 name=testGetStringMissingStringNoDefault/
  testcase time=0.006 name=testGetStringMissingStringDoNotUseDefault/
  testcase time=0.007 name=testGetStringMissingStringExceptionThrown/
  testcase time=0.051 name=testGetStringPropertySubstitution/
  testcase time=0.012 name=testInComponentConstructor/
  testcase time=0.066 name=testTwoComponents/
  testcase time=0.004 

[Wicket-user] Exception on WebResponse Outputstream

2007-01-22 Thread Daniel Nüst
Hi!

I want to load an XML-file from a wicket page concerning the html page
parameters with javascript. The javascript part (load and parse xml)
works fine and also the generated xml file is okay.

I just always get an

java.lang.IllegalStateException: getOutputStream() has already been
called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:599)
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at wicket.protocol.http.WebResponse.write(WebResponse.java:315)
at
wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:75)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:229)
[...]


I did some research on this problem and found some workarounds for jsp.
I also tried different combinations of Streams and Writers. Alsways that
 exception.

The code:

private void parametersToResponse(MapString, String params, Response
res) throws IOException {
res.setContentType(text/xml);

logger.info(map:  + params);

//  test for illegal keys
if ( containsIllegalKeys(params) || params.isEmpty() ) {
logger.warn(howtoString);
res.write(howtoString); //works!
} else {

//  get news from database
CollectionNews news = getNewsFromDB(params);

//  create xml document from news
Document doc = createXML(news);

//  write xml file to stream
XMLOutputter xmlout = new XMLOutputter();
//  res.write( xmlout.outputString( doc ) );  //does not 
work, res
writes xml to beginning of html page
xmlout.output(doc, res.getOutputStream() ); //somehow 
dublicate call
of getOutputStream !!!
}
}

Another solution would be, not to use XMLOutputter, just
response.write(...), but I don't get a correct XML file but just my
xml put before the html:

?xml version=1.0 encoding=UTF-8?
newsList [...]
html
head[...]

Anybody an idea how to solve the former or the latter?

Regards,
Daniel

-
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] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-22 Thread Otan

On 22/01/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:


Just renaming doesn't work. ResourceStreamFactory implements Wickets
default implementation. I guess you forgot to call super.locate(...)
in your factory?



Ok. It's a mistake in my part. That refactoring in wicket made me
aggressively think that something in wicket made my code useless; but using
a debugger revealed my foolishness: a wrong use of variable!!! G..

Anyway, I've been using Wicket 2.0 with real-word toy-projects, applying it
to usecases that I foresee I will be using Wicket with in the future, I
think I can say now that Wicket 2.0 is ready for the beta ;-) and I can't
wait for it :D
-
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] integrate Wicket stuff examples projects

2007-01-22 Thread Paolo Di Tommaso

I agree with that.

- P

On 1/21/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 I have some examples for beanpanels, but I'd like to wait some weeks
 just to have some more stable code.

Sounds good.  But it would be great to consider making them part of
the wicket-contrib-examples project by the time you're considering
contributing examples.

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


[Wicket-user] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
Hi,

I had a strange error I have a Panel with 3 radiobuttons. They let 
me choose whether I want to pay by debit or credit or  if I want to be 
billed later.
When I click on either of the radiobuttons, the corresponding input 
fields get enabled via JavaScript.
On the Wicket side, I add

new AttributeModifier(disabled, true, new Model(disabled));

to each input field that doesn't belong to the currently selected option 
(i.e. the credit and debit fields are disabled when my payment method is 
bill me later).

When I select one of the other radio buttons, the correspondig text 
fields get enabled, I enter the information, submit the form but the 
model doesn't get updated!

When I remove the adding of the AttributeModifier, everything works. So 
this means that Wicket notices that I'm adding a disabled 
AttributeModifier and keeps the field disabled even when I enable it on 
the webpage. Is this a feature or a bug?

If I would have wanted to really truly disable the Wicket Textfield 
component, I would have called setEnabled on it. But I really just 
want to set the HTML property disabled...

I'm looking forward to your input on this.

- Johannes


-
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] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
Oh, sorry. I'm using version 1.2.4.

Johannes Fahrenkrug wrote:
 Hi,

 I had a strange error I have a Panel with 3 radiobuttons. They let 
 me choose whether I want to pay by debit or credit or  if I want to be 
 billed later.
 When I click on either of the radiobuttons, the corresponding input 
 fields get enabled via JavaScript.
 On the Wicket side, I add

 new AttributeModifier(disabled, true, new Model(disabled));

 to each input field that doesn't belong to the currently selected option 
 (i.e. the credit and debit fields are disabled when my payment method is 
 bill me later).

 When I select one of the other radio buttons, the correspondig text 
 fields get enabled, I enter the information, submit the form but the 
 model doesn't get updated!

 When I remove the adding of the AttributeModifier, everything works. So 
 this means that Wicket notices that I'm adding a disabled 
 AttributeModifier and keeps the field disabled even when I enable it on 
 the webpage. Is this a feature or a bug?

 If I would have wanted to really truly disable the Wicket Textfield 
 component, I would have called setEnabled on it. But I really just 
 want to set the HTML property disabled...

 I'm looking forward to your input on this.

 - Johannes


 -
 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] spring integration question

2007-01-22 Thread Johan Compagner

I already fixed it
The surefire plugin now uses a bit older version:

version2.1.3/version

And suddenly everything is cleaned up (see bamboo)
now really only one thing is failing.

johan


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


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

 yes:

 http://jira.atlassian.com/browse/BAM-732

 they say it is a maven error???


Yeah it looks like it. Have never seen it before. Take a look at the
attached file which is taken from the latest build.

I'll take a look at this as well tonight.

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] Removing messages from FeedBackPanel

2007-01-22 Thread Igor Vaynberg

what you can do is make required field error message same for all fields
(not have ${label} or ${value} in the message) and then just filter messages
- filtering out duplicates

-igor


On 1/22/07, Peter Thomas [EMAIL PROTECTED] wrote:


Hi,

One of the recent mailing-list messages had a very nice solution to add
css behavior so that error form fields get highlighted - e.g. red border.
(Thanks Igor!)

Now suppose I have a form + feedbackPanel with many fields that have the
RequiredValidator error.  Instead of showing a repetitive list of messages
corresponding to each of the fields that need input, I want to show a single
message like Please enter required fields.  And the user can visually
identify the fields that need input as they will be highlighted.

And any other kind of errors (e.g. type conversion) need to be
individually listed in the feedback panel like usual.

I know that you can filter messages on a FeedbackPanel, but what I really
need is some way to pre-process the list of messages before displaying
them.  Is this possible?

Also, is there an easy way with a FeedbackMessage instance to determine if
the error is a RequiredValidator kind of error?

Thanks,

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


Re: [Wicket-user] Tracking session expire exception

2007-01-22 Thread Marc-Andre Houle

I think the mail didn't pass through sf.net.  So, I try again.

Marc

On 1/16/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


Here is the example.
Open two tabs with the same page, in each one of them, click on page 2,
and see the page map being the same :)

Marc

P.S. : I included only the source directory since it would be too big to
include everything!  Just change the src directory of a quickstart project.

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


 Now, the output look like this :
  I access the index page first time :
  index Page map is :null


 correct.

 I access the index page from another tab :
  index Page map is :null
  index Page map is :wicket-0


 correct.
 First is rendered in default pagemap.
 Then we detect a new window and do a bookmarkable redirect to a wicket
 generated pagemap. (wicket-0)


 I access Page2 from the whatever link (I mean, the two tabs have the
  same result :
  Page 2 map is :null


 When you click on the link in the window that has wicket=0 pagemap
 It should give you that pagemap there. If that is not the case can you
 make a quickstart app?

 johan



 -
 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







page_map_src.iamzip
Description: Binary data
-
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] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Igor Vaynberg

can you check if the value is actually being submitted by the browser?

-igor


On 1/22/07, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:


Hi,

I had a strange error I have a Panel with 3 radiobuttons. They let
me choose whether I want to pay by debit or credit or  if I want to be
billed later.
When I click on either of the radiobuttons, the corresponding input
fields get enabled via JavaScript.
On the Wicket side, I add

new AttributeModifier(disabled, true, new Model(disabled));

to each input field that doesn't belong to the currently selected option
(i.e. the credit and debit fields are disabled when my payment method is
bill me later).

When I select one of the other radio buttons, the correspondig text
fields get enabled, I enter the information, submit the form but the
model doesn't get updated!

When I remove the adding of the AttributeModifier, everything works. So
this means that Wicket notices that I'm adding a disabled
AttributeModifier and keeps the field disabled even when I enable it on
the webpage. Is this a feature or a bug?

If I would have wanted to really truly disable the Wicket Textfield
component, I would have called setEnabled on it. But I really just
want to set the HTML property disabled...

I'm looking forward to your input on this.

- Johannes


-
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] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
Yes, that was also the first thing I thought of: I checked it with 
livehttpheaders and yes: they are being submitted by the browser.

- Johannes

Igor Vaynberg wrote:
 can you check if the value is actually being submitted by the browser?

 -igor


 On 1/22/07, *Johannes Fahrenkrug*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 I had a strange error I have a Panel with 3 radiobuttons. They
 let
 me choose whether I want to pay by debit or credit or  if I want to be
 billed later.
 When I click on either of the radiobuttons, the corresponding input
 fields get enabled via JavaScript.
 On the Wicket side, I add

 new AttributeModifier(disabled, true, new Model(disabled));

 to each input field that doesn't belong to the currently selected
 option
 (i.e. the credit and debit fields are disabled when my payment
 method is
 bill me later).

 When I select one of the other radio buttons, the correspondig text
 fields get enabled, I enter the information, submit the form
 but the
 model doesn't get updated!

 When I remove the adding of the AttributeModifier, everything
 works. So
 this means that Wicket notices that I'm adding a disabled
 AttributeModifier and keeps the field disabled even when I enable
 it on
 the webpage. Is this a feature or a bug?

 If I would have wanted to really truly disable the Wicket Textfield
 component, I would have called setEnabled on it. But I really just
 want to set the HTML property disabled...

 I'm looking forward to your input on this.

 - Johannes


 -
 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


 

 -
 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] Possible bug in IE7 with AjaxEventBehavior

2007-01-22 Thread Marc-Andre Houle

I was developing from home for my work last week and since I'm not a Windows
fan, I developed under OsX using Firefox, everything was great.  Today, I
got an issue with AjaxEventBehavior.  It seem's that the event is not
generated the same way between firefox and IE7.  Can somebody tell me how I
can achieve the thing I want to do (When something is selected, check if it
represent something special immediately).  I'll paste a demo code right here
but here is what it do :

When I select a radio button, I change a variable and display it.
Under firefox, When the radio button is clicked, I got an event telling me
so inside the proper object
Under IE7, it call the event when I'm changing of radio button (1 is
selected, I go to 2) and is called from the last object (in this case, 1)

So, for example, making something appear when a radio button is selected is
a feature that will not work on IE7 since it will appear when I quit this
option, not when I enter it.  Is there a possible fix for this ??

Here is the quick start code :
---
Markup :
---
div wicket:id=RadioGroup
   div wicket:id=ListView
   input type=radio wicket:id=radio/span
wicket:id=label/span
   /div
/div
Selected radio button : span wicket:id=selection/span
---
Java :
---
final RadioGroup radioGroup = new RadioGroup(RadioGroup, new Model());
final Label selectionLabel = new Label(selection, new PropertyModel(this,
selection));
selectionLabel.setOutputMarkupId (true);
ListView listView=new ListView(ListView, RadioList) {
   protected void populateItem (final ListItem item)
   {
   Radio radio = new Radio(radio, item.getModel());
   radio.add (new AjaxEventBehavior(onchange)
   {
   protected void onEvent (AjaxRequestTarget target)
   {
   System.out.println(Selected :  + item.getModelObject ());
   setSelection (item.getModelObjectAsString ());
   target.addComponent (selectionLabel);
   }
   });
   item.add(radio);
   item.add(new Label(label, (String)item.getModelObject ()));
   }
};
radioGroup.add (listView);
add(radioGroup);
add(selectionLabel);
-
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] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Igor Vaynberg

i dont see where we read the disabled attribute in our code, can you try
branch-1.x? or see where in wicket's code it thinks its disabled?

-igor


On 1/22/07, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:


Yes, that was also the first thing I thought of: I checked it with
livehttpheaders and yes: they are being submitted by the browser.

- Johannes

Igor Vaynberg wrote:
 can you check if the value is actually being submitted by the browser?

 -igor


 On 1/22/07, *Johannes Fahrenkrug*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 I had a strange error I have a Panel with 3 radiobuttons. They
 let
 me choose whether I want to pay by debit or credit or  if I want to
be
 billed later.
 When I click on either of the radiobuttons, the corresponding input
 fields get enabled via JavaScript.
 On the Wicket side, I add

 new AttributeModifier(disabled, true, new Model(disabled));

 to each input field that doesn't belong to the currently selected
 option
 (i.e. the credit and debit fields are disabled when my payment
 method is
 bill me later).

 When I select one of the other radio buttons, the correspondig text
 fields get enabled, I enter the information, submit the form
 but the
 model doesn't get updated!

 When I remove the adding of the AttributeModifier, everything
 works. So
 this means that Wicket notices that I'm adding a disabled
 AttributeModifier and keeps the field disabled even when I enable
 it on
 the webpage. Is this a feature or a bug?

 If I would have wanted to really truly disable the Wicket Textfield
 component, I would have called setEnabled on it. But I really just
 want to set the HTML property disabled...

 I'm looking forward to your input on this.

 - Johannes



-
 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


 


-
 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] Possible bug in IE7 with AjaxEventBehavior

2007-01-22 Thread Igor Vaynberg

use onclick instead of onchange

-igor


On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


I was developing from home for my work last week and since I'm not a
Windows fan, I developed under OsX using Firefox, everything was great.
Today, I got an issue with AjaxEventBehavior.  It seem's that the event is
not generated the same way between firefox and IE7.  Can somebody tell me
how I can achieve the thing I want to do (When something is selected, check
if it represent something special immediately).  I'll paste a demo code
right here but here is what it do :

When I select a radio button, I change a variable and display it.
Under firefox, When the radio button is clicked, I got an event telling me
so inside the proper object
Under IE7, it call the event when I'm changing of radio button (1 is
selected, I go to 2) and is called from the last object (in this case, 1)

So, for example, making something appear when a radio button is selected
is a feature that will not work on IE7 since it will appear when I quit this
option, not when I enter it.  Is there a possible fix for this ??

Here is the quick start code :
---
Markup :
---
div wicket:id=RadioGroup
div wicket:id=ListView
input type=radio wicket:id=radio/span
wicket:id=label/span
/div
/div
Selected radio button : span wicket:id=selection/span
---
Java :
---
final RadioGroup radioGroup = new RadioGroup(RadioGroup, new Model());
final Label selectionLabel = new Label(selection, new
PropertyModel(this, selection));
selectionLabel.setOutputMarkupId (true);
ListView listView=new ListView(ListView, RadioList) {
protected void populateItem (final ListItem item)
{
Radio radio = new Radio(radio, item.getModel());
radio.add (new AjaxEventBehavior(onchange)
{
protected void onEvent (AjaxRequestTarget target)
{
System.out.println(Selected :  + item.getModelObject());
setSelection (item.getModelObjectAsString ());
target.addComponent (selectionLabel);
}
});
item.add(radio);
item.add(new Label(label, (String)item.getModelObject ()));
}
};
radioGroup.add (listView);
add(radioGroup);
add(selectionLabel);

-
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] Possible bug in IE7 with AjaxEventBehavior

2007-01-22 Thread Igor Vaynberg

and btw this is not a wicket bug, just different browser behavior

-igor


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


use onclick instead of onchange

-igor


On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:

 I was developing from home for my work last week and since I'm not a
 Windows fan, I developed under OsX using Firefox, everything was great.
 Today, I got an issue with AjaxEventBehavior.  It seem's that the event is
 not generated the same way between firefox and IE7.  Can somebody tell me
 how I can achieve the thing I want to do (When something is selected, check
 if it represent something special immediately).  I'll paste a demo code
 right here but here is what it do :

 When I select a radio button, I change a variable and display it.
 Under firefox, When the radio button is clicked, I got an event telling
 me so inside the proper object
 Under IE7, it call the event when I'm changing of radio button (1 is
 selected, I go to 2) and is called from the last object (in this case, 1)

 So, for example, making something appear when a radio button is selected
 is a feature that will not work on IE7 since it will appear when I quit this
 option, not when I enter it.  Is there a possible fix for this ??

 Here is the quick start code :
 ---
 Markup :
 ---
 div wicket:id=RadioGroup
 div wicket:id=ListView
 input type=radio wicket:id=radio/span
 wicket:id=label/span
 /div
 /div
 Selected radio button : span wicket:id=selection/span
 ---
 Java :
 ---
 final RadioGroup radioGroup = new RadioGroup(RadioGroup, new Model());
 final Label selectionLabel = new Label(selection, new
 PropertyModel(this, selection));
 selectionLabel.setOutputMarkupId (true);
 ListView listView=new ListView(ListView, RadioList) {
 protected void populateItem (final ListItem item)
 {
 Radio radio = new Radio(radio, item.getModel());
 radio.add (new AjaxEventBehavior(onchange)
 {
 protected void onEvent (AjaxRequestTarget target)
 {
 System.out.println(Selected :  + item.getModelObject());
 setSelection (item.getModelObjectAsString ());
 target.addComponent (selectionLabel);
 }
 });
 item.add(radio);
 item.add(new Label(label, (String)item.getModelObject ()));
 }
 };
 radioGroup.add (listView);
 add(radioGroup);
 add(selectionLabel);


 -
 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] AttributeModifier disabled - Bug or Feature?

2007-01-22 Thread Johannes Fahrenkrug
I will. I'm already looking at the FormComponent code. I have to go now, 
but I'll get back to it tomorrow.

- Johannes

Igor Vaynberg wrote:
 i dont see where we read the disabled attribute in our code, can you 
 try branch-1.x? or see where in wicket's code it thinks its disabled?

 -igor


 On 1/22/07, * Johannes Fahrenkrug* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Yes, that was also the first thing I thought of: I checked it with
 livehttpheaders and yes: they are being submitted by the browser.

 - Johannes

 Igor Vaynberg wrote:
  can you check if the value is actually being submitted by the
 browser?
 
  -igor
 
 
  On 1/22/07, *Johannes Fahrenkrug*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  I had a strange error I have a Panel with 3
 radiobuttons. They
  let
  me choose whether I want to pay by debit or credit or  if I
 want to be
  billed later.
  When I click on either of the radiobuttons, the
 corresponding input
  fields get enabled via JavaScript.
  On the Wicket side, I add
 
  new AttributeModifier(disabled, true, new Model(disabled));
 
  to each input field that doesn't belong to the currently
 selected
  option
  (i.e. the credit and debit fields are disabled when my payment
  method is
  bill me later).
 
  When I select one of the other radio buttons, the
 correspondig text
  fields get enabled, I enter the information, submit the form
  but the
  model doesn't get updated!
 
  When I remove the adding of the AttributeModifier, everything
  works. So
  this means that Wicket notices that I'm adding a disabled
  AttributeModifier and keeps the field disabled even when I
 enable
  it on
  the webpage. Is this a feature or a bug?
 
  If I would have wanted to really truly disable the Wicket
 Textfield
  component, I would have called setEnabled on it. But I
 really just
  want to set the HTML property disabled...
 
  I'm looking forward to your input on this.
 
  - Johannes
 
 
 
 -

  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
  
 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
  mailto:Wicket-user@lists.sourceforge.net
 mailto: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
 
 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
 


 -
 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] Possible bug in IE7 with AjaxEventBehavior

2007-01-22 Thread Marc-Andre Houle

Thanks a lot Igor, your the master! It work exactly as it should :)

And see, the object of the email : Ie7 bug, not wicket bug! :)  Maybe it is
not clear, but that was what I thought when I type it.

Marc

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


and btw this is not a wicket bug, just different browser behavior

-igor


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

 use onclick instead of onchange

 -igor


 On 1/22/07, Marc-Andre Houle  [EMAIL PROTECTED] wrote:

  I was developing from home for my work last week and since I'm not a
  Windows fan, I developed under OsX using Firefox, everything was great.
  Today, I got an issue with AjaxEventBehavior.  It seem's that the event is
  not generated the same way between firefox and IE7.  Can somebody tell me
  how I can achieve the thing I want to do (When something is selected, check
  if it represent something special immediately).  I'll paste a demo code
  right here but here is what it do :
 
  When I select a radio button, I change a variable and display it.
  Under firefox, When the radio button is clicked, I got an event
  telling me so inside the proper object
  Under IE7, it call the event when I'm changing of radio button (1 is
  selected, I go to 2) and is called from the last object (in this case, 1)
 
  So, for example, making something appear when a radio button is
  selected is a feature that will not work on IE7 since it will appear when I
  quit this option, not when I enter it.  Is there a possible fix for this ??
 
  Here is the quick start code :
  ---
  Markup :
  ---
  div wicket:id=RadioGroup
  div wicket:id=ListView
  input type=radio wicket:id=radio/span
  wicket:id=label/span
  /div
  /div
  Selected radio button : span wicket:id=selection/span
  ---
  Java :
  ---
  final RadioGroup radioGroup = new RadioGroup(RadioGroup, new
  Model());
  final Label selectionLabel = new Label(selection, new
  PropertyModel(this, selection));
  selectionLabel.setOutputMarkupId (true);
  ListView listView=new ListView(ListView, RadioList) {
  protected void populateItem (final ListItem item)
  {
  Radio radio = new Radio(radio, item.getModel());
  radio.add (new AjaxEventBehavior(onchange)
  {
  protected void onEvent (AjaxRequestTarget target)
  {
  System.out.println(Selected :  + item.getModelObject());
  setSelection (item.getModelObjectAsString ());
  target.addComponent (selectionLabel);
  }
  });
  item.add(radio);
  item.add(new Label(label, (String)item.getModelObject ()));
  }
  };
  radioGroup.add (listView);
  add(radioGroup);
  add(selectionLabel);
 
 
  -
  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] spring integration question

2007-01-22 Thread Frank Bille

Hehe ok. I guess I'll fix it tonight is to late for you, huh? ;o)

Frank

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


I already fixed it
The surefire plugin now uses a bit older version:

version2.1.3/version

And suddenly everything is cleaned up (see bamboo)
now really only one thing is failing.

johan


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

 On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote:
 
  yes:
 
  http://jira.atlassian.com/browse/BAM-732
 
  they say it is a maven error???
 

 Yeah it looks like it. Have never seen it before. Take a look at the
 attached file which is taken from the latest build.

 I'll take a look at this as well tonight.

 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



-
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] integrate Wicket stuff examples projects

2007-01-22 Thread Vincent Demay
Eelco Hillenius a écrit :
 I just filed http://issues.apache.org/jira/browse/WICKET-227, which we
 are considering because of an offline discussion we had on how to cut
 down on maintenance for the core projects.

 I think we can do much the same for the Wicket-stuff projects. There
 are a couple of projects with their own example projects. This makes
 sense when projects are new and you can expect lots of changes in a
 short while, but for a couple of these examples projects we could
 consider merging them with the existing wicket-contrib-examples
 project. The advantage of that is that it is easier to update them for
 API breaks in the core projects (I seem to be the main one doing that
 so far), but also in this way it is much easier for people to get an
 idea what is in the wicket-stuff projects. Also, my hunch is that it
 increases chances of others getting involved in one of the projects.

 On the list to merge would be:
 * wicket-contrib-jasperreports
 * wicket-contrib-dojo-examples (though it doesn't seem to be
 maintained anymore, so it actually might make sense to add a few
 examples from scratch)
   
Yes we stop to maintain exemple for a while, but if a 
wicket-contrib-exemple came out we could  easly fix errors to make 
exemples based on actual wicket-contrib-dojo-exemples.
see http://www.demay-fr.net:8080/Wicket-start/app, I not deploy it for a 
long time and it is exemples from trunk but there are same exemples in 
1.3 branch.

--
Vincent

 * wicket-contrib-yui-examples
 * wicket-contrib-tinymce-examples (doesn't build now due to a dependency 
 issue)
 * wicket-contrib-scriptaculous
 * wicket-contrib-beanpanels (create examples from scratch?)

 Some other wicket-stuff project already have been integrated.

 WDYT? Any volunteers?

 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


[Wicket-user] Best practice for seperating .java and .html ?

2007-01-22 Thread nilo.de.roock

Hi,

I am very newbie on Wicket. I am reading the Pro Wicket book. I want the
.java and .html page files in two different directories for obvious reasons.
I read the following in the book:

The HTML template needs to be in the same package as the corresponding Page
class.
An internal Wicket component that is entrusted with the job of locating the
HTML markup
corresponding to a Page looks for the markup in the same place as the Page
class. Wicket
allows you to easily customize this default behavior though. ... 

I get completely lost here:

... All user pages typically extend
Wicket’s WebPage-a subclass of Wicket’s Page class. There needs to be a
one-to-one correspondence
between the HTML elements with a wicket:id attribute and the Page
components. The
HTML template could in fact be termed as a view with the actual component
hierarchy being
described in the Page class. Wicket components need to be supplied with an
id parameter and
an IModel implementation during construction (some exceptions will be
discussed in the section
“How to Specify a CompoundPropertyModel for a Page.” The component’s id
value must
match the wicket:id attribute value of the template’s corresponding HTML
element. Essentially,
if the template contains an HTML text element with a wicket:id value of
name, then the
corresponding wicket’s TextField instance with an id of name needs to be
added to the Page
class. Wicket supplies components that correspond to basic HTML elements
concerned with
user interaction. Examples of such elements are HTML input fields of type
text, HTML select,
HTML link, etc. The corresponding Wicket components would be TextField,
DropDownChoice,
and Link, respectively. ...

What I would like to know is in a For Dummies sort of explanation what I
have to do to be able to seperate .html and .java.

Thanks in advance.

kind regards,
nilo de roock

-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-seperating-.java-and-.html---tf3060190.html#a8509215
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


Re: [Wicket-user] Tracking session expire exception

2007-01-22 Thread Johan Compagner

yes i see it, will look it at asap

On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote:


I think the mail didn't pass through sf.net.  So, I try again.

Marc

On 1/16/07, Marc-Andre Houle  [EMAIL PROTECTED] wrote:

 Here is the example.
 Open two tabs with the same page, in each one of them, click on page 2,
 and see the page map being the same :)

 Marc

 P.S. : I included only the source directory since it would be too big to
 include everything!  Just change the src directory of a quickstart project.

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

 
  Now, the output look like this :
   I access the index page first time :
   index Page map is :null
 
 
  correct.
 
  I access the index page from another tab :
   index Page map is :null
   index Page map is :wicket-0
 
 
  correct.
  First is rendered in default pagemap.
  Then we detect a new window and do a bookmarkable redirect to a wicket
  generated pagemap. (wicket-0)
 
 
  I access Page2 from the whatever link (I mean, the two tabs have the
   same result :
   Page 2 map is :null
 
 
  When you click on the link in the window that has wicket=0 pagemap
  It should give you that pagemap there. If that is not the case can you
  make a quickstart app?
 
  johan
 
 
 
  -
  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] Best practice for seperating .java and .html ?

2007-01-22 Thread Martijn Dashorst
We advise you to not do this until you are absolutely sure you need
it, especially as a newbie to the framework. Obvious reasons are not
so obvious in a Wicket context.

 - packaging your components in a jar
 - having to mimick the package/directory structure
 - looking up your HTML (which is tightly coupled to your Java file)
in a separate directory
 - other resources such as properties files, where should they go?

Martijn

On 1/22/07, nilo.de.roock [EMAIL PROTECTED] wrote:

 Hi,

 I am very newbie on Wicket. I am reading the Pro Wicket book. I want the
 .java and .html page files in two different directories for obvious reasons.
 I read the following in the book:

 The HTML template needs to be in the same package as the corresponding Page
 class.
 An internal Wicket component that is entrusted with the job of locating the
 HTML markup
 corresponding to a Page looks for the markup in the same place as the Page
 class. Wicket
 allows you to easily customize this default behavior though. ... 

 I get completely lost here:

 ... All user pages typically extend
 Wicket's WebPage-a subclass of Wicket's Page class. There needs to be a
 one-to-one correspondence
 between the HTML elements with a wicket:id attribute and the Page
 components. The
 HTML template could in fact be termed as a view with the actual component
 hierarchy being
 described in the Page class. Wicket components need to be supplied with an
 id parameter and
 an IModel implementation during construction (some exceptions will be
 discussed in the section
 How to Specify a CompoundPropertyModel for a Page. The component's id
 value must
 match the wicket:id attribute value of the template's corresponding HTML
 element. Essentially,
 if the template contains an HTML text element with a wicket:id value of
 name, then the
 corresponding wicket's TextField instance with an id of name needs to be
 added to the Page
 class. Wicket supplies components that correspond to basic HTML elements
 concerned with
 user interaction. Examples of such elements are HTML input fields of type
 text, HTML select,
 HTML link, etc. The corresponding Wicket components would be TextField,
 DropDownChoice,
 and Link, respectively. ...

 What I would like to know is in a For Dummies sort of explanation what I
 have to do to be able to seperate .html and .java.

 Thanks in advance.

 kind regards,
 nilo de roock

 --
 View this message in context: 
 http://www.nabble.com/Best-practice-for-seperating-.java-and-.html---tf3060190.html#a8509215
 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



-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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] Best practice for seperating .java and .html ?

2007-01-22 Thread Igor Vaynberg

yes, all newbies start to do this and eventually go back, but oh well

if you still want to shoot yourself in the foot what you do is this:

implement IResourceStreamLocator and make it take a delegate

then in your app's init do this

application.init() {
MyResourceStreamLocator locator=new
MyResourceStreamLocator(getResourceSettings().getResourceStreamLocator());
getResourceSettings().setResourceStreamLocator(locator);
}

-igor


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


We advise you to not do this until you are absolutely sure you need
it, especially as a newbie to the framework. Obvious reasons are not
so obvious in a Wicket context.

- packaging your components in a jar
- having to mimick the package/directory structure
- looking up your HTML (which is tightly coupled to your Java file)
in a separate directory
- other resources such as properties files, where should they go?

Martijn

On 1/22/07, nilo.de.roock [EMAIL PROTECTED] wrote:

 Hi,

 I am very newbie on Wicket. I am reading the Pro Wicket book. I want the
 .java and .html page files in two different directories for obvious
reasons.
 I read the following in the book:

 The HTML template needs to be in the same package as the corresponding
Page
 class.
 An internal Wicket component that is entrusted with the job of locating
the
 HTML markup
 corresponding to a Page looks for the markup in the same place as the
Page
 class. Wicket
 allows you to easily customize this default behavior though. ... 

 I get completely lost here:

 ... All user pages typically extend
 Wicket's WebPage-a subclass of Wicket's Page class. There needs to be a
 one-to-one correspondence
 between the HTML elements with a wicket:id attribute and the Page
 components. The
 HTML template could in fact be termed as a view with the actual
component
 hierarchy being
 described in the Page class. Wicket components need to be supplied with
an
 id parameter and
 an IModel implementation during construction (some exceptions will be
 discussed in the section
 How to Specify a CompoundPropertyModel for a Page. The component's id
 value must
 match the wicket:id attribute value of the template's corresponding HTML
 element. Essentially,
 if the template contains an HTML text element with a wicket:id value of
 name, then the
 corresponding wicket's TextField instance with an id of name needs to be
 added to the Page
 class. Wicket supplies components that correspond to basic HTML elements
 concerned with
 user interaction. Examples of such elements are HTML input fields of
type
 text, HTML select,
 HTML link, etc. The corresponding Wicket components would be TextField,
 DropDownChoice,
 and Link, respectively. ...

 What I would like to know is in a For Dummies sort of explanation what I
 have to do to be able to seperate .html and .java.

 Thanks in advance.

 kind regards,
 nilo de roock

 --
 View this message in context:
http://www.nabble.com/Best-practice-for-seperating-.java-and-.html---tf3060190.html#a8509215
 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



--
Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
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] Best practice for seperating .java and .html ?

2007-01-22 Thread Eelco Hillenius
And there is an example of it in Wicket-examples called 'custom
template loading'. But yes, it is recommended to use the defaults
instead; that auto discovery pattern is there to save you precious
development time, make things easier to look up (at least for
developers) and to make packaging components in different jars without
needing extra configuration/ deployment simple.

Eelco


On 1/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yes, all newbies start to do this and eventually go back, but oh well

 if you still want to shoot yourself in the foot what you do is this:

 implement IResourceStreamLocator and make it take a delegate

 then in your app's init do this

 application.init() {
 MyResourceStreamLocator locator=new
 MyResourceStreamLocator(getResourceSettings().getResourceStreamLocator());
 getResourceSettings().setResourceStreamLocator(locator);
 }

 -igor



 On 1/22/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  We advise you to not do this until you are absolutely sure you need
  it, especially as a newbie to the framework. Obvious reasons are not
  so obvious in a Wicket context.
 
  - packaging your components in a jar
  - having to mimick the package/directory structure
  - looking up your HTML (which is tightly coupled to your Java file)
  in a separate directory
  - other resources such as properties files, where should they go?
 
  Martijn
 
  On 1/22/07, nilo.de.roock [EMAIL PROTECTED] wrote:
  
   Hi,
  
   I am very newbie on Wicket. I am reading the Pro Wicket book. I want the
   .java and .html page files in two different directories for obvious
 reasons.
   I read the following in the book:
  
   The HTML template needs to be in the same package as the corresponding
 Page
   class.
   An internal Wicket component that is entrusted with the job of locating
 the
   HTML markup
   corresponding to a Page looks for the markup in the same place as the
 Page
   class. Wicket
   allows you to easily customize this default behavior though. ... 
  
   I get completely lost here:
  
   ... All user pages typically extend
   Wicket's WebPage-a subclass of Wicket's Page class. There needs to be a
   one-to-one correspondence
   between the HTML elements with a wicket:id attribute and the Page
   components. The
   HTML template could in fact be termed as a view with the actual
 component
   hierarchy being
   described in the Page class. Wicket components need to be supplied with
 an
   id parameter and
   an IModel implementation during construction (some exceptions will be
   discussed in the section
   How to Specify a CompoundPropertyModel for a Page. The component's id
   value must
   match the wicket:id attribute value of the template's corresponding HTML
   element. Essentially,
   if the template contains an HTML text element with a wicket:id value of
   name, then the
   corresponding wicket's TextField instance with an id of name needs to be
   added to the Page
   class. Wicket supplies components that correspond to basic HTML elements
   concerned with
   user interaction. Examples of such elements are HTML input fields of
 type
   text, HTML select,
   HTML link, etc. The corresponding Wicket components would be TextField,
   DropDownChoice,
   and Link, respectively. ...
  
   What I would like to know is in a For Dummies sort of explanation what I
   have to do to be able to seperate .html and .java.
  
   Thanks in advance.
  
   kind regards,
   nilo de roock
  
   --
   View this message in context:
 http://www.nabble.com/Best-practice-for-seperating-.java-and-.html---tf3060190.html#a8509215
   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
  
 
 
  --
  Vote for Wicket at the
 http://www.thebeststuffintheworld.com/vote_for/wicket
  Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
  http://wicketframework.org
 
 
 -
  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] Best practice for seperating .java and .html ?

2007-01-22 Thread nilo.de.roock

Hi,

... Wicket allows you to easily customize this default behavior though.
...

NOT! ( Why did he write that anyway? Perhaps as an excuse. He might have
considered it a design error. It is dirty, a bit. ) I hope the rest of the
book has better advice.

I'll leave the .html and .java mixed up in one directory then. I have
learned to take advice. ( ... ) Come to think of it, I am used to it
already! :-)

Thanks!
- nilo
P.S. This motivates me to study the source asap, when something is generally
considered difficult, there usually -is- a simple solution.



igor.vaynberg wrote:
 
 yes, all newbies start to do this and eventually go back, but oh well
 
 if you still want to shoot yourself in the foot what you do is this:
 
 implement IResourceStreamLocator and make it take a delegate
 
 then in your app's init do this
 
 application.init() {
 MyResourceStreamLocator locator=new
 MyResourceStreamLocator(getResourceSettings().getResourceStreamLocator());
 getResourceSettings().setResourceStreamLocator(locator);
 }
 
 -igor
 
 
 On 1/22/07, Martijn Dashorst [EMAIL PROTECTED] wrote:

 We advise you to not do this until you are absolutely sure you need
 it, especially as a newbie to the framework. Obvious reasons are not
 so obvious in a Wicket context.

 - packaging your components in a jar
 - having to mimick the package/directory structure
 - looking up your HTML (which is tightly coupled to your Java file)
 in a separate directory
 - other resources such as properties files, where should they go?

 Martijn

 On 1/22/07, nilo.de.roock [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I am very newbie on Wicket. I am reading the Pro Wicket book. I want
 the
  .java and .html page files in two different directories for obvious
 reasons.
  I read the following in the book:
 
  The HTML template needs to be in the same package as the corresponding
 Page
  class.
  An internal Wicket component that is entrusted with the job of locating
 the
  HTML markup
  corresponding to a Page looks for the markup in the same place as the
 Page
  class. Wicket
  allows you to easily customize this default behavior though. ... 
 
  I get completely lost here:
 
  ... All user pages typically extend
  Wicket's WebPage-a subclass of Wicket's Page class. There needs to be a
  one-to-one correspondence
  between the HTML elements with a wicket:id attribute and the Page
  components. The
  HTML template could in fact be termed as a view with the actual
 component
  hierarchy being
  described in the Page class. Wicket components need to be supplied with
 an
  id parameter and
  an IModel implementation during construction (some exceptions will be
  discussed in the section
  How to Specify a CompoundPropertyModel for a Page. The component's id
  value must
  match the wicket:id attribute value of the template's corresponding
 HTML
  element. Essentially,
  if the template contains an HTML text element with a wicket:id value of
  name, then the
  corresponding wicket's TextField instance with an id of name needs to
 be
  added to the Page
  class. Wicket supplies components that correspond to basic HTML
 elements
  concerned with
  user interaction. Examples of such elements are HTML input fields of
 type
  text, HTML select,
  HTML link, etc. The corresponding Wicket components would be TextField,
  DropDownChoice,
  and Link, respectively. ...
 
  What I would like to know is in a For Dummies sort of explanation what
 I
  have to do to be able to seperate .html and .java.
 
  Thanks in advance.
 
  kind regards,
  nilo de roock
 
  --
  View this message in context:
 http://www.nabble.com/Best-practice-for-seperating-.java-and-.html---tf3060190.html#a8509215
  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
 


 --
 Vote for Wicket at the
 http://www.thebeststuffintheworld.com/vote_for/wicket
 Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
 http://wicketframework.org

 -
 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] Wicket 2.0 : DropDownChoice losing selected-value after going to interception page?

2007-01-22 Thread Harald Geritzer

hi all,

i got some strange behaviour here. i have a page with a compound 
property model including some textfields and dropdownchoices and a 
button, which redirects to another page. after coming back to the first 
page by using getPage().continueToOriginalDestination() the textfields 
are filled with the right values but the dropdownchoices lost their 
selected values (the model.

after a bit of debugging it turned out, that when isSelected is called
the selected parameter is null though the combo's getModelValue() 
returns the right index.

any ideas appreciated.
ty for that nice framework!



-
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] SURVEY: Are you using Page.before/afterCallComponent

2007-01-22 Thread Igor Vaynberg

are you using Page.before/afterCallComponent? and if so what is the usecase?

-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


[Wicket-user] Any users getting an UnsupportedOperationException on 2.0 trunk?

2007-01-22 Thread TimOBrien

I updated my copy of trunk, and I kept on getting this message:

java.lang.UnsupportedOperationException

java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:937)
wicket.Session.cleanupFeedbackMessages(Session.java:1067)

Tracked it down to CopyOnWriteArrayList in Session for feedbackMessages. 
Changing the type of feedbackMessage to ArrayList, and rebuilding seemed to
fix the issue.  Any other users having a similar issue?
-- 
View this message in context: 
http://www.nabble.com/Any-users-getting-an-UnsupportedOperationException-on-2.0-trunk--tf3060997.html#a8511709
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


Re: [Wicket-user] Any users getting an UnsupportedOperationException on 2.0 trunk?

2007-01-22 Thread Igor Vaynberg

your fix wont do, the list needs to be threadsafe

can you please paste the stacktrace so we can see where the remove() is
being called from?

-igor


On 1/22/07, TimOBrien [EMAIL PROTECTED] wrote:



I updated my copy of trunk, and I kept on getting this message:

java.lang.UnsupportedOperationException

java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(
CopyOnWriteArrayList.java:937)
wicket.Session.cleanupFeedbackMessages(Session.java:1067)

Tracked it down to CopyOnWriteArrayList in Session for feedbackMessages.
Changing the type of feedbackMessage to ArrayList, and rebuilding seemed
to
fix the issue.  Any other users having a similar issue?
--
View this message in context:
http://www.nabble.com/Any-users-getting-an-UnsupportedOperationException-on-2.0-trunk--tf3060997.html#a8511709
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] SURVEY: Are you using Page.before/afterCallComponent

2007-01-22 Thread Ingram Chen

never use it! (what is that ? :-p

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


are you using Page.before/afterCallComponent? and if so what is the
usecase?

-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






--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
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] SURVEY: Are you using Page.before/afterCallComponent

2007-01-22 Thread Igor Vaynberg

if you dont use it then dont worry about it :) im trying to get rid of it.

-igor


On 1/22/07, Ingram Chen [EMAIL PROTECTED] wrote:


never use it! (what is that ? :-p

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

 are you using Page.before/afterCallComponent? and if so what is the
 usecase?

 -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





--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
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] SURVEY: Are you using Page.before/afterCallComponent

2007-01-22 Thread Eelco Hillenius
You better not look at it either as we're thinking about removing it! :)

Eelco


On 1/22/07, Ingram Chen [EMAIL PROTECTED] wrote:
 never use it! (what is that ? :-p

 On 1/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  are you using Page.before/afterCallComponent? and if so what is the
 usecase?

-
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] spring integration question

2007-01-22 Thread Johan Compagner

it is strange isn't it
now you fixed it so it works on the server
and now i get the error:

---
Battery: wicket.markup.html.basic.SimplePageTest
---
Tests run: 17, Failures: 1, Errors: 0, Time elapsed: 0,297 sec

testRenderHomePage_3(wicket.markup.html.basic.SimplePageTest)  Time elapsed:
0,016 sec   FAILURE!

[ stdout ] ---

=== wicket.markup.html.basic.SimplePage_3 ===


[ stderr ] ---



[ stacktrace ] ---

junit.framework.ComparisonFailure:
wicket/markup/html/basic/SimplePageExpectedResult_3.html expected:..
but was:...
...
   at junit.framework.Assert.assertEquals(Assert.java:81)
   at wicket.util.diff.DiffUtil.validatePage(DiffUtil.java:107)
   at wicket.WicketTestCase.executeTest(WicketTestCase.java:81)
   at wicket.markup.html.basic.SimplePageTest.testRenderHomePage_3(
SimplePageTest.java:283)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at junit.framework.TestCase.runTest(TestCase.java:154)
   at junit.framework.TestCase.runBare(TestCase.java:127)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(
JUnitBattery.java:242)
   at org.apache.maven.surefire.battery.JUnitBattery.execute(
JUnitBattery.java:216)
   at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
   at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
   at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
SurefireBooter.java:313)
   at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
   at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:415)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:531)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:472)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:451)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:303)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:139)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)





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


Hehe ok. I guess I'll fix it tonight is to late for you, huh? ;o)

Frank

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

 I already fixed it
 The surefire plugin now uses a bit older version:

 version2.1.3/version

 And suddenly everything is cleaned up (see bamboo)
 now really only one thing is failing.

 johan


 On 1/22/07, Frank 

Re: [Wicket-user] Any users getting an UnsupportedOperationException on 2.0 trunk?

2007-01-22 Thread TimOBrien

No doubt, I don't have the stack trace at hand, but I can point you to line
1066 in cleanupFeedbackMessages() in Session.   The issue here is that the
Iterator returned from the a CopyOnWriteArrayList throws this exception from
a call to remove, set, or add.  Here's the quote from CopyOnWriteArrayList:

Element-changing
 * operations on iterators themselves (remove, set, and add) are not
 * supported. These methods throw
 * ttUnsupportedOperationException/tt

Problem was manifesting itself the first time a message was added to
feedbackMessage


igor.vaynberg wrote:
 
 your fix wont do, the list needs to be threadsafe
 
 can you please paste the stacktrace so we can see where the remove() is
 being called from?
 
 -igor
 
 
 On 1/22/07, TimOBrien [EMAIL PROTECTED] wrote:


 I updated my copy of trunk, and I kept on getting this message:

 java.lang.UnsupportedOperationException

 java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(
 CopyOnWriteArrayList.java:937)
 wicket.Session.cleanupFeedbackMessages(Session.java:1067)

 Tracked it down to CopyOnWriteArrayList in Session for feedbackMessages.
 Changing the type of feedbackMessage to ArrayList, and rebuilding seemed
 to
 fix the issue.  Any other users having a similar issue?
 --
 View this message in context:
 http://www.nabble.com/Any-users-getting-an-UnsupportedOperationException-on-2.0-trunk--tf3060997.html#a8511709
 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/Any-users-getting-an-UnsupportedOperationException-on-2.0-trunk--tf3060997.html#a8513496
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


Re: [Wicket-user] Any users getting an UnsupportedOperationException on 2.0 trunk?

2007-01-22 Thread Igor Vaynberg

strange, you seem to have a pretty old copy

here what the latest looks like [1], notice line 1066 doesnt match what you
have
also have a look at how the messages are cleared [2] ... iterator is not
used in clearRendered() which is what session.cleanupMessages() calls

[1]
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/Session.java?view=annotate
[2]
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/feedback/FeedbackMessages.java?view=annotate

-igor



On 1/22/07, TimOBrien [EMAIL PROTECTED] wrote:



No doubt, I don't have the stack trace at hand, but I can point you to
line
1066 in cleanupFeedbackMessages() in Session.   The issue here is that the
Iterator returned from the a CopyOnWriteArrayList throws this exception
from
a call to remove, set, or add.  Here's the quote from
CopyOnWriteArrayList:

Element-changing
* operations on iterators themselves (remove, set, and add) are not
* supported. These methods throw
* ttUnsupportedOperationException/tt

Problem was manifesting itself the first time a message was added to
feedbackMessage


igor.vaynberg wrote:

 your fix wont do, the list needs to be threadsafe

 can you please paste the stacktrace so we can see where the remove() is
 being called from?

 -igor


 On 1/22/07, TimOBrien [EMAIL PROTECTED] wrote:


 I updated my copy of trunk, and I kept on getting this message:

 java.lang.UnsupportedOperationException

 java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(
 CopyOnWriteArrayList.java:937)
 wicket.Session.cleanupFeedbackMessages(Session.java:1067)

 Tracked it down to CopyOnWriteArrayList in Session for
feedbackMessages.
 Changing the type of feedbackMessage to ArrayList, and rebuilding
seemed
 to
 fix the issue.  Any other users having a similar issue?
 --
 View this message in context:

http://www.nabble.com/Any-users-getting-an-UnsupportedOperationException-on-2.0-trunk--tf3060997.html#a8511709
 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/Any-users-getting-an-UnsupportedOperationException-on-2.0-trunk--tf3060997.html#a8513496
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] Exception on WebResponse Outputstream

2007-01-22 Thread Igor Vaynberg

looks like you are trying to output your xml too late in the game (wicket
has already written something to the request). what triggers that code? also
our wiki has an example of a wicket rss page

-igor


On 1/22/07, Daniel Nüst [EMAIL PROTECTED] wrote:


Hi!

I want to load an XML-file from a wicket page concerning the html page
parameters with javascript. The javascript part (load and parse xml)
works fine and also the generated xml file is okay.

I just always get an

java.lang.IllegalStateException: getOutputStream() has already been
called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java
:599)
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java
:195)
at wicket.protocol.http.WebResponse.write(WebResponse.java:315)
at
wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java
:75)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
:229)
[...]


I did some research on this problem and found some workarounds for jsp.
I also tried different combinations of Streams and Writers. Alsways that
exception.

The code:

private void parametersToResponse(MapString, String params, Response
res) throws IOException {
res.setContentType(text/xml);

logger.info(map:  + params);

//  test for illegal keys
if ( containsIllegalKeys(params) || params.isEmpty() ) {
logger.warn(howtoString);
res.write(howtoString); //works!
} else {

//  get news from database
CollectionNews news = getNewsFromDB(params);

//  create xml document from news
Document doc = createXML(news);

//  write xml file to stream
XMLOutputter xmlout = new XMLOutputter();
//  res.write( xmlout.outputString( doc ) );  //does
not work, res
writes xml to beginning of html page
xmlout.output(doc, res.getOutputStream() );
//somehow dublicate call
of getOutputStream !!!
}
}

Another solution would be, not to use XMLOutputter, just
response.write(...), but I don't get a correct XML file but just my
xml put before the html:

?xml version=1.0 encoding=UTF-8?
newsList [...]
html
head[...]

Anybody an idea how to solve the former or the latter?

Regards,
Daniel

-
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 : DropDownChoice losing selected-value after going to interception page?

2007-01-22 Thread Igor Vaynberg

instead of doing all that redirect foo why dont you pass the instance of the
current page to the new page you are redirecting to when the button is
pressed. then to go back just set response page to that passed in instance.

class NextPage extends WebPage {
 public NextPage(final Page prev) {
   add(new Link(back) {
 public onclick() { setResponsePage(back); }
   }
 }
}

...
add(new Button(go-to-other-page) { onSubmit() { setResponsePage(new
NextPage(getPage())); }});

-igor


On 1/22/07, Harald Geritzer [EMAIL PROTECTED] wrote:



hi all,

i got some strange behaviour here. i have a page with a compound
property model including some textfields and dropdownchoices and a
button, which redirects to another page. after coming back to the first
page by using getPage().continueToOriginalDestination() the textfields
are filled with the right values but the dropdownchoices lost their
selected values (the model.

after a bit of debugging it turned out, that when isSelected is called
the selected parameter is null though the combo's getModelValue()
returns the right index.

any ideas appreciated.
ty for that nice framework!



-
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] revising the Working with Wicket models page

2007-01-22 Thread Loren Rosen

I've saved my rewritten version. (See
http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models)
Comments by everyone from experts to complete newbies
are most welcome. Doubtless there are things that are confusing or flat-out
wrong.

In addition to rephrasing or rewriting a lot of material, and adding a few
things, I
excised some details I thought would be distracting for a beginner. Some of
this
material is, I think, still useful, perhaps in a slightly more advanced
More about
Models page.


igor.vaynberg wrote:
 
 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.
 
 when you are done with the majority let us know and we will review the
 changes.
 
 -igor
 
 
 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think should be improved
 (though this is a little hard to do in detail short of simply annotating
 the
 page) or I can just plunge ahead and draft a revised page. If I do the
 latter I could potentially post it somewhere else for comment instead of
 directly replacing the existing page on the wiki. Perhaps we need a 'in
 draft' part of the wiki for working on long pages like this one.

 Actually, another alternative is for me to gradually introduce changes to
 the wiki page over a span of days, giving people a chance to comment as I
 go.
 --
 View this message in context:
 http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
 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/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8513744
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


Re: [Wicket-user] revising the Working with Wicket models page

2007-01-22 Thread Eelco Hillenius
Looks great, thanks a lot. I added a few notes about models in Wicket
2.0. If other people have more such notes they would be welcome.

Eelco


On 1/22/07, Loren Rosen [EMAIL PROTECTED] wrote:

 I've saved my rewritten version. (See
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models)
 Comments by everyone from experts to complete newbies
 are most welcome. Doubtless there are things that are confusing or flat-out
 wrong.

 In addition to rephrasing or rewriting a lot of material, and adding a few
 things, I
 excised some details I thought would be distracting for a beginner. Some of
 this
 material is, I think, still useful, perhaps in a slightly more advanced
 More about
 Models page.


 igor.vaynberg wrote:
 
  go ahead and edit the page...the wiki is versioned i think so we can
  always
  roll back.
 
  when you are done with the majority let us know and we will review the
  changes.
 
  -igor
 
 
  On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:
 
 
  When I first started using Wicket I found the information on models a
  little
  hard to follow. So now I'd like to revise the Working with Wicket
  models
  wiki page
  (
  http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
  )
  to improve this. I'd be happy to outline what I think should be improved
  (though this is a little hard to do in detail short of simply annotating
  the
  page) or I can just plunge ahead and draft a revised page. If I do the
  latter I could potentially post it somewhere else for comment instead of
  directly replacing the existing page on the wiki. Perhaps we need a 'in
  draft' part of the wiki for working on long pages like this one.
 
  Actually, another alternative is for me to gradually introduce changes to
  the wiki page over a span of days, giving people a chance to comment as I
  go.
  --
  View this message in context:
  http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
  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/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8513744
 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] how to abort the xmlhttprequest

2007-01-22 Thread Prashant Khanal
Ok the main problem is that i want to include some
timeout mechanism for ajax operation and to abort the
request in case it takes considerable time.
As can be done with XMLHttpRequest using setTimeOut,
is there any way that i can achive this in wicket.

So the main reason to cancel is for those ajax
operation that takes awful long time.

--- Nino Wael [EMAIL PROTECTED] wrote:

 Why do you need to cancel it?
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 On Behalf Of Prashant Khanal
 Sent: 22. januar 2007 12:09
 To: wicket-user@lists.sourceforge.net
 Subject: [Wicket-user] how to abort the
 xmlhttprequest
 
 Hello all,
 Is there any way to abort the xmlhttprequest in
 wicket. As XMLHttpRequest object has got abort()
 method to abort the request. Can it be used in
 wicket.
 
 
  


 We won't tell. Get more on shows you hate to love 
 (and love to hate): Yahoo! TV's Guilty Pleasures
 list.
 http://tv.yahoo.com/collections/265 
 

-
 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
 



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-
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 abort the xmlhttprequest

2007-01-22 Thread Igor Vaynberg

no it is not supported right now, but it can be built. open up a new feature
request in our jira and we will look into it. also outline how you would
like the api to look, how are you going to wire it in your javascript. do
you want to basically just set the timeout? or be able to cancel on a click,
etc.

-igor


On 1/22/07, Prashant Khanal [EMAIL PROTECTED] wrote:


Ok the main problem is that i want to include some
timeout mechanism for ajax operation and to abort the
request in case it takes considerable time.
As can be done with XMLHttpRequest using setTimeOut,
is there any way that i can achive this in wicket.

So the main reason to cancel is for those ajax
operation that takes awful long time.

--- Nino Wael [EMAIL PROTECTED] wrote:

 Why do you need to cancel it?


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 On Behalf Of Prashant Khanal
 Sent: 22. januar 2007 12:09
 To: wicket-user@lists.sourceforge.net
 Subject: [Wicket-user] how to abort the
 xmlhttprequest

 Hello all,
 Is there any way to abort the xmlhttprequest in
 wicket. As XMLHttpRequest object has got abort()
 method to abort the request. Can it be used in
 wicket.






 We won't tell. Get more on shows you hate to love
 (and love to hate): Yahoo! TV's Guilty Pleasures
 list.
 http://tv.yahoo.com/collections/265


-
 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







Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-
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] Compound Property model and Palette

2007-01-22 Thread Igor Vaynberg

there have been many changes to the palette in the recent past, give it
another try.

-igor


On 10/18/06, samyem [EMAIL PROTECTED] wrote:



Hi Igor,
No that didn't work. You have just added a new constructor signature, but
not fixed the real problem. The problem is that when Palette is
constructed,
it tries to make a new RecorderComponent which reads the model at
construction time. Since I am using the 1.x wicket, Palette does not know
its parent container at construction time and hence it cannot find the
compound property model set on the palette's container. To fix this,
you'll
have to make the Palette's components read from the model at render time
and
remove the logic from the constructors, like the other FormComponents are
already doing. Please give it another try and I'll check again once you
are
done.

Thanks,
Samyem


igor.vaynberg wrote:

 and its patched, let me know if it works.

 -Igor


 On 10/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

 it is a limitation, i will patch it soon.

 -Igor


 On 10/14/06, samyem [EMAIL PROTECTED] wrote:
 
 
  Since the Palette does not allow you to implicitly use the
container's
  compound model, there does not appear to be an obvious way for
Palette
  to
  behave the same way as the other FormComponents. So I was wondering
if
  this
  is a limitation of Palette or it was done this way by design?
 
 
  samyem wrote:
  
   Is it possible for a Palette to take the CompoundPropertyModel set
on
  the
   form?
  
 
  --
  View this message in context:

http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6812005
 
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 

-
  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



--
View this message in context:
http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6885413
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] revising the Working with Wicket models page

2007-01-22 Thread Jonathan Locke


Nice work.  I made a few small changes and rephrased the first paragraph to
be even more specific.  Maybe it could be tweaked a little more, but I think
this sums it up better now:

In Wicket, a model holds a value for a component to display and/or edit.
How exactly this value is held is determined by a given model's
implementation of the wicket.model.IModel interface. This interface
decouples a component from the data which forms its value. This in turn
decouples the whole Wicket framework from any and all details of model
storage, such as the details of a given persistence technology. As far as
Wicket itself is concerned, a model is anything that implements the IModel
interface, no matter how it might do that.

It does feel like this is the best place to show the IModel interface since
readers will be wondering what it looks like already.  It sounds scarier
than it is, so why delay?


Loren Rosen wrote:
 
 I've saved my rewritten version. (See
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models)
 Comments by everyone from experts to complete newbies
 are most welcome. Doubtless there are things that are confusing or
 flat-out wrong.
 
 In addition to rephrasing or rewriting a lot of material, and adding a few
 things, I
 excised some details I thought would be distracting for a beginner. Some
 of this
 material is, I think, still useful, perhaps in a slightly more advanced
 More about
 Models page.
 
 
 igor.vaynberg wrote:
 
 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.
 
 when you are done with the majority let us know and we will review the
 changes.
 
 -igor
 
 
 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think should be improved
 (though this is a little hard to do in detail short of simply annotating
 the
 page) or I can just plunge ahead and draft a revised page. If I do the
 latter I could potentially post it somewhere else for comment instead of
 directly replacing the existing page on the wiki. Perhaps we need a 'in
 draft' part of the wiki for working on long pages like this one.

 Actually, another alternative is for me to gradually introduce changes
 to
 the wiki page over a span of days, giving people a chance to comment as
 I
 go.
 --
 View this message in context:
 http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
 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/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8515500
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


Re: [Wicket-user] revising the Working with Wicket models page

2007-01-22 Thread Igor Vaynberg

nice work!

-igor


On 1/22/07, Loren Rosen [EMAIL PROTECTED] wrote:



I've saved my rewritten version. (See

http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
)
Comments by everyone from experts to complete newbies
are most welcome. Doubtless there are things that are confusing or
flat-out
wrong.

In addition to rephrasing or rewriting a lot of material, and adding a few
things, I
excised some details I thought would be distracting for a beginner. Some
of
this
material is, I think, still useful, perhaps in a slightly more advanced
More about
Models page.


igor.vaynberg wrote:

 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.

 when you are done with the majority let us know and we will review the
 changes.

 -igor


 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (

http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think should be
improved
 (though this is a little hard to do in detail short of simply
annotating
 the
 page) or I can just plunge ahead and draft a revised page. If I do the
 latter I could potentially post it somewhere else for comment instead
of
 directly replacing the existing page on the wiki. Perhaps we need a 'in
 draft' part of the wiki for working on long pages like this one.

 Actually, another alternative is for me to gradually introduce changes
to
 the wiki page over a span of days, giving people a chance to comment as
I
 go.
 --
 View this message in context:

http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
 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/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8513744
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] revising the Working with Wicket models page

2007-01-22 Thread Jonathan Locke


Made a few more changes.  I think it's getting shorter/better.  

My one regret looking at this documentation is that I wish
IModel.get/setObject were actually IModel.get/setValue.  Or was there some
crazy reason we didn't do this?  It would be much easier and more natural to
talk about a model's value this way... 


Jonathan Locke wrote:
 
 
 Nice work.  I made a few small changes and rephrased the first paragraph
 to be even more specific.  Maybe it could be tweaked a little more, but I
 think this sums it up better now:
 
 In Wicket, a model holds a value for a component to display and/or edit.
 How exactly this value is held is determined by a given model's
 implementation of the wicket.model.IModel interface. This interface
 decouples a component from the data which forms its value. This in turn
 decouples the whole Wicket framework from any and all details of model
 storage, such as the details of a given persistence technology. As far as
 Wicket itself is concerned, a model is anything that implements the IModel
 interface, no matter how it might do that.
 
 It does feel like this is the best place to show the IModel interface
 since readers will be wondering what it looks like already.  It sounds
 scarier than it is, so why delay?
 
 
 Loren Rosen wrote:
 
 I've saved my rewritten version. (See
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models)
 Comments by everyone from experts to complete newbies
 are most welcome. Doubtless there are things that are confusing or
 flat-out wrong.
 
 In addition to rephrasing or rewriting a lot of material, and adding a
 few things, I
 excised some details I thought would be distracting for a beginner. Some
 of this
 material is, I think, still useful, perhaps in a slightly more advanced
 More about
 Models page.
 
 
 igor.vaynberg wrote:
 
 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.
 
 when you are done with the majority let us know and we will review the
 changes.
 
 -igor
 
 
 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think should be
 improved
 (though this is a little hard to do in detail short of simply
 annotating
 the
 page) or I can just plunge ahead and draft a revised page. If I do the
 latter I could potentially post it somewhere else for comment instead
 of
 directly replacing the existing page on the wiki. Perhaps we need a 'in
 draft' part of the wiki for working on long pages like this one.

 Actually, another alternative is for me to gradually introduce changes
 to
 the wiki page over a span of days, giving people a chance to comment as
 I
 go.
 --
 View this message in context:
 http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
 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/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8515669
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


Re: [Wicket-user] revising the Working with Wicket models page

2007-01-22 Thread Jonathan Locke


We did already break the model contract with 1.2/1.3... would
get/setObject-get/setValue be a huge hassle?  Or am I spacing something
here?


Jonathan Locke wrote:
 
 
 Made a few more changes.  I think it's getting shorter/better.  
 
 My one regret looking at this documentation is that I wish
 IModel.get/setObject were actually IModel.get/setValue.  Or was there some
 crazy reason we didn't do this?  It would be much easier and more natural
 to talk about a model's value this way... 
 
 
 Jonathan Locke wrote:
 
 
 Nice work.  I made a few small changes and rephrased the first paragraph
 to be even more specific.  Maybe it could be tweaked a little more, but I
 think this sums it up better now:
 
 In Wicket, a model holds a value for a component to display and/or edit.
 How exactly this value is held is determined by a given model's
 implementation of the wicket.model.IModel interface. This interface
 decouples a component from the data which forms its value. This in turn
 decouples the whole Wicket framework from any and all details of model
 storage, such as the details of a given persistence technology. As far as
 Wicket itself is concerned, a model is anything that implements the
 IModel interface, no matter how it might do that.
 
 It does feel like this is the best place to show the IModel interface
 since readers will be wondering what it looks like already.  It sounds
 scarier than it is, so why delay?
 
 
 Loren Rosen wrote:
 
 I've saved my rewritten version. (See
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models)
 Comments by everyone from experts to complete newbies
 are most welcome. Doubtless there are things that are confusing or
 flat-out wrong.
 
 In addition to rephrasing or rewriting a lot of material, and adding a
 few things, I
 excised some details I thought would be distracting for a beginner. Some
 of this
 material is, I think, still useful, perhaps in a slightly more advanced
 More about
 Models page.
 
 
 igor.vaynberg wrote:
 
 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.
 
 when you are done with the majority let us know and we will review the
 changes.
 
 -igor
 
 
 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think should be
 improved
 (though this is a little hard to do in detail short of simply
 annotating
 the
 page) or I can just plunge ahead and draft a revised page. If I do the
 latter I could potentially post it somewhere else for comment instead
 of
 directly replacing the existing page on the wiki. Perhaps we need a
 'in
 draft' part of the wiki for working on long pages like this one.

 Actually, another alternative is for me to gradually introduce changes
 to
 the wiki page over a span of days, giving people a chance to comment
 as I
 go.
 --
 View this message in context:
 http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
 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/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8515678
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

Re: [Wicket-user] revising the Working with Wicket models page

2007-01-22 Thread Scott Swank

In the description of the PropertyModel there is an implicit example, that
might as well be spelled out.

personForm.add(new RequiredTextField(personName, new
PropertyModel(person, name)));

I also changed the id of the field to personName to distinguish it
from the property: name.



On 1/22/07, Jonathan Locke [EMAIL PROTECTED] wrote:




We did already break the model contract with 1.2/1.3... would
get/setObject-get/setValue be a huge hassle?  Or am I spacing something
here?


Jonathan Locke wrote:


 Made a few more changes.  I think it's getting shorter/better.

 My one regret looking at this documentation is that I wish
 IModel.get/setObject were actually IModel.get/setValue.  Or was there
some
 crazy reason we didn't do this?  It would be much easier and more
natural
 to talk about a model's value this way...


 Jonathan Locke wrote:


 Nice work.  I made a few small changes and rephrased the first
paragraph
 to be even more specific.  Maybe it could be tweaked a little more, but
I
 think this sums it up better now:

 In Wicket, a model holds a value for a component to display and/or
edit.
 How exactly this value is held is determined by a given model's
 implementation of the wicket.model.IModel interface. This interface
 decouples a component from the data which forms its value. This in turn
 decouples the whole Wicket framework from any and all details of model
 storage, such as the details of a given persistence technology. As far
as
 Wicket itself is concerned, a model is anything that implements the
 IModel interface, no matter how it might do that.

 It does feel like this is the best place to show the IModel interface
 since readers will be wondering what it looks like already.  It sounds
 scarier than it is, so why delay?


 Loren Rosen wrote:

 I've saved my rewritten version. (See

http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
)
 Comments by everyone from experts to complete newbies
 are most welcome. Doubtless there are things that are confusing or
 flat-out wrong.

 In addition to rephrasing or rewriting a lot of material, and adding a
 few things, I
 excised some details I thought would be distracting for a beginner.
Some
 of this
 material is, I think, still useful, perhaps in a slightly more
advanced
 More about
 Models page.


 igor.vaynberg wrote:

 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.

 when you are done with the majority let us know and we will review
the
 changes.

 -igor


 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models
a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (

http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think should be
 improved
 (though this is a little hard to do in detail short of simply
 annotating
 the
 page) or I can just plunge ahead and draft a revised page. If I do
the
 latter I could potentially post it somewhere else for comment
instead
 of
 directly replacing the existing page on the wiki. Perhaps we need a
 'in
 draft' part of the wiki for working on long pages like this one.

 Actually, another alternative is for me to gradually introduce
changes
 to
 the wiki page over a span of days, giving people a chance to comment
 as I
 go.
 --
 View this message in context:

http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
 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/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8515678
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of 

[Wicket-user] VOTE: IModel and 'model object' name change

2007-01-22 Thread Jonathan Locke


i'd like us to vote on changing IModel to this in 2.0 (i know it's very
late, but please at least read my argument below and think about it for a
moment):

public interface IModelV extends IDetachable
{
  V getValue();
  void setValue(V value);
}

we would also change getModelObject() to getValue() as well as any other
related methods like getModelObjectAsString() to getValueAsString() (or
valueAsString() if preferred).  there might be naming conflicts somewhere or
other problems, but i don't know of any offhand.

i realize we're about to enter beta, but i feel like this matters since our
users have been telling us for some time now that models are hard to
understand and it seems likely that the term 'model object' (as derived from
the IModel interface naming) is really not helping anyone to understand
things.  in fact, that term is actually ambiguous since the object
implementing IModel might be informally understood to be the model object
(which is not what we mean).

i realize this change would affect the book and so eelco and martijn may
very understandably not want to deal with that so i won't be upset if this
change can't happen.  but i'd like to see it if it's possible, so at any
rate, i'm +1 and i think igor says he's +0.


Jonathan Locke wrote:
 
 
 We did already break the model contract with 1.2/1.3... would
 get/setObject-get/setValue be a huge hassle?  Or am I spacing something
 here?
 
 
 Jonathan Locke wrote:
 
 
 Made a few more changes.  I think it's getting shorter/better.  
 
 My one regret looking at this documentation is that I wish
 IModel.get/setObject were actually IModel.get/setValue.  Or was there
 some crazy reason we didn't do this?  It would be much easier and more
 natural to talk about a model's value this way... 
 
 
 Jonathan Locke wrote:
 
 
 Nice work.  I made a few small changes and rephrased the first paragraph
 to be even more specific.  Maybe it could be tweaked a little more, but
 I think this sums it up better now:
 
 In Wicket, a model holds a value for a component to display and/or
 edit. How exactly this value is held is determined by a given model's
 implementation of the wicket.model.IModel interface. This interface
 decouples a component from the data which forms its value. This in turn
 decouples the whole Wicket framework from any and all details of model
 storage, such as the details of a given persistence technology. As far
 as Wicket itself is concerned, a model is anything that implements the
 IModel interface, no matter how it might do that.
 
 It does feel like this is the best place to show the IModel interface
 since readers will be wondering what it looks like already.  It sounds
 scarier than it is, so why delay?
 
 
 Loren Rosen wrote:
 
 I've saved my rewritten version. (See
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models)
 Comments by everyone from experts to complete newbies
 are most welcome. Doubtless there are things that are confusing or
 flat-out wrong.
 
 In addition to rephrasing or rewriting a lot of material, and adding a
 few things, I
 excised some details I thought would be distracting for a beginner.
 Some of this
 material is, I think, still useful, perhaps in a slightly more advanced
 More about
 Models page.
 
 
 igor.vaynberg wrote:
 
 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.
 
 when you are done with the majority let us know and we will review the
 changes.
 
 -igor
 
 
 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think should be
 improved
 (though this is a little hard to do in detail short of simply
 annotating
 the
 page) or I can just plunge ahead and draft a revised page. If I do
 the
 latter I could potentially post it somewhere else for comment instead
 of
 directly replacing the existing page on the wiki. Perhaps we need a
 'in
 draft' part of the wiki for working on long pages like this one.

 Actually, another alternative is for me to gradually introduce
 changes to
 the wiki page over a span of days, giving people a chance to comment
 as I
 go.
 --
 View this message in context:
 http://www.nabble.com/revising-the-%22Working-with-Wicket-models%22-page-tf3016921.html#a8378321
 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
 ___
 

Re: [Wicket-user] Compound Property model and Palette

2007-01-22 Thread samyem

Thanks for the note. I've gone ahead with my own implementation of Palette
since my last comment to satisfy my particular needs which were beyond the
scope of what Wicket provided.


igor.vaynberg wrote:
 
 there have been many changes to the palette in the recent past, give it
 another try.
 
 -igor
 
 
 On 10/18/06, samyem [EMAIL PROTECTED] wrote:


 Hi Igor,
 No that didn't work. You have just added a new constructor signature, but
 not fixed the real problem. The problem is that when Palette is
 constructed,
 it tries to make a new RecorderComponent which reads the model at
 construction time. Since I am using the 1.x wicket, Palette does not know
 its parent container at construction time and hence it cannot find the
 compound property model set on the palette's container. To fix this,
 you'll
 have to make the Palette's components read from the model at render time
 and
 remove the logic from the constructors, like the other FormComponents are
 already doing. Please give it another try and I'll check again once you
 are
 done.

 Thanks,
 Samyem


 igor.vaynberg wrote:
 
  and its patched, let me know if it works.
 
  -Igor
 
 
  On 10/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  it is a limitation, i will patch it soon.
 
  -Igor
 
 
  On 10/14/06, samyem [EMAIL PROTECTED] wrote:
  
  
   Since the Palette does not allow you to implicitly use the
 container's
   compound model, there does not appear to be an obvious way for
 Palette
   to
   behave the same way as the other FormComponents. So I was wondering
 if
   this
   is a limitation of Palette or it was done this way by design?
  
  
   samyem wrote:
   
Is it possible for a Palette to take the CompoundPropertyModel set
 on
   the
form?
   
  
   --
   View this message in context:
 
 http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6812005
  
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  
 
 -
   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
 
 

 --
 View this message in context:
 http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6885413
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a8515854
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

Re: [Wicket-user] Wicket 2.0 : DropDownChoice losing selected-value after going to interception page?

2007-01-22 Thread Scott Swank

Typo correction...

class NextPage extends WebPage {
 public NextPage(final Page prev) {
   add(new Link(back) {
 public onclick() { setResponsePage(prev); }
   }
 }
}


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

instead of doing all that redirect foo why dont you pass the instance of

the

current page to the new page you are redirecting to when the button is
pressed. then to go back just set response page to that passed in

instance.


class NextPage extends WebPage {
  public NextPage(final Page prev) {
add(new Link(back) {
  public onclick() { setResponsePage(back); }
}
  }
}

...
 add(new Button(go-to-other-page) { onSubmit() { setResponsePage(new
NextPage(getPage())); }});

-igor



On 1/22/07, Harald Geritzer [EMAIL PROTECTED] wrote:

 hi all,

 i got some strange behaviour here. i have a page with a compound
 property model including some textfields and dropdownchoices and a
 button, which redirects to another page. after coming back to the first
 page by using getPage().continueToOriginalDestination()
the textfields
 are filled with the right values but the dropdownchoices lost their
 selected values (the model.

 after a bit of debugging it turned out, that when isSelected is called



 the selected parameter is null though the combo's getModelValue()
 returns the right index.

 any ideas appreciated.
 ty for that nice framework!




-
 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


Re: [Wicket-user] VOTE: IModel and 'model object' name change

2007-01-22 Thread Ali Zaid

-1

I'm sorry, although I totally understand your argument, and how it may help
new users, but this will break already written code, will not add additional
level of functionality, and really it's just a matter of reading to
understand how IModel works, I did have difficulties when I started to
understand detachable models, but not the concept of the model itself.

Maybe  new user need more detailed example and tutorials if they lack time
to read and understand the examples, which I still think they are available
around, and there is a book too, and there will be the long awaited wicket
book, that I can't really wait to get my hands on! :)

beside set value? what if it's not a value, I mean most of my models contain
an object with long list of values :)

One last thing, most of the programmers out there still don't use the OO
concept of programming, still don't implement proper patterns, and seriously
they don't think of interfaces for their design, I will have to include
myself with the lawzi ones (although I fully use OO even in database level),
I think we should not encourage this.

I'm sorry again

On 1/23/07, Jonathan Locke [EMAIL PROTECTED] wrote:




i'd like us to vote on changing IModel to this in 2.0 (i know it's very
late, but please at least read my argument below and think about it for a
moment):

public interface IModelV extends IDetachable
{
  V getValue();
  void setValue(V value);
}

we would also change getModelObject() to getValue() as well as any other
related methods like getModelObjectAsString() to getValueAsString() (or
valueAsString() if preferred).  there might be naming conflicts somewhere
or
other problems, but i don't know of any offhand.

i realize we're about to enter beta, but i feel like this matters since
our
users have been telling us for some time now that models are hard to
understand and it seems likely that the term 'model object' (as derived
from
the IModel interface naming) is really not helping anyone to understand
things.  in fact, that term is actually ambiguous since the object
implementing IModel might be informally understood to be the model object
(which is not what we mean).

i realize this change would affect the book and so eelco and martijn may
very understandably not want to deal with that so i won't be upset if this
change can't happen.  but i'd like to see it if it's possible, so at any
rate, i'm +1 and i think igor says he's +0.


Jonathan Locke wrote:


 We did already break the model contract with 1.2/1.3... would
 get/setObject-get/setValue be a huge hassle?  Or am I spacing something
 here?


 Jonathan Locke wrote:


 Made a few more changes.  I think it's getting shorter/better.

 My one regret looking at this documentation is that I wish
 IModel.get/setObject were actually IModel.get/setValue.  Or was there
 some crazy reason we didn't do this?  It would be much easier and more
 natural to talk about a model's value this way...


 Jonathan Locke wrote:


 Nice work.  I made a few small changes and rephrased the first
paragraph
 to be even more specific.  Maybe it could be tweaked a little more,
but
 I think this sums it up better now:

 In Wicket, a model holds a value for a component to display and/or
 edit. How exactly this value is held is determined by a given model's
 implementation of the wicket.model.IModel interface. This interface
 decouples a component from the data which forms its value. This in
turn
 decouples the whole Wicket framework from any and all details of model
 storage, such as the details of a given persistence technology. As far
 as Wicket itself is concerned, a model is anything that implements the
 IModel interface, no matter how it might do that.

 It does feel like this is the best place to show the IModel interface
 since readers will be wondering what it looks like already.  It sounds
 scarier than it is, so why delay?


 Loren Rosen wrote:

 I've saved my rewritten version. (See

http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
)
 Comments by everyone from experts to complete newbies
 are most welcome. Doubtless there are things that are confusing or
 flat-out wrong.

 In addition to rephrasing or rewriting a lot of material, and adding
a
 few things, I
 excised some details I thought would be distracting for a beginner.
 Some of this
 material is, I think, still useful, perhaps in a slightly more
advanced
 More about
 Models page.


 igor.vaynberg wrote:

 go ahead and edit the page...the wiki is versioned i think so we can
 always
 roll back.

 when you are done with the majority let us know and we will review
the
 changes.

 -igor


 On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote:


 When I first started using Wicket I found the information on models
a
 little
 hard to follow. So now I'd like to revise the Working with Wicket
 models
 wiki page
 (

http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
 )
 to improve this. I'd be happy to outline what I think 

[Wicket-user] [OT] wicket expertise offered / Denmark

2007-01-22 Thread Nino Wael
Hi,

 

I was wondering if any off you guys would be interested in some wicket 
expertise, located somewhere near Copenhagen-Frederikssund in Denmark. Our 
current wicket project are almost running out, and the next project im off to 
do aren't wicket in fact im not even sure it's java based:-( So just thought 
I'll give the user list's peeps a chance of getting a wicket guy:-)

 

Regards Nino

 

-
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] contributing to wicket-stuff or ?

2007-01-22 Thread Nino Wael
Hi

 

I have some components that migth be interesting for others to have. The best 
one I'll describe below:

 

Currently called dropdownpalette, and it's a combination of Igor's 
palette(although rewritten a bit, I belive that Igor have fixed the original 
palette so we should use that one) and a dropdown. 

 

The component works by having three models and a list plus a bit more.  When 
you chose something in the dropdown the palettes left side listbox are updated 
with values and the right side are cleared. Since the update are done with 
ajax, as base the left listbox are updated but you can specify additional 
slavecompnents that will be rerendered and updated after selection of a 
specific dropdown item.

 

I've used reflection on this, you must provide a method, a provider and a 
parameter list, when creating the component. Snipplet:

 

Creating the parameters:

 

List params = new ArrayList();

Object[] param = new Object[2];

param[0] = IDataItem.class;

param[1] = dataitemmodel;

params.add(param);

 

param = new Object[2];

param[0] = Object.class;

param[1] = object model;

params.add(param);

 

param = new Object[2];

param[0] = Cube.class;

param[1] = cubemodel;

params.add(param);

 

From the above you can see that  all parameters actually are Imodels but we 
also specify which kind of class the object retrieved from the model should be 
cast into.

 

(pseudo creation of component)

DropDownPalette ddp = new 
DropDownPalette(


   id, dropdownmodel, dropdown items,


   paletteleftmodel, paletterightmodel, dbprovider,


   getAreas, params,  slaveComponents) 

Form.add(ddp);

 

So the string getAreas specify that dbprovide will be called when choosing a 
new thing in the dropdown, the method are called with the params list as 
parameters.

 

So I guess this is a pretty generic component, although there are some setup 
with the parameter list the component should be easy to use, I think at least 
the reflection part should be useful if you have a bunch of components that 
almost does the same thing you should be able to create one component that fits 
all.

 

Regards Nino

 

-
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] Strategy for printable pages

2007-01-22 Thread Nino Wael
We use css here as well this works very well.

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille
Sent: 22. januar 2007 09:31
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Strategy for printable pages

 

I normally use css for print friendly pages:

http://meyerweb.com/eric/articles/webrev/21.html
http://alistapart.com/articles/goingtoprint/

Frank



On 1/21/07, MClark00 [EMAIL PROTECTED]  wrote:


Hi,

I'd like to support the ability to have a 'Printable Version' link on all 
pages which make sense to print in my application.  My first thought on how
to do this would be to have the content of those pages always be a panel,
and then I could do something like this, where PrintablePage is a simple 
empty page which includes one div called contentPanel.

Panel contentPanel = new FooPanel(contentPanel);
add( contentPanel );

add( new Link(printableVersion){

   public void onClick(){ 
  setResponsePage( new PrintablePage(contentPanel) );
   }

});


I'm still a wicket beginner, so if there is a better strategy for this
please let me know.  I searched the forum and reference guide and couldn't 
find one.

Thanks!

Matt
--
View this message in context: 
http://www.nabble.com/Strategy-for-printable-pages-tf3049342.html#a8476340 
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] Abort Ajax Operation

2007-01-22 Thread Nino Wael
Hmm i think this circles around the worker thread, we disscussed earlier when 
talking about a cancel button...

 

 

Regards Nino

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 21. januar 2007 13:11
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Abort Ajax Operation

 

and how do they that then? Do you program in your code something like:

while(dosomemorestuff)
{
  // do something more
}

and then by another request you set that boolean that it needs to be stopped?

this does not really work currently because we lock the session, so that nobody 
have to worry
about multi threading.

But you can go around it. Do that long request in an own request and poll with 
ajax when it is finished 
Or when you want to abort it. make a call to a shared resource... (thats not 
synched) and then set the flag that it needs to stop.

johan



On 1/19/07, samyem [EMAIL PROTECTED] wrote:


Is there any way to timeout if the ajax operation does not respond by a 
certain time? I've seen in other ajax frameworks where you can submit
multiple ajax requests in parallel, but Wicket does not allow me to do such
a thing.


Matej Knopp wrote:

 I don't think this is about AJAX. I think the question concerns the 
 session locking. If you make an ajax request and it takes too long, the
 session is locked and the application seem to be frozen.
 I don't think there's much I can do about it.

 -Matej 


 Igor Vaynberg wrote:
 tbh im not even sure there is a way to abort the request initiated
 through xmlhttprequest object. matej is better suited to answer this, he
 has many more js scars then i. 

 -igor


 On 11/22/06, *Eelco Hillenius* [EMAIL PROTECTED]
 mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote:

 I don't know if there is anything for that yet. Matej, Igor? If there
 isn't, you could open a feature request for it.
 
 Eelco


 On 11/21/06, samyem [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote: 
  
   When there is an ajax operation, if the operation takes too long,
 what would
   be the best way to abort the operation? The case right now is if 
 there is
   any long operation as a result of ajax event, the app freezes
 till the even
   is over.
   --
   View this message in context: 
 http://www.nabble.com/Abort-Ajax-Operation-tf2681806.html#a7480240
   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 
 mailto: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

 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 



 

 - 
 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] how to abort the xmlhttprequest

2007-01-22 Thread Nino Wael
Why not use a worker thread?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal
Sent: 23. januar 2007 04:41
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] how to abort the xmlhttprequest

Ok the main problem is that i want to include some
timeout mechanism for ajax operation and to abort the
request in case it takes considerable time.
As can be done with XMLHttpRequest using setTimeOut,
is there any way that i can achive this in wicket.

So the main reason to cancel is for those ajax
operation that takes awful long time.

--- Nino Wael [EMAIL PROTECTED] wrote:

 Why do you need to cancel it?
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 On Behalf Of Prashant Khanal
 Sent: 22. januar 2007 12:09
 To: wicket-user@lists.sourceforge.net
 Subject: [Wicket-user] how to abort the
 xmlhttprequest
 
 Hello all,
 Is there any way to abort the xmlhttprequest in
 wicket. As XMLHttpRequest object has got abort()
 method to abort the request. Can it be used in
 wicket.
 
 
  


 We won't tell. Get more on shows you hate to love 
 (and love to hate): Yahoo! TV's Guilty Pleasures
 list.
 http://tv.yahoo.com/collections/265 
 

-
 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
 



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-
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