Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By gimbal2

Thread: i can not run JSF

  1. #1
    uqurcetin is offline Member
    Join Date
    Aug 2013
    Posts
    4
    Rep Power
    0

    Question i can not run JSF

    hi java lovers,

    i am novice about java . I want to make small web project with using JSF.. i have added to primefaces components in my project , i running my application i can not see primefaces components. Page is empty :( help me please, screwing with my head

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,733
    Rep Power
    5

    Default Re: i can not run JSF

    And how can anyone help you with no information other than "it doesn't work" ? You'll need to post your code. Please use the proper code tags to do so, in the advanced editor you can find a button to add those.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    uqurcetin is offline Member
    Join Date
    Aug 2013
    Posts
    4
    Rep Power
    0

    Default

    <!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://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">
    <f:view contentType="text/html">
    <h:head/>
    <h:body>
    <h:form>
    <p:spinner/>
    </h:form>
    </h:body>
    </f:view>
    </html>


    my code is that.. i see blang page . i can not see spinner component in web page . what is the problem ?

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,733
    Rep Power
    5

    Default Re: i can not run JSF

    Sigh, no code tags as I requested...

    Use your browser to see the HTML source of the page. What do you see there?

    My guess is: JSF is not properly setup so the XHTML content is just spit to the browser as it is. When you have zero text in the content, then it will indeed appear blank.
    uqurcetin likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    uqurcetin is offline Member
    Join Date
    Aug 2013
    Posts
    4
    Rep Power
    0

    Default Re: i can not run JSF

    i worked :) okey no problem thank you

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,733
    Rep Power
    5

    Default Re: i can not run JSF

    Excellent, but what was it? Please say what you needed to change, for other people that find this thread with the same problem.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  7. #7
    uqurcetin is offline Member
    Join Date
    Aug 2013
    Posts
    4
    Rep Power
    0

    Default Re: i can not run JSF

    i changed primefaces version . i installed primefaces-3.4.jar, and deleted primefaces-3.5.jar from my project :)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •