IntelliJ *.gtmpl juzu files - intellij-idea

I'm building a Juzu project for portlet development for eXo Platform with IntelliJ.
The problem is that I have template files that are index.gtmpl, and I can have HTML coding inside it, but the file opens as a simple text file.
Is there a plugin on a configuration that I'm missing?
Thanks!
================= ** EDIT ** ============================
My file looks like this:
editMode.gtmpl
#{param name=enableComment/}
<form action="#{JuZcretApplication.enableComment()}" method="POST" role="form">
<h5>Configuration</h5>
<input type="checkbox" name="enableComment" <%=enableComment ? "checked" : "" %>/>Enable Comment
<button type="submit">Save</button>
</form>

You can associate *.gtmpl files with the HTML editor:
Open File > Settings > Editor > File Types > HTML files and add your extension to registered patterns in the right panel.
Source

[UPDATE]
[SOLVED]
I did some further digging in the matter and found a better solution to the issue:
If you associate the *.gtmpl file as a File > Settings > Editor > File Types > Groovy Server Page.
It's not a complete solution but IntelliJ, as mentioned by #darek-kay, does not support these files.

Related

Intellij private docker registry

After reinstalling Windows I installed latest IntelliJ IDEA 2021.3 (Ultimate Edition) when I tried to add my private docker registry... I did get three option and none of them works. (IntelliJ support)
Select one of the available public Docker registries:
Docker Hub: registry.hub.docker.com
GitLab: gitlab.com
JetBrains Space: your instance of Space
I cant say if this is a bug from there side or not... or if there is some setting I have to change... so my workaround for now is a zip file with this structure.
settig.zip
/IntelliJ IDEA Global Settings
/options
/docker-registry.xml
IntelliJ IDEA Global Settings is an empty file
docker-registry.xml simple xml file with this structure
<application>
<component name="DockerRegistry">
<DockerRegistry>
<option name="address" value="private.registry.com" />
<option name="name" value="Name" />
<option name="username" value="Username" />
</DockerRegistry>
</component>
</application>
Then import settings from a ZIP archive
Call File | Manage IDE Settings | Import Settings from the main menu.
Select the ZIP archive that contains your settings in the dialog that opens.
Select the settings you want to apply in the Select Components to Import dialog that opens and click OK.
anyone knows what can be wrong or are the more ppl out there with this problem?
if you try this remember to backup your save registry's as how import works.
Custom registries are not yet supported. You can vote for implementation at https://youtrack.jetbrains.com/issue/IDEA-282438

Selenium IDE - Upload file into field

I'm creating a testing suite to automate some parts of data input on my web application. I have a page where I can click on a button to upload a document to the application. It looks something like this:
Once the Add New Attachment button is clicked, it opens the browser's file explorer to select a document to upload. I'm trying to replicate this within Selenium IDE.
Here is what it looks like as of now:
However, this part seems to fail. Does anyone know how to achieve a similar process using Selenium IDE? I'm on Chrome and Firefox.
If you get the
{"code":-32000,"message":"Not allowed"}
on Chrome, follow the steps below:
Window > More Tools > Extensions > Selenium IDE > Details
Then turn on the 'Allow access to file URLs' option.
I was having the same problem and this worked for me.
It is possible to upload the files using selenium IDE. It can be done as mentioned below.
|Command|Target|Value|
|type|target_location_path|location_of_the_file_in_your_system|
Example:
|type|id=ConsignmentCustomerInvoiceFilename|C:\Users\abc\Desktop\img1.jpg|
You can identify the "target_location_path" by manually uploading the file and then finding the xpath of the uploaded file in the web app.
Please refer below screenshot to get a better understanding.
SeleniumIDE_uploadfile
You can add the system path to the IDE test by using the below code.
<tr>
<td>storeEval</td>
<td>Preferences.getString(TestSuite.TEST_SUITE_DIRECTORY_PREF);</td>
<td>testSuiteFolder</td>
</tr>
<tr>
<td>type</td>
<td>id=QuestionUpload_file</td>
<td>${testSuiteFolder}/resources/question_upload.csv</td>
</tr>

can not load image in parseTemplate mule esb

I am not able to load image in parsetemplate mule esb
It gives me error images/test.jpg not found
My flow is as follow..
Servlet -> ParseTemplate -> Property
I put html page in src/main/app folder as well as in src/main/resources
And I create one folder images in src/main/app and in src/main/resources
html page is as follow..
<br>
<button id="btnReport" type="image" ><image src="images/test.jpg"></button>
I got error images/test.jpg not found
How can I load images in html page?
please help
Parse template is meant to be used to parse files with MEL in it. I don't see how it should fail at all parsing an html tag. You probably have an error in the xml or the file hierarchy.

Custom HTML Page in Pentaho User Console 5

I need to know how to create a custom HTML page with the related static resource - css, js and images - into Pentaho User Console version 5 that use Jackrabbit as its repository.
I've checked the pentaho wiki and help pages but to no avail.
CSS and JavaScript files
Upload CSS and JS files
Browse files > home > New folder.. > Name: test
home > test > Upload... > {choose files to upload from file system; e.g. test.css and test.js}
Create dashboard, add resources
Create new CDE dashboard [Home > Create New > CDE Dashbaord]
Layout Panel (first, default) > Layout Structure menu (top left) > Add Resource > Resource type: {choose: CSS / JavaScript}; External File
Choose Resource file by clicking on a ^ button. Navigate to home/test/test.css or home/test/test.js
All resource files defined in Layout structure are attached to dashboard's HTML code.
Images
I prefer to store image files within Pentaho server folder.
pentaho-solutions/system/pentaho-cdf-dd/images
which can be later referred from HTML as <img src="images/test_logo.png"/>
or from CSS as background-image: url('test-logo.png');

primefaces fileupload dialog with file filter extension mode="simple"

How to add file filter condition in primefaces 3.5 fileUpload tag,
Its displaying only "All Files" option.
<h:form enctype="multipart/form-data">
<p:fileUpload value="#{demoBean.file2}"
mode="simple" allowTypes="/(\.|\/)(xls|xlsx)$/" />
</h:form>
please advice...
File Upload In Simple mode
allowTypes
filesize
and some other attributes are not working In Primefaces.
If you want to use them then change mode from simple to advance or remove attribute of mode because by default mode is advance.