Re: Message Scroll Banner in Wickets

2017-07-25 Thread Maxim Solodovnik
Maybe some "init JS" should be added onDomReady ?

On Wed, Jul 26, 2017 at 11:29 AM, ASHU_JAVA  wrote:
> Hello Martin,
>
> Ok, I've corrected the error (*missing :*) on loading the newMarquee.js.
> But even after successful loading of "newMarquee.js" (I've checked with
> alert), no marquee appears(as shown in below image) :-
> 
>
> It will just display it as normal List Items.
>
> The HTML generated is as shown in below image:-
>
> 
>
> Can you please share some inputs on how I can make the Javascript
> (newMarquee.js) and CSS (MyPanel.html) execute successfully in a wicket
> Panel?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Message-Scroll-Banner-in-Wickets-tp4678245p4678304.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

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



Re: Message Scroll Banner in Wickets

2017-07-25 Thread ASHU_JAVA
Hello Martin,

Ok, I've corrected the error (*missing :*) on loading the newMarquee.js.
But even after successful loading of "newMarquee.js" (I've checked with
alert), no marquee appears(as shown in below image) :-
 

It will just display it as normal List Items.

The HTML generated is as shown in below image:-

 

Can you please share some inputs on how I can make the Javascript
(newMarquee.js) and CSS (MyPanel.html) execute successfully in a wicket
Panel?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Message-Scroll-Banner-in-Wickets-tp4678245p4678304.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: After removing history from browser, refresh an unmounted stateful page trigger a NPE in PageProvider

2017-07-25 Thread Francois Meillet
Thanks ! 

Blazing Fast ! 

François



> Le 25 juil. 2017 à 21:36, Martin Grigorov  a écrit :
> 
> https://issues.apache.org/jira/browse/WICKET-6428
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Tue, Jul 25, 2017 at 10:22 PM, Francois Meillet <
> francois.meil...@gmail.com> wrote:
> 
>> Hi Martin,
>> 
>> I just clean the browser’s cache
>> 
>> François
>> 
>> 
>> 
>>> Le 25 juil. 2017 à 21:13, Martin Grigorov  a
>> écrit :
>>> 
>>> Hi François,
>>> 
>>> How to reproduce it ?
>>> What I should do to 'remove the history' ?
>>> 
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>> 
>>> On Tue, Jul 25, 2017 at 4:12 PM, Francois Meillet <
>>> francois.meil...@gmail.com> wrote:
>>> 
 Hi Devs,
 
 If I perform a refresh on an unmounted stateful page after having
>> cleaned
 the browser history, I get a NPE in PageProvider.
 
 This not happens on a mounted page.
 
 Wicket 8.0.0-SNAPSHOT
 
 Here the quickstart
 
 François
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 


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



Re: After removing history from browser, refresh an unmounted stateful page trigger a NPE in PageProvider

2017-07-25 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-6428

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jul 25, 2017 at 10:22 PM, Francois Meillet <
francois.meil...@gmail.com> wrote:

> Hi Martin,
>
> I just clean the browser’s cache
>
> François
>
>
>
> > Le 25 juil. 2017 à 21:13, Martin Grigorov  a
> écrit :
> >
> > Hi François,
> >
> > How to reproduce it ?
> > What I should do to 'remove the history' ?
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Tue, Jul 25, 2017 at 4:12 PM, Francois Meillet <
> > francois.meil...@gmail.com> wrote:
> >
> >> Hi Devs,
> >>
> >> If I perform a refresh on an unmounted stateful page after having
> cleaned
> >> the browser history, I get a NPE in PageProvider.
> >>
> >> This not happens on a mounted page.
> >>
> >> Wicket 8.0.0-SNAPSHOT
> >>
> >> Here the quickstart
> >>
> >> François
> >>
> >>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: After removing history from browser, refresh an unmounted stateful page trigger a NPE in PageProvider

2017-07-25 Thread Francois Meillet
Hi Martin,

I just clean the browser’s cache

François



