How to convert Qute Template to MailTemplate - quarkus

I'am trying to convert a Qute Template to a MailTemplate using the MailTemplatePoducer.getMailTemplateInstance(TemplateInstance instance) but I'am always getting an error "No template variant found" because the instance is empty.
How can I do this?
Thanks

Related

I am getting the error template not found on some other email template although the template is present in sfdc

I am using a visualforce template using cross objects via apex class as of now. My code was working and sending emails when I was using a custom template with classic letterhead. Send Test and Verify button is still working.
template's id is valid in this org? Template is marked "in development" or "deployed"? Template's body compiles ok? Maybe you removed a field or relationship and it's not valid anymore (although I'd expect the "send test" to fail then too) Template is yours or from managed package? You might not have license?
Can you paste sample of your apex code?

How to configure Maven Freemarker to recognize `#include_page` tag?

I'm trying to use the #include_page macro from FreemarkerServlet - using Maven Freemarker framework with Freemarker version 2.3.31 and I can see the notes about this tag being now available in the source of it, but it still is not resolved/recognized in the actual template output.
For context:
Everything is fully configured and working as expected with pure ftl
We have a dependency on using JSP-only templates for a part of the output (while the main code base is using only .ftl templates)
The #include_page allows to include jsp pages into ftl
How I'm trying:
In WEB-INF/views directory, let's say there is a home.ftl
Add hello.jsp with <h2>Hello!</h1>
In home.ftl
<#assign....>
.
.
.
<div>
<#include_page path="hello.jsp"/>
</div>
.
.
.
This results in an error that statement on the line with include_page was not found on null followed by instructional on using defaults or ifs
Does anyone know if there is some additional configuration needed to make use of it?
The issue was that we needed to add the
model.put( FreemarkerServlet.KEY_INCLUDE, new IncludePage( request,
response ) );
to the FreemarkerView model.
This is the post that actually solves the problem.
To use JSP support (and include_page is part of it) you have to invoke the template with forwarding to an URL that's mapped to the FreemarkerServlet, instead of directly calling FreeMarker with its Java API. It's just how JSP works too (or have worked, originally). See https://freemarker.apache.org/docs/pgui_misc_servlet.html for details.

Filepond - Not supported image types

When trying to upload .arw and .ct2 files, I am getting the 'Image type not supported' error message in the file status area. Like this
So here are my questions:
Is it possible to add support for .arw and .ct2 file types?
Is it possible to know what other file types are not currently supported?
Thanks
This particular error message was generated by FilePondPluginImageValidateSize, as it obviously does not support these file types.
Setting allowImageValidateSize to 'false' solved this for me.
Still would be nice to know exactly what image types are not supported by this plugin, if possible :) Haven't found this info in the docs.
Thanks

Laravel dosen't see path to file with Custom Request Class, how to fix it?

I created Custom ReadRequest Class. Than I created folder with "Order" name in Requests folder, and put there my ReadRequest.php file:
After this manipulation Laravel doesn't see this file in my Controller:
How can I fix that?
You haven't written how you know that Laravel doesn't see this file but looking at your screen it seems your IDE doesn't see it it either. So make sure in your ReadRequest.php file you have
<?php
namespace App\Http\Requests\Order;
class ReadRequest
{
// ...
}
It's very possible that you have invalid classname in this file or invalid namespace, so your IDE shows you the error and also composer cannot load the file.

Getting error like "are you missing a using directive or an assembly refrence?" in subsonic

I am developing MVC 3 application and its first time i am using subsonic.
I get this error (The type or namespace name 'name of my tables' could not be found()are you missing a using directive or an assembly refrence?)) in Context.cs file when i compile my ASP.NET MVC3 Web Application. I follow these guide http://subsonicproject.com/docs/Setting_up_SubSonic_3.0 but i cant solve this problem.Any ideas?
You're using ActiveRecord T4 templates right?
In ActiveRecord.cs there should be a class for each of your tables. Have they been created correctly?
Also, in Settings.ttinclude there should be a namespace setting. Is that namespace surrounding the code in your Context.cs and ActiveRecord.cs?

Resources