Hi All,

Am able to delete the row in the sheet, just updating the whole sheet when 
checkbox is clicked for deleting the row.

But it's taking 5-8 sec to delete the row, update the panel which has the 
sheet. 

There is no intimation to the user that a delete operation is going on in the 
background.

Is there anyway to show a translation or the ajax load images somewhere in the 
screen, to show that some process is going on when he checked the checkbox.

Regards,
Madan


----- Original Message ----
From: MichaƂ 'Gandalf' Stawicki <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Monday, 26 March, 2007 11:22:46 PM
Subject: Re: [ Tobago ] Regarding Object Ref in Server Side

Fear not, try event.getComponent(). Also check if the event comes
directly from object you think it's comming, and not from it's
children, ex:

UIComponent o = event.getComponent();
    
    while(!(o instanceof UIData))
        o = o.getParent();
    
    UIData data = (UIData)(o);

regards,
michael

On 26/03/07, madan chowdary <[EMAIL PROTECTED]> wrote:
>
> Hi Volker,
>
> I am using Eclipse, and its showing an error that " The method
> getUIComponent is undefined for ActionEvent " when i use the following code
> u send
>
> UIData sheet = (UIData) event.getUIComponent();
>
>  ActionEvent doesn't have getUIComponent().
>
> I imported ActionEvent form this package "javax.faces.event.ActionEvent"
>
> am i missing anything ?
>
> Madan
>
>
>
> ----- Original Message ----
> From: Volker Weber <[EMAIL PROTECTED]>
> To: MyFaces Discussion <[email protected]>
> Sent: Monday, 26 March, 2007 7:30:32 PM
> Subject: Re: [ Tobago ] Regarding Object Ref in Server Side
>
> Hi Madan,
>
> if you use a a actionListener method for deleting you can access the
> rowObject via
>
> event.getUIComponent().getRowData()
>
> see also here:
> http://www.nabble.com/-Tobago--Popup-inside-tc%3Asheet-tf3466547.html
>
> Regards,
>   Volker
>
>
> 2007/3/26, madan chowdary <[EMAIL PROTECTED]>:
> >
> > Hi All,
> >
> > I have a sheet, which displays a set of items in a cart.
> >
> > The sheet has 5 columns, in which two are editable.
> >
> > One is the 'Delete' column which has checkboxes and other is 'Qty' which
> has
> > textfields.
> >
> > I have a command button to recalculate the CartItems if any of these are
> > changed, this is done when i click on that button.
> >
> > But now i am planning to do this with Ajax. When i click on the delete
> > checkbox for a particular item in a row, then it should be deleted ( or )
> > when value changes in Qty field then other columns in that should change.
> >
> > using renderPartially, i was able to do an ajax call which can do the
> task.
> >
> > But i need to get hold of the object which is to be deleted.
> >
> > The checkbox name after rendering is "
> > page:shoppingCart:checkOutSheet:0:p_code ".
> > where
> > shoppingCart is the page Id,
> > checkOutSheet: is the Sheet ID,
> > p_code is the tc:selectBooleanCheckbox ID.
> >
> > Now how can i refer this object in my controller, where i can delete the
> > Item with an ajax call.
> >
> > Regards,
> > Madan
> >
> >
> >
> >
> >
> >
> >
> >  ________________________________
> >  Here's a new way to find what you're looking for - Yahoo! Answers
>
>
>  ________________________________
>  Here's a new way to find what you're looking for - Yahoo! Answers


-- 
[EMAIL PROTECTED]
http://stawicki.jasliska.pl
GG: 3691111
JID: [EMAIL PROTECTED]







                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Reply via email to