54 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<?xml version='1.0' encoding='UTF-8' ?>
 | 
						|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | 
						|
<html xmlns="http://www.w3.org/1999/xhtml"
 | 
						|
      xmlns:h="http://xmlns.jcp.org/jsf/html"
 | 
						|
      xmlns:f="http://xmlns.jcp.org/jsf/core"
 | 
						|
      xmlns:p="http://primefaces.org/ui">
 | 
						|
    <h:head>
 | 
						|
        <title>MAtrix C</title>
 | 
						|
 | 
						|
    </h:head>
 | 
						|
    <h:body>
 | 
						|
  <h:form id="formC">
 | 
						|
            <p:tooltip globalSelector="true"/>
 | 
						|
            <p:growl id="id_messageA" showDetail="true"/>
 | 
						|
            <p:dataTable class="dataTables"
 | 
						|
                         id="datatableC" 
 | 
						|
 | 
						|
                         value="#{matrixOperations.getMatrixC().matrix}" 
 | 
						|
                         var="row" 
 | 
						|
                         rowIndexVar="i"  
 | 
						|
                         scrollable="true"
 | 
						|
                         paginatorAlwaysVisible="true"
 | 
						|
                         paginator="true" 
 | 
						|
                         paginatorPosition="top" 
 | 
						|
                         rows="10"                 
 | 
						|
                         lazy="true" >
 | 
						|
                <f:facet name="header"  > Matrix C  </f:facet>
 | 
						|
                <p:columns   id ="columnsC" 
 | 
						|
                    value="#{matrixOperations.getMatrixC().getMatrix().get(i)}"  
 | 
						|
                    var="arrayListElement" columnIndexVar="j">
 | 
						|
                    <h:inputText id ="inputTextC"
 | 
						|
 | 
						|
                        converterMessage="Invalid format!"
 | 
						|
                        title= "(#{i},#{j})" 
 | 
						|
                        style="margin-left: 2px;" class="input" 
 | 
						|
                        value="#{row[j]}" >
 | 
						|
 | 
						|
                    </h:inputText> 
 | 
						|
                </p:columns>
 | 
						|
                <f:facet name="footer">
 | 
						|
                        columns:
 | 
						|
                        <h:inputText id="columns" value="#{matrixOperations.getMatrixC().columns}"/>
 | 
						|
                        rows:
 | 
						|
                        <h:inputText id="rows" value="#{matrixOperations.getMatrixC().rows}"/>
 | 
						|
                        <h:commandButton value="Change Sizes" action="#{matrixOperations.getMatrixC().changeRowsColumns()}"/>
 | 
						|
                </f:facet>
 | 
						|
 | 
						|
            </p:dataTable>
 | 
						|
        </h:form>
 | 
						|
 | 
						|
    </h:body>
 | 
						|
</html>
 | 
						|
 |