myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gururaj, Sandeep" <>
Subject RE: Do Trinidad Tables update with new rows in PartialSubmit if a CommandButton outside table does the adding of rows?
Date Wed, 27 Apr 2011 00:06:48 GMT
You may want to try one or both of following.
a) The partialTriggers="::test" can be changed to partialTriggers="test" if both the button
and the table are defined on the same page.
b) You could add following code to your addAction method after the current code that adds
a row to the list. Here the attribute "table" refers to the UIXTable component associated
with your table. You need to add "binding" attribute to your tr:table tag and bind it to an
instance of UIXTable.





From: Catherine Rocchio []
Sent: Wed 4/27/2011 3:28 AM
Subject: Do Trinidad Tables update with new rows in PartialSubmit if a CommandButton outside
table does the adding of rows?

Hi there,

I am trying to achieve a Partial Submit update of a Trinidad Table upon
submit of a Command Button (called "Add Row").  The bean behind the table is
definitely getting updated because when I do an overall page refresh, I see
my new rows getting added - but I can't seem to get the table to refresh on
its own with the partialTriggers on it.

So.. I guess my question is - should something like this work?  Or.. do
tables need to be programmatically poked for partial submits?  This seems
pretty basic - but - it just isn't working for me.  I guess I will feel
better if I know it SHOULD work - and I will keep trying.

I am using Trinidad 2 and Myfaces 2.


Thanks for help!


<tr:commandButton text="Add" partialSubmit="true" id="test"
actionListener="#{createworkplan.addAction}"  />

My addAction is just boring - but adds a row to a vector which is behind the

      public void addAction(ActionEvent event) {


                  wprolelist.add(new RoleList("test person", "True",
"True", "True"));


And my table has the specification of the partialTrigger.

<tr:table id="workplanroleprivs" rowSelection="single"
value="#{createworkplan.wprolelist}" var="row" width = "800" 






  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message