WebMarkupContainer and AjaxSelfUpdatingTimerBehavior
Hi, I want to refresh every 5s my 4 listviews. So I have use AjaxSelfUpdatingTimerBehavior with them. But it was not working, the solution that I have found here, is to put their in a WebMarkupContainer. Now it's working for resfreshing... But every 5 secondes I have 4 new listviews adding to the 4 firsts and 4 more and 4 more... So what can I do to avoid this behavior? Thank you for your help -- View this message in context: http://www.nabble.com/WebMarkupContainer-and-AjaxSelfUpdatingTimerBehavior-tp1606p1606.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebMarkupContainer and AjaxSelfUpdatingTimerBehavior
I really need your help. I have replaced the WebMarkupContainer by a Panel. I use the methode addOrReplace (Component child) in my panel. When I arrived in the page, everybody is fine but when it refreshs it, It adds one time in more the panel in the top of my page!! My Page : http://img408.imageshack.us/img408/6828/testl.jpg -- View this message in context: http://www.nabble.com/WebMarkupContainer-and-AjaxSelfUpdatingTimerBehavior-tp1606p4213.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RefreshingView how to resize it?
Hi everybody, I'm using a RefreshingView inside a table. This table is to long, and i would like to reduce the width. I try to do this with the css, fail! *** table cellspacing=0 border=1 class=refreshingTable tr thId/th thEmail */th thNom de passe */th thNom/th thPreacute;nom/th thDroit d'accegrave;s/th /tr tr wicket:id=refreshingview td/td tdinput type=text wicket:id=email//td tdinput type=text wicket:id=mdp/td tdinput type=text wicket:id=nom//td tdinput type=text wicket:id=prenom//td tdselect wicket:id=droit/select/td /tr /table * In my css : .refreshingTable{ width: 300px; } * So if someone has already succeded, can help me? Thank you in advance -- View this message in context: http://www.nabble.com/RefreshingView-how-to-resize-it--tp18688971p18688971.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RefreshingView how to resize it?
I found the solution, by reducing the size of the input text inside the refreshingview. -- View this message in context: http://www.nabble.com/RefreshingView-how-to-resize-it--tp18688971p18689155.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with AutoCompleteTextField and display
Hi everybody, I have a strange problem when I use a AutoCompleteTextField. This component works well, indeed it suggests words, but when I pass on a word to select it, the page is scrolling down. To be more unequivocal, look at the screenshot : http://www.nabble.com/file/p18486597/totoyz5.jpg So i'm looking for the solution, it might be a wicket problem, or a css problem. I have used the same css posted on wicket exemple. div.wicket-aa { font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Verdana; font-size: 12px; background-color: white; border-color: #cc; border-width: 1px; border-style: solid; padding: 2px; margin: 1px 0 0 0; text-align:left; } div.wicket-aa ul { list-style:none; padding: 2px; margin:0; } div.wicket-aa ul li.selected { background-color: #00; padding: 2px; margin:0; } Thank in advance for your help :) -- View this message in context: http://www.nabble.com/Problem-with-AutoCompleteTextField-and-display-tp18486597p18486597.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with AutoCompleteTextField and display
I have the same problem with 1.3.4. I met this behavior when my page has a scrolbar. If there is no scrolbar, there is no problem. This is come from Wicket? CSS?... Fabien D. wrote: no 1.3.3, i will try with 1.3.4. Uwe Schäfer wrote: Fabien D. schrieb: I have a strange problem when I use a AutoCompleteTextField. This component works well, indeed it suggests words, but when I pass on a word to select it, the page is scrolling down. do you use 1.3.4.? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-AutoCompleteTextField-and-display-tp18486597p18490999.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem test RadioChoice
Hi, Have you try : YourRadioChoice.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { .. target.addComponent(Component); } }); -- View this message in context: http://www.nabble.com/Problem-test-RadioChoice-tp18196023p18198138.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with error message and refreshingView
I find a solution but I supose that it's not the best. I put between the simple and the name the Id of the row (the number of rows of my refreshingView is not fixed :( ) form.simple.1.name.Required = -- View this message in context: http://www.nabble.com/Problem-with-error-message-and-refreshingView-tp18005178p18008324.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CheckBoxMultipleChoice, Palette - onchange
Hi everybody, There is someone who can tell me how to change the model of selected items for these similar objects? Because it's possible to change the model of items with setChoices(IModel m) or setChoices(List l) but there is not setSelectedChoices(IModel m) Thank you for your help! -- View this message in context: http://www.nabble.com/CheckBoxMultipleChoice%2C-Palette--%3E-%22onchange%22-tp18008412p18008412.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CheckBoxMultipleChoice, Palette - onchange
I find the solution, I create a new object with a new model for selected items, and i do a form.replace(Component c) -- View this message in context: http://www.nabble.com/CheckBoxMultipleChoice%2C-Palette--%3E-%22onchange%22-tp18008412p18009282.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help to choice a wicket component
Hi everybody, I need your help the choice the best component for managing the users of my wicket application. I need a Table, with 4 columns : 3 inputtexts to edit first and familly name, and email, and 1 DropDownChoice to edit right acces. So what is the best wicket component to do this? Thank you in advance. -- View this message in context: http://www.nabble.com/Help-to-choice-a-wicket-component-tp17751207p17751207.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help to choice a wicket component
okay, thank you :) I will try to use it -- View this message in context: http://www.nabble.com/Help-to-choice-a-wicket-component-tp17751207p17753162.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help to choice a wicket component
I have read documents found on wiki and javadoc, but I don't find the solution to add other component than Label to DataTable. It means that we only can use DataTable with label? -- View this message in context: http://www.nabble.com/Help-to-choice-a-wicket-component-tp17751207p17756210.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create WebPage inside a TimerTask Class
Hi, thank you for tour help... This is a very strange behavior. I have tried to display this page, so I have created a link to this page, and everything is good, I have my Page, and it enters into the constructor. I have tried to put this timer class into a WebPage put, unfortunately it does'nt enter into the constructor!! And finally, I have made a simpleThread like this : public class GestionThread extends java.lang.Thread{ private boolean stopThread = false; public void run() { boolean fin = false; GestionEmail g = new GestionEmail(); g.emailTimer(new Date()); } It does'nt enter into the constructor to!! It stops at this line : . log.info(Testing1); - display EmailPage emailcontent = new EmailPage(user,list_sous_domaine, abo.getDateAncienne() , abo.getDateFuture()); . . public EmailPage(TUtilisateur user, List list_sousdomaine, Date ancien, Date futur){ log.info(Testing2); - never display this.user = user; this.list_sousdomaine = list_sousdomaine; this.ancien = ancien; this.futur = futur; this.initPage(); } . If someone have an idea to solve this problem! Thank you in advance. -- View this message in context: http://www.nabble.com/Create-WebPage-inside-a-TimerTask-Class-tp17693737p17728018.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create WebPage inside a normal
Hi, I have a timer class associated with a timertask class, to send daily an email generated by wicket But in my timertask when I try to create my WebPage thanks to the constructor, it never enters to the constructor... I would like to do something like that : in my timertask ... EmailPage emailcontent = new EmailPage(user,list_sous_domaine, abo.getDateAncienne() , abo.getDateFuture()); emailcontent.render(); String message_corps = emailcontent.getSource(); public class EmailPage extends WebPage{ public EmailPage(TUtilisateur user, List list_sousdomaine, Date ancien, Date futur){ log.info(Testing !! ); - never displayed . } } How can I solve this problem? Thank you in advance for your help -- View this message in context: http://www.nabble.com/Create-WebPage-inside-a-normal-tp17693737p17693737.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sending HTML email from Wicket app
I try to do something like you, to send daily an email!! For the moment, I have problems, but you can find more information here : http://www.nabble.com/Generating-email-body-with-wicket-td14042459.html#a14042459 -- View this message in context: http://www.nabble.com/Sending-HTML-email-from-Wicket-app-tp17693496p17693836.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create WebPage inside a normal
Why Are you saying that i double post?? -- View this message in context: http://www.nabble.com/Create-WebPage-inside-a-TimerTask-Class-tp17693737p17694013.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create WebPage inside a normal
Okay, sorry :) -- View this message in context: http://www.nabble.com/Create-WebPage-inside-a-TimerTask-Class-tp17693737p17694175.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getString, Label - Warn
Hi everybody, If I use this code : BookmarkablePageLink lien_accueil = new BookmarkablePageLink(accueil, HomePage.class); Label labelLinkAccueil = new Label (name,getString(LabelLinkAccueil)); labelLinkAccueil.setEscapeModelStrings(false); lien_accueil.add(labelLinkAccueil); lien_accueil.setVisible(true); add(lien_accueil); In my log file, I have this warning : (Localizer.java:188) - Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized resource returned. Make sure you are not calling Component#getString() inside your Component's constructor. Offending component: [MarkupContainer [Component id = panelmenu, page = No Page, path = panelmenu.PanelMenu]] Wicket doesn't like to use the constructor of a label and getString() How cant I resolve this warning and use getString with new Label Thank you in advance -- View this message in context: http://www.nabble.com/getString%2C-Label--%3E-Warn-tp17599949p17599949.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getString, Label - Warn
I have tried, but I have the same warning -- View this message in context: http://www.nabble.com/getString%2C-Label--%3E-Warn-tp17599949p17600229.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getString, Label - Warn
To use model and label ... I will try RessourceModel now Thank you for your help -- View this message in context: http://www.nabble.com/getString%2C-Label--%3E-Warn-tp17599949p17602329.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getString, Label - Warn
With the ModelRessource, it's working, thank you :) :) -- View this message in context: http://www.nabble.com/getString%2C-Label--%3E-Warn-tp17599949p17602394.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Stress
Hi everybody, I'm french and unfortunately in french we have stresses! My server tomcat is using UTF-8, and all my files are encoding in UTF-8, and I want to use this standard. When I want to display a label : like this add(new Label (name,Générer Document)); It displays : Générer Document I try to use file.propertie and getString(), it is the same issue, I try to replace é by html caracter eacute; but it displays eacute; So I don't know where it is the problem with UTF-8 because if my file is encoding in ISO-8859-1 it woks well. If you have suggestion, thank you in advance. -- View this message in context: http://www.nabble.com/Problem-with-Stress-tp17556788p17556788.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Stress
Thank you for your help, but It's not working :( Thijs wrote: Label label; add(label = new Label (name,Geacute;neacute;rer Document)); label.setEscapeModelStrings(false); Thijs Fabien D. schreef: Hi everybody, I'm french and unfortunately in french we have stresses! My server tomcat is using UTF-8, and all my files are encoding in UTF-8, and I want to use this standard. When I want to display a label : like this add(new Label (name,Générer Document)); It displays : Générer Document I try to use file.propertie and getString(), it is the same issue, I try to replace é by html caracter eacute; but it displays eacute; So I don't know where it is the problem with UTF-8 because if my file is encoding in ISO-8859-1 it woks well. If you have suggestion, thank you in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-Stress-tp17556788p17557068.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Stress
It's very strange! When I use getString() for a Label like this add(new Label(id,getString(test))); and in my property file : test = Générer Document. It's not working But if I use for I validator : error(getString(test)); It's working and display the stress Matej Knopp-2 wrote: Property files are always ISO 8859-1. Try escaping the string in property file or use eclipse plugin that does that for you. Or try xml property files. -Matej On Fri, May 30, 2008 at 1:32 PM, Fabien D. [EMAIL PROTECTED] wrote: Hi everybody, I'm french and unfortunately in french we have stresses! My server tomcat is using UTF-8, and all my files are encoding in UTF-8, and I want to use this standard. When I want to display a label : like this add(new Label (name,Générer Document)); It displays : GÃ(c)nÃ(c)rer Document I try to use file.propertie and getString(), it is the same issue, I try to replace é by html caracter é but it displays é So I don't know where it is the problem with UTF-8 because if my file is encoding in ISO-8859-1 it woks well. If you have suggestion, thank you in advance. -- View this message in context: http://www.nabble.com/Problem-with-Stress-tp17556788p17556788.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-Stress-tp17556788p17557117.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Stress
Thank you, it's working I have forgot the htmp code like egrave; Fabien D. wrote: Thank you for your help, but It's not working :( Thijs wrote: Label label; add(label = new Label (name,Geacute;neacute;rer Document)); label.setEscapeModelStrings(false); Thijs Fabien D. schreef: Hi everybody, I'm french and unfortunately in french we have stresses! My server tomcat is using UTF-8, and all my files are encoding in UTF-8, and I want to use this standard. When I want to display a label : like this add(new Label (name,Générer Document)); It displays : Générer Document I try to use file.propertie and getString(), it is the same issue, I try to replace é by html caracter eacute; but it displays eacute; So I don't know where it is the problem with UTF-8 because if my file is encoding in ISO-8859-1 it woks well. If you have suggestion, thank you in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-Stress-tp17556788p17557388.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Stress
My java files are encoding in UTF8 and my HTML too and use UTF : meta http-equiv=Content-Type content=text/html; charset=UTF-8 / but if a use Label and getString() I have to put the setEscapeModelString to convert String to html and the equivalent caracter in html like é - .egrave; Florian Sperber wrote: Hi Fabien, if you save your .java files as utf-8 and mark your html files as utf-8 html you should be able to use special characters directly. Kind regards Florian Sperber On Fri, 30 May 2008 05:08:40 -0700 (PDT), Fabien D. [EMAIL PROTECTED] wrote: Thank you, it's working I have forgot the htmp code like egrave; Fabien D. wrote: Thank you for your help, but It's not working :( Thijs wrote: Label label; add(label = new Label (name,Geacute;neacute;rer Document)); label.setEscapeModelStrings(false); Thijs Fabien D. schreef: Hi everybody, I'm french and unfortunately in french we have stresses! My server tomcat is using UTF-8, and all my files are encoding in UTF-8, and I want to use this standard. When I want to display a label : like this add(new Label (name,Générer Document)); It displays : Générer Document I try to use file.propertie and getString(), it is the same issue, I try to replace é by html caracter eacute; but it displays eacute; So I don't know where it is the problem with UTF-8 because if my file is encoding in ISO-8859-1 it woks well. If you have suggestion, thank you in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-Stress-tp17556788p17557705.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Stress
yes, i see it in the generated code Jonas-21 wrote: meta http-equiv=Content-Type content=text/html; charset=UTF-8 / does the actual http header also say this? afair having this line in the html isn't enough to have contents treated as utf-8 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-Stress-tp17556788p17560140.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use wicketstuff-rome
Hi, The generated code contains the link, but nothing is displayed. I think it misses something in my WebApplication.class . -- View this message in context: http://www.nabble.com/Use-wicketstuff-rome-tp17471567p17507091.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use wicketstuff-rome
I have something only in the head part : head title wicket:id=titlepageOpen Source - Base de conaissance en ligne/title meta http-equiv=Content-Style-Type content=text/css / meta http-equiv=Content-Script-Type content=text/javascript/ meta http-equiv=Content-Type content=text/html; charset=UTF-8 / link title=Normal rel=stylesheet type=text/css href=./css/style.css media=screen/ link rel=alternate type=application/rss+xml title=your feed title href=resources/org.apache.wicket.Application/myFeed /script type=text/javascript src=resources/org.apache.wicket.markup.html.tree.AbstractTree/res/tree.js/script link rel=stylesheet type=text/css href=resources/org.apache.wicket.markup.html.tree.BaseTree/res/base-tree.css / script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]]*//script /head In the body, nothing . /wicket:panel/div div id=texte wicket:id=panelhomewicket:panel h1 Welcome br /h1 /wicket:panel/div -- View this message in context: http://www.nabble.com/Use-wicketstuff-rome-tp17471567p17507412.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use wicketstuff-rome
I don't see icon ... Let see : http://www.nabble.com/file/p17509232/seeqd9.jpg If someone have an idea Thank you in advance -- View this message in context: http://www.nabble.com/Use-wicketstuff-rome-tp17471567p17509232.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use wicketstuff-rome
Maybe your talking about this : http://img519.imageshack.us/img519/7098/seeecv1.jpg In my web application, I have nothing. Is there something to add in the WebApplication.class? I have tried this : mountSharedResource(/RSS, new ResourceReference(myFeed) { protected FeedResource newResource() { return new GestionFluxRSS(CDataFromBDD.getLastTSuiviSite()); } }.getSharedResourceKey()); -- that causes a problem Filter Start when Tomcat is launched And I have tried this : this.getSharedResources().add(myFeed,new GestionFluxRSS(CDataFromBDD.getLastTSuiviSite())); mount(new SharedResourceRequestTargetUrlCodingStrategy(myFeed, RSS)); And I have tried with noting... For the two last tries, nothing is displayed, I don't know what it has to display??!? -- View this message in context: http://www.nabble.com/Use-wicketstuff-rome-tp17471567p17511624.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use wicketstuff-rome
I want to have I link to subscibe the RSS, and I want to create 8 RSS for each part of my application. -- View this message in context: http://www.nabble.com/Use-wicketstuff-rome-tp17471567p17513375.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can i load Image??
Hi everybody, In my web application, I want to display a Image. I try to use Image and ResourceReference but I have some problemes My image is in a folder stock in my context of my web aplication : /stock/domaine/sdoimaine/projet/logo. I try to load it with the real path, or the context path... String name_upload = GestionProperties.getProperty(uploadRealdir); String chemin = name_upload+File.separator+model_domaine.getObject()+File.separator+model_sous_domaine.getObject()+File.separator+model_nom.getObject()+File.separator+model_logo.getObject(); ResourceReference ref = new ResourceReference(chemin); Image logoProjet = new Image(logoimg, ref ); And the result is : http://localhost:8080/appWicket-1.0/resources/org.apache.wicket.Application/stock... How can I place my RessourceReference in the context? Thank you in adance -- View this message in context: http://www.nabble.com/How-can-i-load-Image---tp17403872p17403872.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i load Image??
Thank you for your help, I will try your solution :) -- View this message in context: http://www.nabble.com/How-can-i-load-Image---tp17403872p17406121.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CheckGroups
Hi everydoby, I have a problem to make a complex form with CheckGroups . My question is : is ti possible to use CheckGroup to check anothers CheckGroups ?? And if it is not possible, how can I use CheckGroups to check checkboxs wich will checkanothers checkboxs?? I don't know if you understand with lots of check word :) Thank you in advance -- View this message in context: http://www.nabble.com/CheckGroups-tp17106166p17106166.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RatingPanel and ResetLink
Hi everybody, I try to add a reset link for the rate to my RatingPanel. I have done this : # Reset rating And in my class : final RatingPanel rating = new RatingPanel(rating1, new Model(),5,true){ private static final long serialVersionUID = 1L; private Integer rating = 0; public void setRate(Integer rate){ rating = rate; } protected String getActiveStarUrl(int iteration){ return WICKETSTAR1; } protected String getInactiveStarUrl(int iteration){ return WICKETSTAR0; } protected boolean onIsStarActive(int star) { return star ((int)(rating + 0.5)); } protected void onRated(int rating, AjaxRequestTarget target) { this.rating = rating; model.setObject(this.rating); } }; rating.setRatingLabelVisible(false); rating.add(new Link(reset1){ private static final long serialVersionUID = 1L; public void onClick(){ } }); Moreover for the method onClick I don't know how to reset the rate because my public method setRate is not accissible... I want to try this : rating.getModel().setObject(0); If you can help me, thank you in advance -- View this message in context: http://www.nabble.com/RatingPanel-and-ResetLink-tp17061505p17061505.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RatingPanel and ResetLink
I have forgot to do this reset link, I have just done this : protected void onRated(int rating, AjaxRequestTarget target) { if (this.rating == rating) this.rating = this.rating-1; else this.rating = rating; model.setObject(this.rating); } -- View this message in context: http://www.nabble.com/RatingPanel-and-ResetLink-tp17061505p17064195.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AbstractTab et BookmarkablePageLink
Hi, I'm using AbastractTab with two panels. I want to have a BookmarkablePageLink for these Panel, so my question is : Is it possible??? If not, is there another solution? Thank you in advance -- View this message in context: http://www.nabble.com/AbstractTab-et-BookmarkablePageLink-tp1693p1693.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BookmarkablePageLink question
I try to use BookmarkablePageLink : I 've done this : mountBookmarkablePage(projet, ProjetPage.class); BookmarkablePageLink link = new BookmarkablePageLink(lien_projet, ProjetPage.class); link.setParameter(projet, inf.getNom()); the result is : ./projet/projet/MySQL I want just /projet/MySQL. In the parameters we have a key projet and a value, but the key is displayed. So my question is : it is possible to do not display this key??? Thank you in advance -- View this message in context: http://www.nabble.com/BookmarkablePageLink-question-tp16894177p16894177.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BookmarkablePageLink question
I will search in this way, thank you Martijn Dashorst wrote: See Application#mount() and the various URL coding strategies that are available. I think you are looking for IndexedStrategy Martijn On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote: I try to use BookmarkablePageLink : I 've done this : mountBookmarkablePage(projet, ProjetPage.class); BookmarkablePageLink link = new BookmarkablePageLink(lien_projet, ProjetPage.class); link.setParameter(projet, inf.getNom()); the result is : ./projet/projet/MySQL I want just /projet/MySQL. In the parameters we have a key projet and a value, but the key is displayed. So my question is : it is possible to do not display this key??? Thank you in advance -- View this message in context: http://www.nabble.com/BookmarkablePageLink-question-tp16894177p16894177.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/BookmarkablePageLink-question-tp16894177p16895096.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BookmarkablePageLink question
I have another question : About the BookmarkablePageLink, and the display url, it is possible to do not display the JSESSIONID??? thank you in advance Fabien D. wrote: I will search in this way, thank you Martijn Dashorst wrote: See Application#mount() and the various URL coding strategies that are available. I think you are looking for IndexedStrategy Martijn On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote: I try to use BookmarkablePageLink : I 've done this : mountBookmarkablePage(projet, ProjetPage.class); BookmarkablePageLink link = new BookmarkablePageLink(lien_projet, ProjetPage.class); link.setParameter(projet, inf.getNom()); the result is : ./projet/projet/MySQL I want just /projet/MySQL. In the parameters we have a key projet and a value, but the key is displayed. So my question is : it is possible to do not display this key??? Thank you in advance -- View this message in context: http://www.nabble.com/BookmarkablePageLink-question-tp16894177p16894177.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/BookmarkablePageLink-question-tp16894177p16895766.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with FileUploadField
Thank you, do you have exemple for manipuling this? Because I have a panel with a form, and I want to display a image when the file is changed in the FileUploadFiled Thank you in advance Cristi Manole wrote: The FileUploadField doesn't work with Ajax like that. You have to add an iframe and post to that. At least, I haven't managed to get it working with Ajax... Cristi Manole On Tue, Apr 22, 2008 at 3:04 PM, Fabien D. [EMAIL PROTECTED] wrote: Hi, I would like to add a behavior on my FileUploadField But I can't get back the path of the file, or the file this.logo = new FileUploadField(inputLogo); logo.setRequired(false); logo.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { .. } I have try everything : FileUpload up = logo.getFileUpload(); - null File file = (File)logo.getModelObject(); - null logo.getModelObjectAsString() - null So how can i get the file or just the path and the name file -- View this message in context: http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16823823.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16833288.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with FileUploadField
My researches show FileUploadField does not support ajax behavior So there is no wicket input, which permits to the user to browse his local disk? Thank you in advance. Fabien D. wrote: Hi, I would like to add a behavior on my FileUploadField But I can't get back the path of the file, or the file this.logo = new FileUploadField(inputLogo); logo.setRequired(false); logo.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { .. } I have try everything : FileUpload up = logo.getFileUpload(); - null File file = (File)logo.getModelObject(); - null logo.getModelObjectAsString() - null So how can i get the file or just the path and the name file -- View this message in context: http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16824291.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Palette
nobody can help me?? Fabien D. wrote: Hi everybody, I have two problems with the Palette. The first one is when the user submits the form and there are problems with the other textfield (Validator), the left field for the selection is reseted!! The second problem is when all fields are good and when a try de getBack the list of selected objects, It returns the first object of my list as many as there are selcted objects : exemple : Available - reset when there is a probleme with validator Toto Tata Selected Titi Tutu The return is : Titi Titi The code for my palette: ChoiceRenderer renderer = new ChoiceRenderer(); List licences = CDataFromBDD.getListNameLicence(); Mode model_licence = new Model((Serializable)licences); Mode model_licence_selection = new Model(new ArrayList()); //parameter of the licence Palette licence = new Palette(licence, model_licence_selection, model_licence, renderer, 6, false); this.form_ajoutinfgeneral.add(licence); The code for my form: form_ajoutinfgeneral = new Form(form_ajoutinfgeneral, new CompoundPropertyModel(this.model_sous_domaine)) { private static final long serialVersionUID = 1L; protected void onSubmit() { List selected = (List)model_licence_selection.getObject(); ... } } Sorry for my english, I'm french, and thank you in advance :) -- View this message in context: http://www.nabble.com/Problems-with-Palette-tp16722516p16761756.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with Palette
Hi everybody, I have two problems with the Palette. The first one is when the user submits the form and there are problems with the other textfield (Validator), the left field for the selection is reseted!! The second problem is when all fields are good and when a try de getBack the list of selected objects, It returns the first object of my list as many as there are selcted objects : exemple : Available - reset when there is a probleme with validator Toto Tata Selected Titi Tutu The return is : Titi Titi The code for my palette: ChoiceRenderer renderer = new ChoiceRenderer(); List licences = CDataFromBDD.getListNameLicence(); Mode model_licence = new Model((Serializable)licences); Mode model_licence_selection = new Model(new ArrayList()); //parameter of the licence Palette licence = new Palette(licence, model_licence_selection, model_licence, renderer, 6, false); this.form_ajoutinfgeneral.add(licence); The code for my form: form_ajoutinfgeneral = new Form(form_ajoutinfgeneral, new CompoundPropertyModel(this.model_sous_domaine)) { private static final long serialVersionUID = 1L; protected void onSubmit() { List selected = (List)model_licence_selection.getObject(); ... } } Sorry for my english, I'm french, and thank you in advance :) -- View this message in context: http://www.nabble.com/Problems-with-Palette-tp16722516p16722516.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FileUploadField and Image
Hi, I would like to do a special behavior. I have a input for FileUploadField, when the user choices an image in his local disk, this file is automatically uploaded (in a temp folder of tomcat) and rendered whitout click on submit... How can i do this if it's possible? Thank you in advance -- View this message in context: http://www.nabble.com/FileUploadField-and-Image-tp16604942p16604942.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with cookie
It's working, thank you for your help igor.vaynberg wrote: like i said change your code to ((WebResponse)RequestCycle.get().getResponse()).addCookie(... -igor On Tue, Apr 8, 2008 at 12:48 AM, Fabien D. [EMAIL PROTECTED] wrote: Thank you for your response... But it's possible to explain me a little more??? I have tried : ((WebResponse)getRequestCycle().getResponse()).addCookie(cookieUser); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookiePassword); But i Think the problem comes from the method in my WebApplication object public Session newSession (Request request, Response response){ return new GestionSession(request); } igor.vaynberg wrote: you really should use an IDE other then that you can do requestcycle.get() instead -igor On Mon, Apr 7, 2008 at 7:56 AM, Fabien D. [EMAIL PROTECTED] wrote: Hi I have a problem to set and use cookie !! I have followed the example found in wickets example : Cookie cookieUser = new Cookie(cookieUser, email); Cookie cookiePassword = new Cookie(cookiePassword, mdp); cookieUser.setMaxAge(3600); cookiePassword.setMaxAge(3600); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookieUser); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookiePassword); There is a problem during compilation : cannot find symbol method getRequestCycle()... I have a WebSession objet where i stock the user for right acces In my WebApplication objet I have declared this : public Session newSession (Request request, Response response){ return new GestionSession(request); } Thank you in advance for your help -- View this message in context: http://www.nabble.com/Problems-with-cookie-tp16537484p16537484.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problems-with-cookie-tp16537484p16548307.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problems-with-cookie-tp16537484p16585977.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with cookie
Thank you for your response... But it's possible to explain me a little more??? I have tried : ((WebResponse)getRequestCycle().getResponse()).addCookie(cookieUser); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookiePassword); But i Think the problem comes from the method in my WebApplication object public Session newSession (Request request, Response response){ return new GestionSession(request); } igor.vaynberg wrote: you really should use an IDE other then that you can do requestcycle.get() instead -igor On Mon, Apr 7, 2008 at 7:56 AM, Fabien D. [EMAIL PROTECTED] wrote: Hi I have a problem to set and use cookie !! I have followed the example found in wickets example : Cookie cookieUser = new Cookie(cookieUser, email); Cookie cookiePassword = new Cookie(cookiePassword, mdp); cookieUser.setMaxAge(3600); cookiePassword.setMaxAge(3600); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookieUser); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookiePassword); There is a problem during compilation : cannot find symbol method getRequestCycle()... I have a WebSession objet where i stock the user for right acces In my WebApplication objet I have declared this : public Session newSession (Request request, Response response){ return new GestionSession(request); } Thank you in advance for your help -- View this message in context: http://www.nabble.com/Problems-with-cookie-tp16537484p16537484.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problems-with-cookie-tp16537484p16548307.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with cookie
Hi I have a problem to set and use cookie !! I have followed the example found in wickets example : Cookie cookieUser = new Cookie(cookieUser, email); Cookie cookiePassword = new Cookie(cookiePassword, mdp); cookieUser.setMaxAge(3600); cookiePassword.setMaxAge(3600); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookieUser); ((WebResponse)getRequestCycle().getResponse()).addCookie(cookiePassword); There is a problem during compilation : cannot find symbol method getRequestCycle()... I have a WebSession objet where i stock the user for right acces In my WebApplication objet I have declared this : public Session newSession (Request request, Response response){ return new GestionSession(request); } Thank you in advance for your help -- View this message in context: http://www.nabble.com/Problems-with-cookie-tp16537484p16537484.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Get back value for a RatingPanel
Hi I have a problem to get back the value of a rating panel. It displays well. This is the déclaration : RatingPanel rating = new RatingPanel(str_rating,model_rating,5,true){ private double rating = 0; protected String getActiveStarUrl(int iteration){ return WICKETSTAR1; } protected String getInactiveStarUrl(int iteration){ return WICKETSTAR0; } protected boolean onIsStarActive(int star) { return star ((int)(rating + 0.5)); } protected void onRated(int rating, AjaxRequestTarget target) { this.rating = rating; } }; rating.setRatingLabelVisible(false); this.form_evaluation.add(rating); And in the method on submit of my form : protected void onSubmit() { log.info(+model_rating.getObject()); setResponsePage(new ProjetPage(ajoutinftechnique)); } But the value is null, so how i can get back the value of this special panel ? Thank you in advance for your help. -- View this message in context: http://www.nabble.com/Get-back-value-for-a-RatingPanel-tp16488179p16488179.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DataPicker problem
search joda-time... and this package is obligatory :) -- View this message in context: http://www.nabble.com/DataPicker-problem-tp16487490p16490804.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems and Questions about MultiFileUploadField, UploadProgressBar
Yes, it was just a problem of Model to get back data this.form_importerarticle = new Form(form_importerarticle) { protected void onSubmit() { List list = (List)model_upload.getObject(); Iterator it = list.iterator(); . }}; this.form_importerarticle.add(new MultiFileUploadField(fileInput, this.model_upload, 10)); Moreover, I don't think that is possible to use MultiFileUploadField, UploadProgressBar together, because UploadProgressBar is linked with the simple Upload field. Peter Ertl wrote: Great! So could you share your experience? Am 02.04.2008 um 11:58 schrieb Fabien D.: My problem is fixed! :) I search response for my question : is it possible to use MultiFileUploadField, UploadProgressBar together?or UploadProgressBar is only for simpleUpload? -- View this message in context: http://www.nabble.com/Problems-and-Questions-about-MultiFileUploadField%2C-UploadProgressBar-tp16445359p16446351.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problems-and-Questions-about-MultiFileUploadField%2C-UploadProgressBar-tp16445359p16467263.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems and Questions about MultiFileUploadField, UploadProgressBar
Hi, First, I have a question : is it possible to use MultiFileUploadField, UploadProgressBar together?or UploadProgressBar is only for simpleUpload? Secondly, I have a problem to use MultiFileUploadField (I adapt the example http://wicketstuff.org/wicket13/upload/multi). For the moment, I can add files into the ListView of uploaded files. But I have I exception when i try to upload (so go to onSubmit)... This is my code of my form: *** this.form_importerarticle = new Form(form_importerarticle) { protected void onSubmit() { Iterator it = list_file.iterator(); while (it.hasNext()) { final FileUpload upload = (FileUpload)it.next(); // Create a new file File newFile = new File(getUploadFolder(), upload.getClientFileName()); // Check new file, delete if it allready existed checkFileExists(newFile); try { log.info(test5); // Save to new file newFile.createNewFile(); upload.writeTo(newFile); } catch (Exception e) { throw new IllegalStateException(Unable to write file); } } } }; this.form_importerarticle.setMultiPart(true); this.form_importerarticle.add(new MultiFileUploadField(fileInput, 10)); this.form_importerarticle.setMaxSize(Bytes.megabytes(30)); *** I populated my ListView like this : this.listview_file = new ListView(listview_file, list_file) { protected void populateItem(ListItem listItem) { final File file = (File)listItem.getModelObject(); listItem.add(new Label(file, file.getName())); listItem.add(new Link(delete_file) { public void onClick() { Files.remove(file); //this.uploadFeedback.info(Suppression du fichier + file); } }); } }; this.form_importerarticle.add(listview_file); this.form_importerarticle.add(this.uploadFeedback); I have also added this in my WebApplication class of my projet (to allow upload???) protected WebRequest newWebRequest(HttpServletRequest servletRequest) { return new UploadWebRequest(servletRequest); } Finally this is my exception : * ERROR [http-8080-1] (RequestCycle.java:1413) - Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = form_importerarticle, page = com.mycompany.projet.ProjetPage, path = 7:panelprojet:form_importerarticle.PanelAjInfCommunautaire$1, isVisible = true, isVersioned = true]] threw an exception org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = form_importerarticle, page = com.mycompany.projet.ProjetPage, path = 7:panelprojet:form_importerarticle.PanelAjInfCommunautaire$1, isVisible = true, isVersioned = true]] threw an exception at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194) at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) When I try to upload, it doesn't enter into the method onSubmit of the form, so I think I miss something TRhank you for your help :) :) -- View this message in context: http://www.nabble.com/Problems-and-Questions-about-MultiFileUploadField%2C-UploadProgressBar-tp16445359p16445359.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Problems and Questions about MultiFileUploadField, UploadProgressBar
My problem is fixed! :) I search response for my question : is it possible to use MultiFileUploadField, UploadProgressBar together?or UploadProgressBar is only for simpleUpload? -- View this message in context: http://www.nabble.com/Problems-and-Questions-about-MultiFileUploadField%2C-UploadProgressBar-tp16445359p16446351.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help to choice ajax component
Hi everybody, I m new user of wicket, and I need your opinion for helping me to do something. Like gmail when you attach a file, I would like to do a link which can be clicked and permits to display a new textfield with a button (fo searching a file) and a radiobox. This link can be clicked again... How can i do this thanks to wicket?? -- View this message in context: http://www.nabble.com/Help-to-choice-ajax-component-tp16393445p16393445.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help to choice ajax component
Thank you for your help, but is there another solution?? Because i want to add as many FileUploadFiled (with Radio) as the user have clicked in my link? My research don't let me optimistic by using ListView. -- View this message in context: http://www.nabble.com/Help-to-choice-ajax-component-tp16393445p16395513.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Package resource not found in YUI package
Have you check with the version 1.3.2? -- View this message in context: http://www.nabble.com/Package-resource-not-found-in-YUI-package-tp16395623p16395915.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change the Label Value
Label label = new Label(id,new Model(Here you set your value)); shrimpywu wrote: hi all, i am new to wicket, just ask a simple question.. how to change the value of a label for example Label label = new Label(id,imodel); how can do label.setValue(some string); plz help.. -- View this message in context: http://www.nabble.com/how-to-change-the-Label-Value-tp16396259p16396263.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help to choice ajax component
I've investigued the ListView, and i have succeded for doing my dynamic adding item. The problem now is that when i add a Item, all the fields are reseted, It don't keep the information in the field. The is my code : this.test = new ArrayList(); CheckBox toto = new CheckBox(selected); FileUploadField upload = new FileUploadField(upload); TextField description = new TextField(description); test.add(new CUploadArticle(toto,upload,description)); ajout_site = new ListView(list_site, test) { protected void populateItem(ListItem item) { CUploadArticle p = (CUploadArticle) item.getModelObject(); item.add(p.getRadio()); item.add(p.getId()); item.add(p.getName()); } }; this.form_ajoutinfcommunautaire.add(ajout_site); Link lien = new Link(ajout_site) { public void onClick() { CheckBox toto = new CheckBox(selected); FileUploadField upload = new FileUploadField(upload); TextField description = new TextField(description); test.add(new CUploadArticle(toto,upload,description)); ajout_site.setList(test); } }; lien.add(new Label(name,Upload another file)); lien.setVisible(true); this.form_ajoutinfcommunautaire.add(lien); How can i do this??? -- View this message in context: http://www.nabble.com/Help-to-choice-ajax-component-tp16393445p16396267.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with DatePicker
Thank you !! It was that. I had not joda-time :) igor.vaynberg wrote: do you have joda jars which wicket-datetime depends on??? -igor On Wed, Mar 26, 2008 at 8:25 AM, Fabien D. [EMAIL PROTECTED] wrote: I've just migrated to wicket 1.3.2 and added the good librairies. And I have exactly the same error! That means I've done a mistake in my code? Thank you for your help :) Gerolf Seitz wrote: this is fixed in 1.3.2 Gerolf On Wed, Mar 26, 2008 at 11:42 AM, Fabien D. [EMAIL PROTECTED] wrote: Hi, I try to use a DatePicker like this : TextField date_version = new TextField(date_version, model_date_version, Date.class); date_version.setRequired(true); date_version.add(new DatePicker()); this.form_ajoutinfgeneral.add(date_version); I have import : import org.apache.wicket.extensions.yui.calendar.DatePicker; I'm using these librairies : wicket-datetime-1.3.1.jar and wicket-extensions-1.3.1.jar When I try to display my page, I have a problem, which is reported in my log file : java.lang.NoClassDefFoundError at org.apache.wicket.extensions.yui.calendar.DatePicker.class$( DatePicker.java:86) at org.apache.wicket.extensions.yui.calendar.DatePicker.getDatePattern( DatePicker.java:438) at org.apache.wicket.extensions.yui.calendar.DatePicker.checkComponentProvidesDateFormat (DatePicker.java:296) at org.apache.wicket.extensions.yui.calendar.DatePicker.bind(DatePicker.java :129) at org.apache.wicket.Component.add(Component.java:922) at com.mycompany.projet.PanelAjInfGeneral.initPage(Unknown Source) . I don't understand what is my mistake. Thank you in advance for your help. -- View this message in context: http://www.nabble.com/Problem-with-DatePicker-tp16299775p16299775.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-DatePicker-tp16299775p16302996.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-DatePicker-tp16299775p16323375.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with DatePicker
Hi, I try to use a DatePicker like this : TextField date_version = new TextField(date_version, model_date_version, Date.class); date_version.setRequired(true); date_version.add(new DatePicker()); this.form_ajoutinfgeneral.add(date_version); I have import : import org.apache.wicket.extensions.yui.calendar.DatePicker; I'm using these librairies : wicket-datetime-1.3.1.jar and wicket-extensions-1.3.1.jar When I try to display my page, I have a problem, which is reported in my log file : java.lang.NoClassDefFoundError at org.apache.wicket.extensions.yui.calendar.DatePicker.class$(DatePicker.java:86) at org.apache.wicket.extensions.yui.calendar.DatePicker.getDatePattern(DatePicker.java:438) at org.apache.wicket.extensions.yui.calendar.DatePicker.checkComponentProvidesDateFormat(DatePicker.java:296) at org.apache.wicket.extensions.yui.calendar.DatePicker.bind(DatePicker.java:129) at org.apache.wicket.Component.add(Component.java:922) at com.mycompany.projet.PanelAjInfGeneral.initPage(Unknown Source) . I don't understand what is my mistake. Thank you in advance for your help. -- View this message in context: http://www.nabble.com/Problem-with-DatePicker-tp16299775p16299775.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with DatePicker
I've just migrated to wicket 1.3.2 and added the good librairies. And I have exactly the same error! That means I've done a mistake in my code? Thank you for your help :) Gerolf Seitz wrote: this is fixed in 1.3.2 Gerolf On Wed, Mar 26, 2008 at 11:42 AM, Fabien D. [EMAIL PROTECTED] wrote: Hi, I try to use a DatePicker like this : TextField date_version = new TextField(date_version, model_date_version, Date.class); date_version.setRequired(true); date_version.add(new DatePicker()); this.form_ajoutinfgeneral.add(date_version); I have import : import org.apache.wicket.extensions.yui.calendar.DatePicker; I'm using these librairies : wicket-datetime-1.3.1.jar and wicket-extensions-1.3.1.jar When I try to display my page, I have a problem, which is reported in my log file : java.lang.NoClassDefFoundError at org.apache.wicket.extensions.yui.calendar.DatePicker.class$( DatePicker.java:86) at org.apache.wicket.extensions.yui.calendar.DatePicker.getDatePattern( DatePicker.java:438) at org.apache.wicket.extensions.yui.calendar.DatePicker.checkComponentProvidesDateFormat (DatePicker.java:296) at org.apache.wicket.extensions.yui.calendar.DatePicker.bind(DatePicker.java :129) at org.apache.wicket.Component.add(Component.java:922) at com.mycompany.projet.PanelAjInfGeneral.initPage(Unknown Source) . I don't understand what is my mistake. Thank you in advance for your help. -- View this message in context: http://www.nabble.com/Problem-with-DatePicker-tp16299775p16299775.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-DatePicker-tp16299775p16302996.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of own message in FeedbackPanel
Thank you all for your help, There is no problem for the password, but now I'm trying to create my own validator. I have a problem during compilation (with ant). I have done this : email.add(new IValidator() { validate(IValidatable v) { if ( !CDataVerification.validEmail( (String)v.getvalue() ) ) v.add(new ValidationError().addMessageKey(error)); } }); where CDataVerification.validEmail is a method to check if it's a correct email ( with @, . , ...), in input a string and in output a boolean. During compilation, I have this message : invalid method declaration; return type required validate(IValidatable v) In the java doc, the method validate don't have any return type, that's why I don't understand what is my mistake. Thank you for your help. -- View this message in context: http://www.nabble.com/Display-of-own-message-in-FeedbackPanel-tp16182720p16196105.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of own message in FeedbackPanel
O_o sorry for this mistake I try this : email.add(new IValidator() { public void validate(IValidatable v) { if ( !CDataVerification.validEmail( (String)v.getvalue() ) ) v.add(new ValidationError().addMessageKey(error)); } }); I'm not an expert in java too It's not compiling : it don't find the method getvalue()... -- View this message in context: http://www.nabble.com/Display-of-own-message-in-FeedbackPanel-tp16182720p16196588.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of own message in FeedbackPanel
For the last time, Thank you :) -- View this message in context: http://www.nabble.com/Display-of-own-message-in-FeedbackPanel-tp16182720p16197598.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Display of own message in FeedbackPanel
Hi everybody, I'm a new french user of wicket, and i 'm apologizing in advance for english and comprehension mistakes. So, I want to display in a FeedbackPanel my own messages for especially events. For example, in my suscribing panel, the user has to write twice his password. So I want to check if these passwords are the same, and if not, to display in the FeedbackPanel a message. What objets i have to manipulate to instanciate the event and the message in the FeedbackPanel ?? Is there any documentation? Thank you in advance for your help :) -- View this message in context: http://www.nabble.com/Display-of-own-message-in-FeedbackPanel-tp16182720p16182720.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of own message in FeedbackPanel
Thank you all for you responding speed :) Amazing Okay i will check tomorrow for this issue.But if my condition is not take care by Feedback An other exemple, i want to check if the email of the user is already in my database, and display a error message in my FeedbackPanel in this case. How can i link my condition, the message and the panel? -- View this message in context: http://www.nabble.com/Display-of-own-message-in-FeedbackPanel-tp16182720p16183431.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]