This commit is contained in:
2024-04-14 12:22:45 -05:00
parent 8f30705c62
commit f1c589e653
115 changed files with 4562 additions and 70 deletions

View File

@@ -11,7 +11,7 @@
</h:head>
<h:body>
<h:form id="form_matrix_A">
<h:form id="form_matrix_A">
<p:tooltip globalSelector="true"/>
<p:growl id="id_messageA" showDetail="true"/>
@@ -32,18 +32,22 @@
value="#{matrixOperations.getMatrixA().getMatrix().get(i)}"
var="arrayListElement" columnIndexVar="j">
<h:inputText
converterMessage="Invalid format!"
title= "(#{i},#{j})"
style="margin-left: 2px;" class="input"
value="#{row[i]}" >
value="#{row[j]}" >
<f:ajax event="keyup"
listener="#{matrixOperations.getMatrixA().listenForKeyUp(i,j, row[i] )}"
/>
listener="#{matrixOperations.getMatrixA().listenForKeyUp(i,j, row.get(j) )}"/>
</h:inputText>
</p:columns>
<f:facet name="footer">
columns:
<h:inputText id="columns" value="#{matrixOperations.getMatrixA().columns}"/>
rows:
<h:inputText id="rows" value="#{matrixOperations.getMatrixA().rows}"/>
<h:commandButton value="Change Sizes" action="#{matrixOperations.getMatrixA().changeRowsColumns()}"/>
</f:facet>
</p:dataTable>
</h:form>
</h:body>