> Le 25 juil. 2017 à 21:13, Martin Grigorov  a écrit :
> 
> Hi François,
> 
> How to reproduce it ?
> What I should do to 'remove the history' ?
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Tue, Jul 25, 2017 at 4:12 PM, Francois Meillet <
> francois.meil...@gmail.com> wrote:
> 
>> Hi Devs,
>> 
>> If I perform a refresh on an unmounted stateful page after having cleaned
>> the browser history, I get a NPE in PageProvider.
>> 
>> This not happens on a mounted page.
>> 
>> Wicket 8.0.0-SNAPSHOT
>> 
>> Here the quickstart
>> 
>> François
>> 
>> 
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 


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



Re: After removing history from browser, refresh an unmounted stateful page trigger a NPE in PageProvider

2017-07-25 Thread Martin Grigorov
Hi François,

How to reproduce it ?
What I should do to 'remove the history' ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jul 25, 2017 at 4:12 PM, Francois Meillet <
francois.meil...@gmail.com> wrote:

> Hi Devs,
>
> If I perform a refresh on an unmounted stateful page after having cleaned
> the browser history, I get a NPE in PageProvider.
>
> This not happens on a mounted page.
>
> Wicket 8.0.0-SNAPSHOT
>
> Here the quickstart
>
> François
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: NPE in org.apache.wicket.request.http.handler.RedirectRequestHandler.respond

2017-07-25 Thread Martin Grigorov
Which version of Wicket do you use ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jul 25, 2017 at 5:52 PM, Wayne W 
wrote:

> Hi,
>
> I've got a strange issue I cannot get to the bottom of. Basically we have
> our app deployed on jetty 9.2.1 with apache 2.4 in front. If I make calls
> to stateless pages its all good. However as soon as I try to make a call to
> a stateful page it does a 302 to the login page for our app, but then just
> gets stuck in a 302 loop redirection loop. Looking at the server logs its
> full of this with no other exception - each track trace corresponds to
> another 302 redirect. Each redirect is trying to get to our login page:
>
>
> 2017-07-25 14:40:18,989 ERROR -
> org.apache.wicket.DefaultExceptionMapper.internalMap(
> DefaultExceptionMapper.java:129)
> 129 DefaultExceptionMapper - Unexpected error occurred
> java.lang.NullPointerException
> at
> org.apache.wicket.request.http.handler.RedirectRequestHandler.respond(
> RedirectRequestHandler.java:99)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(
> RequestCycle.java:862)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(
> RequestHandlerStack.java:64)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(
> RequestHandlerStack.java:93)
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(
> RequestCycle.java:261)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.
> java:218)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(
> RequestCycle.java:289)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(
> WicketFilter.java:259)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.
> java:201)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(
> WicketFilter.java:282)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1653)
> at
> hub.app.servlet.RelativeUrlFilter.doFilter(RelativeUrlFilter.java:54)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1653)
> at
> com.wideplay.warp.persist.PersistenceFilter$3.run(
> PersistenceFilter.java:141)
> at
> com.wideplay.warp.persist.internal.Lifecycles.
> failEarlyAndLeaveNoOneBehind(Lifecycles.java:29)
> at
> com.wideplay.warp.persist.PersistenceFilter.doFilter(
> PersistenceFilter.java:155)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1645)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:564)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(
> ScopedHandler.java:143)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(
> SecurityHandler.java:578)
> at
> org.eclipse.jetty.server.session.SessionHandler.
> doHandle(SessionHandler.java:221)
> at
> org.eclipse.jetty.server.handler.ContextHandler.
> doHandle(ContextHandler.java:)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)
> at
> org.eclipse.jetty.server.session.SessionHandler.
> doScope(SessionHandler.java:183)
> at
> org.eclipse.jetty.server.handler.ContextHandler.
> doScope(ContextHandler.java:1045)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(
> ScopedHandler.java:141)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
> ContextHandlerCollection.java:199)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.
> handle(HandlerCollection.java:109)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(
> HandlerWrapper.java:98)
> at org.eclipse.jetty.server.Server.handle(Server.java:461)
> at org.eclipse.jetty.server.HttpChannel.handle(
> HttpChannel.java:284)
> at
> org.eclipse.jetty.server.HttpConnection.onFillable(
> HttpConnection.java:244)
> at
> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
> QueuedThreadPool.java:607)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(
> QueuedThreadPool.java:536)
> at java.lang.Thread.run(Thread.java:745)
> 2017-07-25 14:40:19,076 ERROR -
> org.apache.wicket.DefaultExceptionMapper.internalMap(
> DefaultExceptionMapper.java:129)
> 129 DefaultExceptionMapper - Unexpected error occurred
> java.lang.NullPointerException
> at
> org.apache.wicket.request.http.handler.RedirectRequestHandler.respond(
> RedirectRequestHandler.java:99)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(
> RequestCycle.java:862)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(
> 

NPE in org.apache.wicket.request.http.handler.RedirectRequestHandler.respond

2017-07-25 Thread Wayne W
Hi,

I've got a strange issue I cannot get to the bottom of. Basically we have
our app deployed on jetty 9.2.1 with apache 2.4 in front. If I make calls
to stateless pages its all good. However as soon as I try to make a call to
a stateful page it does a 302 to the login page for our app, but then just
gets stuck in a 302 loop redirection loop. Looking at the server logs its
full of this with no other exception - each track trace corresponds to
another 302 redirect. Each redirect is trying to get to our login page:


2017-07-25 14:40:18,989 ERROR -
org.apache.wicket.DefaultExceptionMapper.internalMap(DefaultExceptionMapper.java:129)
129 DefaultExceptionMapper - Unexpected error occurred
java.lang.NullPointerException
at
org.apache.wicket.request.http.handler.RedirectRequestHandler.respond(RedirectRequestHandler.java:99)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:93)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1653)
at
hub.app.servlet.RelativeUrlFilter.doFilter(RelativeUrlFilter.java:54)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1653)
at
com.wideplay.warp.persist.PersistenceFilter$3.run(PersistenceFilter.java:141)
at
com.wideplay.warp.persist.internal.Lifecycles.failEarlyAndLeaveNoOneBehind(Lifecycles.java:29)
at
com.wideplay.warp.persist.PersistenceFilter.doFilter(PersistenceFilter.java:155)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1645)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:564)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)
at org.eclipse.jetty.server.Server.handle(Server.java:461)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
at
org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
at java.lang.Thread.run(Thread.java:745)
2017-07-25 14:40:19,076 ERROR -
org.apache.wicket.DefaultExceptionMapper.internalMap(DefaultExceptionMapper.java:129)
129 DefaultExceptionMapper - Unexpected error occurred
java.lang.NullPointerException
at
org.apache.wicket.request.http.handler.RedirectRequestHandler.respond(RedirectRequestHandler.java:99)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
etc




Does any one have any idea what is causing this? Its fine on my local
machine and fine if I used tomcat behind apache.


My apache cons looks like this:


 ServerName X.com

 RequestHeader set X_FORWARDED_PROTO "https"
 RequestHeader set X-Forwarded-Proto "https"

 ErrorLog /home/wayne/error_log
 CustomLog /home/wayne/access_log combined

 SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH

 SSLEngine On
 SSLCertificateFile  

Re: Message Scroll Banner in Wickets

2017-07-25 Thread Martin Grigorov
I'd expect errors in the Network and Console tabs in the browser Dev Tools.
Otherwise put a breakpoint in newMarquee.js in Sources tab and see what
happens.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jul 25, 2017 at 2:15 PM, ASHU_JAVA  wrote:

> Hello Martin,
>
> I've added alerts on newMarquee.js file and they didn't get executed.
> By not loading, I meant to say no CSS style effects and Javascript method
> for marquee gets executed.
>
> I don't receive any error.
> The HTML just display the mypanel content as a list instead of scrolling
> marquee.
>
> Please share your inputs.
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Message-Scroll-Banner-in-Wickets-tp4678245p4678283.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: Message Scroll Banner in Wickets

2017-07-25 Thread ASHU_JAVA
Hello Martin, 

I've added alerts on newMarquee.js file and they didn't get executed. 
By not loading, I meant to say no CSS style effects and Javascript method
for marquee gets executed.

I don't receive any error.
The HTML just display the mypanel content as a list instead of scrolling
marquee. 

Please share your inputs.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Message-Scroll-Banner-in-Wickets-tp4678245p4678283.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: Message Scroll Banner in Wickets

2017-07-25 Thread Martin Grigorov
Hi,

