I tried that.still did not work? Any other ideas
rg.apache.wicket.WicketRuntimeException: No get method defined for
class: class com.mw.hr.entity.leaveappempleave.LeaveappEmpleave
expression: approvaloficer
        at 
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)


On Tue, Mar 2, 2010 at 5:29 PM, Xavier López <xavil...@gmail.com> wrote:
> I think the Model you are passing to the constructor refers to the choices
> Model. Try using EmployeeDropDownChoice("approvaloficer",new Model(), new
> Model(""));
>
> Cheers,
> Xavier
>
> 2010/3/2 chinedu efoagui <chinedub...@gmail.com>
>
>> hello,
>>
>> i am added a dropdownchoice to a form. The form's model is set to a
>> CompoundPropertyModel
>> as shown below
>> IModel zaModel=new CompoundPropertyModel(selected);
>> leaveform.setModel(zaModel);
>>
>> Now the dropdown shows a list of Employees
>>
>> EmployeeDropDownChoice approvalofficers=new
>> EmployeeDropDownChoice("approvaloficer",new Model(""));
>>        leaveform.add(approvalofficers);
>> Now when I run it gives me error that it can find the getter property
>> of component "approvaloficer"
>> Now the thing is the component is
>> So how do i exclude the component from the CompoundPropertyModel and
>> still have  it show ?
>> I thought i could achieve that with by passing an emppty model into
>> its constructor like new model?
>> how do i solve this??
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> "Klein bottle for rent--inquire within."
>

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

Reply via email to