Did you add a feedbackpanel?

Martijn

On Tue, Dec 1, 2009 at 8:03 AM, Early Morning <[email protected]> wrote:
> Hi Martin,
>
> I pass a DataProvider in the constructor of the page, and process it
> somewhat like this:
>
>        if(accountDataProvider == null){
>            container.add(new EmptyPanel("resultPanel"));
>            asm = new AccountSearchModel();
>        }else{
>            asm = accountDataProvider.getAccountSearchModel();
>            if(accountDataProvider.size() > 0){
>                container.add(new AccountSearchResultsPanel("resultPanel",
> accountDataProvider));
>            }else{
>                container.add(new EmptyPanel("resultPanel"));
>                error("No results found.");
>            }
>        }
>
> Basically if the DataProvider is null, it just adds an empty panel, but if
> not (and the size of the results is 0), there should be a feedback showing
> "No results found". It successfully executes the error statement when I
> debug, but when loading the page there is still no feedback shown. Is there
> anything else I should add? Thanks.
>
>
> Regards,
>
> Ces
>
> On Tue, Dec 1, 2009 at 2:30 PM, Martin Makundi <
> [email protected]> wrote:
>
>> Hi!
>>
>> It should appear if you call "error" or something... what's your code?
>>
>> **
>> Martin
>>
>> 2009/12/1 Early Morning <[email protected]>:
>> > Hi,
>> >
>> > I'm trying to make a feedback panel appear immadiately after page load
>> (such
>> > as when you search and the results appear in a new page, but there is an
>> > error), but even if I call error(message); no feedback panel appears.
>> What
>> > would be the recommended way to do this? Thanks!
>> >
>> >
>> > Regards,
>> >
>> > Ces
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to