problem primefaces 5.2 (intellij 15.0.1)

hi,
I have problems with primefaces 5.2 when i run the next code does not work.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
   <h:body>
      <h:outputLabel value="Hello, world"/>
      <p:spinner/>
      <p:calendar></p:calendar>
      <h:outputLabel value="prueba"/>
   </h:body>
</html>



1.PNG

seeing the generated code if you can see what's doing his job but not working

<?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<body><label>Hello, world</label><span id="j_idt4" class="ui-spinner ui-widget ui-corner-all"><input id="j_idt4_input" name="j_idt4_input" type="text" class="ui-spinner-input ui-inputfield ui-state-default ui-corner-all" autocomplete="off" />
<a class="ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default ui-button-text-only"><span class="ui-button-text"><span class="ui-icon ui-icon-triangle-1-n ui-c"></span></span></a>
<a class="ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default ui-button-text-only"><span class="ui-button-text"><span class="ui-icon ui-icon-triangle-1-s ui-c"></span></span></a></span>
<script id="j_idt4_s" type="text/javascript">PrimeFaces
.cw("Spinner","widget_j_idt4",{id:"j_idt4",widgetVar:"widget_j_idt4"});
</script>
<span id="j_idt5"><input id="j_idt5_input" name="j_idt5_input" type="text" class="ui-inputfield ui-widget ui-state-default ui-corner-all" /></span>
<script id="j_idt5_s" type="text/javascript">$
(function(){PrimeFaces.cw("Calendar","widget_j_idt5",{id:"j_idt5",widgetVar:"widget_j_idt5",popup:true,locale:"es_CO",dateFormat:"d/mm/y"});});
</script><label>
prueba</label>
</body>

</html>



The configuration is automatically generated by Intellij.

2.PNG

I appreciate any help with this problem .
Regards.
4 comments
Comment actions Permalink

It would help if you could attach a complete project reproducing this problem.

0
Comment actions Permalink
Hi, attached files , thank you for your interest .


Attachment(s):
LPF.zip
0
Comment actions Permalink

Styles are missing because you didn't include h:head in the page.

Try this:

<h:head><title>p:spinner</title>
</h:head>
<h:body>
    <h:outputLabel value="Hello, world"/>

    <h:form>
        <p:spinner/>
    </h:form>

</h:body>
</html>

Works fine then:

http://i.imgur.com/4bHOEU0.png

Not IDEA related issue, as you can see.

0
Comment actions Permalink

.....if i no put <h:head></h:head> does not work, i tried with the structure complete and works fine, thanks a lot. :)

0

Please sign in to leave a comment.