Line breaks in String literals

2021-12-05 Thread Mitch Claborn
When editing Java source in NetBeans 12.5, if you paste in between a 
pair of double quotes some clipboard contents that contain line breaks, 
the editor breaks the String literal into multiple lines and puts the 
plus sign for string concatenation at the END of the lines.


If you press Enter in the middle of an existing String literal, it is 
broken into two lines with the plus sign for concatenation at the 
BEGINNING of the second line.


The disparity between location of the plus signs causes me extra work on 
occasion (when I've pasted in some stuff and then edit it later, adding 
my own breaks).


Does this bother anyone else?
--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



JSF CDI code assist

2021-12-05 Thread Jason Abreu
I'm using NetBeans 12.5 with a new Gradle 7 web project and am having 
issues with code completion working within JSF EL (Jakarta JSF 3.0).  I 
could definitely use some assistance figuring this out.


Steps Taken:

1.  Created new Gradle Web project (declared dependency for jakarta ee 
9.1 api)
2.  Created a CDI Bean (using @Named and @SessionScoped annotations), 
"SampleBean" with a sample method, "(get|set)SampleString," returning a 
String.

3.  Defined the JSF servlet within web.xml
4.  Edit the JSF page (.xhtml) and added a JSF EL reference to my Sample 
Bean, #{sampleBean.sampleString}


The project built and packaged as a WAR successfully and deployed and 
executed in GlassFish 6.2.2 as expected.


However, when I use code completion (Ctl-Space) within the JSF EL I do 
not see my CDI bean as an option to select nor does code completion work 
to show me the methods of the CDI bean after I type the bean name.  Code 
completion works on all tags, even when using a framework such as 
PrimeFaces, just not with my custom CDI beans within JSF EL.


I have tried a work-around mentioned for a JSP issue by editing my 
Gradle build script to include the webapp source in the java sourceSet, 
but this does not resolve the issue.


Thank you,
Jason


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: [Need Help] The plugin Startup is requested in implementation version 12.5-fd523ddc12d6156412d7b81f0c8663d8913d1021.

2021-12-05 Thread Bilu
ok clear. is there any way/trick to use that dependency with 
specification version?


Thanks you

Le 05/12/2021 à 13:48, Geertjan Wielenga a écrit :
You’ll have to create a separate NBM per version of NetBeans that 
you’re targeting if you’re using implementation versions.


Gj

On Sun, 5 Dec 2021 at 13:30, Bilu > wrote:


Any help on this thread?

Le 03/12/2021 à 13:48, Bilu Al a écrit :

Hello,
I am following this tutorial:
https://netbeans.apache.org/wiki/DevFaqAddTimestampToLogs.asciidoc

In Step 4 there is a use of implementation version of module
org-netbeans-core-startup

nbm-maven-pluginorg.codehaus.mojotrueorg.netbeans.modules:org-netbeans-core-startup*impl*
The issue i am facing is that when i release the plugin (create
the nbm) with Netbeans 12.5 for example and i want to install the
module in another version of Netbeans let's say 12.4 for
example(or the other way around) i am getting following error:
image.png
Any clue on how to fix this issue so the plugin is not restricted
to only 12.5?




Re: [Need Help] The plugin Startup is requested in implementation version 12.5-fd523ddc12d6156412d7b81f0c8663d8913d1021.

2021-12-05 Thread Geertjan Wielenga
You’ll have to create a separate NBM per version of NetBeans that you’re
targeting if you’re using implementation versions.

Gj

On Sun, 5 Dec 2021 at 13:30, Bilu  wrote:

> Any help on this thread?
> Le 03/12/2021 à 13:48, Bilu Al a écrit :
>
> Hello,
> I am following this tutorial:
> https://netbeans.apache.org/wiki/DevFaqAddTimestampToLogs.asciidoc
> In Step 4 there is a use of implementation version of module o
> rg-netbeans-core-startup
>  nbm-maven-plugin 
> org.codehaus.mojo true 
>
> org.netbeans.modules:org-netbeans-core-startup *impl*  dependency>   
> The issue i am facing is that when i release the plugin (create the nbm)
> with Netbeans 12.5 for example and i want to install the module in another
> version of Netbeans let's say 12.4 for example(or the other way around) i
> am getting following error:
> [image: image.png]
> Any clue on how to fix this issue so the plugin is not restricted to only
> 12.5?
>
>


Re: [Need Help] The plugin Startup is requested in implementation version 12.5-fd523ddc12d6156412d7b81f0c8663d8913d1021.

2021-12-05 Thread Bilu

Any help on this thread?

Le 03/12/2021 à 13:48, Bilu Al a écrit :

Hello,
I am following this tutorial: 
https://netbeans.apache.org/wiki/DevFaqAddTimestampToLogs.asciidoc 

In Step 4 there is a use of implementation version of module 
org-netbeans-core-startup
nbm-maven-pluginorg.codehaus.mojotrueorg.netbeans.modules:org-netbeans-core-startup*impl*
The issue i am facing is that when i release the plugin (create the 
nbm) with Netbeans 12.5 for example and i want to install the module 
in another version of Netbeans let's say 12.4 for example(or the other 
way around) i am getting following error:

image.png
Any clue on how to fix this issue so the plugin is not restricted to 
only 12.5?