English 中文(简体)
维克托的维扎特人内部的《意见》未能提供错误的反馈信息。
原标题:A GridView inside a Wizard in wicket fails to render error feedback messages
  • 时间:2011-11-10 14:21:12
  •  标签:
  • wicket

我有习惯,定义如下:

<wicket:panel>
    <div>
        <form wicket:id="form" class="wizard">
            <span class="wizardoverview" wicket:id="overview"/>

            <div class="wizardheader" wicket:id="header"/>
            <div wicket:id="view" class="wizardpage"/>
            <span wicket:id="feedback"/>

            <div class="buttons">
                <span wicket:id="buttons"/>
            </div>
        </form>
    </div>
</wicket:panel>

The wizardpage is in this case a Panel with its own form. This form contains a new Panel, which in turn contains a GridView. The GridView contains a set of Panels, which each contain a FormComponentFeedbackBorder, which in turn contains input TextFields.

!!

因此,我们这样做:

Wizard->

When TextField fails validation, no feedback is rendered at all. If I add a FeedbackPanel to the GridContainingPanel the error messages are rendered, but FormComponentFeedbackBorder renders nothing.

谁会错?

I had a similar problem with a ListView instead of GridView, but that problem was resolved when I set listView.setReuseItems(true);

GridView是否有类似的情况? 这一问题是否有不同的解决办法?

最佳回答

这是:

gridView.setItemReuseStrategy(new ReuseIfModelsEqualStrategy()); 

这个问题已经解决。

谢。

问题回答

暂无回答




相关问题
What PHP framework is most similar to Apache Wicket?

Feature I m looking for is being component based but not event driven. I also like the idea of defining component in his parent code but describing its placement and some visual aspects in the ...

Wicket: how to synchronize requests within session

Scenario: Apache Wicket based web application running on Tomcat server. User opens URL in browser, session is created and simple main page is shown in browser, user clicks on button and AJAX call is ...

Which Java generic should be used in ambiguous cases?

I m having some problems with a Wicket 1.3 -> Wicket 1.4 migration, but this question could be applied to Java generics overall, too. The migration has caused hundreds of warnings to spring up out of ...

How to display html text within a Wicket element?

i m trying to display html i.e. rich text within a wicket element dynamically. An example is like displaying a rich text email within a div tag. how can i get this done with wicket. the wicket Label ...

Problematic Wicket RuntimeException

I m having trouble pinning down the cause of a RuntimeException in a Wicket application. I ve set numerous breakpoints, but none are firing when I submit my form, only when the form is loading. Here ...

How to limit upload file size in Wicket

How to limit file size in uploads in Apache Wicket version 1.4? I am using FileUploadField to handle upload with normal form submit without any Ajax stuff. Is it enough to use Form.setMaxSize() to ...

热门标签