对不起我的noobness.我是Linux的新手并使用CentOS.我需要下载Mysql jdbc并将其放在某个地方.所以我在Google上搜索并且无法获得任何正确的结果.所有结果都说从http://dev.mysql.com/downloads/connector/j/5.1.html站点下载或下载rpm并安装它.但我真的不知道如何先下载它.
我对<h:commandButton>带有<f:ajax>标签的jsf 有问题。如果它有<f:ajax>标签,它会调用支持 bean 中的其他action和actionListener方法。如果它没有<f:ajax>标签,它会调用自己正确的action方法。这是我的片段:
<h:form>
<h:panelGroup id="loanContent" layout="block">
<ui:include src="#{mainView.typePage}.xhtml"/>
</h:panelGroup>
<h:commandButton id ="rLoanBtn" value="Create" action="#{mainView.createNewType}">
<f:ajax execute="loanContent" render="@form"/>
</h:commandButton>
</h:form>
Run Code Online (Sandbox Code Playgroud)
如果我省略<f:ajax execute="loanContent"/>部分,它工作正常。如果我保持原样,它会调用其他方法,这些方法负责相同形式的其他按钮。顺便说一句,mainView支持 bean 是一个ViewScoped托管 bean。