A question about self-defined tag......
Added by Richard Li over 11 years ago
How can I print self-defined tag into browser?
I see the WFormWidget's virtual method,I can only print the tag which defined in DomElement.h file.
If I want to print or ActiveX's tag, must I modify the Wt's source code?
....is there any convient way?
Replies (3)
RE: A question about self-defined tag...... - Added by Koen Deforche over 11 years ago
Hey,
There is no way to create a widget directly with a self-defined tag, but you are free to use it in WTemplate (or WText).
The reason for the 'limited' tag list has been that we developed Wt as a UI library that targets HTML, not as a HTML library that happens to use widgets. The difference is thus that we want to be feature complete in terms of UI features, not in terms of what HTML supports.
If something is really missing then please file a feature request.
Regards,
koen
RE: A question about self-defined tag...... - Added by Richard Li over 11 years ago
Hey~I test the WTemplate and WText and ... partly worked.
Some tag has refused by XSS filter.The info such as:[secure] "XSS: discarding invalid tag: OBJECT"
How can I close the XSS filter?
RE: A question about self-defined tag...... - Added by Richard Li over 11 years ago
On~I found the method.....like this:
temp->bindString("object", "", XHTMLUnsafeText);