i mean this js library visjs.org and timeline is
http://visjs.org/examples/timeline/01_basic.html


On Wed, Feb 19, 2014 at 11:13 AM, Ernesto Reinaldo Barreiro <
[email protected]> wrote:

> Is this JS library the one what you mean?
>
> http://timeline.knightlab.com/
>
> if so,
>
> <iframe wicket:id="timeline" width='100%' height='650'
> frameborder='0'></iframe>
>
> Java
>
> /**
>  * @author reiern70
>  *
>  */
> public class TimeLineContainer extends WebMarkupContainer {
>
>
> public TimeLineContainer(String id, IModel<String> url) {
> super(id, url);
> }
>  @Override
> protected void onComponentTag(ComponentTag tag) {
> checkComponentTag(tag, "iframe");
>
> CharSequence url = getURL();
>
> // generate the src attribute
> tag.put("src", Strings.replaceAll(url, "&", "&amp;"));
>
> super.onComponentTag(tag);
> }
>
> private CharSequence getURL() {
> return getDefaultModelObjectAsString();
> }
> }
>
> I haven't tried the above but it might work
>
>
> On Wed, Feb 19, 2014 at 7:45 AM, Farrukh SATTOROV <[email protected]
> >wrote:
>
> > Hi all, is there any recipes how integrate 3rd party javascript component
> > to wicket component. For example i have Timeline js class and i need to
> > bind it to WebComponent as container, what steps i need to do.
> >
> > --
> > Regards, Farrukh
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
Regards, Farrukh

Reply via email to