Problem with TR inside a group

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

Problem with TR inside a group

Antoine.DE-TROOSTEMBERGH
Problem with TR inside a group

Hi,

I have a table containing several rows. Some of these rows need only to be shown in certain cases.

So I have:
<xforms:group ref=".[my-test]">
        <xhtml:tr>
       
        </xhtml:tr>
</xforms:group>

This was working in orbeon 3.6 but seems to be broken in orbeon 3.7
Is this really a bug or am I doing something wrong.

In attachement you will find a working sandbox example:
In it you will see that row "Value 3 - TR in Group in SwitchCase1 (test-group = 0)" should not be displayed.

<<table.xhtml>>
If you could correct this or show me a workaround it would be nice as this is one of the last issues we have migrating to 3.7.1

Thanks,


Antoine



--
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

table.xhtml (12K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem with TR inside a group

Erik Bruchez
Administrator
Antoine,

I don't see "Value 3 - TR in Group in SwitchCase1 (test-group = 0)".  
Upon loading, I see:

* case1
* Value 2 - TR in Group in SwitchCase1 (test-group = 1)
* Value 2 - TR in Group (test-group = 1)

If I deselect the checkbox, this becomes:

* case1

-Erik

On Jun 15, 2009, at 9:28 AM, <Antoine.DE-
[hidden email]> <[hidden email]
 > wrote:

> Hi,
>
> I have a table containing several rows. Some of these rows need only  
> to be shown in certain cases.
>
> So I have:
> <xforms:group ref=".[my-test]">
>         <xhtml:tr>
>         …
>         </xhtml:tr>
> </xforms:group>
>
> This was working in orbeon 3.6 but seems to be broken in orbeon 3.7
> Is this really a bug or am I doing something wrong.
>
> In attachement you will find a working sandbox example:
> In it you will see that row "Value 3 - TR in Group in SwitchCase1  
> (test-group = 0)" should not be displayed.
>
> <<table.xhtml>>
> If you could correct this or show me a workaround it would be nice  
> as this is one of the last issues we have migrating to 3.7.1
>
> Thanks,
>
>
> Antoine
>
> <table.xhtml>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Problem with TR inside a group

Antoine.DE-TROOSTEMBERGH
Eric,

When I load the file in http://www.orbeon.com/ops/xforms-sandbox/
Here is what I see (attachement)
I have the same result in IE and chrome.


Antoine

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: Tuesday, June 16, 2009 3:27 AM
To: [hidden email]
Subject: [ops-users] Re: Problem with TR inside a group

Antoine,

I don't see "Value 3 - TR in Group in SwitchCase1 (test-group = 0)".  
Upon loading, I see:

* case1
* Value 2 - TR in Group in SwitchCase1 (test-group = 1)
* Value 2 - TR in Group (test-group = 1)

If I deselect the checkbox, this becomes:

* case1

-Erik

On Jun 15, 2009, at 9:28 AM, <Antoine.DE-
[hidden email]> <[hidden email]
 > wrote:

> Hi,
>
> I have a table containing several rows. Some of these rows need only  
> to be shown in certain cases.
>
> So I have:
> <xforms:group ref=".[my-test]">
>         <xhtml:tr>
>         …
>         </xhtml:tr>
> </xforms:group>
>
> This was working in orbeon 3.6 but seems to be broken in orbeon 3.7
> Is this really a bug or am I doing something wrong.
>
> In attachement you will find a working sandbox example:
> In it you will see that row "Value 3 - TR in Group in SwitchCase1  
> (test-group = 0)" should not be displayed.
>
> <<table.xhtml>>
> If you could correct this or show me a workaround it would be nice  
> as this is one of the last issues we have migrating to 3.7.1
>
> Thanks,
>
>
> Antoine
>
> <table.xhtml>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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

table.jpg (102K) Download Attachment
table_unchecked.jpg (75K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Problem with TR inside a group

Erik Bruchez
Administrator
You are using 3.7.1, right?

-Erik

On Jun 16, 2009, at 12:38 AM, <Antoine.DE-
[hidden email]> <[hidden email]
 > wrote:

> Eric,
>
> When I load the file in http://www.orbeon.com/ops/xforms-sandbox/
> Here is what I see (attachement)
> I have the same result in IE and chrome.
>
>
> Antoine
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]
> Sent: Tuesday, June 16, 2009 3:27 AM
> To: [hidden email]
> Subject: [ops-users] Re: Problem with TR inside a group
>
> Antoine,
>
> I don't see "Value 3 - TR in Group in SwitchCase1 (test-group = 0)".
> Upon loading, I see:
>
> * case1
> * Value 2 - TR in Group in SwitchCase1 (test-group = 1)
> * Value 2 - TR in Group (test-group = 1)
>
> If I deselect the checkbox, this becomes:
>
> * case1
>
> -Erik
>
> On Jun 15, 2009, at 9:28 AM, <Antoine.DE-
> [hidden email]> <[hidden email]
>> wrote:
>
>> Hi,
>>
>> I have a table containing several rows. Some of these rows need only
>> to be shown in certain cases.
>>
>> So I have:
>> <xforms:group ref=".[my-test]">
>>        <xhtml:tr>
>>        …
>>        </xhtml:tr>
>> </xforms:group>
>>
>> This was working in orbeon 3.6 but seems to be broken in orbeon 3.7
>> Is this really a bug or am I doing something wrong.
>>
>> In attachement you will find a working sandbox example:
>> In it you will see that row "Value 3 - TR in Group in SwitchCase1
>> (test-group = 0)" should not be displayed.
>>
>> <<table.xhtml>>
>> If you could correct this or show me a workaround it would be nice
>> as this is one of the last issues we have migrating to 3.7.1
>>
>> Thanks,
>>
>>
>> Antoine
>>
>> <table.xhtml>
>> --
>> 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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
> <table.jpg><table_unchecked.jpg>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Problem with TR inside a group

Antoine.DE-TROOSTEMBERGH
Yes, the online version


Antoine

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: Tuesday, June 16, 2009 8:02 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: Problem with TR inside a group

You are using 3.7.1, right?

-Erik

On Jun 16, 2009, at 12:38 AM, <Antoine.DE-
[hidden email]> <[hidden email]
 > wrote:

> Eric,
>
> When I load the file in http://www.orbeon.com/ops/xforms-sandbox/
> Here is what I see (attachement)
> I have the same result in IE and chrome.
>
>
> Antoine
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]
> Sent: Tuesday, June 16, 2009 3:27 AM
> To: [hidden email]
> Subject: [ops-users] Re: Problem with TR inside a group
>
> Antoine,
>
> I don't see "Value 3 - TR in Group in SwitchCase1 (test-group = 0)".
> Upon loading, I see:
>
> * case1
> * Value 2 - TR in Group in SwitchCase1 (test-group = 1)
> * Value 2 - TR in Group (test-group = 1)
>
> If I deselect the checkbox, this becomes:
>
> * case1
>
> -Erik
>
> On Jun 15, 2009, at 9:28 AM, <Antoine.DE-
> [hidden email]> <[hidden email]
>> wrote:
>
>> Hi,
>>
>> I have a table containing several rows. Some of these rows need only
>> to be shown in certain cases.
>>
>> So I have:
>> <xforms:group ref=".[my-test]">
>>        <xhtml:tr>
>>        …
>>        </xhtml:tr>
>> </xforms:group>
>>
>> This was working in orbeon 3.6 but seems to be broken in orbeon 3.7
>> Is this really a bug or am I doing something wrong.
>>
>> In attachement you will find a working sandbox example:
>> In it you will see that row "Value 3 - TR in Group in SwitchCase1
>> (test-group = 0)" should not be displayed.
>>
>> <<table.xhtml>>
>> If you could correct this or show me a workaround it would be nice
>> as this is one of the last issues we have migrating to 3.7.1
>>
>> Thanks,
>>
>>
>> Antoine
>>
>> <table.xhtml>
>> --
>> 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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
> <table.jpg><table_unchecked.jpg>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Problem with TR inside a group

Alessandro Vernet
Administrator
Antoine,

Antoine dT wrote
Yes, the online version
This is happening because you have a case around a group around a tr, and because the HTML we generate has to be flat, the CSS for the enabled case override the CSS for the disabled group, while you'd like to have the opposite. I added a bug for this:

http://forge.ow2.org/tracker/index.php?func=detail&aid=313921&group_id=168&atid=350207

But this is not trivial to fix, so as a workaround you can put a tbody between the case and group, so those are not all at the same level. (And having multiple tbody inside a table is OK in HTML.). See here a modified version of your example that does just that:

case-group.xhtml

Alex
Reply | Threaded
Open this post in threaded view
|

RE: RE: Re: RE: Re: Problem with TR inside a group

Antoine.DE-TROOSTEMBERGH


Thanks a lot Alex,

It's better but not perfect yet.

The most annoying is the FireFox case ...
Please see the screenshots.

This is all working fine with Orbeon 3.6.

In Firefox on first load everything is OK but after unchecking and rechecking the checkbox the table gets messed up


In Internet Explorer
 
In Chrome


Antoine

-----Original Message-----
From: Alessandro Vernet [[hidden email]]
Sent: Friday, June 19, 2009 4:13 AM
To: [hidden email]
Subject: [ops-users] RE: Re: RE: Re: Problem with TR inside a group


Antoine,


Antoine dT wrote:
>
> Yes, the online version
>

This is happening because you have a case around a group around a tr, and
because the HTML we generate has to be flat, the CSS for the enabled case
override the CSS for the disabled group, while you'd like to have the
opposite. I added a bug for this:

http://forge.ow2.org/tracker/index.php?func=detail&aid=313921&group_id=168&atid=350207

But this is not trivial to fix, so as a workaround you can put a tbody
between the case and group, so those are not all at the same level. (And
having multiple tbody inside a table is OK in HTML.). See here a modified
version of your example that does just that:

http://www.nabble.com/file/p24104471/case-group.xhtml case-group.xhtml

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/Problem-with-TR-inside-a-group-tp24038009p24104471.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.



--
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: Re: Problem with TR inside a group

Alessandro Vernet
Administrator
Antoine,

Antoine dT wrote
It's better but not perfect yet.

The most annoying is the FireFox case ...
Please see the screenshots.

This is all working fine with Orbeon 3.6.

In Firefox on first load everything is OK but after unchecking and rechecking the checkbox the table gets messed up
For reference, I posted a work-around for this issue on:

http://www.nabble.com/Problem-with-%3Cxforms%3Agroup%3E-inside-a-Table-with-3.7.1-tp24207940p25375174.html

Alex