Re: [Wicket-user] How can I show random image that not in /WEB-INF/classes

2006-09-20 Thread Johan Compagner
Wicket completes the url by using: WebRequestCodingStrategy.urlPrefix(final RequestCycle requestCycle)you can't do that because that will also prefix the wicket servlet path. So you just need to append the context path only
you can get the context path by:String contextPath = Application.get().getApplicationSettings().getContextPath();so if you prepend that to your url:/contextpath/mage/logo/it should work.
johanOn 9/20/06, x商J?$	b�UM}扫yH? [EMAIL PROTECTED] wrote:
Hello!I have try to use wicket and found this is a good framework.But I found some problem and need help.There are some images in a folder and the images are named 0.jpg, 1.jpg, 2.jpg and so on.
I need to show random image on a page. But the folder not in the /WEB-INF/classes.If use JSP, I will write code like this:img src="" image/logo/+ Math.abs((new Random).nextInt(3))) + .jpg)) % /
and the tag will show as img src="" /.I have read the code of image example and I found wicket not supply this function.I write a class to do this.public class ImageLabel extends WebComponent {
	private static final long serialVersionUID = 1L;	public ImageLabel(String id, Model model) {		super(id,model);	}	@Override	public void onComponentTag(final ComponentTag tag)	{		checkComponentTag(tag, img);
		super.onComponentTag(tag);		tag.put(src, getModelObjectAsString());	}}the java codeadd(new ImageLabel(logo, new Model(image/logo/+ Math.abs((new Random).nextInt(3))) + .jpg)));
the htmlimg wicket:id=logo /I create a context called WicketStudy,if the url is 
http://localhost/WicketStudy/, it works good.But if the url is http://localhost/WicketStudy
 or append some parameter,the image can't show because the relative url is error. I have read the package wicket.markup.html.image, but can't find the which class can do this.How can I do to handle this problem?
Thank you for read my e-mail. 

   
  
===

 快来和我一起享受TOM免费邮箱吧! 看看除了1.5G,还有什么?



敲开精彩
聊天世界:网通用户  
电信用户
 


明星金曲免费送(http://mm.tom.com/ivr/):
周杰伦 林俊杰 
庞龙 张惠妹

劲爆歌曲尽情点(http://mm.tom.com/ivr/):
霍元甲 吉祥三宝 
人质 曹操

炫酷彩铃免费送(http://mm.tom.com/cailing/):
周杰伦帮你接电话 
麻烦女朋友 
七里香 
小城故事




===
  
  
-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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] DatePicker broken in IE6

2006-09-20 Thread Matej Knopp
Can you provide a test case? Or quick start project? I haven't 
encountered this behavior. I'd like to look at it but I'd need to 
reproduce it.

-Matej

Pierre-Yves Saumont wrote:
 It appears that under some conditions, the script associated with the 
 date picker in the HTML is not executed when the HTML is loaded through 
 Ajax. So Calendar.setup never get called.
 
 I could not figure what those secific conditions are. (In a simple use 
 case, it works without problem.) Any idea where to look for?
 
 Pierre-Yves
 
 Pierre-Yves Saumont a écrit :
   Just don't use an ajax link to switch the locale. That's not a super
   idea anyway, as you would typically want the the whole page, with all
   it's markup etc to reload. Change the switch locale link to a normal
   link and all should be good.

 One use case is the need to have the page in ono language and teh 
 datePicker in another one. Another use case could be to have to 
 datePicker in the same page with different languages.

 Anyway, I figured a way to achieve this, but it was just to realize that 
 it appears that the datePicker can't work anyway in a component that is 
 updated through Ajax.

 I have an Ajax tabbed panel with one tab containing a datePicker. If I 
 swith to another tab and switch back, the datePicker won't work anymore 
 in IE6 unless the page is reloaded. (No error displayed, just you click 
 on the icon and nothing happens. It works fine in FF, of course)

 Any suggestion ?

 Pierre-Yves

 Eelco Hillenius a écrit :
 Can somebody tell me how to use setStyle() with a DatePicker
 settings.setStyle(settings.newStyleGreen());

 or (completely custom style)

 settings.setStyle(new PackageResourceReference(MyDatePicker.class,
 myStyle.css));

 DatePickerSettings datePickerSetting = new DatePickerSettings();
 datePickerSetting.setAlign(cr);
 add(new DatePicker(dateFieldPicker, dateField, datePickerSetting));
 but this does not work. With this configuration, when I click on the
 icon, the DatePicker is not displayed. If I remove the second line, it
 works.
 No idea. Please take a look at what jscalendar does/ expects, as many
 fields are just a means to pass values through to that components.
 Read about jscalendar here: http://www.dynarch.com/projects/calendar/

 Another problem is to configure the DatePicker in a page which locale is
 switched through an Ajax link. Although the component containing the
 DatePicker receives the response, the locale of the DatePicker is not
 changed. I have to reload the teh page to get it work. Is there a
 solution to have the DatePicker refreshed so its locale is changed ?
 Just don't use an ajax link to switch the locale. That's not a super
 idea anyway, as you would typically want the the whole page, with all
 it's markup etc to reload. Change the switch locale link to a normal
 link and all should be good.

 Eelco




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



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


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


Re: [Wicket-user] Anyone received complete Pro Wicket ebook?

2006-09-20 Thread Gwyn Evans
Those 9 chapters /are/ the complete book, I think.  Certainly they
match the Table of Contents that's on the site.
(http://www.apress.com/ApressCorporate/supplement/1/10189/1590597222-3762.pdf).

As far as I can see, the only difference between the earlier beta
eBook and the current one is the movement of the title page  ToC
pages to the front. There's no additional content, which would explain
why there's been no update emailing.

/Gwyn

On 20/09/06, De Soca [EMAIL PROTECTED] wrote:

 Sorry, my celebrations were premature, its the same 9 chapters as the beta
 book.

 What rotten service.

 Called and let a message with Apress support still no reply.


 De Soca wrote:
 
  Hi Martin,
 
  thanks, that did it. Strange that they never changed the link.
 
  Cheers.
 
  Martin Funk wrote:
 
  download the book even if it still says (beta) in the download area.
  worked for me.
 
  mf
 
  middledot schrieb:
  I too bought a beta version of the book, hoping that I would be informed
  of
  the final release but no such luck.
  The e-book is still in beta version on their website.
  I tried to download the code for the book but it's not there either.
  Strange.
  Les
 
  De Soca wrote:
 
  Hello,
 
  just curious, has anyone has received the complete eBook of Pro
  Wicket from Apress?
 
  I have not received mine as yet even though the hard copy has been
  release. I had taken part in the beta ebook program in August.
 
  I have also tried sending an email to Apress support - no response in
  over a week!
 
  Not good.
 
  Cheers,
  DeSoca


-- 
Download Wicket 1.2.2 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] Anyone received complete Pro Wicket ebook?

2006-09-20 Thread Martin Funk
Oh, well maybe my celebrations were too.
My first download had the cover on page 293.
I was so impressed to find the cover on page 1 in my second download,
that I took it for the final version.
:-)

De Soca schrieb:
 Sorry, my celebrations were premature, its the same 9 chapters as the beta
 book.

 What rotten service.

 Called and let a message with Apress support still no reply.


 De Soca wrote:
   
 Hi Martin,

 thanks, that did it. Strange that they never changed the link.

 Cheers.

 Martin Funk wrote:
 
 download the book even if it still says (beta) in the download area.
 worked for me.

 mf

 middledot schrieb:
   
 I too bought a beta version of the book, hoping that I would be informed
 of
 the final release but no such luck.
 The e-book is still in beta version on their website.
 I tried to download the code for the book but it's not there either.
 Strange.
 Les

 De Soca wrote:
   
 
 Hello,

 just curious, has anyone has received the complete eBook of Pro  
 Wicket from Apress?

 I have not received mine as yet even though the hard copy has been  
 release. I had taken part in the beta ebook program in August.

 I have also tried sending an email to Apress support - no response in  
 over a week!

 Not good.

 Cheers,
 DeSoca




 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/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] DatePicker broken in IE6

2006-09-20 Thread Pierre-Yves Saumont
I did not succeed yet to isolate the problem. I have placed an alert in 
the Calendar.setup function which shows it is not called on script load 
(through Ajax) in my app with IE6. However, when I reduce everything to 
the minimum, it works. So I need to strip down the app bit by bit to 
figure what makes it fail.

As soon as I have a (not)working test case, I will send it.

Thanks,

Pierre-Yves

Matej Knopp a écrit :
 Can you provide a test case? Or quick start project? I haven't 
 encountered this behavior. I'd like to look at it but I'd need to 
 reproduce it.
 
 -Matej
 
 Pierre-Yves Saumont wrote:
 It appears that under some conditions, the script associated with the 
 date picker in the HTML is not executed when the HTML is loaded 
 through Ajax. So Calendar.setup never get called.

 I could not figure what those secific conditions are. (In a simple use 
 case, it works without problem.) Any idea where to look for?

 Pierre-Yves

 Pierre-Yves Saumont a écrit :
   Just don't use an ajax link to switch the locale. That's not a super
   idea anyway, as you would typically want the the whole page, with all
   it's markup etc to reload. Change the switch locale link to a normal
   link and all should be good.

 One use case is the need to have the page in ono language and teh 
 datePicker in another one. Another use case could be to have to 
 datePicker in the same page with different languages.

 Anyway, I figured a way to achieve this, but it was just to realize 
 that it appears that the datePicker can't work anyway in a component 
 that is updated through Ajax.

 I have an Ajax tabbed panel with one tab containing a datePicker. If 
 I swith to another tab and switch back, the datePicker won't work 
 anymore in IE6 unless the page is reloaded. (No error displayed, just 
 you click on the icon and nothing happens. It works fine in FF, of 
 course)

 Any suggestion ?

 Pierre-Yves

 Eelco Hillenius a écrit :
 Can somebody tell me how to use setStyle() with a DatePicker
 settings.setStyle(settings.newStyleGreen());

 or (completely custom style)

 settings.setStyle(new PackageResourceReference(MyDatePicker.class,
 myStyle.css));

 DatePickerSettings datePickerSetting = new DatePickerSettings();
 datePickerSetting.setAlign(cr);
 add(new DatePicker(dateFieldPicker, dateField, datePickerSetting));
 but this does not work. With this configuration, when I click on the
 icon, the DatePicker is not displayed. If I remove the second line, it
 works.
 No idea. Please take a look at what jscalendar does/ expects, as many
 fields are just a means to pass values through to that components.
 Read about jscalendar here: http://www.dynarch.com/projects/calendar/

 Another problem is to configure the DatePicker in a page which 
 locale is
 switched through an Ajax link. Although the component containing the
 DatePicker receives the response, the locale of the DatePicker is not
 changed. I have to reload the teh page to get it work. Is there a
 solution to have the DatePicker refreshed so its locale is changed ?
 Just don't use an ajax link to switch the locale. That's not a super
 idea anyway, as you would typically want the the whole page, with all
 it's markup etc to reload. Change the switch locale link to a normal
 link and all should be good.

 Eelco




 - 

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





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

 
 
 
 


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


[Wicket-user] Ajax form and feedback panel

2006-09-20 Thread Marc-Andre Houle
It seems that the exemple about the ajax form is not working correctly.http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
At least, for me, I got absolutly no feedback about what I am entering in the form when I use the Ajax button. I got a similar problem for one of my form and didn't, yet, found a good solution.For now, my code look something like this : 
AjaxSubmitButton submitBtn = new AjaxSubmitButton(submit, this) { protected void onSubmit (AjaxRequestTarget target, Form form) { if(_name == null || _name.trim ().length ()1)
 { _feedback.error(Name field is required.); _feedback.updateFeedback(); target.addComponent (_feedback);
 return; } //Etc etc for the normal processing } };It work but it is clearly not something as clean as what is avalaible for a static form. Surely I miss something that can make my feedback panel update when I want to submit a RequiredTextField.
Thanks in advance for your help.Marc-Andre Houle
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/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] INPUT (+ value, + onClick) as Button?

2006-09-20 Thread Manuel Barzi
Hi, there,

I am working with I18N and I have an HTML INPUT that has its value
property to be updated to the current locale, but also has to react as
a link when clicking, by means of onClick property.

I do this in wicket-java-side:
--
labelModel = new StringResourceModel(CaocAdminPage-lit-8, this, null);
add(new Button(CaocAdminPage-link-1, labelModel) {
public void onSubmit() {
setResponsePage(new 
CaocMantenimentRolsCertficatsCiutadaPage());
}
});
--

And the html-side:
--
input value=Veure / Editar name=nou class=buttonEditar
wicket:id=CaocAdminPage-link-1 type=submit
--

When testing the page it shows with the correct locale, but the LINK
DOESNT WORK - onClick overriden method does not make the button to
work as link. The html-output obtained does not provide the onclick
correctly filled up by Wicket, as show here:
--
input value=Ver / Editar type=submit class=buttonEditar
wicket:id=CaocAdminPage-link-1 name=CaocAdminPage-link-1
--

I guess I should not use Button by some wicket-reason, then my question is:

to achieve this goal of providing an INPUT with I18N and onClick
(link capability), what would you recommend?

Grazie.

Manu

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/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] INPUT (+ value, + onClick) as Button?

2006-09-20 Thread Igor Vaynberg
On 9/20/06, Manuel Barzi [EMAIL PROTECTED] wrote:
Hi, there,I am working with I18N and I have an HTML INPUT that has its valueproperty to be updated to the current locale, but also has to react asa link when clicking, by means of onClick property.
what do you mean act as a link when clicked? a button submits the form - that is its purpose. if you dont want it to submit the form then instead of using type=submit use type=button and dont use Button but a webmarkupcontainer that sets the onclick attr to whatever you want.
-IgorI do this in wicket-java-side:--labelModel = new StringResourceModel(CaocAdminPage-lit-8, this, null);
add(new Button(CaocAdminPage-link-1, labelModel) {public void onSubmit() {setResponsePage(new CaocMantenimentRolsCertficatsCiutadaPage());
}});--And the html-side:--input value=Veure / Editar name=nou class=buttonEditarwicket:id=CaocAdminPage-link-1 type=submit
--When testing the page it shows with the correct locale, but the LINKDOESNT WORK - onClick overriden method does not make the button towork as link. The html-output obtained does not provide the onclick
correctly filled up by Wicket, as show here:--input value=Ver / Editar type=submit class=buttonEditarwicket:id=CaocAdminPage-link-1 name=CaocAdminPage-link-1
--I guess I should not use Button by some wicket-reason, then my question is:to achieve this goal of providing an INPUT with I18N and onClick(link capability), what would you recommend?
Grazie.Manu-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax form and feedback panel

