New component pe:statusBar

Community Driven Extensions Project
User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

14 Jun 2012, 10:53

Thanks. But it still generates JS script. Right? We need a lightweight without JS script to place it e.g. in DataTable column. Just an output, like all h:output*. Otherwise there are performance problems with big tables, like p:select* if you have 100+ such selects on a page.

And we need:

- Tooltip (title) displaying the same labelTemplate on mouseover. We show e.g. progress bars in table column (hit list after search) with title "Relevance {value}%".
- labelPosition ("left" | "top" | "right" | "bottom" | "middle" (default)).
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

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

14 Jun 2012, 11:18

Added displayOnly attribute not to render script, label position is easy to customize with css and no action taken for tooltip stuff. Maybe for future for p:progressBar as it doesn't have high priority right now.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

14 Jun 2012, 11:36

Great, thanks for the fast response! Tooltip is missing ;) What is about to render "title" per default, similar what you already do:

Code: Select all

if(labelTemplate != null && value != 0) {
    // render style
    ...
    String label = labelTemplate.replaceAll("\\{value\\}", String.valueOf(value));
    writer.write(label);
    writer.writeAttribute("title", label, null);     // this line is new
}
This is just one line of code. Could you add it please and save our life? :-) Thanks again.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

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

14 Jun 2012, 11:44

Why do we need to display same text both on label and on tooltip? Shouldn't tooltip provide advisory information?

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

14 Jun 2012, 11:54

My mistake. My use case - no label, only tooltip. It makes sence because progress bar is too small within table column. Maybe a new attribute "onlyTooltip" (true | false)? If true - no label is shown, only tooltip.

If it's too time expensive for you, forget this post. Thanks.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

14 Jun 2012, 12:15

Like this

Image
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

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

14 Jun 2012, 12:33

I've taken a note about this, I think it would be useful for sure, will give an update today or tomorrow. Thanks for the feedback Oleg.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

14 Jun 2012, 12:40

Thank you too, Cagatay! We will remove started work on pe:outputProgressBar. No needs in this comp. Thanks again.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

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

14 Jun 2012, 12:50

Yes, let's not work on things that overlap too much.

Scott Warner
Posts: 3
Joined: 12 Jun 2012, 18:57

14 Jun 2012, 15:52

You guys are great. Thank you.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests