Categories





IM me on the bleedyellow.com sametime community - jeremy.hodge@zetaone.com

« My turn to talk XPages, good and bad ... | Main| Calling XPages Gurus (CSS Question) »

I'm hoping some of these "annoynaces" in xPages gets fixed in 8.5.1

Category
0
1. Computed Fields are treated as block elements in the designer, even though they render as spans (thus inline) :: To reproduce, set clear:left; as the style for a computed field,and it clears the left margin in the desiger, but not in the browser (correctly so) - which leads me to the next issue:
2. Change the css on a computed field to display: block and the field's label disappears in designer, so unless you know its there, it just looks like white space
3. I find all that out because, what I really want to do is set a Visible property of some computed fields, with a <xp:br> after the data to format (like an address), but not leave blanks lines if there is no data, BUT you can't set the visible property for a break (<xp:br></xp:br>)

So this, with "hide whens" to hide certain lines:
A picture named M2

Becomes this ugly bunny:
A picture named M3

So to fix it I've got to write 1 computed field with my own HTML and <br>'s????  BUT COME ON, THIS IS XPAGES, I should be able to just hide it all when i don't need it!! Thats when I thought, ok, I won't use the <xp:br>, i'll just use css clear:left; ... worked in the designer, so I think i'm golden, but not on the web ... oh yeah, it renders a span, which is inline, so I'll change the css to display: block; clear: left .... oh, then I get this:

A picture named M4

And I get to the cmpCity line and realize, CRAP, that won't even work because City State and Zip can't be block elements and be on a single line (block always clears left and right, and don't get me started in inline-block and IE or *display: block, etc etc....)

So the best I can do is use the display: block, lose the labels, combine Address Lines 1 and 2 into one computed text and City state zip into another ... can't we just have the ability to set hide-whens for the <xp:br> element?

Life would be so much peachier  .... (seriously, did I just say peachier ..... might be time to put xpages down for the day)

Comments

Gravatar Image2 - Nice ... I didn't even think to look in to outline to selected it since I wasn't able to mouse pick it ... so I guess my gripe changes from being able to hide it, to being able to mouse pick it.

Thanks!

Gravatar Image1 - xp:br, like most (if not all) XPage controls supports the rendered ("Visible") attribute. It can't be selected on the Design tab, but can be selected in the Outline or on the Source tab; the rendered attribute can then be specified as a static or computed value in the All Properties grid or manually in the source XML.

Post A Comment