2006-09-20 Thread Igor Vaynberg
there was an ajax bug in 1.2.2 and that is why the example doesnt work. it works fine against svn wicket-1.x branch so you should check out and build it yourself - it will be released as 1.2.3.-Igor
On 9/20/06, Marc-Andre Houle [EMAIL PROTECTED] wrote:
It seems that the exemple about the ajax form is not working correctly.
http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
At least, for me, I got absolutly no feedback about what I am entering in the form when I use the Ajax button. I got a similar problem for one of my form and didn't, yet, found a good solution.For now, my code look something like this : 
AjaxSubmitButton submitBtn = new AjaxSubmitButton(submit, this) { protected void onSubmit (AjaxRequestTarget target, Form form) { if(_name == null || _name.trim ().length ()1)
 { _feedback.error(Name field is required.); _feedback.updateFeedback(); target.addComponent (_feedback);
 return; } //Etc etc for the normal processing } };It work but it is clearly not something as clean as what is avalaible for a static form. Surely I miss something that can make my feedback panel update when I want to submit a RequiredTextField.
Thanks in advance for your help.Marc-Andre Houle

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

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


Re: [Wicket-user] Ajax form and feedback panel

2006-09-20 Thread Marc-Andre Houle
Thanks for the answer. How long until 1.2.3? There seems to be no news about that on the web page... Thanks again!MarcOn 9/20/06, Igor Vaynberg
 [EMAIL PROTECTED] wrote:
there was an ajax bug in 1.2.2 and that is why the example doesnt work. it works fine against svn wicket-1.x branch so you should check out and build it yourself - it will be released as 1.2.3.-Igor

On 9/20/06, Marc-Andre Houle [EMAIL PROTECTED] wrote:

It seems that the exemple about the ajax form is not working correctly.

http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
At least, for me, I got absolutly no feedback about what I am entering in the form when I use the Ajax button. I got a similar problem for one of my form and didn't, yet, found a good solution.For now, my code look something like this : 
AjaxSubmitButton submitBtn = new AjaxSubmitButton(submit, this) { protected void onSubmit (AjaxRequestTarget target, Form form) { if(_name == null || _name.trim ().length ()1)
 { _feedback.error(Name field is required.); _feedback.updateFeedback(); target.addComponent (_feedback);
 return; } //Etc etc for the normal processing } };It work but it is clearly not something as clean as what is avalaible for a static form. Surely I miss something that can make my feedback panel update when I want to submit a RequiredTextField.
Thanks in advance for your help.Marc-Andre Houle

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

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

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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 bench 0.4

2006-09-20 Thread ChuckDeal

Has the Eclipse Update site been updated?  I haven't been successful in my
attempts at updating tot he new version... Eclipse doesn't think there is a
new version.

-- 
View this message in context: 
http://www.nabble.com/wicket-bench-0.4-tf2300924.html#a6414884
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] wicket bench 0.4

2006-09-20 Thread Juergen Donnerstag
It worked for me when I looked for new features (instead of updates)

Juergen

On 9/20/06, ChuckDeal [EMAIL PROTECTED] wrote:

 Has the Eclipse Update site been updated?  I haven't been successful in my
 attempts at updating tot he new version... Eclipse doesn't think there is a
 new version.

 --
 View this message in context: 
 http://www.nabble.com/wicket-bench-0.4-tf2300924.html#a6414884
 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] wicket bench 0.4

2006-09-20 Thread ChuckDeal

Still not for me...

I did both Help-Software Updates-Find and Install...Search for Updates 
AND Help-Software Updates-Find and Install...Search for new features.  I
even removed and readded my WicketBench update site and it still fails. 
Does eclipse keep a last update attempt value somewhere that would prevent
it from even trying?  because it does seem to come back rather quickly that
no new updates have been found.

I am using
http://www.laughingpanda.org/svn/wicket-bench/trunk/wicket-bench-site/ as
the update site address is this still correct?


Juergen Donnerstag wrote:
 
 It worked for me when I looked for new features (instead of updates)
 
 Juergen
 
 On 9/20/06, ChuckDeal [EMAIL PROTECTED] wrote:

 Has the Eclipse Update site been updated?  I haven't been successful in
 my
 attempts at updating tot he new version... Eclipse doesn't think there is
 a
 new version.

 --
 View this message in context:
 http://www.nabble.com/wicket-bench-0.4-tf2300924.html#a6414884
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/wicket-bench-0.4-tf2300924.html#a6415324
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] wicket bench 0.4

2006-09-20 Thread James McLaughlin
hmm.. If you put a trailing slash on the URL it doesn't work. Make sure your url is as below:
http://www.laughingpanda.org/svn/wicket-bench/trunk/wicket-bench-site
On 9/20/06, ChuckDeal [EMAIL PROTECTED] wrote:
Still not for me...I did both Help-Software Updates-Find and Install...Search for UpdatesAND Help-Software Updates-Find and Install...Search for new features.Ieven removed and readded my WicketBench update site and it still fails.
Does eclipse keep a last update attempt value somewhere that would preventit from even trying?because it does seem to come back rather quickly thatno new updates have been found.I am using
http://www.laughingpanda.org/svn/wicket-bench/trunk/wicket-bench-site/ asthe update site address is this still correct?
Juergen Donnerstag wrote: It worked for me when I looked for new features (instead of updates) Juergen On 9/20/06, ChuckDeal [EMAIL PROTECTED]
 wrote: Has the Eclipse Update site been updated?I haven't been successful in my attempts at updating tot he new version... Eclipse doesn't think there is a
 new version. -- View this message in context: http://www.nabble.com/wicket-bench-0.4-tf2300924.html#a6414884
 Sent from the Wicket - User mailing list archive at Nabble.com. -
 Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share
 your opinions on IT  business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user--View this message in context: http://www.nabble.com/wicket-bench-0.4-tf2300924.html#a6415324
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 youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- // Jim McLaughlin 
// Director, Software Engineering// Stonewater Control Systems// http://www.stonewatercontrols.com// (o) 847.864.1060
 x107// (c) 773.416.0994
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/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 with wicket:child

2006-09-20 Thread Stefan Lindner
I have a panel with a form
 
  wicket:panel
form wicket:id=testForm
  table
   trtd
wicket:child/
   /td/tr
   trtd align=rightinput tabindex=17 class=formButton 
type=submit value=save wicket:id=ajaxSaveButton/
/td
   /tr
  /table
/form
  /wicket:panel

The idea behind this is to have a template for forms that must have an ajax 
submit button.

Now I try to create the java part of the panel and form like this

 ...
 Form f = new Form(this, testForm);
 new AjaxSubmitButton(f, ajaxSubmitButton, f);
 ...

But this results in an error message:

wicket.WicketRuntimeException: Unable to find the markup for the component: 
ajaxSubmitButton
...
wicket.markup.MarkupNotFoundException: Couldn't find the markup of the 
component 'ajaxSubmitButton' in parent 'testPanel:testForm'

What goes wrong?

Stefan Lindner 





winmail.dat-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/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 with wicket:child

2006-09-20 Thread Igor Vaynberg
because in markup you have ajaxSaveButton but in java you have ajaxSubmitButton for id values.not sure this usecase will work period though _right now_. you see form components need to be children of the form. so you need to let your panel implement IAlternateParentProvider and redirect children to the form. the markup resolution of wicket:child and wicket:body is not working right now because it doesnt take into account that it is embedded. juergen and i are working on it, well - much more juergen then i since im just creating failing unit tests for him to look at right now. 
give it a try and see if it works, i have only tested borders that fail in this usecase not panels. keep as apprised and i will do the same.-IgorOn 9/20/06, 
Stefan Lindner [EMAIL PROTECTED] wrote:
I have a panel with a formwicket:panelform wicket:id=testFormtable trtdwicket:child/ /td/tr
 trtd align=rightinput tabindex=17 class=formButton type=submit value=save wicket:id=ajaxSaveButton//td
 /tr/table/form/wicket:panelThe idea behind this is to have a template for forms that must have an ajax submit button.Now I try to create the java part of the panel and form like this
 ... Form f = new Form(this, testForm); new AjaxSubmitButton(f, ajaxSubmitButton, f); ...But this results in an error message:wicket.WicketRuntimeException: Unable to find the markup for the component: ajaxSubmitButton
...wicket.markup.MarkupNotFoundException: Couldn't find the markup of the component 'ajaxSubmitButton' in parent 'testPanel:testForm'What goes wrong?Stefan Lindner-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-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] Anyone received complete Pro Wicket ebook?

2006-09-20 Thread De Soca

Thanks for the confirmation folks.

Cheers.


Eelco Hillenius wrote:
 
 It is. I just received the hard copy. Thanks Karthik and Apress. I
 think you did a great job. It's a good introduction on Wicket, that
 imo still covers quite a lot, but most importantly is out for people
 to buy now.
 
 Cheers!
 
 Eelco
 
 
 On 9/20/06, Gwyn Evans [EMAIL PROTECTED] wrote:
 Those 9 chapters /are/ the complete book, I think.  Certainly they
 match the Table of Contents that's on the site.
 (http://www.apress.com/ApressCorporate/supplement/1/10189/1590597222-3762.pdf).

 As far as I can see, the only difference between the earlier beta
 eBook and the current one is the movement of the title page  ToC
 pages to the front. There's no additional content, which would explain
 why there's been no update emailing.

 /Gwyn

 On 20/09/06, De Soca [EMAIL PROTECTED] wrote:
 
  Sorry, my celebrations were premature, its the same 9 chapters as the
 beta
  book.
 
  What rotten service.
 
  Called and let a message with Apress support still no reply.
 
 
  De Soca wrote:
  
   Hi Martin,
  
   thanks, that did it. Strange that they never changed the link.
  
   Cheers.
  
   Martin Funk wrote:
  
   download the book even if it still says (beta) in the download
 area.
   worked for me.
  
   mf
  
   middledot schrieb:
   I too bought a beta version of the book, hoping that I would be
 informed
   of
   the final release but no such luck.
   The e-book is still in beta version on their website.
   I tried to download the code for the book but it's not there
 either.
   Strange.
   Les
  
   De Soca wrote:
  
   Hello,
  
   just curious, has anyone has received the complete eBook of Pro
   Wicket from Apress?
  
   I have not received mine as yet even though the hard copy has been
   release. I had taken part in the beta ebook program in August.
  
   I have also tried sending an email to Apress support - no response
 in
   over a week!
  
   Not good.
  
   Cheers,
   DeSoca


 --
 Download Wicket 1.2.2 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Anyone-received-complete-Pro-Wicket-ebook--tf2295943.html#a6419276
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