columnChart update only occurs once

UI Components for JSF
Post Reply
normhamson
Posts: 3
Joined: 25 Mar 2010, 01:09

25 Mar 2010, 23:17

I am demoing primeFaces for some graphing needs of our application (currently richFaces and seam).

I've got the integration working well with a simple interactive column chart. I followed the demos to have an itemSelectListener setting a string variable in the backingbean and updating an outputText tag with the updated message. This all works on the first click. The display shows which bar of the chart I clicked. After that, though, subsequent clicks hit the itemSelect method in the backing bean (logging to the console), but do not update the outputText region.

Any ideas?

Here are snippets from my code:
xhtml:

Code: Select all

               <h:form>
                    <h:outputText id="columnInfo" value="#{startUpGeneralBB.message}"/>
                    <p:columnChart value="#{startUpGeneralBB.generalModule.moduleSteps}" var="column" xfield="#{column.name}"
                                   maxY="100"
                                   itemSelectListener="#{startUpGeneralBB.itemSelect}" update="columnInfo">
                        <p:chartSeries label="Percent Complete" value="#{column.percent}"/>
                    </p:columnChart>
                 </h:form>
backingBean:

Code: Select all

    public void itemSelect(ItemSelectEvent event) {
        log.debug("Item: " + event.getItemIndex() + ", series: " + event.getSeriesIndex());
        message = "Item Index: " + event.getItemIndex();
    }

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

26 Mar 2010, 02:39

Hi,

Welcome to PrimeFaces,

I couldn't replicate it as showcase seems to be working fine although;

http://www.primefaces.org:8080/prime-sh ... Charts.jsf

Which exact JSF version do you have?

normhamson
Posts: 3
Joined: 25 Mar 2010, 01:09

26 Mar 2010, 17:42

The showcase works for me also.

Here's the manifest from my jsf api jar:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_04-b05 (Sun Microsystems Inc.)
Specification-Title: JavaServer Faces
Specification-Version: 1.2MR2
Implementation-Title: Mojarra
Implementation-Version: 1.2_09-b01-BETA1
Implementation-Vendor: Sun Microsystems, Inc.
Implementation-Vendor-Id: com.sun
Extension-Name: javax.faces

Here are the other version things, in case that helps:

Java: jdk1.5.0_15
Jboss: 4.2.2.GA
Seam: 2.1.1.GA
RichFaces: 3.3.1.GA

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

29 Mar 2010, 20:10

I'd suggest upgrading your mojarra implementation version to a newer one like 1.2_13, I remember that some users reported only once update issue before with old versions of mojarra, upgrading to a newer one should fix this for you as it did for them.

normhamson
Posts: 3
Joined: 25 Mar 2010, 01:09

31 Mar 2010, 20:16

I tried 1.2_13 (your suggestion) and 1.2_14 (latest) and they both exhibit the same behavior. The first click is registered through the backing bean and updates the appropriate field. Each subsequent click is only registered in the backing bean. No dynamic update.

Any other ideas?

norm

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 60 guests