I'd like to create some vaadin components in a jar separate from my application. Can I use the #CssImport annotation to attach styles to these components?
It should work when setting them according to the Resource Cheat Sheet (v14 documentation)
The directory for the css files should be under /src/main/resources/META-INF/resources/frontend/ in the .jar project.
Related
I create dart web server on aqueduct. And i want add into project my custom file (f.e. in json format) and read in dart code. In which folder i can put my own custom non-dart files?
Thanks
You can put your non-Dart files into any directory, even alongside your Dart files. Just put them wherever makes most sense to you for your project.
Please guide me to get the required jar files to use <rich:columns>. I have the following RichFaces jar files.
richfaces-components-api-4.3.7.jar
richfaces-components-ui-4.3.7.jar
richfaces-core-api-4.3.7.jar
richfaces-core-impl-4.3.7.jar
But not able to get the <rich:columns>. Kindly provide the link to download the jar files.
Note: I have opened the classes in the jar files, but I am able to see only AbstractColumn.class and AbstractColumnGroup.class files. No files related to AbstractColumns.class
<rich:columns> is a component from RichFaces 3.x, it is not implemented in 4.x. If you need to create columns dynamically use <c:forEach>.
I'm currently working on a project which contains a number of components (polymer elements). All said and done, I'll probably be looking at around 10+ components for the application. At the moment, following Pub's Package Layout Conventions each .html and associated .dart file is in the web/ directory.
It would be nice to have them in lib/src/ of my application and only have the main files in web/ however at the moment <link ref="import" href="package:my_app/src/my_component.html"> will not work (See Issue 12867).
Are there currently any conventions in use to handle multiple (private) components for an app? Should I create a web/src/ directory to load imports/source files relative to the web/ directory? Would it even make sense to keep Polymer Element .html files in lib/src/ (assuming it was supported) as they're not pure dart files as traditionally recommended/expected in a pub package layout?
As far as I understand, package: works only for external components (dependencies declared in pubspec.yaml), and the default path is the packages folder (created by pub install). See the getting started section here: Dart Pub
I keep components in their own folders under the web directory so web/component1, web/component2 and so on and I use relative links to import across components. Not sure if this is the best practice but it works.
I don't understand why when I add files to my project using add existing files from project try it does not copy the file to my project, it just copies the reference to the file.
In TextMate, a project is nothing more than a collection of references to files you can edit simultaneously. It enables you to have them open in a drawer and as tabs as you will most certainly know already. But a TextMate project is not intended to be a file manager. More information on handling files inside a project can be found at the TextMate manual.
Add the folder to your project drawer on the left then you will be able to drag the files from there into your Rails project.
I was running to the same problem with trying to add existing files to a folder in my project, it would not change the reference.
I'm working on a Delphi project and I want to add a parser to it. The parser comes with components that should be added to the project
So it works great if I add the files to the same folder that my project is in, but I would like it to be in a separate components folder (to keep it cleaner, since I'm not going to be modifying those files anyway).
However, when I add create a components folder and add the files there, when I add it to the project through delphi, it has trouble finding the files. So it adds the .psu files to the right folder, but it says it can't find the unit 'Calculator', for example, until I copy the Calculator.dcu file from the component directory to the source directory.
How do I tell Delphi to look for those files where I put them?
Thanks
You have some options:
Add the units folder to the Projects' Search Path (Menu: Project\Options...) - only affects the project you're working now.
Add the units folder to the Environment's Library Path (Menu: Tools\Options...\Environment Options\Delphi Options\Library - Win32) if you want all projects in this ide install to find that units (not only the project you are working).
Just to complement: if, in the near future, you add components to your pallete and the compilation fail not finding the units; you'll have to update your system path as well. For details give a search on SO on this, as this is a common source of questions on the delphi tag... ;-)
Take a look at the Search Path for the project in the project options. Make sure your .pas and/or .dcu files are in that search path, i.e. add the folder in which the units are to your project's search path.