Re: wicket:message as attribute and nested components

2008-11-06 Thread Piller Sébastien

Hi,

thank you.

Issue created here: https://issues.apache.org/jira/browse/WICKET-1915


Igor Vaynberg a écrit :

im not sure it works on non-components. we can probably make it so.
please create a quickstart and attach it to a jira issue.

-igor
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



wicket:message as attribute and nested components

2008-11-05 Thread Sébastien Piller

Hello,

I was wondering if the behavior described here 
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html (use 
wicket:message as attribute) was broken or if I'm doing something wrong 
(Wicket 1.3.5)


I've written that:

form wicket:id=form wicket:message=class:formClass
   table
   wicket:container wicket:id=repeatrows
   tr
   td *wicket:message=class:formLabelCol*label 
wicket:id=label[label goes here]/label/td
   tdwicket:container 
wicket:id=component/wicket:container/td

   /tr
   tr
   td colspan=2wicket:container 
wicket:id=feedback/wicket:container/td

   /tr
   /wicket:container
   /table
   input type=submit / input type=reset /
/form


With a Java part that works fine.

If I remove the bold part, everything goes fine. If I leave them, I get 
the usual WicketRuntimeException


org.apache.wicket.markup.MarkupException: Unable to find component with id 
'label' in [MarkupContainer [Component id = _message_attr_12]]. This means that 
you declared wicket:id=label in your markup, but that


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket:message as attribute and nested components

2008-11-05 Thread Igor Vaynberg
im not sure it works on non-components. we can probably make it so.
please create a quickstart and attach it to a jira issue.

-igor

On Wed, Nov 5, 2008 at 12:57 PM, Sébastien Piller [EMAIL PROTECTED] wrote:
 Hello,

 I was wondering if the behavior described here
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html (use wicket:message
 as attribute) was broken or if I'm doing something wrong (Wicket 1.3.5)

 I've written that:

 form wicket:id=form wicket:message=class:formClass
   table
   wicket:container wicket:id=repeatrows
   tr
   td *wicket:message=class:formLabelCol*label
 wicket:id=label[label goes here]/label/td
   tdwicket:container
 wicket:id=component/wicket:container/td
   /tr
   tr
   td colspan=2wicket:container
 wicket:id=feedback/wicket:container/td
   /tr
   /wicket:container
   /table
   input type=submit / input type=reset /
 /form


 With a Java part that works fine.

 If I remove the bold part, everything goes fine. If I leave them, I get the
 usual WicketRuntimeException

 org.apache.wicket.markup.MarkupException: Unable to find component with id
 'label' in [MarkupContainer [Component id = _message_attr_12]]. This means
 that you declared wicket:id=label in your markup, but that


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