confirmDialog isn't showing correctly

UI Components for JSF
Post Reply
dbconrado
Posts: 19
Joined: 22 Jul 2009, 21:51

13 Aug 2009, 21:44

Hi!

Look at this code below:

Code: Select all

<p:dataTable ...>
<!-- some columns -->
<p:column>
   <p:commandLink ...>
      <p:confirmDialog .../>
   </p:commandLink>
</p:column>
</p:dataTable>
When p:dataTable fills the whole browser horizontally, the confirmDialog doesn't show properly. It seems that confirmDialog assumes the same width of parent's column.

any ideas?
Thank's

[]'s
db

dbconrado
Posts: 19
Joined: 22 Jul 2009, 21:51

18 Aug 2009, 19:32

up (sorry I'm so anxious :| )

dbconrado
Posts: 19
Joined: 22 Jul 2009, 21:51

20 Aug 2009, 20:04

Is there a way to use only one confirmDialog to several commandLink's?
I used confirmDialog inside a delete's commandLink of a table. But, for each row, a new confirmDialog is rendered. It could decrease application performance, couldn't it? :?

any ideas?

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

20 Aug 2009, 22:07

There's a width attribute to define dialog width, this's help for alignment I guess.

About the performance issue, you're right since it'll be rendered multiple times it has a downside. I can't think of a workaround for this now other than using legacy "return confirm()" thing instead for usage with datatable.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests