Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-17 Thread Vladimir K

Does it perform validation on form submit?



nino martinez wael wrote:
> 
> hmm true, I think it's because it's ajax and actually get set before
> the form are submited. I agree it would be nice if it acted exactly
> like normal form, but I guess the way it are now allows much more
> flexibility, however it should be possible to do the other aswell.
> 
> regards
> 
> 2009/5/14 Brill Pappin :
>> I'd actually rather it worked as expected and simply set the object on
>> the
>> model property :)
>> However, it's usable so I'll live with it.
>>
>> - brill
>>
>> On 13-May-09, at 3:10 PM, nino martinez wael wrote:
>>
>>> Yeah or just another way of thinking.. :)
>>>
>>> 2009/5/11 Brill Pappin :
>>>>
>>>> Thanks that worked... although its a bit of a pain in the behind :)
>>>>
>>>> - Brill Pappin
>>>>
>>>> On 11-May-09, at 6:55 AM, nino martinez wael wrote:
>>>>
>>>>> You do something like this:
>>>>>
>>>>> // compound model
>>>>>       private final IModel cityModel = new
>>>>> PropertyModel(
>>>>>                       searchWrapper, "cityId");
>>>>>
>>>>>
>>>>>
>>>>>       builderCity
>>>>>                               .updateOnSelectionChange(new
>>>>> ObjectAutoCompleteSelectionChangeListener() {
>>>>>                                       public void
>>>>> selectionChanged(AjaxRequestTarget target,
>>>>>                                                       IModel
>>>>> model) {
>>>>>
>>>>>  cityModel.setObject(model.getObject());
>>>>>
>>>>>                                       }
>>>>>                               });
>>>>> So it does not update on submit, but instead onSelectionChange of the
>>>>> builder..
>>>>>
>>>>> 2009/5/11 Brill Pappin :
>>>>>>
>>>>>> I'm trying to use ObjectAutoComplete from wicketstuff on a form where
>>>>>> the
>>>>>> model is a CompoundPropertyModel.
>>>>>>
>>>>>> The auto compete field doesn't seem to be setting its value on the
>>>>>> form
>>>>>> model at all during a submit.
>>>>>>
>>>>>> I've looked at the examples for this component and not a single one
>>>>>> actually
>>>>>> includes the onSubmit implementation.
>>>>>> Is there something special i have to do with this component?
>>>>>>
>>>>>> - Brill Pappin
>>>>>
>>>>> -
>>>>> 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
>>>
>>
>>
> 
> -
> 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/objectautocomplete-on-a-form-with-CompoundPropertyModel-tp23477130p23582308.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: objectautocomplete on a form with CompoundPropertyModel

2009-05-15 Thread nino martinez wael
hmm true, I think it's because it's ajax and actually get set before
the form are submited. I agree it would be nice if it acted exactly
like normal form, but I guess the way it are now allows much more
flexibility, however it should be possible to do the other aswell.

regards

2009/5/14 Brill Pappin :
> I'd actually rather it worked as expected and simply set the object on the
> model property :)
> However, it's usable so I'll live with it.
>
> - brill
>
> On 13-May-09, at 3:10 PM, nino martinez wael wrote:
>
>> Yeah or just another way of thinking.. :)
>>
>> 2009/5/11 Brill Pappin :
>>>
>>> Thanks that worked... although its a bit of a pain in the behind :)
>>>
>>> - Brill Pappin
>>>
>>> On 11-May-09, at 6:55 AM, nino martinez wael wrote:
>>>
 You do something like this:

 // compound model
       private final IModel cityModel = new
 PropertyModel(
                       searchWrapper, "cityId");



       builderCity
                               .updateOnSelectionChange(new
 ObjectAutoCompleteSelectionChangeListener() {
                                       public void
 selectionChanged(AjaxRequestTarget target,
                                                       IModel
 model) {

  cityModel.setObject(model.getObject());

                                       }
                               });
 So it does not update on submit, but instead onSelectionChange of the
 builder..

 2009/5/11 Brill Pappin :
>
> I'm trying to use ObjectAutoComplete from wicketstuff on a form where
> the
> model is a CompoundPropertyModel.
>
> The auto compete field doesn't seem to be setting its value on the form
> model at all during a submit.
>
> I've looked at the examples for this component and not a single one
> actually
> includes the onSubmit implementation.
> Is there something special i have to do with this component?
>
> - Brill Pappin

 -
 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
>>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-13 Thread Brill Pappin
I'd actually rather it worked as expected and simply set the object on  
the model property :)

However, it's usable so I'll live with it.

- brill

On 13-May-09, at 3:10 PM, nino martinez wael wrote:


Yeah or just another way of thinking.. :)

2009/5/11 Brill Pappin :

Thanks that worked... although its a bit of a pain in the behind :)

