RE: Question about using dataTable

2007-01-08 Thread Surapuraju, Vamsi
You can use panelgroup, panelgrid or div to solve your problem. Below is
the example



   











   

...

...

 

Hope this helps

Vamsi Surapuraju
724 709 2391

-Original Message-
From: Chen, Wei [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 08, 2007 3:51 AM
To: users@myfaces.apache.org
Subject: Question about using dataTable

Hi,

 

I use the . I have a question: If a column head has two
data columns, how can I do that? Here is my codes. But it looks not like
as what I want:

...



   











   

...

...



 

Regards

 

Wei

 



Tobago opinions

2006-05-16 Thread Surapuraju, Vamsi



Can anyone tell me pros and cons of using Tobago over 
Tomahawk or vice versa? We are in the beginning of the project and I would like 
to get some info about Tobago to make decision about which one to 
use.
 
Thanks in advance
 
Vamsi Surapuraju
 
 
**
"This email and any files transmitted with it are the property of Quadrivius, its subsidiaries, affiliates, or related companies, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. Please notify the sender by return email if you are not the intended recipient. If you are not the intended recipient, you may not copy, retain, print, disclose, or distribute this message or its contents to any other individual or entity. Quadrivius, its subsidiaries, affiliates or related companies, reserves the right to monitor and review the content of all messages sent to or from this email address."
**


JSCook menu help

2006-05-19 Thread Surapuraju, Vamsi
 
Hi,
 I am getting following javascript error when I click on menu.

Error: dummyForm has no properties
Source File:
http://localhost:8000/dedicated/faces/myFacesExtensionResource/navmenu.j
scookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.js
Line: 21

Following is my JSF code

   






I am using myfaces 1.1.3 with tomahawk 1.1.1. I appreciate any help
finding out the problem.

Thank You

Vamsi Surapuraju




RE: JSCook menu help

2006-05-19 Thread Surapuraju, Vamsi



When i drop tomahawk1.1.2 i get following 
error
 
weblogic.servlet.jsp.JspException: (line 6): Error in using tag library uri='http://myfaces.apache.org/tomahawk' prefix='t': The Tag class 'org.apache.myfaces.taglib.html.ext.HtmlCommandButtonTag' has no setter method corresponding to TLD declared attribute 'actionForPhase', (JSP 1.1 spec, 5.4.1)
	at weblogic.servlet.jsp.StandardTagLib.tld_jspException(StandardTagLib.java:1243)
	at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1371)
	at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1269)
	at weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:292)
	at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)
	at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
	at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5067)
	at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4905)
	at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4751)
	at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2161)
What do I do Now?Thanks in advance
 
Vamsi Surapuraju
 
 


