Re: Accordion folding unfolding smoothly

2015-03-09 Thread avchavan
any workaround possible?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669891.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Accordion folding unfolding smoothly

2015-03-10 Thread Sebastien
Hi,

What component/library are you referring to?

Best regards,
Sebastien


On Mon, Mar 9, 2015 at 7:57 AM, avchavan  wrote:

> any workaround possible?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669891.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Accordion folding unfolding smoothly

2015-03-10 Thread avchavan
   }
};
listRepeat.setList(persons);
listRepeat.setOutputMarkupPlaceholderTag(true);
accordionContainer.add(listRepeat);
accordionContainer.setOutputMarkupPlaceholderTag(true);
mainContainer.add(accordionContainer);
this.add(mainContainer);
}

@Override
public void renderHead(IHeaderResponse response) {
response.render(new
PriorityHeaderItem(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference(;
}

}


<--WicketApplication class>
package com.proj.wicket.ui;

import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.request.Url;
import org.apache.wicket.request.resource.UrlResourceReference;

public class WicketApplication extends WebApplication {
@Override
public Class getHomePage() {
return HomePage.class;
}

@Override
public void init() {
  super.init();
  this.getJavaScriptLibrarySettings().setJQueryReference(new
UrlResourceReference(Url.parse(("https://code.jquery.com/jquery-1.10.2.js";;
}
}


<--ServiceView class--->
package com.proj.wicket.ui;

public class ServiceView {
private String name;
private String date;
private String status;
private String code;
private String desc;

public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getStatus() {
    return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}

}


<--Home HTML--->


The toggle("slow") part doesnt work.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669900.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Accordion folding unfolding smoothly

2015-03-10 Thread Maxim Solodovnik
   }
> });
>
> listContainer.add(new
> AttributeAppender("onclick", new
> Model("$('"+listContainer.getMarkupId()+"').toggle('slow')")));
>
> item.add(listContainer);
> item.add(descriptionContainer);
> item.setOutputMarkupPlaceholderTag(true);
>
> }
> };
> listRepeat.setList(persons);
> listRepeat.setOutputMarkupPlaceholderTag(true);
> accordionContainer.add(listRepeat);
> accordionContainer.setOutputMarkupPlaceholderTag(true);
> mainContainer.add(accordionContainer);
> this.add(mainContainer);
> }
>
> @Override
> public void renderHead(IHeaderResponse response) {
> response.render(new
>
> PriorityHeaderItem(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference(;
> }
>
> }
>
>
> <--WicketApplication class>
> package com.proj.wicket.ui;
>
> import org.apache.wicket.protocol.http.WebApplication;
> import org.apache.wicket.request.Url;
> import org.apache.wicket.request.resource.UrlResourceReference;
>
> public class WicketApplication extends WebApplication {
> @Override
> public Class getHomePage() {
> return HomePage.class;
> }
>
> @Override
> public void init() {
>   super.init();
>   this.getJavaScriptLibrarySettings().setJQueryReference(new
> UrlResourceReference(Url.parse(("https://code.jquery.com/jquery-1.10.2.js
> ";
> }
> }
>
>
> <--ServiceView class--->
> package com.proj.wicket.ui;
>
> public class ServiceView {
> private String name;
> private String date;
> private String status;
> private String code;
> private String desc;
>
> public String getName() {
> return name;
> }
> public void setName(String name) {
> this.name = name;
> }
> public String getDate() {
> return date;
> }
> public void setDate(String date) {
> this.date = date;
> }
> public String getStatus() {
> return status;
> }
> public void setStatus(String status) {
> this.status = status;
> }
> public String getCode() {
> return code;
> }
> public void setCode(String code) {
> this.code = code;
> }
> public String getDesc() {
> return desc;
> }
> public void setDesc(String desc) {
> this.desc = desc;
> }
>
> }
>
>
> <--Home HTML--->
>
>
> The toggle("slow") part doesnt work.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669900.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Accordion folding unfolding smoothly

2015-03-10 Thread avchavan
I have checked that already. but i am not allowed to use it.
Hence had write the entire code for accordion.
Is it possible to just add the toggle effect?

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669903.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Accordion folding unfolding smoothly

2015-03-10 Thread Maxim Solodovnik
you can try to use
http://7thweb.net/wicket-jquery-ui/effect/DefaultEffectPage

On Tue, Mar 10, 2015 at 5:28 PM, avchavan 
wrote:

> I have checked that already. but i am not allowed to use it.
> Hence had write the entire code for accordion.
> Is it possible to just add the toggle effect?
>
> Thanks.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669903.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Accordion folding unfolding smoothly

2015-03-10 Thread avchavan
Not allowed to have dependency. :/

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669905.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Accordion folding unfolding smoothly

2015-03-10 Thread Maxim Solodovnik
I guess this line:
listContainer.add(new AttributeAppender("onclick", new
Model("$('"+listContainer.getMarkupId()+"').toggle('slow')")));

should be
listContainer.add(new AttributeAppender("onclick", new
Model("$('#"+listContainer.getMarkupId()+"').toggle('slow')")));


On Tue, Mar 10, 2015 at 7:39 PM, avchavan 
wrote:

> Not allowed to have dependency. :/
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669905.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Accordion folding unfolding smoothly

2015-03-10 Thread Sebastien
Hi,

I agree with Maxim, jQuery selector for IDs is '#'.

If you are not able to use dependencies (personnaly I would have challenged
this with your hierarchy because Wicket jQuery UI is stable and already 3
years old...), you can at least see how it works/is implemented:
https://github.com/sebfz1/wicket-jquery-ui

Best regards,
Sebastien.


On Tue, Mar 10, 2015 at 3:02 PM, Maxim Solodovnik 
wrote:

> I guess this line:
> listContainer.add(new AttributeAppender("onclick", new
> Model("$('"+listContainer.getMarkupId()+"').toggle('slow')")));
>
> should be
> listContainer.add(new AttributeAppender("onclick", new
> Model("$('#"+listContainer.getMarkupId()+"').toggle('slow')")));
>
>
> On Tue, Mar 10, 2015 at 7:39 PM, avchavan 
> wrote:
>
> > Not allowed to have dependency. :/
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Accordion-folding-unfolding-smoothly-tp4669851p4669905.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> WBR
> Maxim aka solomax
>