Password Field Question

2009-09-10 Thread jpalmer1026
I have the below snippet of code used to allow the user to change their password by typing their old password and then typing in their new password twice. Not sure why but I'm getting the following exception when the code is executed:WicketMessage: No get method defined for class: class

Re: Password Field Question

2009-09-10 Thread jpalmer1026
Thanks. Worked great! Pedro Santos-6 wrote: PasswordTextField passwordField1 = new PasswordTextField(password); PasswordTextField passwordField2 = new PasswordTextField(controlPassword); on these lines you are creating components with null model, and on wicket models can be inherited

CheckBoxMultipleChoice Component

2009-09-10 Thread jpalmer1026
Wondering if there is a way in Wicket to conditionally disable a particular element from a list of choices in a CheckboxMultipleChoice component? Anyone know if this is possible?

Setting th

2009-09-04 Thread jpalmer1026
I have a form with a RadioChoice component. I'd like to use the value selected in that component ("yes" or "no") to set the isRequired property of another component. Wondering what method I need to call on the RadioChoice component that will allow me to get the value that the user selected?

Setting Datasource at Runtime

2009-09-03 Thread jpalmer1026
I'm using Wicket to develop an app and have stumbled upon a roadblock. I'd like the user to be able to select their desired datasource at runtime, as opposed to hardcoding the datasource in the persistence.xml file (we're using Spring and JPA). I feel like this should be reasonably simple to

Formatting TextField Value

2009-08-26 Thread jpalmer1026
I'd like convert TextField values to display with 2 decimal places but for some reason they are getting displayed without any decimal places. The model that is being used is returning values such as 0.00, but they are getting displayed like 0 in the TextField. Any ideas?

ListView Validation

2009-08-17 Thread jpalmer1026
I'm trying to display a validation message for an item contained in a list view but the validation message isn't getting displayed. Is there something special that needs to be done to display validation messages for list view items?

Dynamically set isRequired() field on a componentn

2009-07-24 Thread jpalmer1026
I'm trying to dynamically set the isRequired() field for a component, but not sure how to do so. For example, in the following example, I'd like to set the streetAddress component to be required if the pin1 field has data entered for it. My first attempt (which doesn't work since it's binding

Error Message Not Getting Removed

2009-07-20 Thread jpalmer1026
I have a form that's using an AjaxSubmitLink to show / hide a panel. I have overriden the onError() method to add a feedbackPanel to the page to display any error messages that may exist. The problem I'm having is the error messages are remaining on the screen even after the problem is fixed.

Re: Error Message Not Getting Removed

2009-07-20 Thread jpalmer1026
Whoops. My bad. Thanks! Mathias Nilsson wrote: I don't see that you have added the feedback in the onSubmit method You should do @Override onsubmit( ){ target.addComponent( feedback ); } -- View this message in context:

PageableListView Question

2009-07-15 Thread jpalmer1026
I'm trying to populate a PageableListView based on the value selected from a DropDownChoice, but am not sure how to do this. I feel like I'm pretty close, so I've attached what I've done so far with the hopes that someone might be able to lend a hand. My code is as follows:public class

Re: Converter Problem

2009-07-08 Thread jpalmer1026
The DateTime I was referring to is in the org.apache.wicket.datetime.DateConverter class, so I have no way of modifying it. Any other ideas? Stijn Maller wrote: Looking at your datepattern you should be using LocalDate instead of DateTime, as you don't have a time or a timezone anyway.

Re: Converter Problem

2009-07-08 Thread jpalmer1026
The DateTime I was referring to is in the org.apache.wicket.datetime.DateConverter class, so I have no way of modifying it. Any other ideas? Stijn Maller wrote: Looking at your datepattern you should be using LocalDate instead of DateTime, as you don't have a time or a timezone anyway.

Re: Converter Problem

2009-07-08 Thread jpalmer1026
, 8); c.set(Calendar.HOUR, 0); return c.getTime(); } jpalmer1026 wrote: The DateTime I was referring to is in the org.apache.wicket.datetime.DateConverter class, so I have no way of modifying it. Any other ideas? Stijn Maller wrote: Looking at your datepattern

Converter Problem

2009-07-07 Thread jpalmer1026
I am having issues with a custom component that I created. The component's function is to ensure that the date entered adheres to the format "^(\\d{2})/(\\d{2})/(\\d{4})$" The problem, though, is when the form that contains the component is submitted, the date is converted to the previous

Re: Converter Problem

2009-07-07 Thread jpalmer1026
I was thinking the same thing but, as you pointed out, I explicitly set it to false, so I'm not sure why it's behaving this way. I tried setting it to true just as an experiment but the results were the same. Has anyone else seen this? Stefan Malmesjö wrote: Could this have anything to do

Re: Converter Problem

2009-07-07 Thread jpalmer1026
(); } } jpalmer1026 wrote: I was thinking the same thing but, as you pointed out, I explicitly set it to false, so I'm not sure why it's behaving this way. I tried setting it to true just as an experiment but the results were the same. Has anyone else seen this? Stefan Malmesjö wrote: Could this have

Model Question

2009-07-06 Thread jpalmer1026
I have the following code to allow the user to select the date that a report is to be generated for. For some reason, though, whatever date is selected from the textfield, the previous date is being used. For example, if the user inputs 07/06/2009 into the dateTextField, 07/05/2009 is being

Hibernate LazyInitializationException

2009-06-25 Thread jpalmer1026
I am getting an "org.hibernate.LazyInitializationException - could not initialize proxy - no Session" exception when I try to load an object stored in session. I understand but I am not certain about how to fix it with Wicket. In reviewing the Wicket In Action book, it looks like the way to

Re: Hibernate LazyInitializationException

2009-06-25 Thread jpalmer1026
How do you recommend holding the model in the page? In other words, what is the alternative code to this.user = (EzdecUser)userModel.getObject();? Martin Sachs wrote: hi you used this.user = (EzdecUser)userModel.getObject(); This would hold in page and not initialized on next request.

AjaxSubmitLink

2009-06-19 Thread jpalmer1026
I am trying to use an AjaxSubmitLink to show a panel when a button is clicked. I am receiving the following error when I try to submit the form:Wicket.Ajax.Call.processComponent: Component with id [[verifyPanelWmc9]] a was not found while trying to perform markup update. Make sure you called

Feedback Messages Not Getting Displayed When Using AjaxSubmitLink

2009-06-19 Thread jpalmer1026
I am using an AjaxSubmitLink to submit form data. Using this, however, is preventing feedback messages from being displayed. My code is as follows:public class InitiateDeclarationPage extends EzdecBaseWebPage { @SpringBean private IDeclarationService declarationService; AjaxFallbackLink

Re: Feedback Messages Not Getting Displayed When Using AjaxSubmitLink

2009-06-19 Thread jpalmer1026
I called target.addComponent for the feedbackpanel but still no luck. My updated code is as follows: final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink(verifyPinLink) { @Override public void onSubmit(AjaxRequestTarget target, Form form) {

Re: Feedback Messages Not Getting Displayed When Using AjaxSubmitLink

2009-06-19 Thread jpalmer1026
) { target.addComponent(feedback); } }; jpalmer1026 wrote: I called target.addComponent for the feedbackpanel but still no luck. My updated code is as follows: final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink(verifyPinLink) { @Override