ValueChangeListener is not invoked

2007-04-18 Thread Amit Jain

Hi,

I have an inputText and I have provided a method binding for 
ValueChangeListener to it. When I change its value to some text and 
submits the page my listener method is invoked and working fine. But 
when I change its value to empty("") the value change listener is not 
invoked. I am not sure that if it a feature or a bug in myfaces. Is 
there any workaround to handle such situation?


Thanks
Amit


Re: Sub columns in datatable

2007-02-26 Thread Amit Jain
You can do it by using datatable inside a datatable. So basically inside 
second column there will be datatable and you have to change value to 
the datatable accordingly.




[EMAIL PROTECTED] wrote:

Hi all,
 
How to include sub columns in datatable.

It has three columns Ssn,Names,profession.
As illustrated in the fig below for Names (first names,middle 
names,last names).

How to get the sub columns in the datatable.
 
Best Regards,

Pallavi

The information contained in this electronic message and any 
attachments to this message are intended for the exclusive use of the 
addressee(s) and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately and destroy all copies of this message and any attachments.


WARNING: Computer viruses can be transmitted via email. The recipient 
should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any 
virus transmitted by this email.


www.wipro.com






Treetable unable to refresh Data.

2006-07-07 Thread Amit Jain



Hi, 
 
I have displaying a list using  
tag. The data in it is supposed to come on the basis of 
some filter value. So now each time new list will be displayed. 
However HtmlTree component don't refresh its data and throws 
ArrayIndexboundofException. I have even set its binded value to null as soon as 
my action is invoked. It there any way (or trick ) to resolve this 
problem..
 
Thanks in advance. 
 
With Regards
Amit
 


HtmlPanelgrid to support value

2006-05-09 Thread Amit Jain



HI 
 
I am creating a custom component which in short is 
something like panelgrid with value. I extended my Component class with 
HtmlPanelGrid and implement it with EditableValueHolder. Now the problem I 
am facing is setter and getter method of my component class are never invoked. 
So my new value is not saved and my older value is displayed on screen. Can 
someone suggest me what else do I need to make my panelgrid support value. 

 
With Regards
Amit


Re: Facets Renderer!

2006-03-03 Thread Amit Jain
Thanks for the reply.

I cant assign header in constructor as I am adding my default header only if
user have not given header facet in jsp.

Amit
- Original Message - 
From: "Volker Weber" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" 
Sent: Friday, March 03, 2006 3:29 PM
Subject: Re: Facets Renderer!


> Hi Amit,
>
> Amit Jain wrote:
> > Hi,
> >
> > I have a class which extends UIcolumn. I am adding header facet to it in
encodebegin method but the facets are not getting rendered. I am getting
simple UIcolumn.
> > Can someone suggest some other way to do it.
>
> you can't do this in encode methods of UIColumn, because these are never
> called. The encoding of the columns children is invoked by the renderer
> of UIData.
>
> If you have a custom tag class you can add the facet there, otherwise
> you can do this in the constructor of your custom UIColumn.
>
> Regards,
>   Volker
>
> >
> > Regards
> > Amit
>
> -- 
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 268.1.1/273 - Release Date: 3/2/2006
>
>



Facets Renderer!

2006-03-03 Thread Amit Jain



Hi,
 
I have a class which extends UIcolumn. I am 
adding header facet to it in encodebegin method but the facets are not getting 
rendered. I am getting simple UIcolumn. 
Can someone suggest some other way to do it. 

 
Regards
Amit


Re: How to make complex layout using datatable?

2006-02-28 Thread Amit Jain



As far as i know dataTable dont support colspan and 
rowspan. If you need such thing, you have to make your own renderer for 
dataTable(extend HtmlTableRenderer) to support colspan and rowspan. 


  - Original Message - 
  From: 
  wang 
  kai 
  To: users@myfaces.apache.org 
  Sent: Tuesday, February 28, 2006 2:12 
  PM
  Subject: How to make complex layout using 
  datatable?
  
  Hi all,
   
  I got a demand that need to show comlex data in a datatable like the 
  following table.
   
  
  


  
 
  
 

  
 
  
 

  
 
  
 
  
 

  
 
  
 

  
 
  
 
  
 

  
 
  
 
  
 

  
 
  
 
  
 
   
  Could anyone direct me how to implement it using datatable?
   
  Thanks
   
  
  

  No virus found in this incoming message.Checked by AVG Free 
  Edition.Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 
  2/27/2006


Components disappearing!

2006-02-10 Thread Amit Jain
HI !

I am trying to make a custom component, a sortable column which is a column
with an output text and 2 command buttons at its header.

I extends the UIcolumn component and put a htmlPanelGrid in it header.
HtmlPanelGrid contains an output text and 2 command buttons.

I am trying to a assign id to these component using View as

FacesContext.getCurrentInstance().getViewRoot().createUniqueId();

Now it displays everything fine for the first time. But when I click any of
these buttons, cells of the column disappears and I left with empty column.

Does any one have any idea why this is happening.

With regards
Amit
ps: When I don't assign ids everything works fine except that I got a
warning saying automatic id is assigned to these components.