Re: Base is null error

2007-06-18 Thread sandipp

Hi,

Thanks For your reply.

But can you please explain why this may be happening ?

i.e. when I create project first time(using two set of jars SUN RI & 
myfaces) it worked fine.
But when I try to create project second time (with same jars) its 
giving me base is null error.

Thanks
Sandip


Volker Weber-5 wrote:
> 
> Hi Sandip,
> 
> 2007/6/18, Sandip Patil <[EMAIL PROTECTED]>:
>> Hi All,
>> I am facing very strange problem.One time my application running
>> fine and another time(when I try to create another project
>> with another name) its giving me following error.
>> javax.servlet.ServletException: Base is null: loginFormBean
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
>> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>>
>>
>> root cause javax.faces.el.PropertyNotFoundException: Base
>> is null: loginFormBean
>> where loginFormBean is my Bean's alias name from faces-config file.
>> I searched almost for everything on google but not succeeded.
>>
>> I am using jdk 1.5,apache-tomcat-5.5.17,Exadel.
>>
>> I have both set of jar files jsf-api.jar,jsf-impl.jar
>> And
>>  myfaces-api.jar,myfaces-impl.jar
>>
>> On various forum I got reply saying use only one set of files
>> out of these two(i.e. Sun RI or myfaces).
>> But clearly first time my application running fine with these two
>> set of jar files why I should remove one set of jar file for second time
>> project creation.
> 
> Because your app did not run!
> At least jsf-api.jar and myfaces-api.jar contains different
> implementations of the same classes.
> 
> Your should find out whats wrong with the other functionalities which
> not work now.
> There is the problem, not in how to make two different implementations
> of jsf work together.
> 
> Regards,
> Volker
> 
> 
>> (If I do so some of functionalities will not work for second time project
>> creation)
>> Here I am giving remaining jar files from my web-inf/lib
>>  folder
>> bp-ui-14.jar,chartengineapi.jar,com.ibm.icu_3.4.4.1.jar,common-annotations.jar,commons-beanutils.jar
>> commons-cli-1.0.jar,commons-codec-1.3.jar,commons-collections-2.1.1.jar,commons-collections.jar
>> commons-digester.jar,commons-fileupload-1.1.1.jar,commons-fileupload.jar,commons-io-1.2.jar
>> commons-lang.jar,commons-logging-1.0.4.jar,commons-logging-1.1.jar
>> commons-logging.jar,coreapi.jar,dataadapterapi.jar,dom4j-1.6.jar,
>> dteapi.jar,engineapi.jar,flute.jar,itext-1.4.6.jar,j2ee.jar,js.jar,jsf-api.jar
>> jsf-impl.jar,jstl.jar,jta.jar,jxls-core-0.9.1.jar,log4j-1.2.13.jar,
>> modelapi.jar,myfaces-api.jar,myfaces-impl.jar,ojdbc14.jar,org.eclipse.emf.common_2.2.0.v200606051102.jar
>> org.eclipse.emf.ecore.xmi_2.2.0.v200606051102.jar,org.eclipse.emf.ecore_2.2.0.v200606051102.jar,
>> org.eclipse.swt.win32.win32.x86_3.2.0.v3232l.jar,poi-2.5.1-final-20040804.jar,poi-contrib-2.5.1-final-2004080
>> 4.jar
>> poi-scratchpad-2.5.1-final-20040804.jar,sac.jar,sandbox.jar,scriptapi.jar,shale-remoting.jar
>> standard.jar,tlddoc.jar,tomahawk.jar,toplink-essentials.jar,toplink-essentials-agent.jar,
>> viewer.jar,xerces-2.6.2.jar.
>>
>> my web.xml contain listener as,
>> 
>> org.apache.myfaces.webapp.StartupServletContextListener
>> 
>>
>> Also ,I tried to create project in eclipse -clean mode(thinking of
>> clearing
>> cache).
>> but it also not helped.
>> Please help me in this.
>> Thanks
>> Sandip
>>
>>
>>
>>  
>>  Don't get soaked. Take a quick peak at the forecast
>>  with theYahoo! Search weather shortcut.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Base-is-null-error-tf3939990.html#a11188080
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Is problem with myfaces ?

