This content has been marked as final.
Show 2 replies
-
1. Re: <a4j:form> vs. <h:form> and getter calls
asookazian Oct 23, 2007 2:10 PM (in response to asookazian)also, I am using a modalPanel for each cell in a dataTable. The Seam app keeps track of the row# and col# and I have a 2D array that stores instances of the Note entity bean in that particular "slot" based on row and col passed to SFSB.
When a user enters a note, a graphic displays in that cell. If they click that graphic the modalPanel should display with the note for that particular cell/entity in the 2D array.
So this is why I need the getter method for getNoteText to work... Any ideas would be much appreciated. thx. -
2. Re: <a4j:form> vs. <h:form> and getter calls
asookazian Oct 23, 2007 4:23 PM (in response to asookazian)I hardcoded the following value in the SFSB:
private String noteText = "this is hard coded";
and noticed that this is the value that is showing in the <h:inputText> below. So that means the getter is not called when the modaPanel opens, but the instance variable value is used instead apparently. So how do you make it call the getter method?<h:form id="a4jForm"> <h:inputText id="noteText" value="#{noteAction.noteText}"/> <h:inputHidden id="rowIndex" value="noteAction.rowIndex"/> <h:inputHidden id="colName" value="noteAction.colName"/> <h:inputHidden id="siteId" value="noteAction.siteId"/> <h:inputHidden id="employeeNumber" value="noteAction.employeeNumber"/> <h:commandButton value="submit" action="#{noteAction.submit}" onclick="showNoteGraphic();Richfaces.hideModalPanel('mp')"/> </h:form>