From: Murat Hazer [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 9:39 AMTo: MyFaces 
DiscussionSubject: Re: JSCook menu help
download and try to use tomahawk 1.1.2regards...
On 5/19/06, Surapuraju, 
Vamsi <[EMAIL PROTECTED] > 
wrote:
Hi,I 
  am getting following _javascript_ error when I click on menu. Error: 
  dummyForm has no propertiesSource File:http://localhost:8000/dedicated/faces/myFacesExtensionResource/navmenu.j 
  scookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.jsLine: 
  21Following is my JSF code    
  itemLabel="Home" 
  action="" 
  />I 
  am using myfaces 1.1.3 with tomahawk 1.1.1. I appreciate any helpfinding 
  out the problem.Thank YouVamsi 
Surapuraju-- Murat 
HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel 
- Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 
63Blog URL: http://www.projedunyasi.orgYahoo 
Group: http://groups.yahoo.com/group/malatyafenlisesi/ 



bean with request scope stays longer than I expected????

2006-06-19 Thread Surapuraju, Vamsi



HI,
  below is the sample code
 
    public class DeptBackingBean 
{
    List 
employees;
 
    public 
getAllEmplyees() {
    
//code to get all emps
    
}
 
    public 
deleteEmployee() {
    //some code 
to delete
    
}
    }
 
On my jsf page I use getAllEmplyees() to get list and 
use datatable to display them. Each row has a delete button with action property 
mapped to deleteEmployee. When user clicks on delete button and when when jsf 
execution gets into method deleteEmployee I expected employee list to be empty. 
Because I declared DeptBackingBean to be request scope bean in 
faces-config.xml.  When user clicks on delete button it should be a 
new request and I should get a new empty bean. Surprisingly I see all the 
employee objects in employee list when I run thru 
debug.
 
Did I misunderstand something here? Can somebody 
explain the behavior?
 
Thank You very much in advance.
 
Vamsi Surapuraju
 
 
**
"This email and any files transmitted with it are the property of Quadrivius, its subsidiaries, affiliates, or related companies, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. Please notify the sender by return email if you are not the intended recipient. If you are not the intended recipient, you may not copy, retain, print, disclose, or distribute this message or its contents to any other individual or entity. Quadrivius, its subsidiaries, affiliates or related companies, reserves the right to monitor and review the content of all messages sent to or from this email address."
**


RE: bean with request scope stays longer than I expected????

2006-06-19 Thread Surapuraju, Vamsi
 All I have in that method is a call to stateless ejb which returns list
of employees.

Below is how it is.

public class DeptBackingBean {
 List employees;

public List getAllEmplyees() {
 //code to get all emps
DeptLocal deptLocal = DepartmentSlsbUtil
.getLocalHome().create();
employees = deptLocal .getAllemployees();
return employees;
 }

 public void  deleteEmployee() {
 //some code to delete
 }
}
Thank You

Vamsi Surapuraju
724 709 2391

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 1:22 PM
To: MyFaces Discussion
Subject: Re: bean with request scope stays longer than I expected

Where is the code (and where is it called) that loads the employees
list?

On 6/19/06, Surapuraju, Vamsi <[EMAIL PROTECTED]> wrote:
>
>
> HI,
>   below is the sample code
>
> public class DeptBackingBean {
> List employees;
>
> public getAllEmplyees() {
> //code to get all emps
> }
>
> public deleteEmployee() {
> //some code to delete
> }
> }
>
> On my jsf page I use getAllEmplyees() to get list and use datatable to

> display them. Each row has a delete button with action property mapped

> to deleteEmployee. When user clicks on delete button and when when jsf

> execution gets into method deleteEmployee I expected employee list to 
> be empty. Because I declared DeptBackingBean to be request scope bean 
> in faces-config.xml.  When user clicks on delete button it should be a

> new request and I should get a new empty bean. Surprisingly I see all 
> the employee objects in employee list when I run thru debug.
>
> Did I misunderstand something here? Can somebody explain the behavior?
>
> Thank You very much in advance.
>
> Vamsi Surapuraju
>
>
>
>
> **
>
> "This email and any files transmitted with it are the property of 
> Quadrivius, its subsidiaries, affiliates, or related companies, are 
> confidential, and are intended solely for the use of the individual or

> entity to whom this email is addressed. Please notify the sender by 
> return email if you are not the intended recipient. If you are not the

> intended recipient, you may not copy, retain, print, disclose, or 
> distribute this message or its contents to any other individual or 
> entity. Quadrivius, its subsidiaries, affiliates or related companies,

> reserves the right to monitor and review the content of all messages
sent to or from this email address."
>
> **


RE: bean with request scope stays longer than I expected????

2006-06-19 Thread Surapuraju, Vamsi
I think I understand whats happening now. Yes I have it as you said. It
is being called in renderView phase and apply request values phase. In
my case getAllEmployees being called again when I hit Delete Employee
button which is getting the list of employees again.

Thanks for your help

Vamsi Surapuraju
724 709 2391

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 2:30 PM
To: MyFaces Discussion
Subject: Re: bean with request scope stays longer than I expected

does your view have "#{yourBean.allEmployees}" anywhere that would be
referenced on decode, process validations or during update model?

For example, if you have (you probably do):



During the process* methods the rows will be iterated and therefore your
"getAllEmployees()" method will be called.

Add some logging or system.out and should see when it is getting called.

-Andrew


On 6/19/06, Surapuraju, Vamsi <[EMAIL PROTECTED]> wrote:
>  All I have in that method is a call to stateless ejb which returns 
> list of employees.
>
> Below is how it is.
>
> public class DeptBackingBean {
>  List employees;
>
> public List getAllEmplyees() {
>  //code to get all emps
> DeptLocal deptLocal = DepartmentSlsbUtil
> .getLocalHome().create();
> employees = deptLocal .getAllemployees();
> return employees;
>  }
>
>  public void  deleteEmployee() {
>  //some code to delete
>  }
> }
> Thank You
>
> Vamsi Surapuraju
> 724 709 2391
>
> -Original Message-
> From: Andrew Robinson [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 19, 2006 1:22 PM
> To: MyFaces Discussion
> Subject: Re: bean with request scope stays longer than I expected????
>
> Where is the code (and where is it called) that loads the employees 
> list?
>
> On 6/19/06, Surapuraju, Vamsi <[EMAIL PROTECTED]> wrote:
> >
> >
> > HI,
> >   below is the sample code
> >
> > public class DeptBackingBean {
> > List employees;
> >
> > public getAllEmplyees() {
> > //code to get all emps
> > }
> >
> > public deleteEmployee() {
> > //some code to delete
> > }
> > }
> >
> > On my jsf page I use getAllEmplyees() to get list and use datatable 
> > to
>
> > display them. Each row has a delete button with action property 
> > mapped
>
> > to deleteEmployee. When user clicks on delete button and when when 
> > jsf
>
> > execution gets into method deleteEmployee I expected employee list 
> > to be empty. Because I declared DeptBackingBean to be request scope 
> > bean in faces-config.xml.  When user clicks on delete button it 
> > should be a
>
> > new request and I should get a new empty bean. Surprisingly I see 
> > all the employee objects in employee list when I run thru debug.
> >
> > Did I misunderstand something here? Can somebody explain the
behavior?
> >
> > Thank You very much in advance.
> >
> > Vamsi Surapuraju
> >
> >
> >
> >
> > **
> >
> > "This email and any files transmitted with it are the property of 
> > Quadrivius, its subsidiaries, affiliates, or related companies, are 
> > confidential, and are intended solely for the use of the individual 
> > or
>
> > entity to whom this email is addressed. Please notify the sender by 
> > return email if you are not the intended recipient. If you are not 
> > the
>
> > intended recipient, you may not copy, retain, print, disclose, or 
> > distribute this message or its contents to any other individual or 
> > entity. Quadrivius, its subsidiaries, affiliates or related 
> > companies,
>
> > reserves the right to monitor and review the content of all messages
> sent to or from this email address."
> >
> > **
>


t:saveState and browser Refresh problem

2006-06-22 Thread Surapuraju, Vamsi



 
Hi,
  
I am initializing the page data using JDBC call in bean 
constructor and I am saving the whole bean state using t:saveState on the 
jsf page. Since bean is saved and when I hit the browser refresh on the page it 
is not going to database to fetch the data. Does anyone has any ideas on how to 
fix this issue?
 
Thanks 
in advance
 
Vamsi Surapuraju
724 709 2391
 
**
"This email and any files transmitted with it are the property of Quadrivius, its subsidiaries, affiliates, or related companies, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. Please notify the sender by return email if you are not the intended recipient. If you are not the intended recipient, you may not copy, retain, print, disclose, or distribute this message or its contents to any other individual or entity. Quadrivius, its subsidiaries, affiliates or related companies, reserves the right to monitor and review the content of all messages sent to or from this email address."
**


javax.servlet.ServletException: parent is null?

2006-07-27 Thread Surapuraju, Vamsi
 I am getting javax.servlet.ServletException: parent is null? Exception
when server is trying to redirect it error.faces. I have following in my
web.xml

 
java.lang.Throwable
/error.faces
  

Server is able to redirect to error.jsp with out any problem if there is
an exception in any of my own classes. It is failing if there is a issue
with my jsf tags. For example following line compiles fine but throws
javax.servlet.ServletException: parent is null? While trying to redirect
it to error.faces . It hides actual exception.

  

  

Later I found out the problem is with type="percentage". Once I removed
it it worked fine.
This also happens if I bind my component to non existent variable(not
intentionally but by mistake :) ) in the bean. I followed 
http://wiki.apache.org/myfaces/Handling_Server_Errors to create my
exception framework.

Do I have to do some kind of hack to show actual exception in
error.faces.

Thanks In Advance


Vamsi Surapuraju
724 709 2391


**
"This email and any files transmitted with it are the property of Quadrivius, 
its subsidiaries, affiliates, or related companies, are 
confidential, and are intended solely for the use of the individual or entity 
to whom this email is addressed. Please notify the 
sender by return email if you are not the intended recipient. If you are not 
the intended recipient, you may not copy, retain, print,
disclose, or distribute this message or its contents to any other individual or 
entity. Quadrivius, its subsidiaries, affiliates or 
related companies, reserves the right to monitor and review the content of all 
messages sent to or from this email address."
**




RE: javax.servlet.ServletException: parent is null?

2006-07-27 Thread Surapuraju, Vamsi



Nope. I am not using tiles or Facelets.
 
Thanks
 
Vamsi Surapuraju
724 709 2391
 


From: Raj Rajendran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 1:49 PMTo: MyFaces 
DiscussionSubject: Re: javax.servlet.ServletException: parent is 
null?
Are you using Tiles ? I used to get the parent is null error, but 
after I switched to Facelets and got rid of Tiles, that useless message never 
showed up again. Facelets is awesome !
On 7/27/06, Surapuraju, 
Vamsi <[EMAIL PROTECTED]> 
wrote:
I 
  am getting javax.servlet.ServletException: parent is null? Exceptionwhen 
  server is trying to redirect it error.faces. I have following in 
  myweb.xmljava.lang.Throwable 
  /error.faces  Server 
  is able to redirect to error.jsp with out any problem if there isan 
  exception in any of my own classes. It is failing if there is a issue with 
  my jsf tags. For example following line compiles fine but 
  throwsjavax.servlet.ServletException: parent is null? While trying to 
  redirectit to error.faces . It hides actual 
  exception.Later 
  I found out the problem is with type="percentage". Once I removed it it 
  worked fine.This also happens if I bind my component to non existent 
  variable(notintentionally but by mistake :) ) in the bean. I 
  followedhttp://wiki.apache.org/myfaces/Handling_Server_Errors 
  to create myexception framework.Do I have to do some kind of hack 
  to show actual exception inerror.faces.Thanks In 
  AdvanceVamsi Surapuraju 724 709 
  2391**"This 
  email and any files transmitted with it are the property of Quadrivius, its 
  subsidiaries, affiliates, or related companies, are confidential, and are 
  intended solely for the use of the individual or entity to whom this email is 
  addressed. Please notify thesender by return email if you are not the 
  intended recipient. If you are not the intended recipient, you may not copy, 
  retain, print, disclose, or distribute this message or its contents to any 
  other individual or entity. Quadrivius, its subsidiaries, affiliates 
  orrelated companies, reserves the right to monitor and review the content 
  of all messages sent to or from this email address." 
  **
**
"This email and any files transmitted with it are the property of Quadrivius, its subsidiaries, affiliates, or related companies, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. Please notify the sender by return email if you are not the intended recipient. If you are not the intended recipient, you may not copy, retain, print, disclose, or distribute this message or its contents to any other individual or entity. Quadrivius, its subsidiaries, affiliates or related companies, reserves the right to monitor and review the content of all messages sent to or from this email address."
**


Datatable preserveRowStates and remove row problem

2006-08-10 Thread Surapuraju, Vamsi
 
Hi,
  I tried to remove a row from data table which has preserveRowStates
set to true and I noticed deleted row data is being shown an the next
row. Does anyone know How I can keep the modified data on the table with
out using preserveRowStates. I want to be able to remove the row from
data table and keep modified data. 

Thank You very Much

Vamsi Surapuraju




**
"This email and any files transmitted with it are the property of Quadrivius, 
its subsidiaries, affiliates, or related companies, are 
confidential, and are intended solely for the use of the individual or entity 
to whom this email is addressed. Please notify the 
sender by return email if you are not the intended recipient. If you are not 
the intended recipient, you may not copy, retain, print,
disclose, or distribute this message or its contents to any other individual or 
entity. Quadrivius, its subsidiaries, affiliates or 
related companies, reserves the right to monitor and review the content of all 
messages sent to or from this email address."
**