Re: When luxor will be fully tag-extensible ?
sgfdgf ryejt <[email protected]> Wed, 26 May 2004 04:46:09 +0200 (CEST)
| Newsgroups | gmane.comp.java.luxor-xul.devel |
|---|---|
| Message-ID | <[email protected]> |
--0-2140993663-1085539569=:6520
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi again,
I have updated with the beta 8, and my problem seems to be fixed. Indeed, the add(XulTag tag) method of my CustomTagDef class is invoked.
However, I can see another problem now. As it is a custom tag, the parent XULDef (<XUL>) doesn't add my custom tag to its definition lists (in the XulDef.add(XulTag node) method).
My config file is:
<tagdef name="customtag" class="CustomTagDef" processbody="true"/>
My xul code is like:
<XUL>
<customtag>
<label .../>
</customtag>
</XUL>
So when the parsing is done, I find no way to access my CustomTagDef object in order to build the associated object (in my case my custom tag represents an object extending a JInternalFrame).
To access standard xul tag, like "window", this is pretty easy:
XulManager xul = XulManager.getXulManager();
XulDefMap defMap = xul.getDefMap();
Map windowMap = defMap.getWindows();
But how can I access my CustomTagDef object ?
A solution could be, in XulDef.add(XulTag node) :
Replacing:
else
Xul.SyntaxError.UNSUPPORTED_TAG_INSIDE(node.getElementName(), Xul.Tag.XUL);
By:
else
_handler.addCustomDef(node)
and implementing addCustomDef in XulDefMap.
What do you think ?
Thanks very much for your help.
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail
Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
--0-2140993663-1085539569=:6520
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<P>Hi again,</P>
<P>I have updated with the beta 8, and my problem seems to be fixed. Indeed, the add(XulTag tag) method of my CustomTagDef class is invoked.</P>
<P>However, I can see another problem now. As it is a custom tag, the parent XULDef (<XUL>) doesn't add my custom tag to its definition lists (in the XulDef.add(XulTag node) method).</P>
<P>My config file is:</P>
<P><tagdef name="customtag" class="CustomTagDef" processbody="true"/></P>
<P> </P>
<P>My xul code is like:</P>
<P><XUL><BR> <customtag><BR> <label .../><BR> </customtag><BR></XUL></P>
<P>So when the parsing is done, I find no way to access my CustomTagDef object in order to build the associated object (in my case my custom tag represents an object extending a JInternalFrame).</P>
<P>To access standard xul tag, like "window", this is pretty easy:</P>
<P>XulManager xul = XulManager.getXulManager();<BR>XulDefMap defMap = xul.getDefMap();<BR>Map windowMap = defMap.getWindows();</P>
<P><BR>But how can I access my CustomTagDef object ?</P>
<P>A solution could be, in XulDef.add(XulTag node) :</P>
<P>Replacing:<BR>else<BR> Xul.SyntaxError.UNSUPPORTED_TAG_INSIDE(node.getElementName(), Xul.Tag.XUL);</P>
<P>By:<BR>else<BR> _handler.addCustomDef(node)</P>
<P>and implementing addCustomDef in XulDefMap.</P>
<P><BR>What do you think ?</P>
<P>Thanks very much for your help.</P>
<P> </P><p>
<hr size=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/">Créez votre Yahoo! Mail</a>
<br><br>
Dialoguez en direct avec vos amis grâce à <a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/">Yahoo! Messenger !</a>
--0-2140993663-1085539569=:6520--
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click