You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Objelean Alex <al...@gmail.com> on 2009/05/05 11:00:34 UTC

XmlPullParser error checking attributes

I've got the following exception:
Caused by: java.text.ParseException: Same attribute found twice: url
at
org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:636)

when the markup contains an object tag with a JSON encoded into param tag:

            <object id="player_api" height="100%" width="100%"
type="application/x-shockwave-flash"
data="ref/app/js/swf/flowplayer-3.1.0.swf?0.8721899861018372">
              <param value="true" name="allowFullScreen"/>
              <param value="config={"playerId":"player","clip":{"url":"
http://blip.tv/file/get/KimAronson-TwentySeconds73213.flv
"},"playlist":[{"url":"
http://blip.tv/file/get/KimAronson-TwentySeconds73213.flv"}]}"
name="flashvars"/>
            </object>


Is it a normal behaviour?

Thanks!
Alex

Re: XmlPullParser error checking attributes

Posted by Igor Vaynberg <ig...@gmail.com>.
that isnt really valid html...

param value="config={"playerId"

you should either have value in single quotes and use double quotes
inside, or the other way around, or escape the double quotes inside.

-igor

On Tue, May 5, 2009 at 2:00 AM, Objelean Alex <al...@gmail.com> wrote:
> I've got the following exception:
> Caused by: java.text.ParseException: Same attribute found twice: url
> at
> org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:636)
>
> when the markup contains an object tag with a JSON encoded into param tag:
>
>            <object id="player_api" height="100%" width="100%"
> type="application/x-shockwave-flash"
> data="ref/app/js/swf/flowplayer-3.1.0.swf?0.8721899861018372">
>              <param value="true" name="allowFullScreen"/>
>              <param value="config={"playerId":"player","clip":{"url":"
> http://blip.tv/file/get/KimAronson-TwentySeconds73213.flv
> "},"playlist":[{"url":"
> http://blip.tv/file/get/KimAronson-TwentySeconds73213.flv"}]}"
> name="flashvars"/>
>            </object>
>
>
> Is it a normal behaviour?
>
> Thanks!
> Alex
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org