Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7728387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:42:16+00:00 2026-06-01T05:42:16+00:00

I’m having issues with the persistance of primefaces components in Spring Webflow. If the

  • 0

I’m having issues with the persistance of primefaces components in Spring Webflow. If the components are instantiated as part of the original page request, everything works fine. However, if the components are instantiated during an ajax request, they’re not persisted correctly and when retrieving them later we get an empty object. The effect of this is for example that components on the second tab of a tabview (with dynamic=true) does not work. An example:

<!DOCTYPE composition 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:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
    xmlns:c="http://java.sun.com/jsp/jstl/core">

    <h:head>
        <ui:insert name="headIncludes" />
    </h:head>
    <h:body>
        <h:form id="testForm">
            <p:tabView id="myTabView" dynamic="true">
                <p:tab title="Tab One" id="tabOne">
                    <h:panelGroup id="tabOneGroup">
                        <p:commandLink id="linkX" value="Link X" actionListener="#{sandboxBean.testCommandLinkx}" >
                            <f:ajax />
                        </p:commandLink>
                    </h:panelGroup>
                </p:tab>
                <p:tab title="Tab Two" id="tabTwo">
                    <h:panelGroup id="tabTwoGroup">
                        <p:commandLink id="linkY" value="Link Y" actionListener="#{sandboxBean.testCommandLinky}" >
                            <f:ajax /><!-- Only matters if we switch to h:commandLink -->
                        </p:commandLink>
                    </h:panelGroup>
                </p:tab>
            </p:tabView>
        </h:form>
    </h:body>
</html>

When the page is first loaded, a UIComponent representing the commandlink linkX is instantiated and an attribute value for ‘actionListener’ is saved. When we click “Link X”, this attribute value is retrieved again and used to call testCommandLinkx(). This works fine.

When we switch to Tab Two, an ajax request is made and during this another UIComponent representing linkY is created the same way and persisted. However, when we actually click on the commandlink and try to retrieve the actionListener attribute value, we find that there is no such attribute. We instead receive an entirely new object.

If we change to dynamic=”false” for the tabView, both commandlinks are created and persisted during the initial page request and everything works fine. If we keep dynamic=”true” but use a h:commandLink instead of a p:commandLink, everything also works fine.

Now, I don’t really think this is a primefaces bug, as if it was tons of other people would have noted it too. Other people have also tested this particular code fragment without issues. For the same reason I doubt this is a webflow bug. It seems more likely to be a configuration error in our project but I have no idea where. It seems a bit lengthy to include every single configuration file but if you want to see the contents of one just comment and I will add it.

As for versions of different components as people will undoubtedly ask:

  • Primefaces: 3.0.1 and all later versions for dynamic tabViews (as this was the first version to support it for real) but it’s possible to recreate it in earlier versions if you use another construct that instantiates components in ajax requests.
  • Mojarra: 2.0.4 (but I have also tried 2.0.8 and 2.1.6 without improvement)
  • Spring Webflow: 2.2.1 (have also tried 2.3)
  • Tomcat: 7.0.12 (have tried various other also)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:42:17+00:00Added an answer on June 1, 2026 at 5:42 am

    This issue appears to be a bug in Spring WebFlow and is actually fixed in 2.3.1 that was release March 27th.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm making a simple page using Google Maps API 3. My first. One marker
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.