google-code-export / jqwicket

Automatically exported from code.google.com/p/jqwicket
1 stars 0 forks source link

when do the jqwicket supper the wicket 1.5? #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I config like follow: 
    JQContributionConfig config = new JQContributionConfig();
    config.withJQueryCoreJsUrl("http://code.jquery.com/jquery-1.4.4.min.js");
    config.withJQueryUiCssUrl("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/base/jquery-ui.css");         getComponentInstantiationListeners().add((IComponentInstantiationListener) new JQComponentOnBeforeRenderListener(config));

but, I got the exception:
javax.servlet.ServletException: PWC1243: Filter execution threw an exception

java.lang.NoClassDefFoundError: org/apache/wicket/ResourceReference
        at cn.spcp.web.app.SpcpApplication.init(SpcpApplication.java:85)
        at org.apache.wicket.Application.initApplication(Application.java:1258)
        at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:299)
        at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:252)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
        atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:215)
        at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.do
FilterInternal(OpenSessionInViewFilter.java:198)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:76)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:215)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:277)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESess
ionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.j
ava:325)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(Container
Mapper.java:165)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
91)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
ter.java:170)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
tocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
ask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
ool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
.java:309)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.apache.wicket.ResourceReference

        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoade
r.java:959)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoade
r.java:1430)
        ... 34 more
|#]

Original issue reported on code.google.com by tritreec...@gmail.com on 25 Dec 2010 at 8:06

GoogleCodeExporter commented 9 years ago
Hi,

jqwicket currently supports only wicket 1.4.x. 
As soon as new wicket 1.5 stable is available, i'll provide a new version 
supporting 1.5.

Issue accepted.

Original comment by m...@javaforge.net on 25 Dec 2010 at 11:00

GoogleCodeExporter commented 9 years ago
Is there any release planned for wicket 1.5 support?

Thanks,
Santhosh

Original comment by santhosh...@gmail.com on 28 Jun 2011 at 11:01

GoogleCodeExporter commented 9 years ago
Hi!

I wanted to use this great library with Wicket 1.5, so I've forked it on github 
and creating a wicket-1.5 branch, where I put a commit which made the demo work 
with 1.5 as expected (though I didn't test it thoroughly, but it seemed to 
work).

The repo: https://github.com/messo/jqwicket
You can use the commit as a patch which you can apply if you want. There could 
be room for improvement as well ;)

Original comment by bal...@krivan.info on 7 Jul 2011 at 9:27

GoogleCodeExporter commented 9 years ago
Hi Bálint,

thanks for your feedback.

Before i backport your sources to the jqwicket head, can you please briefly 
explain what you've done exactly? Looks like the code from 
JQComponentOnBeforeRenderListener and JQContributionRenderer was moved to the 
JQBehavior and both classes were removed.

Do you have any issues with your fork currently?

Thanks,
Max

Original comment by m...@javaforge.net on 25 Jul 2011 at 8:12

GoogleCodeExporter commented 9 years ago
Hi Max!

I was having a very strange bug without this modification, if I've pressed F5 a 
few times I've got a strange NPE in Wicket (which is now fixed in the wicket 
trunk, so it shouldn't be happen anymore, but it was strange so I didn't like 
it).
And beyond this, the main reason of the modification is that Behaviors now can 
do exactly what ContributionRenderer did, and it was a little bit unneccessary, 
because when I read the code it seemed that you collected the attached 
behaviors just to store it in an other object and render them there. This 
little trip can be omitted.

I've done other modifications as well, but those aren't so significant changes 
(like adding i18n, adding fullcalendar, adding parent pom etc.). The other 
thing I would like to do is remove the JSON thingy from Utils and use purely 
GSON, which seems a really handy JSON library and it would make the code 
cleaner, what do you think?

The other question of mine is purely administration-like. Do you want to move 
to github? There you could have pull-requests and there is issue-mgmt aswell.

Currently I'm having a little issue with CKEditor because of the externel JS 
gets 404, I think this is because the different resource handling in 1.5. I 
will look into this.

Regards,
Bálint

Original comment by bal...@krivan.info on 25 Jul 2011 at 9:40

GoogleCodeExporter commented 9 years ago
Hi Bálint,

as soon as i have a little bit more time, i'll take a look at your fork. Wicket 
1.5 is almost ready, it will be time to release a new jqwicket version for it.

GSON is a nice library, true. One thing is, i don't want to have external 
dependencies in jqwicket, just keeping it small and selfcontaining. One 
possibility will be to extract neccessary classes from GSON and put them to 
jqwicket.

Regarding github. I'm currently very happy with google code and its 
infrastructure. But if you want to enhance the jqwicket functionality, i can 
add you as contributor and after some succesful patches as commiter to the 
project.

Max

Original comment by m...@javaforge.net on 1 Aug 2011 at 9:26

GoogleCodeExporter commented 9 years ago
I'm kind a person who likes to use stuff which is already written. Currently 
JSON stuff in jqwicket is really bad, it's just add (double-)quotes, and it's 
done. It doesn't escaping etc. And for Options we could use JsonObject which 
does the {foo: bar} stuff correctly. GSON isn't a bloated library, it's 
lightweight and it does its job pretty good.

Original comment by bal...@krivan.info on 1 Aug 2011 at 11:47

GoogleCodeExporter commented 9 years ago
The other thing we could do is to remove the behaviors almost completly. 
Currently behaviors are specifing some methods which are invoked from 
components. It seems kind of duplication. The jquery methods could be defined 
in componennts, and components can have renderhead aswell.

Original comment by bal...@krivan.info on 1 Aug 2011 at 1:11

GoogleCodeExporter commented 9 years ago
> I'm kind a person who likes to use stuff which is already written.

me too. but i'm also a friend of small, lightweight, selfcontaining libraries 
without overblown dependency hierarchy if it is not really necessary (after all 
wicket itself reimplements the most common utility classes/methods for handling 
strings, streams, collections,... without depending on commons-lang, 
commons-io, google-collections etc). thats why i would prefer to embed GSON 
sources (completely or partially) into the jqwicket instead of defining it as 
external dependency.

> The other thing we could do is to remove the behaviors almost completly.

There was a specific reason to do that. JQuery-plugins (= JQBehavior-s) only 
"enhance" the existing components by adding additional UI-behavior to them, 
similar to the wicket's behavior concept itself. Putting the implementation of 
jquery plugins into the wicket behavior allows the user to combine/add multiple 
jq-behaviors to the single component (e.g. drag'n'drop + resize + animations + 
....), without knowing how the real component will look like. 
If you move every behavior to a single component, you'll lose this kind of 
flexibility. You will not be able to combine multiple jquery plugins within the 
single component anymore without writing a lot of duplicate code, creating 
complex inheritance hierarchies or reimplementing things already done in 
jqwicket.

Of course there are some jquery plugins that are self-containning and can be 
extracted to the components (e.g. DateTextField, DateTimeTextField,..). But 
this is more an exceptional case for me.

Original comment by m...@javaforge.net on 1 Aug 2011 at 2:37

GoogleCodeExporter commented 9 years ago
Yeah, for drag&drop and other stuff I recommend behaviors for sure. But there a 
lot seperate components like:.... Oh yeah, there aren't :D Then I've overlooked 
on something. 

Original comment by bal...@krivan.info on 1 Aug 2011 at 3:02

GoogleCodeExporter commented 9 years ago
available in jqwicket 0.7

Original comment by m...@javaforge.net on 14 Sep 2011 at 7:37

GoogleCodeExporter commented 9 years ago
How  can I do to install jqwicket 0.7? If I change my project's pom, I get 

Downloading: 
https://repository.jboss.org/nexus/content/groups/public//com/google/code/jqwick
et/jqwicket/0.7/jqwicket-0.7.pom
[INFO] Unable to find resource 'com.google.code.jqwicket:jqwicket:pom:0.7' in 
repository jboss (https://repository.jboss.org/nexus/content/groups/public/)
Downloading: 
http://jqwicket.googlecode.com/svn/m2-repo/releases//com/google/code/jqwicket/jq
wicket/0.7/jqwicket-0.7.pom
[INFO] Unable to find resource 'com.google.code.jqwicket:jqwicket:pom:0.7' in 
repository googlecode (http://jqwicket.googlecode.com/svn/m2-repo/releases/)
Downloading: 
http://repo1.maven.org/maven2/com/google/code/jqwicket/jqwicket/0.7/jqwicket-0.7
.pom
[INFO] Unable to find resource 'com.google.code.jqwicket:jqwicket:pom:0.7' in 
repository central (http://repo1.maven.org/maven2)
Downloading: 
https://repository.jboss.org/nexus/content/groups/public//com/google/code/jqwick
et/jqwicket/0.7/jqwicket-0.7.jar
[INFO] Unable to find resource 'com.google.code.jqwicket:jqwicket:jar:0.7' in 
repository jboss (https://repository.jboss.org/nexus/content/groups/public/)
Downloading: 
http://jqwicket.googlecode.com/svn/m2-repo/releases//com/google/code/jqwicket/jq
wicket/0.7/jqwicket-0.7.jar
[INFO] Unable to find resource 'com.google.code.jqwicket:jqwicket:jar:0.7' in 
repository googlecode (http://jqwicket.googlecode.com/svn/m2-repo/releases/)
Downloading: 
http://repo1.maven.org/maven2/com/google/code/jqwicket/jqwicket/0.7/jqwicket-0.7
.jar
[INFO] Unable to find resource 'com.google.code.jqwicket:jqwicket:jar:0.7' in 
repository central (http://repo1.maven.org/maven2)

Original comment by gonzaloa...@gmail.com on 22 Sep 2011 at 10:43

GoogleCodeExporter commented 9 years ago
jqwicket 0.7 is now released and available as maven artifact.  try once again.

Original comment by m...@javaforge.net on 25 Sep 2011 at 6:14

GoogleCodeExporter commented 9 years ago
Now it works. Thanks.

Original comment by gonzaloa...@gmail.com on 26 Sep 2011 at 11:49