On Tue, 18 Mar 2008, Igor Vaynberg wrote:
providing a set id for something that is inside a repeater? :|
Heh, it might get tricky -- I thought that maybe you can
produce a unique id somehow and set it. But are you saying
it still would not work?
Best wishes,
Timo
--
Timo Rantalaiho
if you can generate unique ids then that would work of course
-igor
On Wed, Mar 19, 2008 at 2:01 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote:
On Tue, 18 Mar 2008, Igor Vaynberg wrote:
providing a set id for something that is inside a repeater? :|
Heh, it might get tricky -- I thought that
On Sun, 16 Mar 2008, Lars Borup Jensen wrote:
on the component (input) I just updated, but it seems the Ajax response has
given
the components new markupId's and hence, the line:
target.focusComponent(field)
Is pretty much useless as the id's in the HTML has been altered (by Ajax
providing a set id for something that is inside a repeater? :|
-igor
On Tue, Mar 18, 2008 at 5:42 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote:
On Sun, 16 Mar 2008, Lars Borup Jensen wrote:
on the component (input) I just updated, but it seems the Ajax response has
given
the components
Hi Igor
I take from your note that setting a specific markupId is not the solution
to my problem.
It seems like the Page.getAutoIndex is used as start index for the
components (TextFields)
which I use in the TreeTable columns when they are updated in the ajax
request (which might be
alright),
is there a reason why you are actually recreating the
textfields/updating the entire treetable? if you do that i cant think
of any work around off the top of my head, maybe matej can since he
wrote the treetable.
-igor
On Tue, Mar 18, 2008 at 7:58 AM, Lars Borup Jensen [EMAIL PROTECTED] wrote:
Well - I do the following on the TextField which is rendered in each cell
field.add(new AjaxFormComponentUpdatingBehavior(onblur)
{
protected void onUpdate(AjaxRequestTarget target)
{
((DefaultTreeModel)treeTable.getModelObject()).nodeChanged(treeNode);
Node changed event tells the tree that the node has been changed and
rebuilts the actual tree item component. Are you sure that you need to
refresh tree item component?
Btw. Why are you callind focusComponent on component that has just been blurred?
-Matej
On Tue, Mar 18, 2008 at 8:30 PM, Lars
Hi Matej,
If I leave out the the treeTable.updateTree(target); line, my row is not
refreshed.
I have a TreeTable with 7 columns. When I enter text in the first column,
the 7th column of the same row needs to be refreshed (calculates sum). Since
this refreshes the column in which the user just