xhtml

How can I render a JSF component based on if the date is greater than today's date?

江枫思渺然 提交于 2019-12-10 15:49:17
问题 i get a date from server side and how do I compare this in my xhtml code, so that if it is less than today's date, I'll render the panel, otherwise not. 回答1: You can have a method in your bean class MyBean{ public boolean isDateBigger(){ //date comparissoin and return result } } on XHTML render="#{myBean.dateBigger}" Update: As per your comment, if you want to accomplish it through javascript then. take two hidden parameter. One current millis and another representing your date's millis

What is an appropriate HTML pattern for displaying name/value pairs?

别来无恙 提交于 2019-12-10 15:36:49
问题 I was inspired to ask this by a comment on my How can I style a list of name-value pairs to appear like an HTML table? question last night, that code like this is not an appropriate use of label. What should I rather use to indicate a fixed-name / changing-value pair in read only mode? <ol class="name-value" style="width: 100%;"> <li> <label for="about">Client</label> <span id="about">Apartment Applied Visual Arts</span> </li> <li> <label for="about">Report Date</label> <span id="Span1">2011

Which alt text is best for screen readers for example “smiling kid”?

心不动则不痛 提交于 2019-12-10 15:27:39
问题 Which would be good write ALT text for a photo of kid which is smiling and sitting in garden? This alt="Photo of smiling kid sitting in the garden" or this alt="Photo of smiling kid" or this alt="Smiling kid sitting in the garden" or this alt="Smiling kid" my purpose is to ask this question, I want to know should we include "Photo of..." in every alt text and And how much we should describe the photo in alt text. 回答1: It depends on the context but make it as short as possible without leaving

Is .html extension better than .php and .aspx for SEO?

試著忘記壹切 提交于 2019-12-10 14:59:53
问题 Is .html extension better than .php and .aspx for SEO ? or extension less url is better then all 回答1: The extension has little effect on rankings and all that SEO jazz. Your page's extension may not neccessarily indicate how the content was generated. A PHP or ASPX, whilst normally attributed with dynamic content, can quite easily always render static content. Furthermore, with some relatively easy configuration, you can get all .html pages to be processed as if they were a dynamic page (ie,

In javascript, jQuery, or css how do I get a div or iframe to expand to fill rest of space

℡╲_俬逩灬. 提交于 2019-12-10 14:57:21
问题 I have three iframes and I set the top iframe to 50px height and I set the bottom iframe to 50px, but I want the middle iframe to exand to fill the rest of the space. Is there a technique I can use to do this for any window screen size? thanks. example: <iframe style="width:100%; height:50px;" src="headerstuff.asp" %></iframe> <iframe style="width:100%; height:100%;" src="Content.asp" %></iframe> <!-- height needs to fill --> <iframe style="width:100%; height:50px;" src="footerstuff.asp" %><

Updating code from Quirks Mode to XHTML 1.0 Strict - Where to Validate?

喜欢而已 提交于 2019-12-10 14:57:08
问题 I wrote some HTML code with out a DTD (rendered via quirks mode). Sorry. Now I want to have it validated in XHTML Strict 1.0 so I added the DTD tag I've carried these steps to make the code "clean". Verified proper nesting Verified proper closure of tags Verified proper closure of empty tags Verified lower case Verified single root element Where can I go to validate the code? 回答1: If you wish to validate your html, use http://validator.w3.org/ 回答2: If you really want to your code to valid

why do I keep seeing “//” instead of “http://” for resources lately?

ⅰ亾dé卋堺 提交于 2019-12-10 14:49:57
问题 I saw more an more Javascript files and pictures and CSS loaded like this: src="//somepath" instead of src="http://somepath" What is this and what does it mean? Is there any documentation to it? Thanks! 回答1: This is called protocol-relative URLs. Paul Irish has written a nice blog post about it. 来源: https://stackoverflow.com/questions/9358609/why-do-i-keep-seeing-instead-of-http-for-resources-lately

Exception java.lang.NoClassDefFoundError in Dynamic Web Application, Eclipse, JSF [duplicate]

妖精的绣舞 提交于 2019-12-10 14:32:32
问题 This question already has answers here : java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config (2 answers) Closed 3 years ago . when I'm running my appication everything is ok to moment when I press the button and I'm redirecting to another xhtml page. Then eclipse console until I stop server display: SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/ChatAzure] threw exception [javax/servlet/jsp/jstl/core/Config] with root cause java.lang

Image map area poly certain coords Firefox doesn't work, IE works

大憨熊 提交于 2019-12-10 13:58:29
问题 I've got a problem with image map HTML. Working example with no style and no js on: http://www.download.lagunawebdesign.pl/bug/ <img src="http://www.download.lagunawebdesign.pl/bug/Bez-nazwy-2.png" width="242" height="347" alt="Planets" usemap="#planetmap" /> <map id="planetmap" name="planetmap"> <area shape="poly" coords="31,37,31,68,47,68,47,54,51,54,51,38" title="1" alt="" href="#" /> <area shape="poly" coords="29,48,23,47,23,42,6,42,6,57,13,58,15,67,31,66,30,49" title="2" alt="" href="#"

IE8 and quirks mode

左心房为你撑大大i 提交于 2019-12-10 13:28:29
问题 Does IE8 run in quirks mode like IE6/7? I have a webpage that has some truly bizarre code. The content is centered with padding and negative margins. It works correctly in IE6/7 and other browsers but in IE8 the content area is half as wide and not centered (flag for quirks mode). The source code has three blank lines before the DOCTYPE. I know that will throw IE6 into quirks mode. Will it also affect IE8? I don't have access to the source so I cannot remove those lines to test it. 回答1: