通过文档,看起来像faces-config.xml是必需的.但是,由于某种原因,我认为Facelets使用了注释,因此不需要xml配置(?).他们说:
要将JavaServer Faces配置为使用Facelets作为ViewHandler,请修改项目的faces-config.xml以指定元素
似乎Facelets教程通常是死链接,或者像上面一样,很快就会死链接:(
使用Netbeans GUI构建器,是否可能是值/引用问题的同步,线程或传递阻止将DefaultTableModel从实用程序类传递到JFrame?
在任何一种情况下,控制台输出都是相同的,代码只是从实用程序类复制/粘贴并放在JFrame中.但是,如果使用实用程序类,则没有GUI输出.
如何追踪JTable为空或空的原因?据我所知,DefaultTableModel填充了数据.
控制台输出:
init:
Deleting: /home/thufir/NetBeansProjects/SwingNNTP/build/built-jar.properties
deps-jar:
Updating property file: /home/thufir/NetBeansProjects/SwingNNTP/build/built-jar.properties
Compiling 1 source file to /home/thufir/NetBeansProjects/SwingNNTP/build/classes
warning: [options] bootstrap class path not set in conjunction with -source 1.5
1 warning
compile:
run:
Apr 23, 2012 9:46:25 PM net.bounceme.dur.nntp.EnumNNTP <init>
INFO: SingletonNNTP..only once...
Apr 23, 2012 9:46:25 PM net.bounceme.dur.nntp.PropertiesReader getProps
INFO: NNTP.loadMessages...
Apr 23, 2012 9:46:25 PM net.bounceme.dur.nntp.EnumNNTP connect
INFO: SingletonNNTP.connect..
Apr 23, 2012 9:46:26 PM net.bounceme.dur.nntp.EnumNNTP setIndex
INFO: SingletonNNTP.setIndex..164
Apr 23, 2012 9:46:26 PM net.bounceme.dur.nntp.EnumNNTP page
INFO: …Run Code Online (Sandbox Code Playgroud) 我设置了密码缓存,但奇怪之处在于我认为我已经这样做了.从电子邮件到github,似乎他们改变了一些东西:
你好Thufir,
您所看到的是,默认情况下,所有新创建的repos现在都使用Smart HTTP而不是SSH.我们在这里有一篇帮助文章,解释了如何在此处进行更改:https: //help.github.com/articles/why-is-git-always-asking-for-my-password
我们在这里也有一篇关于它的博客文章:https: //github.com/blog/1104-credential-caching-for-wrist-friendly-git-usage
我看到的奇怪之处在于我似乎回想起前一段时间的那些确切方向,用于缓存密码.
此外,是否有一个更好的方法,或许有一个公钥?我不太确定我的密码缓存在哪里,但我知道这不是一个好主意.(我在Linux上,所以不能在电子邮件中使用建议的.exe.)
在这种情况下,左联接与右联接相同吗?
mysql>
mysql>
mysql> use usenet;show tables;describe ARTICLE;describe NEWSGROUP;
Database changed
+------------------+
| Tables_in_usenet |
+------------------+
| ARTICLE |
| NEWSGROUP |
+------------------+
2 rows in set (0.00 sec)
+---------------+------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+------------+------+-----+---------+----------------+
| ID | bigint(20) | NO | PRI | NULL | auto_increment |
| MESSAGENUMBER | int(11) | YES | | NULL | |
| NEWSGROUP_ID | bigint(20) | YES | MUL | NULL | | …Run Code Online (Sandbox Code Playgroud) 如何将Netbeans添加javamail.providers到META-INF文件夹(我手动添加)而不进入ant构建文件中的杂草?
这有点奇怪,因为manifest.mf最终出现在生成的jar中的META-INF文件夹中(正确)但是位于META-INF文件夹(我手动添加)的外面:
thufir@dur:~/NetBeansProjects/gnumail-providers$
thufir@dur:~/NetBeansProjects/gnumail-providers$ ll META-INF/
total 12
drwxrwxr-x 2 thufir thufir 4096 Mar 21 04:02 ./
drwxr-xr-x 8 thufir thufir 4096 Mar 21 04:15 ../
-rw-rw-r-- 1 thufir thufir 868 Mar 21 04:02 javamail.providers
thufir@dur:~/NetBeansProjects/gnumail-providers$
thufir@dur:~/NetBeansProjects/gnumail-providers$ ll manifest.mf
-rw-rw-r-- 1 thufir thufir 82 Mar 21 03:18 manifest.mf
thufir@dur:~/NetBeansProjects/gnumail-providers$
Run Code Online (Sandbox Code Playgroud)
这是项目:
thufir@dur:~/NetBeansProjects/gnumail-providers$
thufir@dur:~/NetBeansProjects/gnumail-providers$ tree -L 2
.
??? build
? ??? built-jar.properties
? ??? classes
? ??? empty
? ??? generated-sources
??? build.xml
??? dist
? ??? gnu
? …Run Code Online (Sandbox Code Playgroud) 服务器代码来自netty QOTM(Quote Of The Moment)示例:
package net.bounceme.dur.netty;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioDatagramChannel;
import java.util.logging.Logger;
public final class Server {
private static final Logger log = Logger.getLogger(Server.class.getName());
public static void main(String[] args) throws InterruptedException {
MyProps p = new MyProps();
int port = p.getServerPort();
new Server().pingPong(port);
}
private void pingPong(int port) throws InterruptedException {
log.fine("which handler?");
EventLoopGroup group = new NioEventLoopGroup();
try {
Bootstrap b = new Bootstrap();
b.group(group)
.channel(NioDatagramChannel.class)
.option(ChannelOption.SO_BROADCAST, true)
.handler(new ServerDatagramHandler()); …Run Code Online (Sandbox Code Playgroud) 该项目从CLI构建并运行:
thufir@mordor:~/NetBeansProjects/hello_client$
thufir@mordor:~/NetBeansProjects/hello_client$ gradle clean build;java -jar build/libs/hello_client.jar
:clean
:compileJava
:processResources UP-TO-DATE
:classes
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 1.032 secs
hello world
thufir@mordor:~/NetBeansProjects/hello_client$
Run Code Online (Sandbox Code Playgroud)
但Netbeans抱怨说:
Executing: gradle run
Arguments: [-c, /home/thufir/NetBeansProjects/hello_client/settings.gradle]
:run
Cannot execute run because the property "mainClass" is not defined or empty.
BUILD SUCCESSFUL
Total time: 0.17 secs
Run Code Online (Sandbox Code Playgroud)
为Netbeans插件设置主类的正确方法是什么?
我不明白为什么Gradle没有下载Selenium,即使有refresh-dependencies,因为Hibernate下载得很好.Selenium正在使用mavenCentralrepo,就像Hibernate:
thufir@mordor:~/NetBeansProjects/sel$
thufir@mordor:~/NetBeansProjects/sel$ gradle clean run --refresh-dependencies
:clean
:compileJava
Download https://repo1.maven.org/maven2/org/hibernate/hibernate-core/3.6.7.Final/hibernate-core-3.6.7.Final.pom
Download https://repo1.maven.org/maven2/org/hibernate/hibernate-parent/3.6.7.Final/hibernate-parent-3.6.7.Final.pom
Download https://jitpack.io/com/github/THUFIR/hello_api/master-SNAPSHOT/hello_api-master-1-gef696be-2.pom
Download https://repo1.maven.org/maven2/antlr/antlr/2.7.6/antlr-2.7.6.pom
Download https://repo1.maven.org/maven2/commons-collections/commons-collections/3.1/commons-collections-3.1.pom
Download https://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pom
Download https://repo1.maven.org/maven2/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.pom
Download https://repo1.maven.org/maven2/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.1.Final/hibernate-jpa-2.0-api-1.0.1.Final.pom
Download https://repo1.maven.org/maven2/javax/transaction/jta/1.1/jta-1.1.pom
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.pom
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.6.1/slf4j-parent-1.6.1.pom
Download https://repo1.maven.org/maven2/org/hibernate/hibernate-core/3.6.7.Final/hibernate-core-3.6.7.Final.jar
Download https://repo1.maven.org/maven2/antlr/antlr/2.7.6/antlr-2.7.6.jar
Download https://repo1.maven.org/maven2/commons-collections/commons-collections/3.1/commons-collections-3.1.jar
Download https://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
Download https://repo1.maven.org/maven2/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar
Download https://repo1.maven.org/maven2/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.1.Final/hibernate-jpa-2.0-api-1.0.1.Final.jar
Download https://repo1.maven.org/maven2/javax/transaction/jta/1.1/jta-1.1.jar
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
/home/thufir/NetBeansProjects/sel/src/main/java/net/bounceme/mordor/javascript/Main.java:25: error: no suitable constructor found for FirefoxDriver(URL)
driver = new org.openqa.selenium.firefox.FirefoxDriver(url);
^
constructor FirefoxDriver.FirefoxDriver(FirefoxProfile) is not applicable
(argument mismatch; URL cannot be converted …Run Code Online (Sandbox Code Playgroud) 看完后:
在哪里可以下载用于 Postgresql 的 Northwind 数据库?
看起来 Northwind 数据的最佳位置,在 Microsoft 本身之外,是:
https://code.google.com/archive/p/northwindextended/downloads
此原始数据在多大程度上与 Microsoft 数据匹配?直接从微软下载有什么好处吗?
我将使用 MySQL 或 SQLite,主要是在 Linux 上。当然,微软网站至少强调了他们的 SQL Server。
为Libre Office声明命名空间的语法是什么?需要声明什么特定命名空间?
thufir@dur:~/fods/flwor$
thufir@dur:~/fods/flwor$ basex text.xq
Stopped at /home/thufir/fods/flwor/text.xq, 3/14:
[XPST0081] No namespace declared for 'text:p'.
thufir@dur:~/fods/flwor$
thufir@dur:~/fods/flwor$ cat text.xq
for $foo in db:open("foo")
return $foo//text:p
thufir@dur:~/fods/flwor$
Run Code Online (Sandbox Code Playgroud)
当然,$foo单独返回可以很好地返回整个文档。
我是否还需要将命名空间存储在本地文件中?或者,只需添加类似以下内容:
declare namespace type4="http:///de/tudarmstadt/ukp/dkpro/core/api/segmentation/type.ecore";
java ×4
netbeans ×4
gradle ×2
jar ×2
manifest ×2
sql ×2
xml ×2
basex ×1
database ×1
exist-db ×1
facelets ×1
git ×1
github ×1
https ×1
io ×1
join ×1
jsf ×1
jsf-2 ×1
left-join ×1
linux ×1
manifest.mf ×1
maven ×1
meta-inf ×1
mysql ×1
netty ×1
northwind ×1
one-to-many ×1
selenium ×1
sqlite ×1
ssh ×1
swing ×1
xpath ×1
xquery ×1