Announcement Announcement Module
Collapse
No announcement yet.
Error submit Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error submit

    Hi,

    Explain the situation:

    I have a page.jsp into one
    <h:datatable value="#{solicit.reportModel}" />,
    <h:Selectonemenu>,
    <h:commandbutton immediate="true" action="#{solicit.mtsearch}"/>

    so,

    My problem is this

    When I click this button, first enter into getreportModel() and before into mtsearch()?

    This a bug or this is my error newbie?

    Thanks for all

  • #2
    I imagine this is a language problem, but it is not at all clear from this message what it is you're trying to achieve, or what the problem is. Do you think you could have another go at explaining the problem?

    Comment


    • #3
      Explain this problem

      I have one page ( page.jsp ), this page contain this:

      <h:form id="frm">
      <h:dataTable value="#{Sol.ReportHandler.reportsModel}" var="item" </h:dataTable>
      <h:commandButton value="Search" action="#{Sol.mtsearch}" immediate="true" tabindex="7"/>
      </h:form>

      CODE Sol.java

      ...
      private ReportHandler reportHandler = new ReportHandler();
      ...
      public ReportHandler getReportHandler()
      {

      return ( reportHandler );
      }

      public String mtsearch()
      {
      ...
      reportHandler.setItems(this.itemsTable);
      ...
      return ( FacesGlobal.SUCCESS );
      }

      CODE reportHandler.java

      public DataModel getReportsModel()
      {
      if ( this.reportsModel == null )
      {
      this.reportsModel = new ListDataModel();
      }

      System.out.println("Trace 000 ReportHandler");
      ArrayList reports = getReports();

      // report sort
      if ( reports != null ) this.sortReports( reports );

      this.reportsModel.setWrappedData( reports );

      return ( this.reportsModel );
      }

      This problem is than when click commandbutton, I don't go directly into mtSearch, if no that first execute value of h:datatable and later execute mtsearch method.

      Comment


      • #4
        Error submit

        I clicked this button, no redirect into other page if no that come back into same page, this is correct.

        Comment

        Working...
        X