Error: Target id must be static id

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error: Target id must be static id

Philipp Wagner
Hi,

I recently upgraded to Orbeon 4 M13 and have now a problem with existing
forms, looking like this:

---------
<xf:label for="/path/to/data">Some Label</xf:label>
<xf:input id="/path/to/data" ref="/path/to/data"/>
---------

As you can see, the ID is equivalent to the binding, but in the
label/@for it's not used as binding, but as regular ID. This has been
working before, and I don't see how the given ID would be invalid.

Still, Orbeon logs show this error:

|Target id must be static id: /path/to/data|

This behavior was introduced with
https://github.com/orbeon/orbeon-forms/commit/fa5cc709731d6bdafaef4d43ac0a8aafac6735e6

Am I missing something or is Orbeon a bit too restrictive here?

Philipp


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error: Target id must be static id

Erik Bruchez
Administrator
I see, that's because Orbeon now uses ids starting with "/" internally for special purposes. I have entered an issue:



On Mon, Nov 5, 2012 at 2:39 AM, Philipp Wagner <[hidden email]> wrote:
Hi,

I recently upgraded to Orbeon 4 M13 and have now a problem with existing
forms, looking like this:

---------
<xf:label for="/path/to/data">Some Label</xf:label>
<xf:input id="/path/to/data" ref="/path/to/data"/>
---------

As you can see, the ID is equivalent to the binding, but in the
label/@for it's not used as binding, but as regular ID. This has been
working before, and I don't see how the given ID would be invalid.

Still, Orbeon logs show this error:

|Target id must be static id: /path/to/data|

This behavior was introduced with
https://github.com/orbeon/orbeon-forms/commit/fa5cc709731d6bdafaef4d43ac0a8aafac6735e6

Am I missing something or is Orbeon a bit too restrictive here?

Philipp


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error: Target id must be static id

Erik Bruchez
Administrator
This issue is now partially fixed and the fix is in M15. At least your
scenario, where the id starts with "/", is addressed. However we need a
better, deeper fix in the future:

https://github.com/orbeon/orbeon-forms/issues/576

-Erik

On Tue, Nov 6, 2012 at 4:09 PM, Erik Bruchez <[hidden email]> wrote:

> I see, that's because Orbeon now uses ids starting with "/" internally for
> special purposes. I have entered an issue:
>
> https://github.com/orbeon/orbeon-forms/issues/551
>
> -Erik
>
>
> On Mon, Nov 5, 2012 at 2:39 AM, Philipp Wagner <[hidden email]>
> wrote:
>>
>> Hi,
>>
>> I recently upgraded to Orbeon 4 M13 and have now a problem with existing
>> forms, looking like this:
>>
>> ---------
>> <xf:label for="/path/to/data">Some Label</xf:label>
>> <xf:input id="/path/to/data" ref="/path/to/data"/>
>> ---------
>>
>> As you can see, the ID is equivalent to the binding, but in the
>> label/@for it's not used as binding, but as regular ID. This has been
>> working before, and I don't see how the given ID would be invalid.
>>
>> Still, Orbeon logs show this error:
>>
>> |Target id must be static id: /path/to/data|
>>
>> This behavior was introduced with
>>
>> https://github.com/orbeon/orbeon-forms/commit/fa5cc709731d6bdafaef4d43ac0a8aafac6735e6
>>
>> Am I missing something or is Orbeon a bit too restrictive here?
>>
>> Philipp
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Error: Target id must be static id

Philipp Wagner
Am 14.11.2012 18:23, schrieb Erik Bruchez:
> This issue is now partially fixed and the fix is in M15. At least your
> scenario, where the id starts with "/", is addressed. However we need a
> better, deeper fix in the future:
>
> https://github.com/orbeon/orbeon-forms/issues/576

Thanks Erik, I'll give it a try early next week.

Philipp


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Error: Target id must be static id

Philipp Wagner
Am 15.11.2012 11:51, schrieb Philipp Wagner:
> Am 14.11.2012 18:23, schrieb Erik Bruchez:
>> This issue is now partially fixed and the fix is in M15. At least your
>> scenario, where the id starts with "/", is addressed. However we need a
>> better, deeper fix in the future:
>>
>> https://github.com/orbeon/orbeon-forms/issues/576
>
> Thanks Erik, I'll give it a try early next week.

Just a quick heads-up: it works again as expected with M16.

Thanks!

Philipp


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Error: Target id must be static id

Erik Bruchez
Administrator
Philipp,

Great, thanks for confirming.

-Erik

On Mon, Nov 26, 2012 at 11:14 AM, Philipp Wagner
<[hidden email]> wrote:

> Am 15.11.2012 11:51, schrieb Philipp Wagner:
>> Am 14.11.2012 18:23, schrieb Erik Bruchez:
>>> This issue is now partially fixed and the fix is in M15. At least your
>>> scenario, where the id starts with "/", is addressed. However we need a
>>> better, deeper fix in the future:
>>>
>>> https://github.com/orbeon/orbeon-forms/issues/576
>>
>> Thanks Erik, I'll give it a try early next week.
>
> Just a quick heads-up: it works again as expected with M16.
>
> Thanks!
>
> Philipp
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws