You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by wch2001 <wc...@hotmail.com> on 2008/09/04 03:24:17 UTC

using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Dear all,

I use listView and RadioGroup, radio , as the following codes, Can someone
give me some idea? thanks in advance

everything is ok until i click the button "btnSaveAll", it throw the 
excepation:


2008-09-03 19:35:41,751 ERROR [org.apache.wicket.RequestCycle] - <Attempt to
set model object on null model of component:
tabpanel:panel:attachedFilesPanelContainer:saveUploadFilesForm:group>
java.lang.IllegalStateException: Attempt to set model object on null model
of component:
tabpanel:panel:attachedFilesPanelContainer:saveUploadFilesForm:group
        at org.apache.wicket.Component.setModelObject(Component.java:2820)
        at
org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:992)
        at
org.apache.wicket.markup.html.form.Form$14.validate(Form.java:1615)
        at
org.apache.wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:152)

java codes:

    private class SaveUploadFilesForm extends Form {

        private boolean photoMainStatus = false;

        
        public SaveUploadFilesForm(String id, final List<FileObj> files){
            super(id);
            //boolean photoMainStatus = false;
            
            final RadioGroup group = new RadioGroup("group");
            
            ListView fileListView = new ListView("fileList", files) {

                @Override
                protected void populateItem(final ListItem item) {
                    System.out.println("**********************in
AttachedFilesPanel() ");
                    item.size();
                    final FileObj fileObj = (FileObj) item.getModelObject();

                    System.out.println("fileObj.getId():" +
fileObj.getId());
                    System.out.println("fileObj.getOriginalFileName():" +
fileObj.getOriginalFileName());
                    System.out.println("fileObj.getDescription():" +
fileObj.getDescription());
                    System.out.println("fileObj.isMain():" +
fileObj.isMain());

                    item.add(new Label("file",
fileObj.getOriginalFileName()));
                    item.add(new Label("description",
fileObj.getDescription()));
                    item.add(new PictureUploadActionPanel("actions",
item.getModel(), files, page));

                    if (fileObj.isMain()) {
                        setPhotoMainStatus(true);
                    }
                    
                    Radio r = new Radio("radio", new
PropertyModel(getParent().getParent(), "photoMainStatus"));
                    
                    r.add(new AjaxEventBehavior("onchange") {

                        @Override
                        protected void onEvent(AjaxRequestTarget target) {
                            setPhotoMainStatus(true);                            
                            System.out.println("----------------in the
checkbox, onEvent,fileObj.getId()" + fileObj.getId());
                        }
                    });
                    item.add(r);                    
                    
                    item.add(new AttributeModifier("class", true, new
AbstractReadOnlyModel() {

                        @Override
                        public Object getObject() {
                            return ((item.getIndex() % 2) == 1) ? "even" :
"odd";
                        }
                    }));
                }
            };

            add(fileListView);
            AjaxButton btnSaveAllFiles = new AjaxButton("btnSaveAll") {

                @Override
                protected void onSubmit(AjaxRequestTarget target, Form form)
{
                    System.out.println("********click button 'btnSaveAll'");
                    if (files.size() > 0) {
                        Iterator it = files.iterator();
                        while (it.hasNext()) {
                            FileObj fileObj = (FileObj) it.next();
  
                            }
                        }

      
                    }
                }
            };

            btnSaveAllFiles.setModel(new Model("Save All Files"));
            add(btnSaveAllFiles);
            
            group.add(fileListView);
            //group.add(btnSaveAllFiles);
            add(group);

        }
        
        public boolean getPhotoMainStatus() {
            return photoMainStatus;
        }

        public void setPhotoMainStatus(boolean photoMainStatus) {
            this.photoMainStatus = photoMainStatus;
        }

    }

Html codes:

                  <form wicket:id="saveUploadFilesForm">
                    
                    <table width="50%">
                        <table class="dataview">
                            <tr class="title">
                                <th>Actions</th>
                                <th>File Name</th>
                                <th>Description</th>
                                <th>Main status</th>
                            </tr>
                    
                            <tr wicket:id="fileList" class="row">
                                <td width="100">[Action]</td>
                                <td width="200">[File]</td>
                                <td>[Description]</td>
                                <td width="100">
                                    <input type="radio" wicket:id="radio"/>
                                </td>
                            </tr>
                    
                            <tr>
                                <td><input type="button"
wicket:id="btnSaveAll" class="button"/></td>
                            </tr-->
                        </table>
                            <tr><td>&nbsp;</td></tr>
                            <tr>
                                <td><input type="button"
wicket:id="btnSaveAll" class="button"/></td>
                            </tr>
                        
                    </table>
                </form>


-- 
View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301538.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.


Re: using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Posted by wch2001 <wc...@hotmail.com>.
Thanks for your suggestion.

i have solved the question by :

RadioGroup group = new RadioGroup("group", new Model(id));



Martijn Dashorst wrote:
> 
> The final keyword has nothing to do with Wicket, but all with your
> knowledge of Java. Grab a book (for example Thinking in Java, 3rd
> edition, free online) and read up on what it means. It is out of scope
> for this list (which btw is the wrong forum for your question: use
> users@wicket.apache.org in the future) to discuss basic or advanced
> Java concepts.
> 
> Why didn't you put the final back? What's keeping you from doing so?
> 
> Martijn
> 
> On Thu, Sep 4, 2008 at 3:48 AM, wch2001 <wc...@hotmail.com> wrote:
>>
>> Thanks you  very much.
>>
>> But now there is not final for radiogroup, how can i solve the problem ?
>>
>> thanks again
>>
>>
>>
>> igor.vaynberg wrote:
>>>
>>> final has nothing to do with it, your radiogroup component does not
>>> have a model...read the models wiki page
>>>
>>> -igor
>>>
>>> On Wed, Sep 3, 2008 at 6:44 PM, wch2001 <wc...@hotmail.com> wrote:
>>>>
>>>> I deleted the "final", but the same error happen
>>>> any idea?
>>>> thanks a lot
>>>>
>>>>
>>>> igor.vaynberg wrote:
>>>>>
>>>>>  final RadioGroup group = new RadioGroup("group");
>>>>> ^ does not have a model...
>>>>>
>>>>> -igor
>>>>>
>>>>> On Wed, Sep 3, 2008 at 6:28 PM, wch2001 <wc...@hotmail.com> wrote:
>>>>>>
>>>>>> sorry,
>>>>>>
>>>>>> the HTML codes:
>>>>>>
>>>>>>                <form wicket:id="saveUploadFilesForm">
>>>>>>
>>>>>>                    <table width="50%">
>>>>>>                        <table class="dataview">
>>>>>>                            <tr class="title">
>>>>>>                                <th>Actions</th>
>>>>>>                                <th>File Name</th>
>>>>>>                                <th>Description</th>
>>>>>>                                <th>Main status</th>
>>>>>>                            </tr>
>>>>>>
>>>>>>                            <tr wicket:id="fileList" class="row">
>>>>>>                                <td width="100">[Action]</td>
>>>>>>                                <td width="200">[File]</td>
>>>>>>                                <td>[Description]</td>
>>>>>>                                <!--td width="100"><input
>>>>>> type="checkbox"
>>>>>> wicket:id="chkPhotoMain"/>main</td-->
>>>>>>                                <td width="100">
>>>>>>                                    <input type="radio"
>>>>>> wicket:id="radio"/>
>>>>>>                                </td>
>>>>>>                            </tr>
>>>>>>
>>>>>>                            <!--tr><td> </td></tr>
>>>>>>                            <tr>
>>>>>>                                <td><input type="button"
>>>>>> wicket:id="btnSaveAll" class="button"/></td>
>>>>>>                            </tr-->
>>>>>>                        </table>
>>>>>>                            <tr><td> </td></tr>
>>>>>>                            <tr>
>>>>>>                                <td><input type="button"
>>>>>> wicket:id="btnSaveAll" class="button"/></td>
>>>>>>                            </tr>
>>>>>>
>>>>>>                    </table>
>>>>>>                </form>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301590.html
>>>>>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301721.html
>>>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301765.html
>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> 

-- 
View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19304052.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.


Re: using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Posted by Martijn Dashorst <ma...@gmail.com>.
The final keyword has nothing to do with Wicket, but all with your
knowledge of Java. Grab a book (for example Thinking in Java, 3rd
edition, free online) and read up on what it means. It is out of scope
for this list (which btw is the wrong forum for your question: use
users@wicket.apache.org in the future) to discuss basic or advanced
Java concepts.

Why didn't you put the final back? What's keeping you from doing so?

Martijn

On Thu, Sep 4, 2008 at 3:48 AM, wch2001 <wc...@hotmail.com> wrote:
>
> Thanks you  very much.
>
> But now there is not final for radiogroup, how can i solve the problem ?
>
> thanks again
>
>
>
> igor.vaynberg wrote:
>>
>> final has nothing to do with it, your radiogroup component does not
>> have a model...read the models wiki page
>>
>> -igor
>>
>> On Wed, Sep 3, 2008 at 6:44 PM, wch2001 <wc...@hotmail.com> wrote:
>>>
>>> I deleted the "final", but the same error happen
>>> any idea?
>>> thanks a lot
>>>
>>>
>>> igor.vaynberg wrote:
>>>>
>>>>  final RadioGroup group = new RadioGroup("group");
>>>> ^ does not have a model...
>>>>
>>>> -igor
>>>>
>>>> On Wed, Sep 3, 2008 at 6:28 PM, wch2001 <wc...@hotmail.com> wrote:
>>>>>
>>>>> sorry,
>>>>>
>>>>> the HTML codes:
>>>>>
>>>>>                <form wicket:id="saveUploadFilesForm">
>>>>>
>>>>>                    <table width="50%">
>>>>>                        <table class="dataview">
>>>>>                            <tr class="title">
>>>>>                                <th>Actions</th>
>>>>>                                <th>File Name</th>
>>>>>                                <th>Description</th>
>>>>>                                <th>Main status</th>
>>>>>                            </tr>
>>>>>
>>>>>                            <tr wicket:id="fileList" class="row">
>>>>>                                <td width="100">[Action]</td>
>>>>>                                <td width="200">[File]</td>
>>>>>                                <td>[Description]</td>
>>>>>                                <!--td width="100"><input
>>>>> type="checkbox"
>>>>> wicket:id="chkPhotoMain"/>main</td-->
>>>>>                                <td width="100">
>>>>>                                    <input type="radio"
>>>>> wicket:id="radio"/>
>>>>>                                </td>
>>>>>                            </tr>
>>>>>
>>>>>                            <!--tr><td> </td></tr>
>>>>>                            <tr>
>>>>>                                <td><input type="button"
>>>>> wicket:id="btnSaveAll" class="button"/></td>
>>>>>                            </tr-->
>>>>>                        </table>
>>>>>                            <tr><td> </td></tr>
>>>>>                            <tr>
>>>>>                                <td><input type="button"
>>>>> wicket:id="btnSaveAll" class="button"/></td>
>>>>>                            </tr>
>>>>>
>>>>>                    </table>
>>>>>                </form>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301590.html
>>>>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301721.html
>>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301765.html
> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

Re: using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Posted by wch2001 <wc...@hotmail.com>.
Thanks you  very much.

But now there is not final for radiogroup, how can i solve the problem ?

thanks again



igor.vaynberg wrote:
> 
> final has nothing to do with it, your radiogroup component does not
> have a model...read the models wiki page
> 
> -igor
> 
> On Wed, Sep 3, 2008 at 6:44 PM, wch2001 <wc...@hotmail.com> wrote:
>>
>> I deleted the "final", but the same error happen
>> any idea?
>> thanks a lot
>>
>>
>> igor.vaynberg wrote:
>>>
>>>  final RadioGroup group = new RadioGroup("group");
>>> ^ does not have a model...
>>>
>>> -igor
>>>
>>> On Wed, Sep 3, 2008 at 6:28 PM, wch2001 <wc...@hotmail.com> wrote:
>>>>
>>>> sorry,
>>>>
>>>> the HTML codes:
>>>>
>>>>                <form wicket:id="saveUploadFilesForm">
>>>>
>>>>                    <table width="50%">
>>>>                        <table class="dataview">
>>>>                            <tr class="title">
>>>>                                <th>Actions</th>
>>>>                                <th>File Name</th>
>>>>                                <th>Description</th>
>>>>                                <th>Main status</th>
>>>>                            </tr>
>>>>
>>>>                            <tr wicket:id="fileList" class="row">
>>>>                                <td width="100">[Action]</td>
>>>>                                <td width="200">[File]</td>
>>>>                                <td>[Description]</td>
>>>>                                <!--td width="100"><input
>>>> type="checkbox"
>>>> wicket:id="chkPhotoMain"/>main</td-->
>>>>                                <td width="100">
>>>>                                    <input type="radio"
>>>> wicket:id="radio"/>
>>>>                                </td>
>>>>                            </tr>
>>>>
>>>>                            <!--tr><td> </td></tr>
>>>>                            <tr>
>>>>                                <td><input type="button"
>>>> wicket:id="btnSaveAll" class="button"/></td>
>>>>                            </tr-->
>>>>                        </table>
>>>>                            <tr><td> </td></tr>
>>>>                            <tr>
>>>>                                <td><input type="button"
>>>> wicket:id="btnSaveAll" class="button"/></td>
>>>>                            </tr>
>>>>
>>>>                    </table>
>>>>                </form>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301590.html
>>>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301721.html
>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301765.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.


Re: using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Posted by Igor Vaynberg <ig...@gmail.com>.
final has nothing to do with it, your radiogroup component does not
have a model...read the models wiki page

-igor

On Wed, Sep 3, 2008 at 6:44 PM, wch2001 <wc...@hotmail.com> wrote:
>
> I deleted the "final", but the same error happen
> any idea?
> thanks a lot
>
>
> igor.vaynberg wrote:
>>
>>  final RadioGroup group = new RadioGroup("group");
>> ^ does not have a model...
>>
>> -igor
>>
>> On Wed, Sep 3, 2008 at 6:28 PM, wch2001 <wc...@hotmail.com> wrote:
>>>
>>> sorry,
>>>
>>> the HTML codes:
>>>
>>>                <form wicket:id="saveUploadFilesForm">
>>>
>>>                    <table width="50%">
>>>                        <table class="dataview">
>>>                            <tr class="title">
>>>                                <th>Actions</th>
>>>                                <th>File Name</th>
>>>                                <th>Description</th>
>>>                                <th>Main status</th>
>>>                            </tr>
>>>
>>>                            <tr wicket:id="fileList" class="row">
>>>                                <td width="100">[Action]</td>
>>>                                <td width="200">[File]</td>
>>>                                <td>[Description]</td>
>>>                                <!--td width="100"><input type="checkbox"
>>> wicket:id="chkPhotoMain"/>main</td-->
>>>                                <td width="100">
>>>                                    <input type="radio"
>>> wicket:id="radio"/>
>>>                                </td>
>>>                            </tr>
>>>
>>>                            <!--tr><td> </td></tr>
>>>                            <tr>
>>>                                <td><input type="button"
>>> wicket:id="btnSaveAll" class="button"/></td>
>>>                            </tr-->
>>>                        </table>
>>>                            <tr><td> </td></tr>
>>>                            <tr>
>>>                                <td><input type="button"
>>> wicket:id="btnSaveAll" class="button"/></td>
>>>                            </tr>
>>>
>>>                    </table>
>>>                </form>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301590.html
>>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301721.html
> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>
>

Re: using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Posted by wch2001 <wc...@hotmail.com>.
I deleted the "final", but the same error happen
any idea?
thanks a lot


igor.vaynberg wrote:
> 
>  final RadioGroup group = new RadioGroup("group");
> ^ does not have a model...
> 
> -igor
> 
> On Wed, Sep 3, 2008 at 6:28 PM, wch2001 <wc...@hotmail.com> wrote:
>>
>> sorry,
>>
>> the HTML codes:
>>
>>                <form wicket:id="saveUploadFilesForm">
>>
>>                    <table width="50%">
>>                        <table class="dataview">
>>                            <tr class="title">
>>                                <th>Actions</th>
>>                                <th>File Name</th>
>>                                <th>Description</th>
>>                                <th>Main status</th>
>>                            </tr>
>>
>>                            <tr wicket:id="fileList" class="row">
>>                                <td width="100">[Action]</td>
>>                                <td width="200">[File]</td>
>>                                <td>[Description]</td>
>>                                <!--td width="100"><input type="checkbox"
>> wicket:id="chkPhotoMain"/>main</td-->
>>                                <td width="100">
>>                                    <input type="radio"
>> wicket:id="radio"/>
>>                                </td>
>>                            </tr>
>>
>>                            <!--tr><td> </td></tr>
>>                            <tr>
>>                                <td><input type="button"
>> wicket:id="btnSaveAll" class="button"/></td>
>>                            </tr-->
>>                        </table>
>>                            <tr><td> </td></tr>
>>                            <tr>
>>                                <td><input type="button"
>> wicket:id="btnSaveAll" class="button"/></td>
>>                            </tr>
>>
>>                    </table>
>>                </form>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301590.html
>> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301721.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.


Re: using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Posted by Igor Vaynberg <ig...@gmail.com>.
 final RadioGroup group = new RadioGroup("group");
^ does not have a model...

-igor

On Wed, Sep 3, 2008 at 6:28 PM, wch2001 <wc...@hotmail.com> wrote:
>
> sorry,
>
> the HTML codes:
>
>                <form wicket:id="saveUploadFilesForm">
>
>                    <table width="50%">
>                        <table class="dataview">
>                            <tr class="title">
>                                <th>Actions</th>
>                                <th>File Name</th>
>                                <th>Description</th>
>                                <th>Main status</th>
>                            </tr>
>
>                            <tr wicket:id="fileList" class="row">
>                                <td width="100">[Action]</td>
>                                <td width="200">[File]</td>
>                                <td>[Description]</td>
>                                <!--td width="100"><input type="checkbox"
> wicket:id="chkPhotoMain"/>main</td-->
>                                <td width="100">
>                                    <input type="radio" wicket:id="radio"/>
>                                </td>
>                            </tr>
>
>                            <!--tr><td> </td></tr>
>                            <tr>
>                                <td><input type="button"
> wicket:id="btnSaveAll" class="button"/></td>
>                            </tr-->
>                        </table>
>                            <tr><td> </td></tr>
>                            <tr>
>                                <td><input type="button"
> wicket:id="btnSaveAll" class="button"/></td>
>                            </tr>
>
>                    </table>
>                </form>
>
> --
> View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301590.html
> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>
>

Re: using listView,radiogroup, error:java.lang.IllegalStateException: Attempt to set model object on null model of component

Posted by wch2001 <wc...@hotmail.com>.
sorry,

the HTML codes:

                <form wicket:id="saveUploadFilesForm">
                    
                    <table width="50%">
                        <table class="dataview">
                            <tr class="title">
                                <th>Actions</th>
                                <th>File Name</th>
                                <th>Description</th>
                                <th>Main status</th>
                            </tr>
                    
                            <tr wicket:id="fileList" class="row">
                                <td width="100">[Action]</td>
                                <td width="200">[File]</td>
                                <td>[Description]</td>
                                <!--td width="100"><input type="checkbox"
wicket:id="chkPhotoMain"/>main</td-->
                                <td width="100">
                                    <input type="radio" wicket:id="radio"/>
                                </td>
                            </tr>
                    
                            <!--tr><td>&nbsp;</td></tr>
                            <tr>
                                <td><input type="button"
wicket:id="btnSaveAll" class="button"/></td>
                            </tr-->
                        </table>
                            <tr><td>&nbsp;</td></tr>
                            <tr>
                                <td><input type="button"
wicket:id="btnSaveAll" class="button"/></td>
                            </tr>
                        
                    </table>
                </form>

-- 
View this message in context: http://www.nabble.com/using-listView%2Cradiogroup%2C-error%3Ajava.lang.IllegalStateException%3A-Attempt-to-set-model-object-on-null-model-of-component-tp19301538p19301590.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.