-
1. Re: Problem with rich:chart
michpetrov May 1, 2017 8:12 AM (in response to soporteit)What exactly is the problem? "I can't" doesn't explain anything. What version of RichFaces are you using?
-
2. Re: Problem with rich:chart
soporteit May 1, 2017 12:27 PM (in response to michpetrov)Hello again.
I’m using Richfaces 4.x Demo from this page http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=chart <http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=chart&skin=blueSky> &skin=blueSky
In section output/panels we’ve an option called rich:chart
I’ve been trying to make it functional but I can’t. I use Netbeans witha server Jboss.
Could you help?
De: michpetrov do-not-reply@jboss.com
Enviado el: lunes, 01 de mayo de 2017 06:13 a.m.
Para: Esteban Giron <soporteit@dasa.com.gt>
Asunto: Re: - Problem with rich:chart
<https://developer.jboss.org/?et=watches.email.thread> JBoss Developer
Problem with rich:chart
reply from Michal Petrov <https://developer.jboss.org/people/michpetrov?et=watches.email.thread> in RichFaces - View the full discussion <https://developer.jboss.org/message/971433?et=watches.email.thread#971433>
-
3. Re: Problem with rich:chart
michpetrov May 2, 2017 5:49 AM (in response to soporteit)I still don't know what version of RichFaces you are using.
I’ve been trying to make it functional but I can’t.
Well, I can't help you if you don't tell me what's wrong with it. Are you running the whole showcase or are you just using the example? What isn't working, what do you see on the page? Do you see any errors on the server or in the console?
-
4. Re: Problem with rich:chart
soporteit May 2, 2017 11:31 AM (in response to michpetrov)I’ll send it to you this yesterday. I’m using Richfaces 4.x Demo. The problem is that I can use in my code this command <rich:chart> example </rich:chart>
This libraries
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a="http://richfaces.org/a4j"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:s="http://richfaces.org/sandbox/prototyping"
xmlns:r="http://richfaces.org"
template="layout/template.xhtml">
<ui:define name="body">
<h:form id="pruebva" styleClass="edit">
<rich:panel>
<f:facet name="header">#{pruebvaHome.managed ? 'Edit' : 'Add'} Pruebva</f:facet>
<s:decorate id="jField" template="layout/edit.xhtml">
<ui:define name="label">J</ui:define>
<h:inputText id="j"
required="true"
disabled="#{pruebvaHome.managed}"
value="#{pruebvaHome.instance.id.j}">
<a:support event="onblur" reRender="jField" bypassUpdates="true" ajaxSingle="true"/>
</h:inputText>
</s:decorate>
<s:decorate id="nombreField" template="layout/edit.xhtml">
<ui:define name="label">Nombre</ui:define>
<h:inputText id="nombre"
disabled="#{pruebvaHome.managed}"
required="true"
size="50"
maxlength="50"
value="#{pruebvaHome.instance.id.nombre}">
<a:support event="onblur" reRender="nombreField" bypassUpdates="true" ajaxSingle="true"/>
</h:inputText>
</s:decorate>
This is my error!!!!!
<rich:chart id="pie" title="USA GDP">
<rich:chartLegend sorting="ascending" />
<rich:chartSeries type="pie" />
</rich:chart>
Hello again.
I’m using Richfaces 4.x Demo from this page http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=chart <http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=chart&skin=blueSky> &skin=blueSky
In section output/panels we’ve an option called rich:chart
I’ve been trying to make it functional but I can’t. I use Netbeans witha server Jboss.
Could you help?
De: michpetrov do-not-reply@jboss.com
Enviado el: martes, 02 de mayo de 2017 03:49 a.m.
Para: Esteban Giron <soporteit@dasa.com.gt>
Asunto: Re: - Problem with rich:chart
<https://developer.jboss.org/?et=watches.email.thread> JBoss Developer
Problem with rich:chart
reply from Michal Petrov <https://developer.jboss.org/people/michpetrov?et=watches.email.thread> in RichFaces - View the full discussion <https://developer.jboss.org/message/971472?et=watches.email.thread#971472>
-
5. Re: Problem with rich:chart
michpetrov May 3, 2017 4:59 AM (in response to soporteit)Sorry, I understand that you have a problem with the chart but if you say "I’ve been trying to make it functional but I can’t." I don't know what that means. On one hand there's the example in the demo, on the other hand there's your page. You expect both to look the same but I assume they do not, I need to know what's different.
Now, since you included the code it looks like the problem is somewhere else:
- for one the rich:chartSeries is not bound to any variable, so I wouldn't expect it to display anything
- secondly you're using a4j:support which a tag in RichFaces 3, so I'm going to assume that you're not using RichFaces 4.x (and I'd also like to point out that 4.x is not a version number, what I wanted to know is if you're using e.g. RichFaces 4.5.12.Final)
- if that is the case then you cannot use rich:chart because rich:chart was added in RichFaces 4.5, in fact you cannot use most of the examples in the demo because RichFaces 3 and 4 are not compatible.
-
6. Re: Problem with rich:chart
soporteit May 3, 2017 3:10 PM (in response to michpetrov)Yes, I said that because i couldn’t put a graphic in my Project. I just wanna put a bar or pie in my Project. Could you tell me how do that?
The steps to import a library necesary for my graphic and the correct code?; I’m sorry for my questions but it’s my first time on this. I’m using Jboss 6.0.0. Final.
I’m not using Richfaces 4 or other version, just the code in the page, like examples.
I understand in your other answers your explanation, but I can’t find information step by step how to used correctly.
De: michpetrov do-not-reply@jboss.com
Enviado el: miércoles, 03 de mayo de 2017 03:00 a.m.
Para: Esteban Giron <soporteit@dasa.com.gt>
Asunto: Re: - Problem with rich:chart
<https://developer.jboss.org/?et=watches.email.thread> JBoss Developer
Problem with rich:chart
reply from Michal Petrov <https://developer.jboss.org/people/michpetrov?et=watches.email.thread> in RichFaces - View the full discussion <https://developer.jboss.org/message/971506?et=watches.email.thread#971506>
-
7. Re: Problem with rich:chart
michpetrov May 4, 2017 4:17 AM (in response to soporteit)The xmlns attributes do not import libraries, they only tell JSF what libraries to look for but you have to include the libraries in your project. If you haven't worked with RichFaces you should start by reading the docs.
-
8. Re: Problem with rich:chart
soporteit May 4, 2017 10:10 AM (in response to michpetrov)Ok. Thank’s for your time.
De: michpetrov do-not-reply@jboss.com
Enviado el: jueves, 04 de mayo de 2017 02:18 a.m.
Para: Esteban Giron <soporteit@dasa.com.gt>
Asunto: Re: - Problem with rich:chart
<https://developer.jboss.org/?et=watches.email.thread> JBoss Developer
Problem with rich:chart
reply from Michal Petrov <https://developer.jboss.org/people/michpetrov?et=watches.email.thread> in RichFaces - View the full discussion <https://developer.jboss.org/message/971563?et=watches.email.thread#971563>