Got it!
Sorry about not starting a new thread. I thought I had deleted all previous
content.
On 9/26/07 4:24 AM, "Gwyn Evans" <[EMAIL PROTECTED]> wrote:
> Best to use your own thread for a new request...
>
> Anyway, when you say "get something", do you mean that you see a
> feedback message on the web page, as that's what I'd expect your
> form's onSubmit() to result in.
>
> The "[EMAIL PROTECTED]" is the result of
> toString() being called on your AmountsTimesDatesStore instance.
> That's called by the getModelObjectAsString() call in the onSubmit(),
> but it ends up in Object.toString() as you've not created one in your
> own class. Just implement one and the message should be more useful!
>
> /Gwyn
>
> On Wednesday, September 26, 2007, 1:21:29 AM, mail <[EMAIL PROTECTED]> wrote:
>
>> After I do all my valid info into my form I get something that reads:
>
>> [EMAIL PROTECTED]
>
>> I'm not sure where it's coming from. I've commented out everything in my
>> form except for one text input- and it still returns the above.
>
>> Can anyone help with this?
>
>> Here's AmountsTimesDatesStore.java
>
>> package foo;
>
>> import java.io.Serializable;
>
>> public class AmountsTimesDatesStore implements Serializable {
>
>> private String ZoningUse;
>
>>
>> public String getZoningUse(){
>> return ZoningUse;
>> }
>>
>> public void setZoningUse(String ZoningUse){
>> this.ZoningUse = ZoningUse;
>> }
>
>>
>> private static final long serialVersionUID = 1L;
>> }
>
>
>
>> What I don't understand is why it's returning anything at all. All my
>> fields are filled in and validated. Why onSubmit does it do this?
>
>> Here is some of my html/java file that may have something to do with this?
>
>> class AmountsTimesDatesForm extends Form{
>> public AmountsTimesDatesForm(String id, IModel model){
>> super(id,model);
>> }
>> @Override
>> public void onSubmit() {
>> info(getModelObjectAsString());
>> }
>> }
>>
>> Border addWithBorders(Form form,FormComponent component,String
>> borderId){
>> AjaxResponsiveFormComponentFeedbackBorder border = new
>> AjaxResponsiveFormComponentFeedbackBorder(borderId);
>> border.setOutputMarkupId(true);
>> border.add(component);
>> form.add(border);
>> return border;
>> }
>>
>> void addAjaxBehaviorToComponent(FormComponent formComponent, final
>> Border border, final FeedbackPanel feedback){
>> formComponent.add(new
>> AjaxFormComponentUpdatingBehavior("onblur") {
>> @Override
>> protected void onUpdate(AjaxRequestTarget target){
>> target.addComponent(feedback);
>> target.addComponent(border);
>> setResponsePage(Location.class);
>> }
>> });
>> }
>
>
>> Any help would be appreciated.
>
>> Thanks
>
>
>
> /Gwyn
>
>
> ---------------------------------------------------------------------
> 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]