xpages - comboBox generates a table instead of span in readmode web -
when viewing xpage on web containing table combobox in column html generated domino creates table combobox span other components (tested on textfields , computedfields).
rendered pixel of vertical alignment difference annoys me.
how can overcome this?
<table> <tbody> <tr> <td colspan="3"> <table id="view:_id1:_id2:_id3:legend1:callbackfieldcontrolset:counterpartyname"> <tbody> <tr> <td> avanza sweden </td> </tr> </tbody> </table> </td> </tr> <tr> <td> <span id="view:_id1:_id2:_id3:legend1:callbackfieldcontrolset:counterpartyshort">avanza sweden</span> </td> </tr> </tbody> </table>
in edit mode difference still there generated html of combobox not table select , can control using css.
see picture below.
example read mode
example edit mode (css edited):
<xp:table> <xp:tr> <xp:td> <xp:label value="counterparty name:" id="counterpartyname_label1" for="counterpartyname" > </xp:label> </xp:td> <xp:td> <xp:combobox id="counterpartyname" value="#{document1.counterpartyname}" required="true" > </xp:combobox> </xp:td> </xp:tr> <xp:tr> <xp:td> <xp:label value="counterparty short:" id="counterpartyshort_label1" for="counterpartyshort" > </xp:label> </xp:td> <xp:td> <xp:inputtext value="#{document1.counterpartyshort}" id="counterpartyshort" required="true" styleclass="xspinputfieldeditbox" > </xp:inputtext> </xp:td> </xp:tr> <xp:tr> <xp:td> <xp:label value="bic code:" id="biccode_label1" for="biccode" > </xp:label> </xp:td> <xp:td> <xp:inputtext value="#{document1.biccode}" id="biccode" styleclass="xspinputfieldeditbox" > </xp:inputtext> </xp:td> </xp:tr> </xp:table>
problem inner table has own borders (as always: 1 table , 1 td) need collapsed. create css handle this:
- give outer table own style-class e.g. "myoutertable"
your css address table inside ".myoutertable", this:
table.myoutertable table {border-collapse: collapse;}
this works fine in both edit , read mode, because in read mode have "inner" table; in edit mode there's nothing collapsed...
works in ie, btw....
hope works you
Comments
Post a Comment