Coder Social home page Coder Social logo

premium-minds / pm-wicket-utils Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 12.0 6.21 MB

A library with Wicket Components, Behaviours and some other stuff.

Home Page: http://premium-minds.github.io/pm-wicket-utils/

License: GNU Lesser General Public License v3.0

Shell 0.07% Java 41.02% HTML 2.12% JavaScript 56.03% CSS 0.76%
java wicket

pm-wicket-utils's Issues

Failing to validate a NIF

The valid NIF 504646680 fails to be validated. The problem lies with the mod11 operation having 1 as result while the NIF ends in 0.

Nif Validator bug

This nif - 504426290, that is a valid nif is identified as invalid. The problem is with 0 termination.

Bootstrap datepicker - Events names

When using a AjaxFormComponentUpdatingBehavior to catch a datepicker event, it will lowercase the event name. This behavior is defined in AjaxEventBehavior from which AjaxFormComponentUpdatingBehavior inherits.

This is a problem since datepicker events are in camelCase, make it impossible to catch those events.
ex: changeDate

Error while generating Javadoc

works with java 11

❯ JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64 mvn -q javadoc:jar

fails with java 17

❯  JAVA_HOME=/usr/lib/jvm/java-1.17.0-openjdk-amd64 mvn -q javadoc:jar 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:jar (default-cli) on project pm-wicket-utils-testing: MavenReportException: Error while generating Javadoc: 
[ERROR] Exit code: 1
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/TestNotStartedException.java:22: error: tag not supported in HTML5: tt
[ERROR]  * <tt>TestNotStartedException</tt> is thrown when {@link AbstractComponentTest} gets a call to
[ERROR]    ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:178: error: tag not supported in HTML5: tt
[ERROR] 	 * Rule for expecting thrown exceptions during test execution. Preferred over <tt>expected=</tt> in a <tt>@Test</tt>
[ERROR] 	                                                                              ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:178: error: tag not supported in HTML5: tt
[ERROR] 	 * Rule for expecting thrown exceptions during test execution. Preferred over <tt>expected=</tt> in a <tt>@Test</tt>
[ERROR] 	                                                                                                      ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:187: error: tag not supported in HTML5: tt
[ERROR] 	 * Code that runs before every test. If this method is overriden, the override <b>must</b> call <tt>super.setUp()</tt>.
[ERROR] 	                                                                                                ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:188: error: tag not supported in HTML5: tt
[ERROR] 	 * The preferred alternative is to simply create a differently named method and annotate it with <tt>@Before</tt>.
[ERROR] 	                                                                                                 ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:197: error: tag not supported in HTML5: tt
[ERROR] 	 * Code that runs after every test. If this method is overriden, the override <b>must</b> call <tt>super.tearDown()</tt>.
[ERROR] 	                                                                                               ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:198: error: tag not supported in HTML5: tt
[ERROR] 	 * The preferred alternative is to simply create a differently named method and annotate it with <tt>@After</tt>.
[ERROR] 	                                                                                                 ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:406: error: tag not supported in HTML5: tt
[ERROR] 	 * This method is a part of <tt>IContextProvider&lt;AjaxRequestTarget, Page&gt;</tt> implementation and is not
[ERROR] 	                            ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:409: error: reference not found
[ERROR] 	 * @see org.apache.wicket.util.IContextProvider#get(java.lang.Object)
[ERROR] 	        ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/AbstractComponentTest.java:173: warning: no comment
[ERROR] 	public AbstractComponentTest() {
[ERROR] 	       ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/ExtendedWicketTester.java:370: warning: no comment
[ERROR] 		public void setPageMarkup(IMarkupFragment markup)
[ERROR] 		            ^
[ERROR] /home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/src/main/java/com/premiumminds/webapp/wicket/testing/TestNotStartedException.java:30: warning: no comment
[ERROR] 	public TestNotStartedException() {
[ERROR] 	       ^
[ERROR] 9 errors
[ERROR] 3 warnings
[ERROR] Command line was: /usr/lib/jvm/java-17-openjdk-amd64/bin/javadoc @options @packages
[ERROR] 
[ERROR] Refer to the generated Javadoc files in '/home/froque/workspace/opensource/premium-minds/pm-wicket-utils/testing/target/apidocs' dir.
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn [args] -r

library should be separated into prod and tests

classes like AbstractComponentTest, ComponentInForm, ExtendedWicketTester don't belong in production code.

These should be moved to a companion maven project, along with dependencies easymock, hamcrest-junit, junit

Move Crudifier to another project

Move the Crudifier to a standalone project, probably wicket-crudifier

Need to move from master branch (bootstrap 3) and bootstrap2_3 branch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.