1 Reply Latest reply on Jul 11, 2007 3:27 PM by Sergey Smirnov

    Passing dynamic values of hidden fields during an Ajax submi

    Sheldon s Newbie

      I need some help on ajax submission with some dynamic hidden field values. On a listing page, I have a list of entities. On each entity user can click a button to pop up a form and submit with Ajax (I use <a:commandLink/>). My current solution is to have a single <h:form/> in the page wrapping around multiple similar UI popup forms, one for each entity. Within each entity's pop form I have a <a:commandLink/> and use <f:param/> within to pass the entity id.

      This is obviously not the elegant solution because the popup form fields are duplicated. I am thinking of having one pupup for all entities, and using a hidden field to pass the entity id (like and then set it with document.forms[0].entityId.value=foo on user click event). My problem is that I don't know how to pass this field to the action. I am using seam 1.2.1 on the server side. I am not sure how to bind the hidden value to a bean property. Anyone has ideas? Thanks.