you cant because it wont have any markup to attach to, instead you can
simply output the messages yourself, see my reply to this thread:

Form Components With Built In Feedback

-igor

On Fri, Jan 30, 2009 at 6:04 PM, ZedroS <[email protected]> wrote:
>
> Hi
>
> I'm using a behaviour to add component's label like this :
> public class AddLabelBehavior extends AbstractBehavior
> {
>    @Override
>    public void beforeRender(Component component)
>    {
>        super.beforeRender(component);
>        component.getResponse().write(new
> StringResourceModel(component.getId(),component,null,component.getId()).getString()
> + " : ");
>    }
> }
>
> However, I would like to add as well a "dedicated feedbackpanel" just after
> the component in question.
>
> In short, it's just a component that I would like to add (both in the Java
> code and html rendered) just after my component.
>
> Is it possible ? If so, how ?
>
> NB : I guess it should use onRendered(Component component) but I don't see
> how to add a component.
>
> Thanks in advance
>
> best,
> zedros
> --
> View this message in context: 
> http://www.nabble.com/How-to-add-a-component-in-a-behavior---tp21758993p21758993.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to