p:tooltip works but not I expected.

UI Components for JSF
Post Reply
yyq2009aa
Posts: 61
Joined: 18 Jun 2010, 21:39

30 Oct 2010, 12:57

I found p:tooltip is not good enough. I'll show you the detial.

My page:

Code: Select all

        <h:form prependId="false">
            <p:dataTable value="#{testBean.userList}" var="user" [b]width="50"[/b] style="width: 80px;" rowIndexVar="index">
                <p:column headerText="Name" width="80">
                    <t:outputText id="name" value="#{user.name}"/>
                    <p:tooltip for="name" [i]style="border: 1px solid black; width: 120px;text-align: center;">[/i]
                        <h:outputText value="#{user.name}" />
                    </p:tooltip>
                </p:column>
            </p:dataTable>
        </h:form>
Then when I run app and see in IE8 and FF3.6, there are several problems:
1. The width property of p:datatabel doesn't be seen in html source code, so I set width in style.
2. The same problem is with the property style of p:tooltip.
3. The position of tooltip is not correct, it is out of the datatable, the datatable just has one column.
Image

Do you have any plan to do something enhancements to the components?
PF 3.5
JSF 2.1 (Mojarra 2.1.19)
Glassfish 3.1.2
FF 3.6, IE 8, Chrome 25
Windows 7
NetBeans IDE 7.3

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Analytics-24 and 38 guests