It is a matter of convenience. Let me explain a little more.
Our designers are working on the html template and wicket:remove is useful for "preview" purpose. Ocassionally they may "copy" the html with the wicket:id inside the wicket:remove block. As a result, when we (IT dev team) run the html under wicket, error happens. In fact, for us, we don't care what is inside the wicket:remove as they are not important to application, but now wicket complains about that. You may think that it is a matter of education on the designers, but this is one of the use cases/problems I met frequently. Therefore if wicket itself can simply allow me to configure to ignore anthing inside wicket:remove, it would be a great convenience. Otherwise, I also want to know the reason behind why wicket prohibit wicket:id insder wicket:remove and try to make my designers follow the necessary practice. Al Maw wrote: > > ywtsang wrote: >> when I have wicket component tags inside a wicket:remove tag, the wicket >> complains as error: >> Markup remove regions must not contain Wicket component tags >> >> e.g. >> <wicket:remove> >> test >> </wicket:remove> >> >> is there any configuration that allows the wicket to just accept any kind >> of >> "content" in the wicket:remove ? i.e. it can allow wicket component tags >> just ignore them when parsed by wicket >> >> we want this because we think that the content inside wicket:remove >> should >> have no processing logic at all, just for preview purpose, and so we want >> it >> to accept any kinds of tag inside. > > <wicket:remove> causes Wicket to remove anything inside it. So why would > you want to put Wicket components inside it? If you are putting things > in there for "preview purpose" why do they need to be Wicket tags? > Wicket tags won't show up when you preview the markup in a browser. > That just doesn't make any sense. > > If you want to use this for commenting things out while developing, use > HTML comments. > > Otherwise, I really can't see what possible problem you could have that > you're trying to solve with this. > > Al > -- > Alastair Maw > Wicket-biased blog at http://herebebeasties.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/%3Cwicket%3Aremove-%3E-does-not-allow-wicket-component-tags-tf3993569.html#a11344668 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user