Resizable Event components for Timeline

Community Driven Extensions Project
Post Reply
Posts: 2
Joined: 19 Oct 2012, 09:49

19 Oct 2012, 15:05

Working with the timeline component in the extensions, and managed to run a sample instance on my own, it is really nice.

Is it possible that the events in the timeline can be made resizable?
I am aware of p:resizable and its "for" property, but when I look at the source code of the extensions project I think it won't work
The events in the timeline get their IDs with event.setId(UUID.randomUUID().toString()) method, so I cannot use p:resizable if I understand it correctly.

Is there any other way?

primefaces 3.4.1
primefaxes-extensions 0.6.1

Posts: 110
Joined: 10 Nov 2010, 13:43
Location: Pune, India

19 Oct 2012, 16:37

You can set Ids manually by implementing Timeline and TimelineEvent interface.
Instead of using DefaultTimeline and DefaultTimelineEvent.
Nilesh N. Mali
Angular 2.x | Prime NG
FF: latest | Chrome: latest | vscode
Blog: | PrimeFaces Extensions:

Posts: 2
Joined: 19 Oct 2012, 09:49

22 Oct 2012, 08:39

Hi Nilesh,
Thank you for your reply.
As you may already know, the

Code: Select all

p:resizable for="x"
tag works for a single UIComponent.
There will be several TimelineEvent's in a Timeline component and I think p:resizable will not work for these since their IDs will be dynamic.

Is it possible to attach a resizable attribute to TimelineEvent's on the components side independent of their IDs? (A ResizableTimelineEvent component that every instance is resizable without using p:resizable on the jsf side)
primefaces 3.4.1
primefaxes-extensions 0.6.1

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

22 Oct 2012, 10:35

Yeah, p:resizable for="x" is stupid. By the way, mostly PF Extensions components have "forSelector" attribute for more then one target element. You can try to use native jQuery resizable plugin maybe.
PrimeFaces Cookbook (2. edition): Learning Angular UI Development with PrimeNG: ... th-primeng Blog:

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest