Most voted "xhtml" questions
XHTML is a reformulation of the XML-based HTML markup language. It combines HTML markup tags with XML rules.
Learn more…101 questions
Sort by count of
-
14
votes4
answers1112
viewsIs there an XHTML5 (XHTML + HTML5)?
XHTML is HTML with strict syntax (must be a valid XML). I can use it in conjunction with HTML5?
-
10
votes1
answer1380
viewsIs it good practice not to close the . php file with ? > after an XHR call made from a . html file?
Should I close the PHP tag <?php with the ?>? A friend with more experience recommended me not to close saying that it was a "good programming practice", I never understood why, but I follow…
-
9
votes3
answers3926
viewsWhat is XHTML and when should it be used?
What I know is that XHTML needs to be valid XML. This implies, for example, that all tags need to be closed. For example: Errado: <br> Certo: <br/> But what is the use of it? What is it…
-
9
votes2
answers2637
viewsWhat is the point and difference of using <![CDATA[]]> inside a <script> tag?
What is the point, or what is the difference of using or not the content of the script with this CDATA? <script type="text/javascript"> //<![CDATA ... //]] </script>…
-
8
votes2
answers198
viewsWhat main precautions should I keep in mind for my application to work properly in different browsers?
I program small systems using xhtml, ajax and php. When I mount the code I test the parts in Chrome developer tool (Ctr+I) and in phptester.net. When I finish my application I have to debug…
-
7
votes2
answers1185
viewsWhich pattern to use: HTML5 or XHTML5?
Why should we not mix the two and which of the patterns is most useful today?
-
6
votes1
answer383
views -
5
votes1
answer609
viewsLoading multiple images through Javascript
I’m trying to load an image through Javascript but it didn’t work. HTML looks like this: <img src="img/bola.jpg/>, but in Javascript I don’t know. The code below is to show loading multiple…
-
4
votes2
answers272
viewsHow to create a box with two separate texts
Hello, I am a beginner of XHTML and I ask you to tell me about this code and not Html5. I want to make a header but I’m not getting it. The goal is for the first text to be higher than the first.…
-
4
votes3
answers15283
viewsHow to go to a part of a text on the same page by clicking on a link above
Imagine a page with a lot of text. What I want to do is make a word clickable that when the user clicks goes to another text on the same page. I want to do this using XHTML and CSS. I have at least…
-
4
votes2
answers374
viewsIs it possible to build a pure HTML register?
I need to create a register with name and description in HTML, or PHP, that does not make use of a database but I do not know if it is possible. Something that can store the records on file and also…
-
4
votes1
answer94
viewsBetter formatting of xhtml files
Given the excerpt from my archive .xhtml: <h:panelGrid id="camposPesquisa" columns="2"> <h:outputLabel value="#{msg['nome']}: " /> <p:inputText value="#{naturemb.arg}" />…
-
3
votes2
answers915
viewsTwo Different Horizontal Menus
I’m creating two horizontal menus on the same page with different settings and so I used a class in each of them. I’m not getting one of these menus to get the one-color box on have What I did was…
-
3
votes1
answer147
viewsJavascript error opening page - Uncaught Syntaxerror
When I open the page it breaks and when I open the browser console appears the following error: Uncaught SyntaxError: Unexpected token ; When I see the code on the console it appears this way: if…
-
3
votes2
answers1060
viewsPrevent browser autocomplete
There is how to prevent, through code, the browser to make suggestions to fill in the login form? It is that the system will be used in laboratories and it would be boring the browser to suggest all…
-
3
votes1
answer267
viewsJSF page displaying Object reference value
good night. I have a JSF page called simulated.xhtml on which implement a filter to generate the simulated and I’m also trying to display results from the database that have already been filtered on…
-
2
votes2
answers9687
viewsWhat is the difference between the <span> and the class?
While studying XHTML, I understood that the <span> is an inline element. A class will be a block element. But when to use one and the other? Besides them, when to use some elements knowing…
-
2
votes1
answer116
viewsHow to inactivate the empty area of a div?
I have a div on add mouse events but wanted the mouse hit only to work where content existed and ignore the po ex margins. Follow the image( the yellow area is the area I want to 'inactivate' since…
-
2
votes1
answer194
viewsList coming with null value
Well, the thing is, I have three methods that are called init() of my Bean, only one works and the other 2 comes as null, I’ve already debugged and in my Product the data is correct, but when I…
-
2
votes1
answer320
viewsGraphic Primefaces with Consultation by Month and Year
I am trying to query a chart per month and year that when I click on the chart series it will display the records belonging to that path. When doing the search the chart is mounted correctly…
-
2
votes1
answer482
viewsHow to insert icons in JSF?
In a registration form I have to insert edit and remove icons in a form made in JSF. <h:commandLink action="#{clienteController.editar}">Editar…
-
2
votes2
answers562
viewsChange the color of a box in the horizontal menu
I’m making a horizontal menu and I want each element of this menu to have a 20px box. Now I want that when passing with the mouse by top that box change color. That’s why I thought the a:hover…
-
2
votes1
answer65
viewsproblems using inputfile in JSF 2.1
I am using version JSF 2.1 with this artifact below; <dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId>…
-
2
votes1
answer72
viewsHow to make my image appear inside the ui:repeat tag?
I have a question. I am using JSF and Primefaces to make a website for ebooks and need to display the ebooks that are stored in the database. I can register the ebook normally, but when it comes to…
-
2
votes1
answer43
viewsProblem with datatable Selection, and how to access a var outside of the repeat method (primeFaces)
Hello I have a screen where I list some records through the datatable (primefaces) 1) In my Bean I have two lists one that I feed with the records returned from the bank and the other that will be…
-
1
votes1
answer1345
viewsPrimeface uploadFile + graphicImage: Upload image and display without refresh
I’m starting to program on jsf + primefaces. A long time ago I worked with JSP(java 1.4) and I’m kind of lost. I’m looking to upload an image and have it displayed below. xhtml images. <?xml…
-
1
votes1
answer450
views<p:datatable> with variable column amount
Good night. Can anyone tell if it is possible (and how to do it) to create a datatable of the first faces whose column number is variable? For example, imagine two cases, A and B. In set A I would…
-
1
votes1
answer30
viewsProlog-related error on a. xhtml page using Netbeans
Is there any relationship between . xhtml and Prolog pages? Or compiling pages and Prolog in Netbeans? Using Netbeans I get a build error: I can’t understand the connection between a thing (.xhtml,…
-
1
votes0
answers237
viewsPrimefaces Menubar does not enter div
Good night. My menubar is not entering the div in which it is contained. <header> <h:graphicImage library="img" name="logo.jpg" id="logo"/> <h:form> <p:growl id="messages"/>…
-
1
votes1
answer74
viewsInline display does not work properly with span
Man display:inline not working properly would like to know where I am missing it should look like this one: But I can’t follow my code below: .abertura-chamados li { display: inline; }…
-
1
votes1
answer256
viewsThe <p:datatable> is not paginated
Get a page that gets a stop. <f:metadata> <f:viewParam name="id" value="#{MyBean.MyObject.id}" /> <f:event type="preRenderView" listener="#{MyBean.exibir}" /> </f:metadata>…
-
1
votes3
answers303
viewsJSF - Selecting Item from a Set
I want to make a xhtml that returns a list of users and next appears a button to select a particular user. Something like this: +----------------------------+ | ID | User | (Button) |…
-
1
votes1
answer50
viewsAbout button rendering
Hello, folks. I’m putting together a program that works with user registration. In this project there is a screen to consult registered users. The problem is as follows: in the Register Search…
-
1
votes1
answer271
viewsselectonemenu and dialog of primefaces
Hello, everyone. At the moment I’m having a problem with prime faces which is a library of visual components of Java. The problem I am having is the following: On the login screen of my system,…
-
1
votes0
answers43
viewswant to pass my java script function to the bean when loading the page
want to pass my java script function to the bean when loading the page, no need to click the button ? I am using the remote,…
-
1
votes1
answer2996
viewsGrab Content from another page with jquery
I want to create a way to open this page of Sptrans in an app, but without loading all their layout, only the fields: LOGIN, PASSWORD and REGISTER, using only HTML and JQUERY. The elements I need…
-
1
votes0
answers28
views -
1
votes0
answers55
viewsHow do I list the images on a XHTML page
Greeting to all, is the first time that I am implementing a list of images on an XHTML page, my project is a news registration, and is using the upload approach recording the image path in the bank…
-
1
votes1
answer2246
viewsHow to redirect page in JSF?
I have a system with a form in which you can edit or remove items. In it there is a link to redirect another page. What form it is possible to redirect a JSF page?…
-
1
votes1
answer1973
viewsSpeaker gap in panelGrid
I have 4 columns, and I want the last 2 more separate from the first. I can’t help it.? Code: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0…
-
1
votes1
answer49
viewshow to implement jsPanel with jsf
I am trying to render a xhtml page inside jsPanel, but only return the empty jsPanel. this is javascript: function executeLoad(aUrl){ $.jsPanel({ load:{ url: aUrl }, selector: "#content", title:…
-
1
votes0
answers76
viewsBoolean component and rendered components do not appear on my page
You guys! Good morning! I’m having a hard time here with JSF (it has to be this technology, because it’s the one I’m currently studying at home) I’m having trouble setting boolean component values…
-
1
votes1
answer171
viewsShould prefixes be used in HTML5 elements?
I noticed in the HTML5 documentation that the use of the attribute is still allowed xmlns in the root element (tag) html. This attribute, according to my study, gives a "qualified unique name" to…
-
1
votes2
answers135
viewsHelp with HTML/Javascript
I need to create a page that has two questions with two answers (radio) of YES or NO, and, at the bottom, a send button. I need the questions and answers, when answered and the user clicks the send…
-
1
votes1
answer579
viewsHow to display the recovered String value of the JSF session?
I am facing a problem when trying to display, in xhtml, a String value recovered from session. What I want is to show the value of a String attribute (attribute name) of an object of the class I…
-
1
votes0
answers253
viewshow to get the selected value in the combobox (h:Selectonemenu )?
<h:form> <div class="form-group"> <label>Categoria de Produto</label> <h:selectOneMenu value="#{produtoController.produto.categoriaProduto}" styleClass="form-control"…
-
1
votes0
answers203
viewsDisplay confirmation dialog before closing tabview tab primefaces
I’m developing a jsf web application that I need to work with tabs (similar to Chrome). For this, I am using the tabview component of the first faces that has been very useful so far. The problem is…
-
1
votes1
answer463
viewsHow to merge <h:column > columns in JSF?
How can I merge columns or rows in JSF 2.0 ? Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html…
-
1
votes2
answers109
viewsLinks in the menu do not work with Javascript - Primefaces
I have a file called Menu.xhtml which has the entire menu structure of my project. However, clicking on any link in the menu does not open the destination page, the function of expanding and leaving…
-
0
votes1
answer44
viewsCreate style and not style xhtml css
Long live, I’m trying to create a title from type: Shopping . com I intend that the ". com" is bold but I don’t want to use the "em" because it’s not a paragraph. You know how to do that?…