- Brill Pappin

On 11-May-09, at 6:55 AM, nino martinez wael wrote:


You do something like this:

// compound model
   private final IModel cityModel = new  
PropertyModel(

   searchWrapper, "cityId");



   builderCity
   .updateOnSelectionChange(new
ObjectAutoCompleteSelectionChangeListener() {
   public void
selectionChanged(AjaxRequestTarget target,

IModel

model) {

 cityModel.setObject(model.getObject());

   }
   });
So it does not update on submit, but instead onSelectionChange of  
the

builder..

2009/5/11 Brill Pappin :


I'm trying to use ObjectAutoComplete from wicketstuff on a form  
where the

model is a CompoundPropertyModel.

The auto compete field doesn't seem to be setting its value on  
the form

model at all during a submit.

I've looked at the examples for this component and not a single one
actually
includes the onSubmit implementation.
Is there something special i have to do with this component?

- Brill Pappin


-
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





smime.p7s
Description: S/MIME cryptographic signature


Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-13 Thread nino martinez wael
Yeah or just another way of thinking.. :)

2009/5/11 Brill Pappin :
> Thanks that worked... although its a bit of a pain in the behind :)
>
> - Brill Pappin
>
> On 11-May-09, at 6:55 AM, nino martinez wael wrote:
>
>> You do something like this:
>>
>> // compound model
>>        private final IModel cityModel = new PropertyModel(
>>                        searchWrapper, "cityId");
>>
>>
>>
>>        builderCity
>>                                .updateOnSelectionChange(new
>> ObjectAutoCompleteSelectionChangeListener() {
>>                                        public void
>> selectionChanged(AjaxRequestTarget target,
>>                                                        IModel
>> model) {
>>
>>  cityModel.setObject(model.getObject());
>>
>>                                        }
>>                                });
>> So it does not update on submit, but instead onSelectionChange of the
>> builder..
>>
>> 2009/5/11 Brill Pappin :
>>>
>>> I'm trying to use ObjectAutoComplete from wicketstuff on a form where the
>>> model is a CompoundPropertyModel.
>>>
>>> The auto compete field doesn't seem to be setting its value on the form
>>> model at all during a submit.
>>>
>>> I've looked at the examples for this component and not a single one
>>> actually
>>> includes the onSubmit implementation.
>>> Is there something special i have to do with this component?
>>>
>>> - Brill Pappin
>>
>> -
>> 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



Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-11 Thread Brill Pappin

Thanks that worked... although its a bit of a pain in the behind :)

- Brill Pappin

On 11-May-09, at 6:55 AM, nino martinez wael wrote:


You do something like this:

// compound model
private final IModel cityModel = new PropertyModel(
searchWrapper, "cityId");



builderCity
.updateOnSelectionChange(new
ObjectAutoCompleteSelectionChangeListener() {
public void 
selectionChanged(AjaxRequestTarget target,
IModel model) {

cityModel.setObject(model.getObject());

}
});
So it does not update on submit, but instead onSelectionChange of  
the builder..


2009/5/11 Brill Pappin :
I'm trying to use ObjectAutoComplete from wicketstuff on a form  
where the

model is a CompoundPropertyModel.

The auto compete field doesn't seem to be setting its value on the  
form

model at all during a submit.

I've looked at the examples for this component and not a single one  
actually

includes the onSubmit implementation.
Is there something special i have to do with this component?

- Brill Pappin


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





smime.p7s
Description: S/MIME cryptographic signature


Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-11 Thread nino martinez wael
You do something like this:

 // compound model
private final IModel cityModel = new PropertyModel(
searchWrapper, "cityId");



builderCity
.updateOnSelectionChange(new
ObjectAutoCompleteSelectionChangeListener() {
public void 
selectionChanged(AjaxRequestTarget target,
IModel model) {

cityModel.setObject(model.getObject());

}
});
So it does not update on submit, but instead onSelectionChange of the builder..

2009/5/11 Brill Pappin :
> I'm trying to use ObjectAutoComplete from wicketstuff on a form where the
> model is a CompoundPropertyModel.
>
> The auto compete field doesn't seem to be setting its value on the form
> model at all during a submit.
>
> I've looked at the examples for this component and not a single one actually
> includes the onSubmit implementation.
> Is there something special i have to do with this component?
>
> - Brill Pappin

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



objectautocomplete on a form with CompoundPropertyModel

2009-05-10 Thread Brill Pappin
I'm trying to use ObjectAutoComplete from wicketstuff on a form where  
the model is a CompoundPropertyModel.


The auto compete field doesn't seem to be setting its value on the  
form model at all during a submit.


I've looked at the examples for this component and not a single one  
actually includes the onSubmit implementation.

Is there something special i have to do with this component?

- Brill Pappin

smime.p7s
Description: S/MIME cryptographic signature