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 (&lt;XUL&gt;) 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>&lt;tagdef name="customtag" class="CustomTagDef" processbody="true"/&gt;</P>
<P>&nbsp;</P>
<P>My xul code is like:</P>
<P>&lt;XUL&gt;<BR>&nbsp; &lt;customtag&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;label .../&gt;<BR>&nbsp; &lt;/customtag&gt;<BR>&lt;/XUL&gt;</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>&nbsp; Xul.SyntaxError.UNSUPPORTED_TAG_INSIDE(node.getElementName(), Xul.Tag.XUL);</P>
<P>By:<BR>else<BR>&nbsp; _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>&nbsp;</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