flash messages:
info("foo");
add(new FeedbackPanel("feedbackpanel"));
<div wicket:id="feedbackpanel"></div>
Martijn
On 10/29/07, Brill Pappin <[EMAIL PROTECTED]> wrote:
> I'm porting an app written in Ruby on Rails as a spike on how Wicket works.
> I've run into an issue I'm not sure how to handle.
>
> I have the case of a message box near the top of the screen that's in a
> conditional block... here is the ruby code to demonstrate:
> <% if @flash[:notice] %>
> <div id="flash_notice_wrapper"><%= @flash[:notice] %></div>
> <% end %>
>
> (fyi, flash in this context is not Flash, but a "flash message")
>
> I get the part of wicket were I can attach a component to the div element,
> but what I really want is the div to not be there if it's not needed.
> Is there any way to actually remove the div if I don't need it in the
> content?
> Is there a "non-html" wicket tag I haven't found yet for adding a
> placeholder instead of the div?
>
> - Brill Pappin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]