On Tue, Jul 25, 2017 at 1:16 PM, ASHU_JAVA  wrote:

> Hello Martin,
>
> I'm trying to use  "Jquery Marquee"
> to implement the
> required
> functionality.
>
> I've made an  HTML sample    (JSfiddle),
> which is working fine but I'm unable to replicate the same in Java Wickets.
>
> Here's my code:-
>
> HomePage.html
>
> 
> 
>
> HomePage.Java
>
> add(new MyPanel("newsDetails"));
>
> MyPanel.Html
>
> 
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;>
> 
> 
> 
>
>
>
>
>
>
>
> 
> 
>
>
> 
>
> 
>
>  
>
> 
>
> 
> 
> 
>
> MyPanel.Java
>
> public class MyPanel extends Panel {
>
> private static final long serialVersionUID = -7322692526459024428L;
> @SpringBean(name = "manageMyApplication")
> protected ManageMyApplication manageApp;
> private List list;
>
> public MyPanel (String id)
> {
> super(id);
>
> RepeatingView repeatingView = new RepeatingView("news");
> List results = getAllItem(); //Getting List from
> database
> if(results!=null){
> MyBeanvalues = results.get(0);
>
> if(StringUtils.isNotEmpty(values.getList1())){
> repeatingView.add(new
> Label(repeatingView.newChildId(),values.getList1()));
> }
> if(StringUtils.isNotEmpty(values.getList2())){
> repeatingView.add(new
> Label(repeatingView.newChildId(),values.getList2()));
> }
> if(StringUtils.isNotEmpty(values.getList3())){
> repeatingView.add(new
> Label(repeatingView.newChildId(),values.getList3()));
> }
> }
>
>add(repeatingView);
>  }
>
>
> }
>
> MyResourceInitialize.java file contains javascript reference to load:
>
> @Override
> public void renderHead(final IHeaderResponse response) {
> response.renderJavaScriptReference(new
> JavaScriptResourceReference(LocateResources.class,
> "js/vendor/jquery.marquee.min.js"));
>
> response.renderJavaScriptReference(new
> JavaScriptResourceReference(LocateResources.class,
> "js/newMarquee.js"));
> super.renderHead(response);
> }
>
> The Javascript code has been added to "newMarquee.js" file as given below:-
>
> $(function () {
> $('.marquee').marquee({
>
> duration: 15000,
> duplicate: false,
> delayBeforeStart:2000,
>
> allowCss3Support: true,
> gap: 600,
>
> });
> });
>
>
> But the issue is the Javascript file "newMarquee.js" and the css mentioned
> in MyPanel.html fails to load.
>

Fails to load how ?
Error 404 ? Another error ?
What is the generated HTML ?
Is 'js/newMarquee.js' next to LocateResources.class in target/classes/... ?


> I've tried using AjaxEventBehavior to append Javascript in Wickets code but
> that too didn't work.
>
> Can you please share some inputs on how to achieve this?
> Thanks in advance.
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Message-Scroll-Banner-in-Wickets-tp4678245p4678280.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: Message Scroll Banner in Wickets

2017-07-25 Thread Maxim Solodovnik
Maybe you can share you project on github?

On Tue, Jul 25, 2017 at 5:16 PM, ASHU_JAVA  wrote:

