Re: customize the validation message for Form setMaxSize()

2018-10-16 Thread extraquoo
yes ,i find the key. thanks -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

customize the validation message for Form setMaxSize()

2018-10-03 Thread extraquoo
Hi , i am using setMaxSize() to limit the file upload size. Looks like the validation message is default to "Upload must be less than " Is there any way to customize this validation message ? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: spring controller redirect ModelAndView to a wicket panel class

2018-09-11 Thread extraquoo
thank you for your advice. I will let our architect team investigate such an integration problem. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail:

Re: spring controller redirect ModelAndView to a wicket panel class

2018-09-10 Thread extraquoo
the purpose is the clients want to reuse an existing wicket html page for some enhancement in a spring mvc flow of business. I am trying three ways "redirect:../[url]" , "redirect:[url]" and "/[url]" .The first two just kicks me out and return to the application home page which is coded by

Re: spring controller redirect ModelAndView to a wicket panel class

2018-09-07 Thread extraquoo
Thanks for your answer. The panel class has its HTML file and it is mounting in the startup initialization mountBookmarkablePage("/CaseVerificationUpload.html",CaseVerificationUploadsPage.class); when I am using return new ModelAndView("redirect:../CaseVerificationUpload.html") then the

Re: spring controller redirect ModelAndView to a wicket panel class

2018-09-07 Thread extraquoo
just correct that the panel class is CaseVerificationUploadsPanel -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

spring controller redirect ModelAndView to a wicket panel class

2018-09-06 Thread extraquoo
Hi my project is implemented by two frameworks: spring web flow and wicket. Now in one of the spring controller, I want to the spring ModelAndView redirects to an existing wicket panel class. the code of spring controller is below : protected ModelAndView onSubmit(HttpServletRequest request,

how to restrict the feedback message to display only one time for FormComponentPanel

2018-02-07 Thread extraquoo
our app has a phone number field like ###-###- x## on the page We define a phone number class as FormComponentPanel in our app like below public class PhoneFormComponent extends FormComponentPanel {

Re: the choices is key instead of value when using DropDownChoice component

2018-01-29 Thread extraquoo
Hi ,just ignore my last reply. I should not override localizeDisplayValues to return true so as not to execute display = getLocalizer().getString(displayValue, this, displayValue);. your code is really helpful. Thank you very much indeed. -- Sent from:

Re: the choices is key instead of value when using DropDownChoice component

2018-01-29 Thread extraquoo
yes, it is hard to explain the issue. the situation is if I put the key in the choices, then the i18n works fine for the front page ( when I click the locale change button ,the option got translated correctly), however ,since the key is in the choices, in pdf, it prints the verbiage key

Re: the choices is key instead of value when using DropDownChoice component

2018-01-29 Thread extraquoo
thanks for replying. Looks like it still put the value in the choices object. Maybe I am describing the issue incorrectly. so if put value in the choices object , construct the DropDownChoice and override localizeDisplayValues DropDownChoice selector = new DropDownChoice(fieldName, choices){

Re: the choices is key instead of value when using DropDownChoice component

2018-01-25 Thread extraquoo
Hi, I try to use GetString / StringResourceModel and put the key selectionDescription.add(new StringResourceModel("forms.cf37.question8.oneTime",this,parent).getObject()); or selectionDescription.add(getString("forms.cf37.question8.oneTime")); Both of them will return the values from xml however

the choices is key instead of value when using DropDownChoice component

2018-01-24 Thread extraquoo
Hi I am adding a FormComponent DropDownChoice to display a dropdown list on the page like below To support the i18n, I add the key to a list of choices and override the localizeDisplayValues, the code is below private

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-08 Thread extraquoo
I add a converter class and it works without impacting the message resources. Thank you so much. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail:

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-05 Thread extraquoo
why using getDateFormat() for the decimal/currency converter ? can you explain a little bit detailed? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail:

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-05 Thread extraquoo
I understand. could you please show me any sample of such this custom converter? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

wicket switch locale to Spanish but dot is being ignored

2018-01-04 Thread extraquoo
Hi , my application supports the locale switch and when I am switching to Spanish locale, the bigDecimal type textfield cannot be recognized the dot (eg. 555.555 is read as 55 ). The textfield code is: final FormBorder q4Border = new FormBorder(

Re: How to add image in the panel class

2018-01-04 Thread extraquoo
I am adding the img tag in the i18n xml with key-value by using

How to add image in the panel class

2018-01-03 Thread extraquoo
I want to add an image icon inline the title of the panel like below the panel HTML is using the tag to render the panel class HTML : ..(verbiages)

Re: i18n of ButtonElement for YES/NO button text

2017-12-27 Thread extraquoo
Thank you for your answer. I am using StringResourceModel and it works perfectly for i18n dynamically. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail:

i18n of ButtonElement for YES/NO button text

2017-12-18 Thread extraquoo
Hi, I am facing an i18n for a yes/no radio button listener in a Border class when doing locale switch. here is some piece of orginal codes // Lets other elements register yes/no selections listeners listeners = new ArrayList(); // The button elements for yes &

Re: how to get parent listView item index in the child listview populateItem method

2017-08-07 Thread extraquoo
i am not aware of it. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-parent-listView-item-index-in-the-child-listview-populateItem-method-tp4678401p4678478.html Sent from the Users forum mailing list archive at Nabble.com.

how to get parent listView item index in the child listview populateItem method

2017-08-02 Thread extraquoo
Hi , I try to use setOutputMarkupId and setMarkupId to generate the id for the component radio button the hierarchy is List incomeDetail has a child List incomeA. I use PropertyListView to loop List incomeDetail and in populateItem method I use another PropertyListView to loop List IncomeA,

Re: PropertyListView issue of adding multiple instance to every child list.

2017-08-02 Thread extraquoo
and looks like it will add to the second list in the object every time the instance in first list is added to the second list mulitple times the

PropertyListView issue of adding multiple instance to every child list.

2017-08-02 Thread extraquoo
Hi ,I am creating AjaxFallbackButton to dynamically add new instance to collect data in PropertyListView. however ,after it is saved in the xml , the new instance is add to every child list. screenshot like this this is the table of the PropertyListView under income 1

how to map list model within another list model by propertyModel

2017-07-29 Thread extraquoo
Hi , I have a xml class MC216 which has below object @XmlElement(required = true) protected IncomeInformation section3; and IncomeInformation class have below list object protected List incomes; and this IncomeDetail class has below list object protected List incomeEstimate; Then, how to

PropertyListView does not render the value from the html page to xml property

2017-07-27 Thread extraquoo
Hi I am creating a PropertyListView to dynamically populate rows to collect data of contact information. I am able to map the wicket id between html and panel class. However, when I click save button , the value does not persist in the corresponding object. The code is below *main class code:*

Re: how to implement resource bundle to get text from the xml file

2017-07-26 Thread extraquoo
the current project use the i18n xml like below -- View this message in context:

how to implement resource bundle to get text from the xml file

2017-07-24 Thread extraquoo
Hi , I want to get the text from the corresponding xml . how to get the text from a xml resource file and assign to String variable "message" ? my code is below add(new AbstractBehavior() { private static final long serialVersionUID = 1L;

Re: how to hide the AjaxFallbackButton when the number of Models is larger than a specific integer

2017-07-24 Thread extraquoo
the onConfigure is working fine now . previous code overrides the onBeforeRender method and I am not aware of that. for the wicket lifecyle , onConfigure is executed before onBeforeRender method. Thank you for your help. -- View this message in context:

Re: how to hide the AjaxFallbackButton when the number of Models is larger than a specific integer

2017-07-24 Thread extraquoo
by the way, the project uses 1.4.1 wicket version~~~ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-hide-the-AjaxFallbackButton-when-the-number-of-Models-is-larger-than-a-specific-integer-tp4678266p4678275.html Sent from the Users forum mailing list archive at

Re: how to hide the AjaxFallbackButton when the number of Models is larger than a specific integer

2017-07-24 Thread extraquoo
Hi , Thanks for you reply. I remove my method hideAddButton() from phoneListView then I create a new ajaxcallbackbutton method to carry your code like below public Button getLimitedPartialRefreshAddButton(String id, final int limited) { return new AjaxFallbackButton(id,

how to hide the AjaxFallbackButton when the number of Models is larger than a specific integer

2017-07-21 Thread extraquoo
here i have an AjaxFallbackButton to dynamically add new models of phone information My issue is that I want to hide this button if the models are added three times ( three phone number panels) here is my code. final PropertyModel> contactPhoneList = new

Re: how to hide the AjaxFallbackButton when the number of Models is larger than a specific integer

2017-07-21 Thread extraquoo
here is the screenshot of the page -- View this message in context: