Re: [Announce] wicket-jade
Correct. It will not work. Unless it can be made in two steps ... On Thu, Aug 8, 2013 at 1:26 PM, Decebal Suiu wrote: > Hi > > I try to implement a JadeMarkupFactory (wicket custom MarkupFactory). > You can see my current implementation at > https://gist.github.com/decebals/6183796 > My problem is that if I want to render the jade template I need the map > with > the variables. JadePanel takes as parameter in constructor a IModel with > jade variables (Map I think that it's not possible to extract such information in a > MarkupFactory, correct? Or maybe my approach is not good? > > Best regards, > Decebal > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660783.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: [Announce] wicket-jade
Hi I try to implement a JadeMarkupFactory (wicket custom MarkupFactory). You can see my current implementation at https://gist.github.com/decebals/6183796 My problem is that if I want to render the jade template I need the map with the variables. JadePanel takes as parameter in constructor a IModel with jade variables (Maphttp://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660783.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: [Announce] wicket-jade
Hi Suiu, miracle with maven 3 it's ok; Am 07.08.2013 13:37, schrieb Decebal Suiu: Hi Heiner I tested with maven 2 and it works fine: $ mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) Java version: 1.6.0_17 Java home: /opt/java/jdk1.6.0_17/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.32-50-generic" arch: "i386" Family: "unix" $ git clone https://github.com/decebals/wicket-jade.git $ cd wicket-jade/ $ mvn install -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660766.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Announce] wicket-jade
Hi Heiner I tested with maven 2 and it works fine: $ mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) Java version: 1.6.0_17 Java home: /opt/java/jdk1.6.0_17/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.32-50-generic" arch: "i386" Family: "unix" $ git clone https://github.com/decebals/wicket-jade.git $ cd wicket-jade/ $ mvn install -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660766.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: [Announce] wicket-jade
Hi Heiner I use maven 3 (3.0.4) on my machine and it's ok. Maybe it's a problem with maven 2. I will try to make a test with maven 2. You run "mvn install" from wicket-jade project, correct? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660754.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: [Announce] wicket-jade
Hello Decebal, when I try to install your application I get the error: [ERROR] MavenInvocationException: Error when invoking Maven, consult the invoker log file: /homeerweitert/java/wicket/appfuse/makler/wicket-jade/new/trunk/wicket-jade/target/invoker/maven-javadoc-plugin25820809.txt and in maven-javadoc-plugin25820809.txt is written: Invoking Maven for the goals: [org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc] with no properties M2_HOME=/usr/share/maven2 MAVEN_OPTS=null JAVA_HOME=/homeerweitert/usr/lib/jvm/java-7-openjdk-i386/jre/.. JAVA_OPTS=null [INFO] Scanning for projects... [INFO] [INFO] Building Wicket Jade Demo [INFO]task-segment: [org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc] [INFO] [INFO] Preparing javadoc:javadoc [INFO] snapshot ro.fortsoft.wicket.jade:wicket-jade:0.1-SNAPSHOT: checking for updates from sonatype-nexus-snapshots Downloading: https://oss.sonatype.org/content/repositories/snapshots/ro/fortsoft/wicket/jade/wicket-jade/0.1-SNAPSHOT/wicket-jade-0.1-SNAPSHOT.pom [INFO] Unable to find resource 'ro.fortsoft.wicket.jade:wicket-jade:pom:0.1-SNAPSHOT' in repository sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) Downloading: https://oss.sonatype.org/content/repositories/snapshots/ro/fortsoft/wicket/jade/wicket-jade/0.1-SNAPSHOT/wicket-jade-0.1-SNAPSHOT.jar [INFO] Unable to find resource 'ro.fortsoft.wicket.jade:wicket-jade:jar:0.1-SNAPSHOT' in repository sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) ro.fortsoft.wicket.jade:wicket-jade:jar:0.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=ro.fortsoft.wicket.jade -DartifactId=wicket-jade -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=ro.fortsoft.wicket.jade -DartifactId=wicket-jade -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) ro.fortsoft.wicket.jade:wicket-jade-demo:war:0.1-SNAPSHOT 2) ro.fortsoft.wicket.jade:wicket-jade:jar:0.1-SNAPSHOT -- 1 required artifact is missing. for artifact: ro.fortsoft.wicket.jade:wicket-jade-demo:war:0.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 9 seconds [INFO] Finished at: Wed Aug 07 09:46:27 CEST 2013 [INFO] Final Memory: 19M/89M [INFO] Am 07.08.2013 00:10, schrieb Decebal Suiu: Hi Martin I created a branch https://github.com/decebals/wicket-jade/tree/children-components for your idea. I increased the complexity of demo application a little bit. Now, the HomePage contains a BooksPanel that contains an AuthorPanel. Both panels extend JadePanel. BooksPanel.jade contains a div(wicket:id="authorPanel"). The markup for authorPanel is AuthorPanel.jade. Everything works fine. Is this what you want or I misunderstand you? Can you explain your idea in more words? Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660739.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 By cocoon project I I got some information about node.js and now I am investigating how I could use it Best regards Heiner - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Announce] wicket-jade
Hi, Yes, this is what I initially meant and apparently it works fine without custom MarkupFactory/MarkupParser/etc. What will not work is markup inheritance and any other usage of tags. Here is how I imagine it: - override #getMarkupType() in JadePanel and use .jade as an extension - extend MarkupFactory and override whatever is needed so that you first load the .jade file, parse it, transform it to .html and finally pass it to the default impl that is used at the moment I think this should be enough. On Wed, Aug 7, 2013 at 12:10 AM, Decebal Suiu wrote: > Hi Martin > > I created a branch > https://github.com/decebals/wicket-jade/tree/children-components for your > idea. > I increased the complexity of demo application a little bit. > Now, the HomePage contains a BooksPanel that contains an AuthorPanel. Both > panels extend JadePanel. > BooksPanel.jade contains a div(wicket:id="authorPanel"). The markup for > authorPanel is AuthorPanel.jade. > > Everything works fine. > > Is this what you want or I misunderstand you? Can you explain your idea in > more words? > > Best regards, > Decebal > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660739.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: [Announce] wicket-jade
Hi Martin I created a branch https://github.com/decebals/wicket-jade/tree/children-components for your idea. I increased the complexity of demo application a little bit. Now, the HomePage contains a BooksPanel that contains an AuthorPanel. Both panels extend JadePanel. BooksPanel.jade contains a div(wicket:id="authorPanel"). The markup for authorPanel is AuthorPanel.jade. Everything works fine. Is this what you want or I misunderstand you? Can you explain your idea in more words? Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660739.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: [Announce] wicket-jade
Hi Martin I will try to implement your idea. I know about wicket-freemarker, wicket-velocity. I didn't know about wicket-mustache. By the way I think that your wicket-ractive project is interested (I like it because it's ajax aware without a custom AjaxRequestTarget). I think that jade/haml syntax is more html oriented than mustache syntax but it's my opinion. Fremarker, Velocity, Mustache are more general. Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660724.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: [Announce] wicket-jade
Hi Decebal, I see you did something similar to what Wicket Velocity<https://github.com/apache/wicket/tree/master/wicket-velocity> and Wicket Mustache <https://github.com/l0rdn1kk0n/wicket-mustache> do. I think it would be much cooler if the Jade template/panel supports children components, i.e. have div(wicket:id=someId) inside . For this you will have to create a custom MarkupFactory and set it with org.apache.wicket.settings.IMarkupSettings#setMarkupFactory(). Looking at the code I think Wicket is not well prepared for custom markup factories but if you want to try it then I'll try to help you with improvements in Wicket whenever you need such. On Tue, Aug 6, 2013 at 12:44 PM, Decebal Suiu wrote: > Hi > > I implemented a tiny wicket-jade [1] integration solution. It's the first > version and it's a quick and dirty implementation (Proof of concept). > Jade [2] is a cool, high-performance (and probably the most used template > engine for Node.js) template engine. I like the HAML-like syntax of > Jade's; > it's very simple and intuitive. > > Best regards, > Decebal > > [1] https://github.com/decebals/wicket-jade > [2] http://jade-lang.com > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722.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 > >
[Announce] wicket-jade
Hi I implemented a tiny wicket-jade [1] integration solution. It's the first version and it's a quick and dirty implementation (Proof of concept). Jade [2] is a cool, high-performance (and probably the most used template engine for Node.js) template engine. I like the HAML-like syntax of Jade's; it's very simple and intuitive. Best regards, Decebal [1] https://github.com/decebals/wicket-jade [2] http://jade-lang.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722.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