> Hello Martin,
>
> I'm trying to use  "Jquery Marquee"
> to implement the
> required
> functionality.
>
> I've made an  HTML sample    (JSfiddle),
> which is working fine but I'm unable to replicate the same in Java Wickets.
>
> Here's my code:-
>
> HomePage.html
>
> 
> 
>
> HomePage.Java
>
> add(new MyPanel("newsDetails"));
>
> MyPanel.Html
>
> 
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;>
> 
> 
> 
>
>
>
>
>
>
>
> 
> 
>
>
> 
>
> 
>
>  
>
> 
>
> 
> 
> 
>
> MyPanel.Java
>
> public class MyPanel extends Panel {
>
> private static final long serialVersionUID = -7322692526459024428L;
> @SpringBean(name = "manageMyApplication")
> protected ManageMyApplication manageApp;
> private List list;
>
> public MyPanel (String id)
> {
> super(id);
>
> RepeatingView repeatingView = new RepeatingView("news");
> List results = getAllItem(); //Getting List from
> database
> if(results!=null){
> MyBeanvalues = results.get(0);
>
> if(StringUtils.isNotEmpty(values.getList1())){
> repeatingView.add(new
> Label(repeatingView.newChildId(),values.getList1()));
> }
> if(StringUtils.isNotEmpty(values.getList2())){
> repeatingView.add(new
> Label(repeatingView.newChildId(),values.getList2()));
> }
> if(StringUtils.isNotEmpty(values.getList3())){
> repeatingView.add(new
> Label(repeatingView.newChildId(),values.getList3()));
> }
> }
>
>add(repeatingView);
>  }
>
>
> }
>
> MyResourceInitialize.java file contains javascript reference to load:
>
> @Override
> public void renderHead(final IHeaderResponse response) {
> response.renderJavaScriptReference(new
> JavaScriptResourceReference(LocateResources.class,
> "js/vendor/jquery.marquee.min.js"));
>
> response.renderJavaScriptReference(new
> JavaScriptResourceReference(LocateResources.class,
> "js/newMarquee.js"));
> super.renderHead(response);
> }
>
> The Javascript code has been added to "newMarquee.js" file as given below:-
>
> $(function () {
> $('.marquee').marquee({
>
> duration: 15000,
> duplicate: false,
> delayBeforeStart:2000,
>
> allowCss3Support: true,
> gap: 600,
>
> });
> });
>
>
> But the issue is the Javascript file "newMarquee.js" and the css mentioned
> in MyPanel.html fails to load.
> I've tried using AjaxEventBehavior to append Javascript in Wickets code but
> that too didn't work.
>
> Can you please share some inputs on how to achieve this?
> Thanks in advance.
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Message-Scroll-Banner-in-Wickets-tp4678245p4678280.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: Message Scroll Banner in Wickets

2017-07-25 Thread ASHU_JAVA
Hello Martin,

I'm trying to use  "Jquery Marquee"
to implement the required
functionality.

I've made an  HTML sample    (JSfiddle),
which is working fine but I'm unable to replicate the same in Java Wickets.

Here's my code:-

HomePage.html




HomePage.Java

add(new MyPanel("newsDetails"));

MyPanel.Html


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;>



 














 







MyPanel.Java

public class MyPanel extends Panel {

private static final long serialVersionUID = -7322692526459024428L;
@SpringBean(name = "manageMyApplication")
protected ManageMyApplication manageApp;
private List list;

public MyPanel (String id)
{
super(id);

RepeatingView repeatingView = new RepeatingView("news");
List results = getAllItem(); //Getting List from 
database
if(results!=null){
MyBeanvalues = results.get(0);

if(StringUtils.isNotEmpty(values.getList1())){
repeatingView.add(new
Label(repeatingView.newChildId(),values.getList1()));
}
if(StringUtils.isNotEmpty(values.getList2())){
repeatingView.add(new
Label(repeatingView.newChildId(),values.getList2()));
}
if(StringUtils.isNotEmpty(values.getList3())){
repeatingView.add(new
Label(repeatingView.newChildId(),values.getList3()));
}
}
  
   add(repeatingView); 
 }

  
}

MyResourceInitialize.java file contains javascript reference to load:

@Override
public void renderHead(final IHeaderResponse response) {
response.renderJavaScriptReference(new
JavaScriptResourceReference(LocateResources.class,
"js/vendor/jquery.marquee.min.js"));

response.renderJavaScriptReference(new
JavaScriptResourceReference(LocateResources.class,
"js/newMarquee.js"));
super.renderHead(response);
}

The Javascript code has been added to "newMarquee.js" file as given below:-

$(function () {
$('.marquee').marquee({

duration: 15000,
duplicate: false,
delayBeforeStart:2000,

allowCss3Support: true,
gap: 600,

});
});


But the issue is the Javascript file "newMarquee.js" and the css mentioned
in MyPanel.html fails to load.
I've tried using AjaxEventBehavior to append Javascript in Wickets code but
that too didn't work.

Can you please share some inputs on how to achieve this?
Thanks in advance.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Message-Scroll-Banner-in-Wickets-tp4678245p4678280.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