no exception anymore but calendar wont be rendered correct (html code
available but i see nothing there where the cal should be)

2006/7/7, Gary VanMatre <[EMAIL PROTECTED]>:
Your managed bean name is not correct in the binding expression.  The managed 
bean names are *not* case insensitive.

<managed-bean-name>CalendarBean</managed-bean-name>
"#{calendarBean.firstDate}"


Try: "#{CalendarBean.firstDate}"

Gary

-------------- Original message --------------
From: "stephan opitz" <[EMAIL PROTECTED]>

> applicationContext.xml
>
>
> > "http://www.springframework.org/dtd/spring-beans.dtd";>
>
>
>
>
>
>
> faces-config.xml
>
> CalendarBean
>
> de.fhb.calendar.CalendarBean
>
> request
>
>
> CalendarBean
> public class CalendarBean implements Serializable {
> /**
> * serial id for serialisation
> */
> private static final long serialVersionUID = 1L;
>
> private Date firstDate;
>
> public Date getFirstDate() {
> return firstDate;
> }
>
> public void setFirstDate(Date firstDate) {
> this.firstDate = firstDate;
> }
>
> public String submitMethod()
> {
> return "submit";
> }
> }
>
> jsp file
>
> > weekRowClass="weekHeader"
> currentDayCellClass="currentDayCell"
> value="#{calendarBean.firstDate}"/>
>
>
> but i found something about this:
>
> http://issues.apache.org/struts/browse/SHALE-192
>
> stephan
>
> 2006/7/7, Gary VanMatre :
> > >From: "stephan opitz"
> >
> > > thx, but how i register them?
> > >
> >
> > To register a managed bean using JSF, look in the /WEB-INF/faces-config.xml.
> Try something like this:
> >
> >
> > calendarBean
> > org.acme.CalendarBean
> > request
> >
> >
> > A few more examples:
> >
> 
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-usecases/src/main/weba
> pp/WEB-INF/faces-config.xml?view=log
> >
> 
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-clay-usecases/src/main
> /webapp/WEB-INF/faces-config.xml?view=log
> >
> > Gary
> >
> >
> > > 2006/7/7, Gary VanMatre :
> > > > >hello,
> > > > >
> > > > >i followed your instructions with the tomahawk-view-config.xml and
> > > > >include it into web.xml
> > > > >also i added tomahawk 1.11 libary into lib folder...
> > > > >
> > > > >now i wanted to use the calendar!
> > > > >
> > > > >i copied CalendarBean from simple example... also i a configured als
> > > > >rules. managed beans etc.
> > > > >
> > > > >already little code like this:
> > > > >
> > > > > > > >weekRowClass="weekHeader"
> > > > > currentDayCellClass="currentDayCell"
> > > > >value="#{calendarBean.firstDate}"/>
> > > > >
> > > > >
> > > > >throws exception:
> > > > >14:04:42,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw
> exception
> > > > >javax.faces.el.EvaluationException: Cannot get value for expression
> > > > >'> > >weekRowClass="weekHeader"
> > > > > currentDayCellClass="currentDayCell"
> > > > >value="#{calendarBean.firstDate}"/>'
> > > > >
> > > > >Caused by: java.lang.IllegalStateException: No WebApplicationContext
> > > > >found: no ContextLoaderListener registered?
> > > > >at
> > > >
> > >
> 
>org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(
> > > F
> > > > >acesContextUtils.java:78)
> > > > > at
> > > >
> > >
> 
>org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext
> > > (
> > > > >DelegatingVariableResolver.java:134)
> > > > >
> > > > >no final solution found for the
> > > > >No WebApplicationContext found: no ContextLoaderListener registered?
> > > > >
> > > > >problem in this context.
> > > > >
> > > >
> > > > I think the problem is that you have the shale-spring.jar in your
> classpath
> > > but your have not registered any spring beans.
> > > >
> > > >
> > > >
> > > > contextConfigLocation
> > > >
> > > >
> > > >
> > > >
> > > > The "calendarBean", managed bean is not registered in the faces-config 
or
> > > spring config.
> > > >
> > > >
> > > > >stephan
> > > >
> > > > Gary
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to