xhtml

reRender a specific row of rich:dataTable

…衆ロ難τιáo~ 提交于 2019-12-09 00:13:28
问题 Good Morning! Is it possible to reRender only 1 specific row of rich:dataTable? I have a rich:dataTable and, when I do something that I´m sure only 1 row has changed, I need to reRednder only this row, not the entire table. Is it possible? How? XHTML: <rich:dataTable id="myTable" value="#{bean.table}" var="me"> <rich:column> <h:outputText value="#{me.id}" /> </rich:column> <rich:column> <h:outputText value="#{me.valueOne}" /> </rich:column> <rich:column> <h:outputText value="#{me.valueTwo}" /

CSS table, table-cell height issue in Firefox

ⅰ亾dé卋堺 提交于 2019-12-08 22:29:31
问题 To start with, I have examples and code here (a site I keep to play with stuff). This is the actual link just in case: http://www.williamrosmus.com/examples/calendar1_wf.html This is an issue I am having specifically with Firefox (I'm using v3.6), and am wondering what is going on. Requonc displays reasonably and IE8 perfectly. For a learning exercise I manually created a calendar in xhtml using CSS tables rather than traditional html tags. I set the height and width for the cells to be 100px

XHTML anchor link with background image and no text

最后都变了- 提交于 2019-12-08 19:53:19
问题 Is it possible to have anchor links no text inside that has a background image and fixed dimensions and still be good for SEO? Example CSS: a{display:block;width:50px;height:20px;background-image:url('images/background.jpg');background-repeat:no-repeat;background-position:0 0;} a:hover img{background-position:0 -20px;} Example HTML: <a href="#"></a> 回答1: If the image has text in it or you simply want to add its description, one thing you can do to help SEO and accessibility is to give the

HTML: Replacement for <center>

梦想的初衷 提交于 2019-12-08 19:14:11
问题 I always thought that replacing the <center> tag with <div style="text-align:center;"> will get me the same results. Apparently I was wrong. This is a portion of my HTML: (you can also see it in action in the page I created for this question : http://www.catmoviez.com/ErrorPageSO.aspx <div style="margin: 0 auto; background-color:red;border:5px solid black;margin-top:5px;width:750px;text-align:center;"> <span style="width:560px;padding-right:10px;text-align:left;float:left;"> <h1>Oops... We're

How do I adjust the width of a DropDown <select> box?

拈花ヽ惹草 提交于 2019-12-08 19:14:01
问题 I need to adjust the width of a select HTML box without using css, is there a way? I tried size but then it's adjusting the height, and width does nothing? Is there another way? 回答1: <style type="text/css"> select { width:200px; } </style> Does that not work? 回答2: There is no way to do it in pure HTML as per http://www.w3.org/TR/html401/interact/forms.html#h-17.6. You can set it using the style element, though which is kind of without css in that it is inline. <select style="width: .... 回答3:

Using <input> tags directly inside <table>

风流意气都作罢 提交于 2019-12-08 17:20:58
问题 I'm generating a table with multiple editable rows. like a employee every row so that you can change multiple names at the same time. I have some hidden fields inside that also need to be looped with the table rows. The problem is that having inputs inside table tags is not valid xhtml. And I don't want to wrap them inside <tr><td> tags since this would clearly make a new column for hidden fields that don't need one. Does someone know if I can wrap them inside something else to make it valid

What's the difference between a browser engine, a rendering engine and a user agent?

一曲冷凌霜 提交于 2019-12-08 17:07:41
问题 What is the role of user agent switcher? https://addons.mozilla.org/en-US/firefox/addon/59 Is the user agent different than the rendering engine? If a browser uses the same rendering engine then do we need to check on every browser? 回答1: A rendering engine is the engine that a browser uses to render the html (i.e. gecko vs webkit). A user agent is how a browser identifies itself (i.e firefox 3.5). But even if you switch the user agent of lets say firefox to safari, it will still use the gecko

How do I vertically align a content div between a header and footer div?

若如初见. 提交于 2019-12-08 14:29:26
I have three rows of primary divs in my template. I have a header, a content wrapper, and a footer. The header butts right up against the top and the footer against the bottom. I have a content wrapper div in between the two. I basically want to center the content wrapper vertically within the two divs. The content div will always be a dynamic height, so the line-height method won't work for me. What would be the best method for me to use for this? Vertically centering content Without using JavaScript, there's a limited number of ways to vertically center dynamic content: HTML tables CSS

docx4j conversion html->docx->html

假如想象 提交于 2019-12-08 10:50:26
问题 I'm working on my first project using docx4j... My goal is to export xhtml from a webapp (ckeditor created html) into a docx, edit it in Word, then import it back into the ckeditor wysiwyg. (*crosspost from http://www.docx4java.org/forums/xhtml-import-f28/html-docx-html-inserts-a-lot-of-space-t1966.html#p6791?sid=78b64a02482926c4dbdbafbf50d0a914 will update when answered) I have created an html test document with the following contents: <html><ul><li>TEST LINE 1</li><li>TEST LINE 2</li></ul><

Whitespace before XML declaration from JSP

白昼怎懂夜的黑 提交于 2019-12-08 10:44:29
问题 I'm trying to achieve full XHTML transitional validation of my JSP output but I've hit a snag. The top of the header looks like this: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> It is included with a statement that looks like this: <jsp:include> <jsp:attribute name="page"><owportal:page name="/style/portal/header.jsp" /></jsp:attribute> </jsp:include> The <owportal:page>