some css style not rendering

UI Components for JSF
Post Reply
godblessfreedom
Posts: 3
Joined: 03 Jul 2010, 16:58

03 Jul 2010, 19:07

I'm using primefaces 1.0.2

the css style of the component p:messages is not rendering in Tomcat 6.0 but working in glassfish 3

what might be the reason?

jsp partial code:

Code: Select all

<p:messages id="msg2"/> 
<p:commandButton id="subBTn2"  value="retreive"  update="msg2"  style="margin-right:20px;"
                actionListener="#{yahooBean.processBySearch}" />
action partial code:

Code: Select all

FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,"","no records found"));
I didn't forget putting

Code: Select all

<p: resources/>
in jsp header

web.xml

Code: Select all

<servlet>
		<servlet-name>Resource Servlet</servlet-name>
		<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>Resource Servlet</servlet-name>
		<url-pattern>/primefaces_resource/*</url-pattern>
	</servlet-mapping>
I also checked the source code of jsp page , I see this

Code: Select all

<link rel="stylesheet" type="text/css" href="/webMiner/primefaces_resource/1.0.2/primefaces/messages/messages.css" />

and this messages.css an be accessed.. so why it is not rendering ? is something wrong with configuration of tomcat 6 ?..

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Jul 2010, 13:29

Your code seems to be fine so you can see the message but it's not styled?

godblessfreedom
Posts: 3
Joined: 03 Jul 2010, 16:58

07 Jul 2010, 14:10

Yes....

I don't know why..

it's styled in Glassfish but not in tomcat...very strange

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Jul 2010, 16:03

What happens when you directly access http://localhost:8080/webMiner/primefac ... ssages.css when deployed on tomcat.

godblessfreedom
Posts: 3
Joined: 03 Jul 2010, 16:58

13 Jul 2010, 19:04

it can be accessed and shown

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests