Re: [xmlc] WML and getElementById() bug

Justin Akehurst <[email protected]> Wed, 20 Jul 2005 07:11:56 -0700
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
Thanks, I'm just now getting around to trying this out to see if it will work.

Any timeframe on a 2.2.7 release?

-Justin

On 4/4/05, Jacob Kjome <[email protected]> wrote:
> 
> Please try building the latest source to see if it solves the issue.  I
> also fixed VoiceXML in the same way.  Note that the latest source uses ASM
> 2.0RC1 rather than BCel (this will be a 2.2.7 feature) and requires the
> DOM3 xml-apis.jar to be in both the compile and runtime classpath (see the
> 2.2.6 release notes for DOM3 stuff).  If you use JDK1.5, then you have no
> worries.  If you have anything less than that, then follow the 2.2.6
> release notes.
> 
> After checking out the source, just type:
> 
> ant all-libs
> 
> If you run on a system less than JDK1.5, I suggest you compile under the
> same (or older) JDK as your runtime JDK.  For releases, I use JDK1.3.1_15
> just to make sure that XMLC is bytecode-compatible pretty much anywhere you
> run it.
> 
> Let me know how it goes!
> 
> Jake
> 
> At 09:55 AM 4/4/2005 -0700, you wrote:
>  >Some of the handsets that our company supports can only handle WML
>  >1.3, and really freak out and do weird things if given any XHTML-MP
>  >stuff.  We do both, and on a handset by handset basis decide which
>  >language to serve.
>  >
>  >-Justin
>  >
>  >On Apr 4, 2005 9:33 AM, Jacob Kjome <[email protected]> wrote:
>  >>
>  >> Thanks for clarifying.  I see another user also confirms this.  I will
> try to
>  >> look at this sometime this week.  Hopefully version 2.2.7 will have this
>  >fixed!
>  >>
>  >> BTW, any reason you aren't using the XHTMLized versions of WML?  Both
> the 1.0
>  >> and 2.0 WML XHTML dtd's are part of the XMLC XHTML distribution.
>  >>
>  >> Jake
>  >>
>  >> Quoting Justin Akehurst <[email protected]>:
>  >>
>  >> > Yes, we were actually experiencing this problem.
>  >> > There is no stack trace since the getElementById() method just returns
>  >> > null instead of the Element.  Using vers. 2.2.5 of xmlc
>  >> >
>  >> > I had to write a workaround with XPath to get past the problem.
>  >> >
>  >> > This seems to only happen with WML.  Using XHTML it works as expected.
>  >> >
>  >> > XMLObject xml;  <-- This is an XMLC class compiled with WML.
>  >> > String elementId;
>  >> > Element node = xml.getElementById(elementId);
>  >> > if (node == null) {
>  >> >       node = xpathFind(xml, "//*[@id='" + elementId + "']");
>  >> > }
>  >> >
>  >> > xpathFind() is a small helper method that just does an
>  >> > XPathAPI.selectSingleNode() call on the xmlobject.
>  >> >
>  >> > in my options.xmlc file I have this line:
>  >> > domFactory="org.enhydra.wireless.wml.WMLDomFactory"
>  >> >
>  >> > -Justin
>  >> >
>  >> >
>  >> > On Apr 3, 2005 10:11 PM, Jacob Kjome <[email protected]> wrote:
>  >> > >
>  >> > > Justin,
>  >> > >
>  >> > > Are you actually experiencing this or were you just being wary
> about the
>  >> > > mere discussion of the it?  Can you send a stack trace?  What
> version of
>  >> > > XMLC are you using?
>  >> > >
>  >> > > Jake
>  >> > >
>  >> > > At 01:53 PM 3/4/2005 -0800, you wrote:
>  >> > >  >Hello,
>  >> > >  >
>  >> > >  >I noticed some traffic in 2002/2003 about how WML's XMLObject has a
>  >> > >  >getElementById() method that just returns null, and that there was a
>  >> > >  >patch to fix it (against LazyDOM).
>  >> > >  >
>  >> > >  >Could someone please fix this?  I am needing this functionality.
>  >> > >  >Ideally I'd like to have it included in a new XMLC release.  Also if
>  >> > >  >you do come up with a fix, I'd like to get the patch to fix it, so
>  >> > >  >that I can continue working as normal.
>  >> > >  >
>  >> > >  >References:
>  >> > >  >http://mail-archive.objectweb.org/xmlc/2002-07/msg00077.html
>  >> > >  >http://mail-archive.objectweb.org/xmlc/2003-06/msg00003.html
>  >> > >  >
>  >> > >  >Thanks,
>  >> > >  >
>  >> > >  >-Justin Akehurst
>  >> > >  >
>  >> > >  >
>  >> > >  >--
>  >> > >  >You receive this message as a subscriber of the [email protected]
>  >> > mailing
>  >> > >  >list.
>  >> > >  >To unsubscribe: mailto:[email protected]
>  >> > >  >For general help: mailto:[email protected]?subject=help
>  >> > >  >ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
>  >> > >
>  >> > >
>  >> > >
>  >> > > --
>  >> > > You receive this message as a subscriber of the [email protected]
>  >mailing
>  >> > list.
>  >> > > To unsubscribe: mailto:[email protected]
>  >> > > For general help: mailto:[email protected]?subject=help
>  >> > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  >> > >
>  >> > >
>  >> > >
>  >> >
>  >> >
>  >>
>  >>
>  >>
>  >> --
>  >> You receive this message as a subscriber of the [email protected] mailing
>  >list.
>  >> To unsubscribe: mailto:[email protected]
>  >> For general help: mailto:[email protected]?subject=help
>  >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  >>
>  >>
>  >>
>  >
>  >
>  >--
>  >You receive this message as a subscriber of the [email protected] mailing
>  >list.
>  >To unsubscribe: mailto:[email protected]
>  >For general help: mailto:[email protected]?subject=help
>  >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> 
> 
> 
> 
> 
> --
> You receive this message as a subscriber of the [email protected] mailing list.
> To unsubscribe: mailto:[email protected]
> For general help: mailto:[email protected]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> 
> 
>
message-footer.txt (text/plain, 269 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws