English 中文(简体)
A. 共同财产基金中的纠纷/法律问题
原标题:Strange problem with rendered=true/false issues in JSF
  • 时间:2010-12-01 20:51:06
  •  标签:
  • java
  • jsf

我与联塞建和办有着非常简单但却令人厌恶的问题。 我有一个数据表(有简单的先线选择等),我想从用户进行初步选择的同一页上填满。

初始阶段

<b><h:selectOneRadio id="radio1" layout="pageDirection" style="font-weight: bold" value="#{displayNOC.slection}">       <f:selectItem itemLabel="Search By NOC" itemValue="N" id="selectItem1" />
 <f:selectItem itemLabel="Search By Title" itemValue="T" id="selectItem2" />
</h:selectOneRadio></td>
<hx:commandExButton type="submit" image="images/btn_search.jpg" action="#{displayNOC.Process_request}" onclick="return validate_ListNoc(this.form)"></hx:commandExButton></b>

一旦用户选择一个无线电台,并点击“研究”,我就有一个数据表(该表藏在同一个页上,其财产是假的)和一个aging子(在这个阶段,我只拥有在装物时也隐蔽的NEXT纽顿),没有任何问题。

<B>Search Results :<BR><BR>
<h:inputHidden id="text1" value="#{displayNOC.firstRow}" ></h:inputHidden>
navigation Next button start
<hx:commandExButton type="submit" value="Next" action="#{displayNOC.goNext}" rendered="#{displayNOC.render_panel_status}" disabled="#{displayNOC.firstRow + displayNOC.rowPerPage >= displayNOC.totalSize}">
</hx:commandExButton>

<h:dataTable border="1" id="table" value="#{displayNOC.WAMNOC}" rendered="#{displayNOC.render_status}" var="SearchResult" headerClass="row2" rowClasses="row-even,row-odd" cellspacing="6">
 <h:column>
 <f:facet name="header">
  <h:commandLink value="NOC_Number" style="text-align: center">
    </h:commandLink>
        </f:facet>
         <h:outputText value="#{SearchResult[0]}" />
         </h:column>
......................
.......................
</h:datatable>

我管理的灯塔SCOPE:面对面的问询表如下(我有所有 get和 set)

@SuppressWarnings("unchecked")
 public void Process_request()
 {
  setRender_status(true);
  setRender_panel_status(true);
  WAMNOCSERVICE WNS=new WAMNOCSERVICE();
  List<WAM_NOC> wnoc= WNS.getNOCandOccupation(0,10);
  //get the total size of the records
  setTotalSize(WNS.totalRecordAvaiable());
  setTotalpage(wnoc.size()/10);
  setRowPerPage(10);
  setFirstRow(1);
  setWAMNOC(wnoc);
 }

 //this action is for next button in the table paging
 @SuppressWarnings("unchecked")
 public void goNext()
 {
  setRender_status(true);
  setRender_panel_status(true);
  setRowPerPage(10);
  System.out.println(firstRow);
  firstRow = getFirstRow() + rowPerPage;
  WAMNOCSERVICE WNS=new WAMNOCSERVICE();
  List<WAM_NOC> wnoc= WNS.getNOCandOccupation(firstRow,rowPerPage);
  setWAMNOC(wnoc);
  }

我的问题是,当我点击GoNext(hton)时,它就永远不会真心实意,我从未看到过任何数据表或数据。 我向联塞综合论坛提出新的意见,这是我认为会给我留下的最后一个问题。 任何帮助都将受到高度赞赏。

问题回答

在随后的要求中,重新评价了<编码> 放入的星号。 但是,由于这一条件取决于申请范围很广的床位,这些床位在答复结束时被拆解,并在下一个新要求下重新计算,因此,如果你在“IDCommand部分或其中一方父母中有这一规定,就可援引这一行动。

In JSF 1.x there are several solutions to go around this:

第二份共同基金的解决办法是,仅仅把信标放在眼中。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签