Partial Update stripping HTML

UI Components for JSF
Post Reply
chaddaniels
Posts: 25
Joined: 03 Nov 2009, 03:32

08 Apr 2010, 03:11

I am having a problem where a partial update is stripping HTML <div> elements from the updated container.

The update is coming from a <p:menuitem> as shown below:

Code: Select all

<p:menuButton value="Actions" styleClass="menuButton">
    <p:menuitem id="include_selected" value="Include Selected" label=""
         action="#{Bean.includeAllAction}"
         update="thePanel"/>
</p:menuButton>
and the panel that is going to be updated looks like:

Code: Select all

<p:outputPanel id="thePanel">
    <div> <!-- This DIV seems to disappear, but its contents are fine -->
        <!-- Some content that gets updated correctly -->
    </div>
</p:outputPanel>
The problem is that the <div> element completely disappears, but its contents remain.
Glassfish 2.1, Mojarra 1.2_13-b01-FCS, Facelets 1.1.15, PrimeFaces 1.01, RichFaces 3.3.2 SR1

chaddaniels
Posts: 25
Joined: 03 Nov 2009, 03:32

08 Apr 2010, 03:15

I guess I should also mention that I am using RichFaces 3.3.2 SR1 as well, and the exact JSF version is Mojarra (1.2_14-b01-FCS).
Glassfish 2.1, Mojarra 1.2_13-b01-FCS, Facelets 1.1.15, PrimeFaces 1.01, RichFaces 3.3.2 SR1

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

08 Apr 2010, 11:21

It is a known issue that unfortunately RichFaces prevents PrimeFaces to update plain html in partial output.

chaddaniels
Posts: 25
Joined: 03 Nov 2009, 03:32

08 Apr 2010, 18:29

Is this something that can ever be fixed for future releases?
Glassfish 2.1, Mojarra 1.2_13-b01-FCS, Facelets 1.1.15, PrimeFaces 1.01, RichFaces 3.3.2 SR1

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

09 Apr 2010, 17:24

There are no plans, still this does not happen with JSF and PrimeFaces2.

chaddaniels
Posts: 25
Joined: 03 Nov 2009, 03:32

09 Apr 2010, 19:54

That's great to know since I will be switching to PrimeFaces 2 as soon as RichFaces 4 is ready. Thanks!
Glassfish 2.1, Mojarra 1.2_13-b01-FCS, Facelets 1.1.15, PrimeFaces 1.01, RichFaces 3.3.2 SR1

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

13 Apr 2010, 20:26

I also strongly suggest migrating to PrimeFaces2 and JSF2 as well, although featureset of PrimeFaces 1.x and 2.x are similar, there are limitations like these. Besides JSF 2.0 is very cool :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Majestic-12 [Bot] and 49 guests