wicket:enclosure not finding child nested in border ? (Wicket 1.5.8)
Hi, In one of my pages I have a textfield (whose visibility is changed through AJAX) that is wrapped with a border like so: 8-8-8- wicket:enclosure child=loginNameBorder:loginName tr tdwicket:message key=col.loginName/:/td tddiv wicket:id=loginNameBorderinput type=text wicket:id=loginName//div/td /tr /wicket:enclosure 8-8-8- The border is defined as 8-8-8- html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/; wicket:border div style=display:inline-block wicket:body/ div wicket:id=feedback style=display:inline-block/ /div /wicket:border /html 8-8-8- For some odd reason accessing this page immediately fails with a Could not find child with id: loginNameBorder:loginName in the wicket:enclosure . I also tried to use child=loginName but this gives me the same error (and according to https://cwiki.apache.org/confluence/display/WICKET/Wicket%27s+XHTML+tags#Wicket%27sXHTMLtags-Elementwicket%3Aenclosure a nested child needs to be referenced by the full path). What did I do wrong ? Cheers, Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:enclosure not finding child nested in border ? (Wicket 1.5.8)
Hi, the Border will add your input into its body, so its effective path will be loginNameBorder:body:loginName. Sven On 10/08/2013 12:29 PM, Tobias Gierke wrote: Hi, In one of my pages I have a textfield (whose visibility is changed through AJAX) that is wrapped with a border like so: 8-8-8- wicket:enclosure child=loginNameBorder:loginName tr tdwicket:message key=col.loginName/:/td tddiv wicket:id=loginNameBorderinput type=text wicket:id=loginName//div/td /tr /wicket:enclosure 8-8-8- The border is defined as 8-8-8- html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/; wicket:border div style=display:inline-block wicket:body/ div wicket:id=feedback style=display:inline-block/ /div /wicket:border /html 8-8-8- For some odd reason accessing this page immediately fails with a Could not find child with id: loginNameBorder:loginName in the wicket:enclosure . I also tried to use child=loginName but this gives me the same error (and according to https://cwiki.apache.org/confluence/display/WICKET/Wicket%27s+XHTML+tags#Wicket%27sXHTMLtags-Elementwicket%3Aenclosure a nested child needs to be referenced by the full path). What did I do wrong ? Cheers, Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:enclosure not finding child nested in border ? (Wicket 1.5.8)
Hi Sven, Hi, the Border will add your input into its body, so its effective path will be loginNameBorder:body:loginName. Almost :-) Maybe this was changed in more recent versions but for 1.5.8 it's loginNameBorder:loginNameBorder_body:loginName Thanks for the hint, much appreciated ! Cheers, Tobias Sven On 10/08/2013 12:29 PM, Tobias Gierke wrote: Hi, In one of my pages I have a textfield (whose visibility is changed through AJAX) that is wrapped with a border like so: 8-8-8- wicket:enclosure child=loginNameBorder:loginName tr tdwicket:message key=col.loginName/:/td tddiv wicket:id=loginNameBorderinput type=text wicket:id=loginName//div/td /tr /wicket:enclosure 8-8-8- The border is defined as 8-8-8- html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/; wicket:border div style=display:inline-block wicket:body/ div wicket:id=feedback style=display:inline-block/ /div /wicket:border /html 8-8-8- For some odd reason accessing this page immediately fails with a Could not find child with id: loginNameBorder:loginName in the wicket:enclosure . I also tried to use child=loginName but this gives me the same error (and according to https://cwiki.apache.org/confluence/display/WICKET/Wicket%27s+XHTML+tags#Wicket%27sXHTMLtags-Elementwicket%3Aenclosure a nested child needs to be referenced by the full path). What did I do wrong ? Cheers, Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org