jsfページから別のページにパラメータを渡そうとしていますが、私が呼び出している別のページがUR1でも変更されず、既存のURLに "#"を追加するだけの問題。 http://localhost:8080/gidee/#にhttp://localhost:8080/gidee/: これはいるindex.xhtml別のjsfページに渡す
<h:commandLink value="details" action="#{ideeBean.details()}">
<f:param name="idee" value="in" />
</h:commandLink>
あり、これはIdeeBean.java
public String details(){
return "details";
}
と私からのcommandLinkにURLパスをクリックします。
アクションメソッドにパラメータを渡すには、 'f:param'パラメータ、または' h:commandLink action = "#{ideeBean.details(yourParameterValue1、yourParameterValue2)}" 'を使用する' h:outputLink'が必要です。 –
URL http:// localhost:8080/gidee/details.xhtmlに渡したいので、index.xhtmlのメソッドdetails()が正しいですか?これはhttp:// localhost:8080/gidee /#に渡されるためです。 –