GithubHelp home page GithubHelp logo

eddyson-de / tapestry-webjars Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 317 KB

Use WebJars together with Tapestry

License: Apache License 2.0

Java 62.61% Groovy 37.39%
integration tapestry webjars

tapestry-webjars's People

Contributors

gitter-badger avatar jochenberger avatar ydylla avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tapestry-webjars's Issues

Question: How about JS from npm modules?

Hi!

First, really thanks for your tapestry-webjars and tapestry-react projects.

I am using tapestry-react and tapestry-webjars to have react and want it to use react-gmaps. But unfortunately when using react-gmaps I get ReferenceError: exports is not defined.

From what I've found it means that browser doesn't support CommonJS modules. I thought that tapestry should get that resolved with its new T5.4 JavaScript framework rewrite.

Can you help me in any way? For me it looks like that JS file from webjar is being sent to browser without standard Tapestry processing. Am I right? What can I do about it?

Thanks a lot!

Jan

jquery-ui.css and included images

Hi,
i'm currently trying to use tapestry-webjars with jquery-ui. I have tried multiple path versions, but none of them works.

Currently i'm using

@Import(library = { "webjars:jquery-ui:$version/jquery-ui.js" }, stylesheet = "webjars:jquery-ui:$version/jquery-ui.css")

Both the js and the css loaded sucessfully, but within the css are references to included images in subdirectory images, e.g.

.ui-button:focus .ui-icon { background-image: url("images/ui-icons_555555_256x240.png"); }

Loading the background-image fails with:

Unable to locate asset 'webjars:META-INF/resources/webjars/jquery-ui/1.12.1/%22images%2Fui-icons_555555_256x240.png%22' (the file does not exist).

I assume the '%22' = " are the problem.

Exists there a solution? Many thanks.

Zabrimus

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.