Re: DefaultDataTable with date column
Date format is working. But I am not able to sorting that column. Why? Please advise. thanks and regards, edi Pablo Sca wrote: > > Great! > this is just what I need > > Thanks > Pablo > > > -- > From: "Edgar Merino" > Sent: Thursday, October 02, 2008 5:19 AM > To: > Subject: Re: DefaultDataTable with date column > >> Or simply use an AbstractColumn for that, you can even create a reusable >> DateColumn: >> >> public class DateColumn extends AbstractColumn { >>private String datePattern; //you can have a Pattern instead >> >>//You can overload the constructor, to have default date patterns for >> example >>public DateColumn(IModel columnName, String datePattern) { >> super(columnName); >> this.datePattern = datePattern; >>} >> >>public void populateItem(Item cellItem, String componentId, IModel >> model) { >> Document doc = (Document) model.getModelObject(); >> SimpleDateFormat df = (SimpleDateFormat) DateFormat.getInstance(); >> df.applyPattern(datePattern); >> cellItem.add(new Label(componentId, >> df.format(doc.getDeliveryDate(; >>} >> } >> >> Then just use this class as you would with any other column, along with a >> pattern to apply to the format: >> >> List columns = new ArrayList(); >> columns.add(new DateColumn(new Model("Delivery date"), "dd MMM '@' >> hh:mm a")); >> >> >> Regards, >> Edgar Merino >> >> >> >> >> Jeremy Thomerson escribió: >>> The default java.util.Date converter within Wicket has varied between >>> releases. I suggest adding this to the init method of your application >>> class and controlling the date format yourself if you need a specific >>> format: >>> >>> ((ConverterLocator) getConverterLocator()).set(Date.class, new >>> IConverter() { >>> private static final long serialVersionUID = 1L; >>> private final DateFormat mFormat = new >>> SimpleDateFormat("MM/dd/yy hh:mm:ss.SSS"); >>> public Date convertToObject(String value, Locale locale) { >>> try { >>> return mFormat.parse(value); >>> } catch (ParseException e) { >>> e.printStackTrace(); >>> } >>> return null; >>> } >>> >>> public String convertToString(Date value, Locale locale) { >>> return mFormat.format(value); >>> } >>> >>> }); >>> >>> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/RepeatingView%3A-add-new-component-at-specified-index-tp19739732p23478648.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Tree with Swing DefaultMutableTreeNode
Hello, I have a wicket tree code. Is it possible to each node with checkboxk in a wicket tree. herewith I have attached my source code. Without checkout box of tree is working fine. But I am not able to add checkbox. Please check the attachment code and advise. Thanks and Regards, Edi http://www.nabble.com/file/p23170043/Treepanel.java Treepanel.java http://www.nabble.com/file/p23170043/TreePanel.html TreePanel.html Michael Allan wrote: > > Can't answser the Wicket side, but consider: > > a) Swing is not thread-safe > > b) it is often better to code your own TreeNode as a bridge to the > underlying reality (Wicket's models?); rather than using > DefaultMutableTreeNode, which is a full-blown model in itself > > -- > Michael Allan > > Toronto, 647-436-4521 > http://zelea.com/ > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Wicket-Tree-with-Swing-DefaultMutableTreeNode-tp18486972p23170043.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: Checkbox tree component
Hello Doug, I am not able to configure the above example Doug. Could you give me .war file. please thanks and regards, edi -- View this message in context: http://www.nabble.com/Checkbox-tree-component-tp13433102p23109331.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: Checkbox tree component
I am not able to configure the above example Doug. Could you give me .war file. please thanks and regards, edi Doug Leeper wrote: > > If the tree is pre-loaded, it is easier. When the checkbox is selected, > iterate through the children nodes and set its state to selected. > > The dynamically loaded is alot trickier...as you would have to load the > tree from the selected node and then iterate and set the children notes to > selected. > > Are you sure you want to select the children nodes or is it the parent > nodes you want to select? > -- View this message in context: http://www.nabble.com/Checkbox-tree-component-tp13433102p23074091.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
Regarding Tomcat web project customize xml (settings.xml)content is missing
hello experts, i tried to configure web based java application. but my customize settings.xml content is missing. so after saving the information. i am getting javax.servlet.ServletException: Servlet execution threw an exception please advise thanks -- View this message in context: http://www.nabble.com/Regarding-Tomcat-web-project-customize-xml-%28settings.xml%29content-is-missing-tp22493954p22493954.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
Wicket MOdalWindow with changes
hello, in my wicket page, i have one combo and button(AjaxLink). when i click the button, i am calling the modalwindow (popup). and in that page, i am getting values and storing into database. after closing the modalwindow (popup), i want to update the combo values, i.e., already saved values in popup, will affect the combo, when i close the popup. Please advise. thanks and regards, Edi -- View this message in context: http://www.nabble.com/Wicket-MOdalWindow-with-changes-tp20480547p20480547.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]
Wicket Tree with Swing DefaultMutableTreeNode
Hello, I am using wicket tree with swing DefaultMutableTreeNode. In render node, i am writing the tree headers labels. protected String renderNode(TreeNode node) { TreeItem item = (TreeItem) ((DefaultMutableTreeNode) node).getUserObject(); return item.getName(); } before writing labels, how can I add the checkboxes. I want tree view with checkboxes.. thanks and regards, edi -- View this message in context: http://www.nabble.com/Wicket-Tree-with-Swing-DefaultMutableTreeNode-tp18486972p18486972.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]
Regarding getting html checkbox values?
i am displaying html checkbox values in one page. checkbox looks in the same page, i have wicket AjaxLink delete Button. during the delete button clicking, i want to get the "checked checkbox values in the same page? is it possible? if yes, please advise. thanks and regards, edi -- View this message in context: http://www.nabble.com/Regarding-getting-html-checkbox-values--tp18416248p18416248.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: Regarding Print page function?
no. how can i use this html validator for that print? please tell me. thanks regards, edi Martin Makundi wrote: > > Hi... have you validated your page using a HTML validator? > > ** > Martin > > 2008/5/6 Edi <[EMAIL PROTECTED]>: >> >> hello to all, >> >> please give me your suggestion regarding this issue. >> >> thanking you >> regards, >> edi >> >> >> Edi wrote: >> > >> > my html code is >> > >> > >> > PRINT img/print.gif >> > >> > i did not use any wicket code. i used only html and javascript >> > thanks- >> > >> > --- >> > >> > Martin Makundi wrote: >> >> >> >> Could you show the markup and the code? >> >> >> >> 2008/5/5 Edi <[EMAIL PROTECTED]>: >> >>> >> >>> Hello, >> >>> >> >>> I have created one html link and during the onclick, I have >> called >> >>> the >> >>> javascript print function, >> >>> >> >>> window.print(), the entire page is printing nicely. But in all the >> >>> corner >> >>> sides, I am getting some improper >> >>> >> >>> wicket codes also printing(FYI: My IE version is 6.0). But in >> firefox >> >>> is >> >>> working fine. >> >>> >> >>> My print function looks, >> >>> >> >>> Print >> >>> >> >>> This code is written in wicket model window. >> >>> >> >>> Please send your suggestions. >> >>> >> >>> Thanking You. >> >>> Regards, >> >>> Edi >> >>> -- >> >>> View this message in context: >> >>> >> http://www.nabble.com/Regarding-Print-page-function--tp17053929p17053929.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/Regarding-Print-page-function--tp17053929p17078840.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/Regarding-Print-page-function--tp17053929p17099794.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: Regarding Print page function?
hello to all, please give me your suggestion regarding this issue. thanking you regards, edi Edi wrote: > > my html code is > > > PRINT img/print.gif > > i did not use any wicket code. i used only html and javascript > thanks- > > --- > > Martin Makundi wrote: >> >> Could you show the markup and the code? >> >> 2008/5/5 Edi <[EMAIL PROTECTED]>: >>> >>> Hello, >>> >>> I have created one html link and during the onclick, I have called >>> the >>> javascript print function, >>> >>> window.print(), the entire page is printing nicely. But in all the >>> corner >>> sides, I am getting some improper >>> >>> wicket codes also printing(FYI: My IE version is 6.0). But in firefox >>> is >>> working fine. >>> >>> My print function looks, >>> >>> Print >>> >>> This code is written in wicket model window. >>> >>> Please send your suggestions. >>> >>> Thanking You. >>> Regards, >>> Edi >>> -- >>> View this message in context: >>> http://www.nabble.com/Regarding-Print-page-function--tp17053929p17053929.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/Regarding-Print-page-function--tp17053929p17078840.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: Regarding Print page function?
my html code is PRINT img/print.gif i did not use any wicket code. i used only html and javascript thanks- --- Martin Makundi wrote: > > Could you show the markup and the code? > > 2008/5/5 Edi <[EMAIL PROTECTED]>: >> >> Hello, >> >> I have created one html link and during the onclick, I have called >> the >> javascript print function, >> >> window.print(), the entire page is printing nicely. But in all the >> corner >> sides, I am getting some improper >> >> wicket codes also printing(FYI: My IE version is 6.0). But in firefox is >> working fine. >> >> My print function looks, >> >> Print >> >> This code is written in wicket model window. >> >> Please send your suggestions. >> >> Thanking You. >> Regards, >> Edi >> -- >> View this message in context: >> http://www.nabble.com/Regarding-Print-page-function--tp17053929p17053929.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/Regarding-Print-page-function--tp17053929p17061495.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]
Regarding Print page function?
Hello, I have created one html link and during the onclick, I have called the javascript print function, window.print(), the entire page is printing nicely. But in all the corner sides, I am getting some improper wicket codes also printing(FYI: My IE version is 6.0). But in firefox is working fine. My print function looks, Print This code is written in wicket model window. Please send your suggestions. Thanking You. Regards, Edi -- View this message in context: http://www.nabble.com/Regarding-Print-page-function--tp17053929p17053929.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]
Dynamic Combo box with adding list
hi, i have one empty combo box. how can i add one item in combo box at run time? please let me know. THANKS -- View this message in context: http://www.nabble.com/Dynamic-Combo-box-with-adding-list-tp14250648p14250648.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: Conversion Exception and unable to set object
any reply please Edi wrote: > > I have 2 ListMultipleChoice boxes, i have selected both List items, and > click the submit button, I got > > [15:10:44] ERROR unable to set object [ReportFields > {reportFieldId='newhorizon_273',fieldName='Ship Speed', '}], model: > Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[ReportFields > {reportFieldId='null',fieldName='null', '}], called with component > [MarkupContainer [Component id = leftReportFieldCombo, page = > com.newhorizon.vrm.kernel.ui.page.MainPage, path = > 13:content:submenu_content:tabsPanel:panel:filterWindow2:content:mappedbyFilterForm:leftReportFieldCombo.ListMultipleChoice, > isVisible = true, isVersioned = false]] [wicket.RequestCycle] > > wicket.WicketRuntimeException: unable to set object [ReportFields > {reportFieldId='newhorizon_273',fieldName='Ship Speed', '}], model: > Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[ReportFields > {reportFieldId='null',fieldName='null', '}], called with component > [MarkupContainer [Component id = leftReportFieldCombo, page = > com.newhorizon.vrm.kernel.ui.page.MainPage, path = > 13:content:submenu_content:tabsPanel:panel:filterWindow2:content:mappedbyFilterForm:leftReportFieldCombo.ListMultipleChoice, > isVisible = true, isVersioned = false]] > > Caused by: wicket.util.convert.ConversionException: Can't convert value: > [ReportFields {reportFieldId='newhorizon_273',fieldName='Ship Speed', '}] > to class: class com.newhorizon.vrm.kernel.domain.ReportFields for setting > it on ReportFields {reportFieldId='null',fieldName='null', '} > > Please explain. > -- View this message in context: http://www.nabble.com/Conversion-Exception-and-unable-to-set-object-tp14227003p14248456.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]
Conversion Exception and unable to set object
I have 2 ListMultipleChoice boxes, i have selected both List items, and click the submit button, I got [15:10:44] ERROR unable to set object [ReportFields {reportFieldId='newhorizon_273',fieldName='Ship Speed', '}], model: Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[ReportFields {reportFieldId='null',fieldName='null', '}], called with component [MarkupContainer [Component id = leftReportFieldCombo, page = com.newhorizon.vrm.kernel.ui.page.MainPage, path = 13:content:submenu_content:tabsPanel:panel:filterWindow2:content:mappedbyFilterForm:leftReportFieldCombo.ListMultipleChoice, isVisible = true, isVersioned = false]] [wicket.RequestCycle] wicket.WicketRuntimeException: unable to set object [ReportFields {reportFieldId='newhorizon_273',fieldName='Ship Speed', '}], model: Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[ReportFields {reportFieldId='null',fieldName='null', '}], called with component [MarkupContainer [Component id = leftReportFieldCombo, page = com.newhorizon.vrm.kernel.ui.page.MainPage, path = 13:content:submenu_content:tabsPanel:panel:filterWindow2:content:mappedbyFilterForm:leftReportFieldCombo.ListMultipleChoice, isVisible = true, isVersioned = false]] Caused by: wicket.util.convert.ConversionException: Can't convert value: [ReportFields {reportFieldId='newhorizon_273',fieldName='Ship Speed', '}] to class: class com.newhorizon.vrm.kernel.domain.ReportFields for setting it on ReportFields {reportFieldId='null',fieldName='null', '} Please explain. -- View this message in context: http://www.nabble.com/Conversion-Exception-and-unable-to-set-object-tf4966507.html#a14227003 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: Wicket Modal Window
I am using AjaxSubmitLink saveButton = new AjaxSubmitLink("saveButton", this) { and I have set setOutputMarkupId(true); and setEscapeModelStrings(false); But I am not able to display the message. Could you tell me the reasons for not displaying the message in script? michalb_cz wrote: > > > I had similar problem. I changed Button to AjaxButton and override > onError() > and everything was alright. Note that you must call > setOutputMarkupId(true) on > components which use in another ajax-enabled component (like AjaxButton > is..). > In case below I must call feedback.setOutputMarkupId(true) where feedback > = > new Feedback(""). > > like this: > > > Button btnOk = new AjaxButton("btnOk", form) { > > @Override > protected void onSubmit(AjaxRequestTarget target, Form > form) { > // something to do, when everything is ok and > valid... > } > > @Override > protected void onError(AjaxRequestTarget target, Form > form) { > target.addComponent(feedback); // show feedback > message in feedback > component > } > }; > > This works ok. > > > Edi wrote: >> >> >> I have displayed a Wicket modal window(pop-up). >> >> it contains one text box with button. >> >> I have done date validation, if i give wrong date in text box, I have set >> the message in label. >> >> But label have not displayed. >> >> Please explain... >> > > -- View this message in context: http://www.nabble.com/Wicket-Modal-Window-tf4937030.html#a14148748 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Important concept in wicket? Please advise
Hi to all, I want to display one label when I click one button. I have wrote the code. but i am not able to display that message. my code is looking like file name : FilterPanel.java public final class ReportForm extends Form { public ReportForm(String s, final Reports model) { super(s); setOutputMarkupId(true); PropertyModel filterPanelMsgModel = new PropertyModel(this, "validationMessage"); final Label filterPanelMsgLabel = new Label("validationMsgLabel", filterPanelMsgModel); filterPanelMsgLabel.setEscapeModelStrings(false); filterPanelMsgLabel.setOutputMarkupId(true); add(filterPanelMsgLabel); //in submit button, AjaxSubmitLink saveButton = new AjaxSubmitLink("saveButton", this) { protected void onSubmit(AjaxRequestTarget target, Form form) { // To display the string in html page. setValidationMessage("Please enter valid date"); } } //getter and setter methods private String validationMessage =""; public String getValidationMessage() { return validationMessage; } public void setValidationMessage(String validationMessage) { this.validationMessage = validationMessage; } in FilterPanel.html span wicket:id="validationMsgLabel">[Message goes here]http://www.nabble.com/Important-concept-in-wicket--Please-advise-tf4942095.html#a14147573 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket Modal Window
I have displayed a Wicket modal window(pop-up). it contains one text box with button. I have done date validation, if i give wrong date in text box, I have set the message in label. But label have not displayed. Please explain... -- View this message in context: http://www.nabble.com/Wicket-Modal-Window-tf4937030.html#a14131480 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding POP-UP window
Hello, I have one combo box, I have selected one combo item, when I click the button, the selected combo item should be displayed in the pop-up window. how can i do this? please advise. -- View this message in context: http://www.nabble.com/Regarding-POP-UP-window-tf4901757.html#a14041182 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
float value problem?
Hello, I have one field name called Maximum value. It's a float value in DB. I have put 1000. This data have stored in DB. When I edit this data, It's looks like 1,000(one comma have added here). How can I avoid this problem? -- View this message in context: http://www.nabble.com/float-value-problem--tf4670119.html#a13340584 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 to validate wicket FileUploadField?
Hello, I have created one FileUploadField upload button. Support I do not select any file, It should be validated. How? I know fileuploadButtonName.setRequired(true); But I did not get any validation messages. How can I add validation message for FileUploadField button? Thanking You -- View this message in context: http://www.nabble.com/How-to-validate-wicket-FileUploadField--tf4669821.html#a13339893 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java Swing with Wicket Question
Hello, I have developed Java Swing with Wicket. In IE Browser, first loading, I am not able to view the tree view. But when I click next time, the tree is showing. Any loading problem in IE?? Please send your suggestion. But in Firefox Browser, the tree view is working Fine. Thanking You. Regards, Edi -- View this message in context: http://www.nabble.com/Java-Swing-with-Wicket-Question-tf4632971.html#a13229774 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 match File Pattern?
any body have an Idea regarding this.?? Edi wrote: > > Hello Guys, > > I have different file patterns like > > *.xls (all the xls files) > n*.xls (xls file starts with n) - all the xls files starts with "n" > > > How can we do this pattern matching in wicket? > Please let me know. > > Thanking you. > Regards, > Edi > -- View this message in context: http://www.nabble.com/How-to-match-File-Pattern--tf4561817.html#a13037186 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 to match File Pattern?
Hello Guys, I have different file patterns like *.xls (all the xls files) n*.xls (xls file starts with n) - all the xls files starts with "n" How can we do this pattern matching in wicket? Please let me know. Thanking you. Regards, Edi -- View this message in context: http://www.nabble.com/How-to-match-File-Pattern--tf4561817.html#a13018908 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: Wicket + JExcel
please explain clearly. Jan Kriesten wrote: > > >> I have one excel file. I want to display only excel cell A1 and C2 only. >> How? >> (how to restrict the unwanted excel cells) >> Please explain. > > just add a1 and c2 as labels to the output (a repeater e.g.) and throw the > rest > away?! ;-) how to access those cells should be in the jexcel api, i > suppose. > > regards, --- jan. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Wicket-%2B-JExcel-tf4514633.html#a12915788 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket + JExcel
I have one excel file. I want to display only excel cell A1 and C2 only. How? (how to restrict the unwanted excel cells) Please explain. Thanking You. Regards, Edi -- View this message in context: http://www.nabble.com/Wicket-%2B-JExcel-tf4514633.html#a12876741 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding Wicket Session
Hello, I am the newbie of wicket. I want to store some string in session. And i want to get that session and display into another page. How? in jsp, I can set session like session.setAttribute("session","session"); and easily get session.getAttribute("session"); Using the above getAttribute method. In wicket How can I do this? Please explain. -- View this message in context: http://www.nabble.com/Regarding-Wicket-Session-tf4466808.html#a12736184 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: Howto use AttributeModifier
Please send me the full class. Here it is not working. for e.g, I have a dynamic query like select * from tablename, I want to display the table values into gridview. how? thanks edi Newgro wrote: > > Hi *, > > i use wicket-1.2.6. I try to change the background-color of an gridtable > item. But i dont get it to work. Is there a howto or doc for it? javadoc > is not that detailed. > > My goal is to display a table with link as cell-content. If i click on the > link the cell should be marked selected by changing the color. > > Maybe there is a better (simplier) way? > > Thanks for your help > > Per > > Here is my code (i removed some not required details, to shorten up the > mail). > > package wicket.quickstart; > > import java.util.Date; > > import wicket.AttributeModifier; > import wicket.Component; > import wicket.PageParameters; > import wicket.behavior.SimpleAttributeModifier; > import wicket.extensions.markup.html.repeater.data.GridView; > import wicket.extensions.markup.html.repeater.data.IDataProvider; > import wicket.extensions.markup.html.repeater.data.ListDataProvider; > import wicket.extensions.markup.html.repeater.refreshing.Item; > import wicket.markup.html.basic.Label; > import wicket.markup.html.link.Link; > import wicket.model.IModel; > import wicket.model.Model; > > public class SelectDay extends QuickStartPage { > private static class HighlitableDataItem extends Item { > private boolean highlite = true; > private AttributeModifier modifier = null; > > public void toggleHighlite() { > highlite = !highlite; > } > > public HighlitableDataItem(String id, int index, IModel model) { > super(id, index, model); > modifier = new AttributeModifier("class", "selected", new Model() { > public Object getObject(Component component) { > if (highlite){ > return "selected"; > } > return "deselected"; > } > }); > add(modifier); > } > } > > public SelectDay(final PageParameters parameters) { > List list = new ArrayList(); > list.add(1); > list.add(2); > list.add(3); > IDataProvider dataProvider = new ListDataProvider(list); > GridView gridView = new GridView("rows", dataProvider) { > > protected void populateItem(final Item item) { > final Integer weekday = (Integer) item > .getModelObject(); > Link link = new Link("toggleHighlite") { > > public void onClick() { > System.out.println("onclick"); > HighlitableDataItem hitem = (HighlitableDataItem) item; > hitem.toggleHighlite(); > } > }; > link.add(new Label("linklabel", weekday)); > item.add(link); > item.add(new Label("day", "")); > } > > protected void populateEmptyItem(Item item) { > throw new UnsupportedOperationException("Unexpected"); > } > > protected Item newItem(String id, int index, IModel model) { > Item result = null; > Object o = model.getObject(this); > if (o instanceof Integer) { > result = new HighlitableDataItem(id, index, model); > result.add(new SimpleAttributeModifier("style", > "background-color:#ff;")); > } else { > result = new Item(id, index, model); > } > > return result; > } > }; > > gridView.setRows(2); > gridView.setColumns(2); > add(gridView); > } > } > > SelectDay.html > > > > Calendar > > > > > > > QuickStart > > Calendar > > > > > ># > > > > > > > > > > buma.css > > > table.calendar { > margin:auto; > align: center; > border-spacing: 3px; > } > > table.calendar td { > background: #FFBF00; > text-align: center; > color: #33; > border: 1px solid; > border-color: #33; > padding: 1px 7px; > margin: 3px; > empty-cells: hide; > } > > table.calendar .selected { > background: #FF; > text-align: center; > color: #33; > border: 1px solid; > border-color: #33; > padding: 1px 7px; > margin: 3px; > empty-cells: hide; > } > > table.calendar .deselected { > background: #FF00FF; > text-align: center; > color: #33; > border: 1px solid; > border-colo
How Dynamic ListView
How to display the dynamic Listview. for e.g, I have a dynamic query like select * from tablename, I want to display the table values into ListView. Is it possible. Please remember, table name is dynamic. I don't have setter and getter method for table name/class name. All suggestions welcome. Thank you for Reading. -- View this message in context: http://www.nabble.com/How-Dynamic-ListView-tf4422298.html#a12613695 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: Regarding Modification file Watcher
Please give me some more details. It's useful for me Jean-Baptiste Quenot-3 wrote: > > * Edi: > >> I have one server path folder. It contains .xls files. I want to >> check what are the current updated xls file. and insert that xls >> file name into db. >> >> for eg. i have a folder FOLDER1, It contains sales.xls, >> report.xls. If I change and save this file. Our program(file >> watcher) have to know immediately and insert that file and >> updated time. Is it possible in wicket? >> >> I saw wicket api, wicket.util.watch.ModificationWatcher, >> >> Is it useful to me? > > Yes it can be used for this, I used it in ReloadingClassLoader, > and Wicket uses it internally for markup files. You could also > use FAM in Commons JCI I believe. > -- > Jean-Baptiste Quenot > aka John Banana Qwerty > http://caraldi.com/jbq/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Regarding-Modification-file-Watcher-tf4375812.html#a12474758 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding Modification file Watcher
Hello, I have one server path folder. It contains .xls files. I want to check what are the current updated xls file. and insert that xls file name into db. for eg. i have a folder FOLDER1, It contains sales.xls, report.xls. If I change and save this file. Our program(file watcher) have to know immediately and insert that file and updated time. Is it possible in wicket? I saw wicket api, wicket.util.watch.ModificationWatcher, Is it useful to me? Thanking You for your Suggestions. Regards, Edi -- View this message in context: http://www.nabble.com/Regarding-Modification-file-Watcher-tf4375812.html#a12472695 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 get path name?
Thanks for your reply, How to find the base path of the project For e.g my project name is TMS. this projected stored in c:/program files/TMS. How to find the above path using java program. Thanking You. Xavier Hanin wrote: > > Oops, sorry, WEB-INF is usually not accessible in your application > classpath, but through the ServletContext. > > So you can access it with: > ((WebApplication)WebApplication.get()).getServletContext().getResourceAsStream("/WEB-INF/conf/database.properties") > > Xavier > > On 9/1/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: >> >> This is not really related to wicket, since your properties file is >> available in your classpath, you should be able to get it as a resource. >> Something like: >> Properties props=new Properties () ; >> props.load ( >> getClass().getResourceAsStream("/WEB-INF/conf/database.properties") ) ; >> >> If you're in a static method of class initializer, you'll need to refer >> to >> the class using MyClass.class before the getResourceAsStream(). Note that >> you can actually use any Class object, since the path to the resource is >> absolute (starting with a slash). >> >> HTH, >> >> Xavier >> On 9/1/07, Edi <[EMAIL PROTECTED]> wrote: >> > >> > >> > Hello, >> > >> > I have one sample project named as TMS, In my "WEB-INF/conf" foler >> > contains >> > database.properties file. It contains >> > >> > e.g >> > hostname = some host name >> > url= some url >> > >> > This project contains only one database.properties file. >> > In java file, I want to get hostname and url from that property file. >> > >> > e.g. >> > >> > Properties props=new Properties () ; >> > props.load ( new FileInputStream ( new File >> > ("E:\\Workspace\\TMS\\WebRoot\\WEB-INF\\conf\\database.properties"))) ; >> > >> > String host= "hostname"; >> > String val = props.getProperty ("Host Name Is :"+ host ) ; >> > >> > Using the above code, I have got both hostname and url. >> > >> > But my problem is, How to get the current project >> database.propertiesfile >> > path. >> > >> > Because in the above path name is hard coded. >> > >> > So How we get current project database.properties file path? >> > >> > Thanking you. >> > >> > >> > >> > Thank You >> > Edward >> > -- >> > View this message in context: >> > http://www.nabble.com/How-to-get-path-name--tf4363832.html#a12438194 >> > Sent from the Wicket - User mailing list archive at Nabble.com. >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> >> -- >> Xavier Hanin - Independent Java Consultant >> http://xhab.blogspot.com/ >> http://incubator.apache.org/ivy/ >> http://www.xoocode.org/ > > > > > -- > Xavier Hanin - Independent Java Consultant > http://xhab.blogspot.com/ > http://incubator.apache.org/ivy/ > http://www.xoocode.org/ > > -- View this message in context: http://www.nabble.com/How-to-get-path-name--tf4363832.html#a12439360 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 to get path name?
Hello, I have one sample project named as TMS, In my "WEB-INF/conf" foler contains database.properties file. It contains e.g hostname = some host name url= some url This project contains only one database.properties file. In java file, I want to get hostname and url from that property file. e.g. Properties props=new Properties () ; props.load ( new FileInputStream ( new File ("E:\\Workspace\\TMS\\WebRoot\\WEB-INF\\conf\\database.properties"))) ; String host= "hostname"; String val = props.getProperty ("Host Name Is :"+ host ) ; Using the above code, I have got both hostname and url. But my problem is, How to get the current project database.properties file path. Because in the above path name is hard coded. So How we get current project database.properties file path? Thanking you. Thank You Edward -- View this message in context: http://www.nabble.com/How-to-get-path-name--tf4363832.html#a12438194 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: Wicket with Excel
I have a grid form Form grid = new Form("gridform") add grid.add(createLoop()); actually createLoop is a ListView It looks like private ListView createLoop() {} createLoop returns the cell row value and column values. I have put one method in after createLoop() ListView, But that method have called first. And 2nd createLoop have executed. My question is 1. I want to call one function in before/after createLoop(). How? 2. What is grid.add(createLoop()); Edi wrote: > > I have one doubt in wicket with excel code. > > you have createLoop(). right? > > I want to call one function in before/after createLoop(). How? > > "grid.add(createLoop());" > > And how create Loop works. > > Please explain and let me know. > > -- View this message in context: http://www.nabble.com/Wicket-with-Excel-tf4289686.html#a12213463 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket with Excel
I have one doubt in wicket with excel code. you have createLoop(). right? I want to call one function in before/after createLoop(). How? "grid.add(createLoop());" And how create Loop works. Please explain and let me know. -- View this message in context: http://www.nabble.com/Wicket-with-Excel-tf4289686.html#a12211891 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 Hide/View Fields at run time combo selection
I am using wicket1.2.3. I think this method is not available in that API Gerolf Seitz wrote: > > if you want to initially hide components and show them later via ajax, > you have to call .setOutputMarkupPlaceHolderTrag(true) for the component. > > gerolf > > On 8/16/07, Edi <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I have combo box with 3 items, String, Number, Date >> >> If I select String, Maximum character label with one textbox should >> display. >> >> some code : >> >> Initially I have hide Maximum character label and textbox using >> setVisible(false); >> >> In AjaxFormComponentUpdatingBehavior("onchange"), protected void >> onUpdate(AjaxRequestTarget target) >> >> inside this method, >> I wrote: >> >> maxLength.setVisible(true); >> target.addComponent(maxLength); >> setOutputMarkupId(true); >> >> But in onchange combo, that text box not displaying When I click the >> same page tabs, that textbox is displaying. >> >> Please send your suggestions. >> >> Thanking You, >> Regards >> Edi >> -- >> View this message in context: >> http://www.nabble.com/How-to-Hide-View-Fields-at-run-time-combo-selection-tf4278782.html#a12178803 >> 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/How-to-Hide-View-Fields-at-run-time-combo-selection-tf4278782.html#a12179458 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 to Hide/View Fields at run time combo selection
Hi, I have combo box with 3 items, String, Number, Date If I select String, Maximum character label with one textbox should display. some code : Initially I have hide Maximum character label and textbox using setVisible(false); In AjaxFormComponentUpdatingBehavior("onchange"), protected void onUpdate(AjaxRequestTarget target) inside this method, I wrote: maxLength.setVisible(true); target.addComponent(maxLength); setOutputMarkupId(true); But in onchange combo, that text box not displaying When I click the same page tabs, that textbox is displaying. Please send your suggestions. Thanking You, Regards Edi -- View this message in context: http://www.nabble.com/How-to-Hide-View-Fields-at-run-time-combo-selection-tf4278782.html#a12178803 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 get the html combo value in wicket?
My Question is how to get the html combo value using wicket methods? igor.vaynberg wrote: > > the final value is put into the model > > -igor > > > On 8/15/07, Edi <[EMAIL PROTECTED]> wrote: >> >> >> any reply.. >> >> >> >> Edi wrote: >> > >> > >> > Hi, >> > >> > I have ordinary html combo, >> > >> > >> > One >> > Two >> > >> > >> > How can I get the html combo value using wicket. >> > >> > if ordinary html text box means I can >> > get getRequest().getParameter("txtbox"); >> > >> > But In combo? >> > Please let me know. >> > >> > Thanking You >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12175034 >> 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/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12177702 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 get the html combo value in wicket?
any reply.. Edi wrote: > > > Hi, > > I have ordinary html combo, > > > One > Two > > > How can I get the html combo value using wicket. > > if ordinary html text box means I can > get getRequest().getParameter("txtbox"); > > But In combo? > Please let me know. > > Thanking You > > > -- View this message in context: http://www.nabble.com/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12175034 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 to get the html combo value in wicket?
Hi, I have ordinary html combo, One Two How can I get the html combo value using wicket. if ordinary html text box means I can get getRequest().getParameter("txtbox"); But In combo? Please let me know. Thanking You -- View this message in context: http://www.nabble.com/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12166949 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: Import Validation using wicket
I saw that example, But I am not able to understand fully. Pls explain. Crash_neo wrote: > > Have you checked out the examples? > http://www.wicket-library.com/wicket-examples/ > all kinds of validators are mentioned here > > Thijs > Edi wrote: >> Hello, >> I am the newbie. >> I have one field. how can i notified whether the entered text is wrong. >> for. eg. i have int type texbox. But i entered only string. >> >> in this situation, i have to display "the entered value should be an >> integer." >> >> how to identify range between numbers. >> >> Thanks. >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Import-Validation-using-wicket-tf4259777.html#a12138772 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Import Validation using wicket
Hello, I am the newbie. I have one field. how can i notified whether the entered text is wrong. for. eg. i have int type texbox. But i entered only string. in this situation, i have to display "the entered value should be an integer." how to identify range between numbers. Thanks. -- View this message in context: http://www.nabble.com/Import-Validation-using-wicket-tf4259777.html#a12122407 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 to select server path using wicket?
Hi, In html, using we can select the file name path for e.g c:/test/test.doc. How can I select only folder name using html/wicket/any. Thanking You. -- View this message in context: http://www.nabble.com/How-to-select-server-path-using-wicket--tf4241870.html#a12070118 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compare JSP Vs Wicket?
Please send me all your suggestions. including the below question In jsp, I can pass the values using query string for eg. using request.getParameter("userName"); I can get the userName. using request.getParameter("password"); I can get the password. In wicket, how can we do that? And send all notes regarding "Compare JSP Vs Wicket" Thanking You. -- View this message in context: http://www.nabble.com/Compare-JSP-Vs-Wicket--tf4241848.html#a12070060 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]