2007-06-13 Thread sandipp

Hi ,

Thanks for the response.

Here I am registering my bean as,

 
  loginFormBean
  com.LoginForm
  request
 

As you said keep only one jar out of jsf & myfaces.
But my another project working fine when I kept both jars.(actually I need
both jars because if I remove one of jars then some of functionalities
inside my application not working)

So can you please suggest in this.What might be wrong.

Thanks
Sandip


Andrew Robinson-5 wrote:
> 
> "Base is null" means that the base object of the EL expression is
> null. In this case, #{loginFormBean} is evaluating to null. So the
> variable resolver is not finding "loginFormBean" in any of the JSF
> contexts and is not auto-creating it.
> 
> Could you post how you register this bean?
> 
> Also, as for jars make sure you don't have jsf-api, jsf-impl as you
> mentioned, but also make sure myfaces-api and myfaces-impl are the
> only myfaces jars in your classpath.
> 
> Also make sure you have this in your web.xml:
> 
>   
> 
>   org.apache.myfaces.webapp.StartupServletContextListener
> 
>   
> 
> 
> On 5/28/07, Sandip Patil <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>> I am facing some strange problem while working with JSF.
>> I have created one project which is running fine.If I create another
>> project
>> with another name(but same src/JSP's files) its giving me below error
>>
>> I am getting error as,Base is null Error.
>>
>> I am trying to login my application by entering username & password &
>> then
>> click on login button.
>>
>> But its showing me error as,
>>
>> javax.servlet.ServletException: Base is null: loginFormBean
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
>> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>>
>> where loginFormBean is name of my Bean in faces-config to accept username
>> &
>> password values from client side.
>> --
>>
>>
>> I am using JDK1.5,Tomcat 5.5,Exadel
>>
>> Also I have jar files in my lib folder as,
>> jsf-api.jar,jsf-impl.jar,myfaces-api.jar,myfaces-impl.jar,tomahawk.jar
>>
>>
>> If I remove jsf-api.jar,jsf-impl.jar these jar files its not showing Base
>> is
>> null error.
>>
>> But It is creating another problem.
>> I have edit link ,If i remove above two jar files then I have to double
>> clik
>> that edit link then & then only edit page is opening.(It is not opening
>> in
>> one click)
>> Similar case happening for buttons.I need to double click buttons.
>>
>> But if above( jsf-api.jar,jsf-impl.jar ) jar files there then its showing
>> Base is null error.
>> 
>>
>> Then I ,removed myfaces-api.jar,myfaces-impl.jar with
>> myfaces-api-1.1.5.jar,myfaces-impl-1.1.5.jar.
>> I removed jsf-api.jar,jsf-impl.jar files.
>> Now Base is null error is not coming.Also I do not need to double click
>> on
>> edit link,buttons.
>>
>> But to access menus I need to double click on menus.
>>
>> Can anybody help me in this "Base is null" error.What need to do ?
>>
>> Thanks
>> Sandip
>>
>>
>>
>>
>>  
>> Park yourself in front of a world of choices in alternative vehicles.
>> Visit the Yahoo! Auto Green Center.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-problem-with-myfaces---tf3842605.html#a3958
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: designing h:dataTable

2007-06-05 Thread sandipp

Hi Thanks All,

Actually I do not want to change my h:dataTable now.

I want to keep h:dataTable(which displaying second row header).
So is it possible with normal html table.Since I tried with it but its not
accepting colspan for normal html.
Any code sample will be great help for me.

Thanks
Sandip



Ryan Wynn-2 wrote:
> 
> t:dataList allows you more fine grained control over the display.
> 
> On 6/5/07, ncheltsov <[EMAIL PROTECTED]> wrote:
>> I am not sure, that I fully understand your question, but I think, that
>> h:dataTable element is not intended
>> for such use. You can display with it some tabular information, set
>> header and footer and apply some visual cosmetic.
>> That's all. Consider using other  component.
>>
>> P.S. Of course  I can be wrong. I will be glad someone to correct me :)
>>
>> sandipp wrote:
>> > Hi All,
>> >
>> > I want to design datatTable as,
>> >
>> >
>> ---
>> > Edit |   Personal Information| Account Information
>> |
>> >
>> ---
>> > edit | first name | middle name |last name | bank name | a/c no |
>> >
>> ---
>> >
>> > I am able to get second row by follwoing code as.
>> >
>> > > > rowClasses="row1,row2" value="SomeValue">
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >
>> > But I am not able to set first row.
>> > i.e. I want Edit from first row will fit for edit for second row
>> > lly, Personal Information will fit for first name,middle name,last name
>> > and Account Information will fit for bank name a/c no
>> >
>> > Can anybody tell me how to do this ?
>> >
>> > Thanks
>> > Sandip
>> >
>> >
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/designing-h%3AdataTable-tf3871240.html#a10981867
Sent from the MyFaces - Users mailing list archive at Nabble.com.



designing h:dataTable

2007-06-05 Thread sandipp

Hi All,

I want to design datatTable as,

---
Edit |   Personal Information| Account Information |
  
// first row
---
edit | first name | middle name |last name | bank name | a/c no |   

// second row
---

I am able to get second row by follwoing code as.





















 




 







But I am not able to set first row.
i.e. I want Edit from first row will fit for edit for second row
lly, Personal Information will fit for first name,middle name,last name
and Account Information will fit for bank name a/c no

Can anybody tell me how to do this ?

Thanks
Sandip

-- 
View this message in context: 
http://www.nabble.com/designing-h%3AdataTable-tf3871240.html#a10967828
Sent from the MyFaces - Users mailing list archive at Nabble.com.



date format for t:inputCalendar

2007-05-31 Thread sandipp

Hi All.

I am using  tag.I want to display date in mm/dd/yy format.
i.e. if i select 1 May 2005 ,it should display as 05/01/05.

But with my below code its showing as 5/1/05 (what about 0 in case of 5 and
1)



where msg= variable for my property file

where in property file I have defined stratDateformat as,MM/dd/
kk\:mm\:ss


Can anybody help me in this


 
Sandip

-- 
View this message in context: 
http://www.nabble.com/date-format-for-t%3AinputCalendar-tf3845671.html#a10890963
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Base is null error in JSF

2007-05-29 Thread sandipp

Hi ,

Do you have any idea/clue why its not finding "instance of beanName", as its
finding in my first project.

Thanks
Sandip


sandipp wrote:
> 
> Hi Thanks for your reply,
> 
> I checked for typo mistake many times.But it is 100% correct(Bean name 
> in my JSp.)
> Also you said its realted to Exadel configuration.Can you please tell 
> me what need to do while configuring in Exdel.
> 
> Thanks
> sandip
> 
> 
> 
> 
> sandipp wrote:
>> 
>> 
>> can anybody hep me in above ?Still I am not able to solve this problem.
>> 
>> Thanks
>> sandip
>> 
>> 
>> sandipp wrote:
>>> 
>>> Hi All,
>>>  
>>> I am facing some strange problem while working with JSF.
>>> I have created one project which is running fine.If I create another
>>> project with another name(but same src/JSP's files) its giving me below
>>> error
>>>  
>>> I am getting error as,Base is null Error.
>>>  
>>> I am trying to login my application by entering username & password &
>>> then click on login button.
>>> 
>>> But its showing me error as,
>>> 
>>> javax.servlet.ServletException: Base is null: loginFormBean
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
>>> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>>> 
>>> where loginFormBean is name of my Bean in faces-config to accept
>>> username & password values from client side.
>>> --
>>> 
>>>  
>>> I am using JDK1.5,Tomcat 5.5,Exadel
>>>  
>>> Also I have jar files in my lib folder as,
>>> jsf-api.jar,jsf-impl.jar,myfaces-api.jar,myfaces-impl.jar,tomahawk.jar
>>>  
>>>  
>>> If I remove jsf-api.jar,jsf-impl.jar these jar files its not showing
>>> Base is null error.
>>> 
>>> But It is creating another problem.
>>> I have edit link ,If i remove above two jar files then I have to double
>>> clik that edit link then & then only edit page is opening.(It is not
>>> opening in one click)
>>> Similar case happening for buttons.I need to double click buttons.
>>> 
>>> But if above( jsf-api.jar,jsf-impl.jar ) jar files there then its
>>> showing Base is null error.
>>> 
>>>  
>>> Then I ,removed myfaces-api.jar,myfaces-impl.jar with
>>> myfaces-api-1.1.5.jar,myfaces-impl-1.1.5.jar.
>>> I removed jsf-api.jar,jsf-impl.jar files.
>>> Now Base is null error is not coming.Also I do not need to double click
>>> on edit link,buttons.
>>> 
>>> But to access menus I need to double click on menus.
>>>  
>>> Can anybody help me in this "Base is null" error.What need to do ?
>>>  
>>> Thanks
>>> Sandip
>>>  
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Base-is-null-error-in-JSF-tf3827381.html#a10849064
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Base is null error in JSF

2007-05-29 Thread sandipp

Hi Thanks for your reply,

I checked for typo mistake many times.But it is 100% correct(Bean name 
in my JSp.)
Also you said its realted to Exadel configuration.Can you please tell 
me what need to do while configuring in Exdel.

Thanks
sandip




sandipp wrote:
> 
> 
> can anybody hep me in above ?Still I am not able to solve this problem.
> 
> Thanks
> sandip
> 
> 
> sandipp wrote:
>> 
>> Hi All,
>>  
>> I am facing some strange problem while working with JSF.
>> I have created one project which is running fine.If I create another
>> project with another name(but same src/JSP's files) its giving me below
>> error
>>  
>> I am getting error as,Base is null Error.
>>  
>> I am trying to login my application by entering username & password &
>> then click on login button.
>> 
>> But its showing me error as,
>> 
>> javax.servlet.ServletException: Base is null: loginFormBean
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
>> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>> 
>> where loginFormBean is name of my Bean in faces-config to accept username
>> & password values from client side.
>> --
>> 
>>  
>> I am using JDK1.5,Tomcat 5.5,Exadel
>>  
>> Also I have jar files in my lib folder as,
>> jsf-api.jar,jsf-impl.jar,myfaces-api.jar,myfaces-impl.jar,tomahawk.jar
>>  
>>  
>> If I remove jsf-api.jar,jsf-impl.jar these jar files its not showing Base
>> is null error.
>> 
>> But It is creating another problem.
>> I have edit link ,If i remove above two jar files then I have to double
>> clik that edit link then & then only edit page is opening.(It is not
>> opening in one click)
>> Similar case happening for buttons.I need to double click buttons.
>> 
>> But if above( jsf-api.jar,jsf-impl.jar ) jar files there then its showing
>> Base is null error.
>> 
>>  
>> Then I ,removed myfaces-api.jar,myfaces-impl.jar with
>> myfaces-api-1.1.5.jar,myfaces-impl-1.1.5.jar.
>> I removed jsf-api.jar,jsf-impl.jar files.
>> Now Base is null error is not coming.Also I do not need to double click
>> on edit link,buttons.
>> 
>> But to access menus I need to double click on menus.
>>  
>> Can anybody help me in this "Base is null" error.What need to do ?
>>  
>> Thanks
>> Sandip
>>  
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Base-is-null-error-in-JSF-tf3827381.html#a10848924
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Base is null error in JSF

2007-05-28 Thread sandipp


can anybody hep me in above ?Still I am not able to solve this problem.

Thanks
sandip


sandipp wrote:
> 
> Hi All,
>  
> I am facing some strange problem while working with JSF.
> I have created one project which is running fine.If I create another
> project with another name(but same src/JSP's files) its giving me below
> error
>  
> I am getting error as,Base is null Error.
>  
> I am trying to login my application by entering username & password & then
> click on login button.
> 
> But its showing me error as,
> 
> javax.servlet.ServletException: Base is null: loginFormBean
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> 
> where loginFormBean is name of my Bean in faces-config to accept username
> & password values from client side.
> --
> 
>  
> I am using JDK1.5,Tomcat 5.5,Exadel
>  
> Also I have jar files in my lib folder as,
> jsf-api.jar,jsf-impl.jar,myfaces-api.jar,myfaces-impl.jar,tomahawk.jar
>  
>  
> If I remove jsf-api.jar,jsf-impl.jar these jar files its not showing Base
> is null error.
> 
> But It is creating another problem.
> I have edit link ,If i remove above two jar files then I have to double
> clik that edit link then & then only edit page is opening.(It is not
> opening in one click)
> Similar case happening for buttons.I need to double click buttons.
> 
> But if above( jsf-api.jar,jsf-impl.jar ) jar files there then its showing
> Base is null error.
> 
>  
> Then I ,removed myfaces-api.jar,myfaces-impl.jar with
> myfaces-api-1.1.5.jar,myfaces-impl-1.1.5.jar.
> I removed jsf-api.jar,jsf-impl.jar files.
> Now Base is null error is not coming.Also I do not need to double click on
> edit link,buttons.
> 
> But to access menus I need to double click on menus.
>  
> Can anybody help me in this "Base is null" error.What need to do ?
>  
> Thanks
> Sandip
>  
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Base-is-null-error-in-JSF-tf3827381.html#a10847557
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Base is null error in JSF

2007-05-28 Thread sandipp

Hi All,
 
I am facing some strange problem while working with JSF.
I have created one project which is running fine.If I create another project
with another name(but same src/JSP's files) its giving me below error
 
I am getting error as,Base is null Error.
 
I am trying to login my application by entering username & password & then
click on login button.

But its showing me error as,

javax.servlet.ServletException: Base is null: loginFormBean
javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)

where loginFormBean is name of my Bean in faces-config to accept username &
password values from client side.
--

 
I am using JDK1.5,Tomcat 5.5,Exadel
 
Also I have jar files in my lib folder as,
jsf-api.jar,jsf-impl.jar,myfaces-api.jar,myfaces-impl.jar,tomahawk.jar
 
 
If I remove jsf-api.jar,jsf-impl.jar these jar files its not showing Base is
null error.

But It is creating another problem.
I have edit link ,If i remove above two jar files then I have to double clik
that edit link then & then only edit page is opening.(It is not opening in
one click)
Similar case happening for buttons.I need to double click buttons.

But if above( jsf-api.jar,jsf-impl.jar ) jar files there then its showing
Base is null error.

 
Then I ,removed myfaces-api.jar,myfaces-impl.jar with
myfaces-api-1.1.5.jar,myfaces-impl-1.1.5.jar.
I removed jsf-api.jar,jsf-impl.jar files.
Now Base is null error is not coming.Also I do not need to double click on
edit link,buttons.

But to access menus I need to double click on menus.
 
Can anybody help me in this "Base is null" error.What need to do ?
 
Thanks
Sandip
 

-- 
View this message in context: 
http://www.nabble.com/Base-is-null-error-in-JSF-tf3827381.html#a10834516
Sent from the MyFaces - Users mailing list archive at Nabble.com.