Results 1 to 1 of 1
  1. #1
    Ace
    Ace is offline Member
    Join Date
    Nov 2011
    Location
    Earth
    Posts
    16
    Rep Power
    0

    Question Why JSF makes several invocation of EJB's function during POST?

    search.xhtml:
    Java Code:
    	<h:form>
    		<h1>Enter searched CD's title</h1>
    		<h:inputText id="title" title="CD's title: "
    			value="#{discoGsSearchResults.title}"></h:inputText>
    		<h:commandButton id="submit" value="Search"
    			action="#{discoGsSearchResults.proceed}"></h:commandButton>
    	</h:form>
    results.xhtml:
    Java Code:
    	<h:form>
    		<ui:repeat value="#{discoGsSearchResults.results}" var="result">
    			<h:outputText value ="#{result.title}"></h:outputText>
    			<h:outputLink id="link" value="included.xhtml?id=#{result.resourceURL}"> more </h:outputLink>
    			<h:commandButton id="sell" value="Sell" action="/listing.xhtml" />
    			<p></p>
    		</ui:repeat>		
    	</h:form>
    listing.xhtml:
    Java Code:
    	<h:form>
                    <!-- some html code here -->
    		<h:commandButton id="submit" value="Continue" action="/"></h:commandButton>
    	</h:form>
    discoGsSearchResults.results is a function which retrieves list of results. I have 3 forms. First is for search query, second for choosing result and third for processing chosen result. Why discoGsSearchResults.results is invocated three times?
    Last edited by Ace; 04-08-2013 at 03:45 AM.

Similar Threads

  1. Invocation of Restful services thru POST request
    By userj2ee in forum Advanced Java
    Replies: 0
    Last Post: 05-06-2010, 12:40 PM
  2. Replies: 3
    Last Post: 05-04-2009, 04:15 AM
  3. RMI Invocation
    By kavithakr in forum Advanced Java
    Replies: 1
    Last Post: 03-14-2009, 10:04 PM
  4. HELP: Method Invocation
    By rjuyal in forum Advanced Java
    Replies: 4
    Last Post: 04-07-2008, 12:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •