Is there any reason that components require that they be applied to specific tag types in the markup files? I'm writing a little utility which calculates at runtime what "editor" to use based on the property type (a la Trails). So, I have no idea what type of tag to use. I thought I'd just do this (the actual component is a TextField in this case):
<div wicket:id="editor" /> But, I get the following error message: org.apache.wicket.markup.MarkupException: Component editor must be applied to a tag of type 'input', not '<div wicket:id="editor">' (line 0, column 0) If I change my markup to: <input type="text" wicket:id="editor" /> then it works. But, suppose a certain property requires a more complicated "editor" component (maybe rich text, so I'd use something like FCKEditor). Would that component be complaining that it's being applied to an <input> tag? Is there any generic way to do this so that all components will be happy at runtime with the markup? Is there any way to relax that restriction? James --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
