Probem with update by tree

UI Components for JSF
Post Reply
Roamer_KDN
Posts: 3
Joined: 17 Oct 2009, 11:26

03 Mar 2010, 10:24

I've try use primefaces tree. I've found a problem: after update all symbols in Russian (UTF-8) transformed to ????????? and images in table is disapired. the code is here:

Code: Select all

<p:layout  style="width: 900px; height: 1720px;">
                <p:layoutUnit position="west" style="width: 700px;">
                    <h:form>
                        <p:tree value="${accessRoleTree.root}"
                                var="item"
                                nodeSelectListener="${accessRoleTree.onNodeselect}"
                                dynamic="true"
                                update="formID"
                                cache="false">
                            <p:treeNode type="role">
                                <h:outputText value="${item.name}" />
                            </p:treeNode>
                            <p:treeNode type="accessRole">
                                <h:outputText value="${item.shortUrl}" />
                            </p:treeNode>
                        </p:tree>
                    </h:form>
                </p:layoutUnit>

                <p:layoutUnit id="centerId"  position="center">
                    <h:form id="formID"  prependId="false">
                        <p:dataTable id="id2"
                                     value="${accessRoles.selectedAccessRoles}"
                                     var="accessRole"
                                     rowIndexVar="row"
                                     selectionMode="single"
                                     binding="${accessRoles.table}"
                                     
                                     >
                            <p:column>
                                <h:outputText value="${row}"/>
                            </p:column>

                            <p:column>
                                <f:facet name="header"><h:outputText value="Name (here was text in russian)"/></f:facet>
                                <h:outputText value="${accessRole.humanName}"/>
                            </p:column>

                            <p:column>
                                <f:facet name="header"><h:outputText value="filePath"/></f:facet>
                                <h:outputText value="${accessRole.filePath}"/>
                            </p:column>

                            <p:column>
                                <f:facet name="header"><h:outputText value="shortUrl"/></f:facet>
                                <h:outputText value="${accessRole.shortUrl}"/>
                            </p:column>

                            <p:column>
                                <a4j:commandLink value="edit"
                                                 oncomplete="dlg.show()"
                                                 action="${accessRoleProperties.onPopulate}"
                                                 reRender="accessRolePropertiesForm" >
                                    <img src="${server.baseUrl}/static/images/edit.gif"/>
                                </a4j:commandLink>
                            </p:column>
                        </p:dataTable>
                    </h:form>
                </p:layoutUnit>
            </p:layout>

Help me, please
--
Sorry about my English :(

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

03 Mar 2010, 13:37

Do you have a character encoding filter defined?

Also there is a little bug in character encoding in PPR updates in PrimeFaces.

See: http://code.google.com/p/primefaces/iss ... ail?id=546

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests