RE: Simple Ajax Form
I had some errors with the example, that's why I was hoping to get code to submit data from two fields using the ajax form. Basically I just want the form part of the page to update without reloading the whole page. Thanks -- View this message in context: http://www.nabble.com/Simple-Ajax-Form-tp22337895p22338749.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
Simple Ajax Form
Hi, I would really appreciate it if someone could post code for a simple ajax form. I just want to submit some data in the form without the whole page reloading, just the form should reload after the submit. Say I have 3 textfields. Firstname, lastname and fullname. I enter the first two fields and when I click submit, the third field just concatenates the first two fields and displays. How can I do that with ajax? Thank you! -- View this message in context: http://www.nabble.com/Simple-Ajax-Form-tp22337895p22337895.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: Flash Chart Display problem
I found the problem. I had to remove the mountBookmarkablePages() for the page and the chart worked fine! -- View this message in context: http://www.nabble.com/Flash-Chart-Display-problem-tp22121552p22164078.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: Flash Chart Display problem
Actually my code is almost the same as that. I have SWFObject that extends AbstractBehavior and implements IHeaderContributor. Since my chart is getting it's settings from an xml file and data from a text file, i added those to the getVariables(). The chart won't render on any of the pages of website I want to add it to(unless I click a submit button). I started another project just to test the chart. It just has the HomePage and SWFObject and the files needed for the chart, and it displays fine when the page loads. Not sure what I should be looking for to rectify this. Thanks Maarten Bosteels wrote: > > Have you tried this ? > http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html > > Maarten > > On Fri, Feb 20, 2009 at 5:42 PM, newbieabc wrote: > >> >> Hi, >> I am trying to add a flash chart into an existing web page with a form in >> it, but for some reason it won't display when the page loads, instead it >> displays when the submit button of the form is clicked. >> >> I'm not sure why that happens, no errors occur, but every time the page >> loads, an empty white space shows below the form, and once the submit >> button >> is clicked it the chart replaces it. >> >> I've used SWFObject with help from the wiki on adding Javascript to >> wicket. >> >> Any suggestions would be great. >> >> Thanks >> >> -- >> View this message in context: >> http://www.nabble.com/Flash-Chart-Display-problem-tp22121552p22121552.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 >> >> > > -- View this message in context: http://www.nabble.com/Flash-Chart-Display-problem-tp22121552p22136207.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
Flash Chart Display problem
Hi, I am trying to add a flash chart into an existing web page with a form in it, but for some reason it won't display when the page loads, instead it displays when the submit button of the form is clicked. I'm not sure why that happens, no errors occur, but every time the page loads, an empty white space shows below the form, and once the submit button is clicked it the chart replaces it. I've used SWFObject with help from the wiki on adding Javascript to wicket. Any suggestions would be great. Thanks -- View this message in context: http://www.nabble.com/Flash-Chart-Display-problem-tp22121552p22121552.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: Graphs, Charts and Wicket
If you don't mind, could you post your code to display the chart you used? I was interested the gradient fill chart they offered, but am really new to wicket and didn't understand how to add it in wicket. Thanks! Jurek Piasek wrote: > > I have been using Amcharts > > http://www.amcharts.com/ > > together with SWFObject > http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html > > Regards, > Jurek > > > On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel) > wrote: > >> Hi all, >> >> >> >> I'd like to put some simple bar graphs, pie graphs and possible line >> graphs into my wicket pages. >> >> >> >> Have any of you used a good framework that you can recommend, that also >> plays nicely with Wicket? >> >> >> >> Thanks! >> >> >> >> -Daniel. >> >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21727142.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: DownloadLink, BIRT report
a pagina tal como sale desde el > diseƱador BIRT > opc.setOption(PDFRenderOption.PAGEBREAK_PAGINATION_ONLY, > autoPageBreaking); > opc.setOption(PDFRenderOption.FIT_TO_PAGE, > autoPageBreaking); > > opcRend = opc; > } else if ("excel".equals(fmt)){ > // TODO: find if there is > opcRend = new RenderOption(); > opcRend.setOutputFormat("xls"); > } else { > HTMLRenderOption opc = new HTMLRenderOption(); > opc.setHtmlTitle(design.getReportName()); > opc.setBaseImageURL("/recursos/img/x.birt-img?imagen="); > opc.setImageDirectory(tmpDir.getAbsolutePath()); > opc.setImageHandler(new HTMLServerImageHandler()); > opcRend = opc; > } > // hanlde report paramteters. > if(parametros_Reporte != null) { > Iterator it = > (Iterator)parametros_Reporte.keys(); > while(it.hasNext()) { > String param = it.next(); > try { > // first try to handle the parameter as > multivalued. > JSONArray array = > parametros_Reporte.getJSONArray(param); > Object[] values = new > Object[]{array.length()}; > for(int i=0; i < array.length(); i++) { > try { > values[i] = > array.get(i); > } catch (Exception e) { > values[i] = null; > } > } > renderTask.setParameterValue(param, > values); > } catch (Exception e) { > // if parameter is not multi-valued > then treat it as single-valued. > String value = > parametros_Reporte.getString(param); > renderTask.setParameterValue(param, > value); > } > } > } > opcRend.setOutputStream(out); > renderTask.setLocale(locale); > renderTask.setRenderOption(opcRend); > renderTask.run(); > } > . > > } > > This class initializes a singleton BIRT runtime and the > generateBirtReport(...) method can be used to read the report design from > a database and generate the corresponding report (PDF, excel, HTML). If > you filter out the logic that is specific to my use case you can easily > build your own machinery for building reports based on code given above. > > As for the generation of the download link there should be plenty of > examples and/or related threads in this list... > > Best, > > Ernesto > > > > > > > > newbieabc wrote: >> >> The generation of the excel report. >> I am really new to BIRT and wicket.. >> I've created the BIRT report (report.rptdesign)(in eclipse) but need it >> to be output as xls. >> I'd really appreciate some help. >> Thank you >> >> >> reiern70 wrote: >>> >>> Sure you can... Which part is giving you problems? The generation of the >>> excel report with BIRT? Or the creation of the link? >>> >>> Best, >>> >>> Ernesto >>> >>> newbieabc wrote: >>>> Hello.. >>>> How can create a download link on a webpage, that converts a BIRT >>>> report to >>>> excel format and downloads to client machine? >>>> >>>> Thank you. >>>> >>> >>> >>> - >>> 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/DownloadLink%2C-BIRT-report-tp21218997p21293883.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: DownloadLink, BIRT report
The generation of the excel report. I am really new to BIRT and wicket.. I've created the BIRT report (report.rptdesign)(in eclipse) but need it to be output as xls. I'd really appreciate some help. Thank you reiern70 wrote: > > Sure you can... Which part is giving you problems? The generation of the > excel report with BIRT? Or the creation of the link? > > Best, > > Ernesto > > newbieabc wrote: >> Hello.. >> How can create a download link on a webpage, that converts a BIRT report >> to >> excel format and downloads to client machine? >> >> Thank you. >> > > > - > 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/DownloadLink%2C-BIRT-report-tp21218997p21232850.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
DownloadLink, BIRT report
Hello.. How can create a download link on a webpage, that converts a BIRT report to excel format and downloads to client machine? Thank you. -- View this message in context: http://www.nabble.com/DownloadLink%2C-BIRT-report-tp21218997p21218997.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
Multilingual website
Could someone direct me in how to go about making an exisiting website a multilingual one in wicket framework? General info, articles you can recommend would be great. I'm in the starting phase so I don't have any specific questions yet. Thanks -- View this message in context: http://www.nabble.com/Multilingual-website-tp20067483p20067483.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 "Contact Us" Page
Thanks! Worked great :-) Timo Rantalaiho wrote: > > On Tue, 07 Oct 2008, newbieabc wrote: >> I have another related question... > > Often it's a good idea to start a new thread with a > descriptive subject for new questions. > >> I want to change one of the Contact page form component's visibility >> property based in a parameter I set in another page. >> >> Is there a page onLoad function or something where I can check the >> parameter >> value and then change visibility of the component? If yes.. then where is >> it >> called? Or how? When ever I try to check the parameter value within the >> page >> constructor, I get a NullPointerException, but when the parameter is used >> for other things , like from a method called within the the Form >> onSubmit() >> there doesn't seem to be any problems. > > Constructor is only called on construction, not rendering. > > You have at least a couple of options; > > FormComponent myComponentWithConditionalVisibility = new > TextField("foo") { > @Override > public boolean isVisible() { > return fooFieldShouldBeBVisible(); > } > } > > or > > FormComponent myComponentWithConditionalVisibility = new > TextField("foo") { > @Override > public void onBeforeRender() { > setVisible(fooFieldShouldBeVisible()); > } > } > > > Best wishes, > Timo > > -- > Timo Rantalaiho > Reaktor Innovations Oyhttp://www.ri.fi/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Create-%22Contact-Us%22-Page-tp19538477p19883975.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 "Contact Us" Page
I put in a Properties File and that took care of everything. Thanks all... I have another related question... I want to change one of the Contact page form component's visibility property based in a parameter I set in another page. Is there a page onLoad function or something where I can check the parameter value and then change visibility of the component? If yes.. then where is it called? Or how? When ever I try to check the parameter value within the page constructor, I get a NullPointerException, but when the parameter is used for other things , like from a method called within the the Form onSubmit() there doesn't seem to be any problems. Thanks Nino.Martinez wrote: > > emailvalidator + required = no exceptions.. :) > > newbieabc wrote: >> Thank you. I was able to successfully use JavaMail API for the Contact >> page. >> I have another question related to the page, I'm not sure if I should ask >> it >> in this thread or not... >> >> I had done the rough page , and now that it works, started adding the >> validations, to make sure required data in entered. >> >> Some how the setRequired and EmailAddressValidators keep throwing errors >> if >> I leave those fields blank. >> I've put in a feedback panel, but instead of just showing a feedback >> message, the page shows the exceptionsI'm not sure why. >> If I don't use validators, the page runs fine, whether I enter data or >> not... >> Any ideas? >> >> Thanks >> >> >> jwcarman wrote: >> >>> Take a look at form processing and perhaps the JavaMail API (or Apache >>> Commons Email for a simpler API). >>> >>> On Wed, Sep 17, 2008 at 2:35 PM, newbieabc <[EMAIL PROTECTED]> wrote: >>> >>>> I'd like to create a "Contact Us" (by email) page, that lets users send >>>> their >>>> inquiries directly from the web page to an email address, without using >>>> outlook. >>>> Could someone give me some direction on how to go about doing this in >>>> wicket? >>>> >>>> Thank you. >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Create-%22Contact-Us%22-Page-tp19538477p19538477.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] >>> >>> >>> >>> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Create-%22Contact-Us%22-Page-tp19538477p19858740.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 "Contact Us" Page
Thank you. I was able to successfully use JavaMail API for the Contact page. I have another question related to the page, I'm not sure if I should ask it in this thread or not... I had done the rough page , and now that it works, started adding the validations, to make sure required data in entered. Some how the setRequired and EmailAddressValidators keep throwing errors if I leave those fields blank. I've put in a feedback panel, but instead of just showing a feedback message, the page shows the exceptionsI'm not sure why. If I don't use validators, the page runs fine, whether I enter data or not... Any ideas? Thanks jwcarman wrote: > > Take a look at form processing and perhaps the JavaMail API (or Apache > Commons Email for a simpler API). > > On Wed, Sep 17, 2008 at 2:35 PM, newbieabc <[EMAIL PROTECTED]> wrote: >> >> I'd like to create a "Contact Us" (by email) page, that lets users send >> their >> inquiries directly from the web page to an email address, without using >> outlook. >> Could someone give me some direction on how to go about doing this in >> wicket? >> >> Thank you. >> -- >> View this message in context: >> http://www.nabble.com/Create-%22Contact-Us%22-Page-tp19538477p19538477.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/Create-%22Contact-Us%22-Page-tp19538477p19799961.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 "Contact Us" Page
I'd like to create a "Contact Us" (by email) page, that lets users send their inquiries directly from the web page to an email address, without using outlook. Could someone give me some direction on how to go about doing this in wicket? Thank you. -- View this message in context: http://www.nabble.com/Create-%22Contact-Us%22-Page-tp19538477p19538477.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: check if FeedbackPanel has error messages
Thank you both. esp Igor. I tried putting some code clearing commands (clearInput()) into the onError() method and saw my textfields finally do something. I still have to find out what functions can be used to only clear the output fields and not all the form fields. THANK YOU. igor.vaynberg wrote: > > you can put the code to clear in form.onerror() > > -igor > > On Thu, Sep 11, 2008 at 2:05 PM, newbieabc <[EMAIL PROTECTED]> wrote: >> >> Hi, I'm new to wicket framework. >> I have a form that performs a mathematical calculation with the user >> input >> and then outputs the result. >> I have added a couple of basic validations to the input fields, like >> numbervalidator, and required field etc. >> And also have a feedbackpanel to display the error messages, if >> validation >> fails. >> >> I would like to reset some fields if the feedbackpanel has messages, but >> can't find a way to do this. >> I've tried using the "anyMessage()" method, but it hasn't worked. >> >> I guess I'm not sure where to place this method either, since the form >> onSubmit won't get called if the validation fails. >> >> Any help would be great. >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/check-if-FeedbackPanel-has-error-messages-tp19444744p19444744.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/check-if-FeedbackPanel-has-error-messages-tp19444744p19512940.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]
check if FeedbackPanel has error messages
Hi, I'm new to wicket framework. I have a form that performs a mathematical calculation with the user input and then outputs the result. I have added a couple of basic validations to the input fields, like numbervalidator, and required field etc. And also have a feedbackpanel to display the error messages, if validation fails. I would like to reset some fields if the feedbackpanel has messages, but can't find a way to do this. I've tried using the "anyMessage()" method, but it hasn't worked. I guess I'm not sure where to place this method either, since the form onSubmit won't get called if the validation fails. Any help would be great. -- View this message in context: http://www.nabble.com/check-if-FeedbackPanel-has-error-messages-tp19444744p19444744.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]