MenuButton (java script) rerendering problem

UI Components for JSF
Post Reply
radl
Posts: 6
Joined: 10 Sep 2010, 11:59

10 Sep 2010, 12:18

Hi All,

i would like to use PrimeFaces to migrate our big application from RichFaces to some better (faster) framework. But I have some problem with ajax rendering:

If I use for example menuButton component in some update area it will stop working after ajax request. The reason is that the java script is not rerender after ajax request. If I use rerender the whole page with submit request than the component start working again.

I've also tested on your actual showcases war.

Code: Select all

<h:panelGrid columns="2" cellpadding="5" id="xxx">

                                        <p:menuButton value="Options">
                                                <p:menuitem value="Save" actionListener="#{buttonBean.save}" update="messages, xxx" />
                                                <p:menuitem value="Update" actionListener="#{buttonBean.update}" update="messages"/>
                                                <p:menuitem value="Delete" actionListener="#{buttonBean.delete}" ajax="false"/>
                                                <p:menuitem value="Homepage" url="http://www.primefaces.org"/>
                                        </p:menuButton>

                                        <p:ajaxStatus style="width:16px;height:16px;">
                                                <f:facet name="start">
                                                        <h:graphicImage value="../design/ajaxloading.gif" />
                                                </f:facet>

                                                <f:facet name="complete">
                                                        <h:outputText value="" />
                                                </f:facet>
                                        </p:ajaxStatus>
                                </h:panelGrid>

I've changed just first menu item to update the grid.

This is only big problem we have. therwise the PrimeFaces components are great (GUI and perfomance).

Regards

Jan

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

16 Sep 2010, 20:18

I'm aware of an issue related to menu components, they don't like being updated with ajax. Can you please create an issue so we can look in detail to see why this happens.

User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

24 Sep 2010, 18:37

There is already an issue related to this problem? i want to star it. thanks
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

26 Sep 2010, 05:55

Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests