-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quarkus Qute documentation Item/ItemResource guide issue (template-parameter-declarations) #31907
Comments
/cc @mkouba (qute) |
You don't need that if you compile with the parameters: <plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin> Can you confirm you have that set in your project? |
My issue is in the context of Gradle and I think I should be able to just enter the learning demonstration without having to add a special thing (parameters) when as a new learner of Qute, I would not know that... Don't you think the "pro" URL that has the @PathParam("id") Integer id, is included for a reason? |
I think we should clarify that in the documentation. The less code you need to write the better IMHO |
Thanks... I only care about others learning Qute... there is very little documentation on Qute, the guide is supposed to get one started... I ended up learning 90% of what I needed from the Reference (https://quarkus.io/guides/qute-reference), like sections {#if controller.foo} ... {if/} for example. I don't want to learn about something so fundamental like {#if...} in the context of other extended features like Template extension methods..... that I decide not to use/learn yet. Yet I can only learn about it in the Reference. |
Thanks for your feedback, would you be interested in providing a pull request for this issue? We are still improving our docs and any feedback helps 👍 |
Sorry... can't... not familiar enough with the pull request workflow... So this is just docs... it can wait a bit... Thanks again. |
Yes, the Qute Reference Guide is the ultimate source of information. It starts with two simple examples, then followed by core features (like |
Describe the bug
The Quarkus Qute is a nice templating engine and I need it to migrate an old service from jsp to something modern.
I was learning Qute from the standard guide, but it has a nasty bug that produced an obscure error message I couldn't figure out.
https://quarkus.io/guides/qute
ItemResource example has this bug in ItemResource java code.
public TemplateInstance get(Integer id)
Should be this:
public TemplateInstance get(@PathParam("id") Integer id)
How did I find the issue? (this version of the guide has the issue fixed)
https://quarkus.pro/guides/qute.html (This is not an official quarkus or red hat maintained site)
Expected behavior
ItemResource demo working
Actual behavior
ItemResource demo produced an obscure error
How to Reproduce?
Just follow the guide for the https://quarkus.io/guides/qute#template-parameter-declarations
that uses the Item.java and ItemResource.java, etc.
Output of
uname -a
orver
Linux hostname 5.19.0-35-generic #36~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 17 15:17:25 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk 11.0.15 2022-04-19 LTS
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.15.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradle 7.6
Additional information
No response
The text was updated successfully, but these errors were encountered: