Or just set visibility based on error

On Saturday, December 12, 2009, vineet semwal
<[email protected]> wrote:
> add empty webmarkupcontainers as your components,if no error,replace the
> containers with your components
> else
> you don't need to replace.
>
>
> On Sat, Dec 12, 2009 at 8:02 AM, Swarnim Ranjitkar 
> <[email protected]>wrote:
>
>>
>> I have a case where I check some error condition at the beginning of the
>> code. If there is error I just want to display error message so
>> basically it is
>> if (error == true){
>> display message
>> } else {
>> //render regular page
>> add(component1)
>> add(compnent2)
>> }
>>
>> if there is error I don't have any data to generate my component. Is there
>> a clean way to do this. I'm getting
>>  Unable to find component with id 'chart1image' exception. Appreciate your
>> feedback
>> thank you
>>
>>
>>
>
>
>
>
> --
> regards,
> Vineet Semwal
>

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