myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: commandLink in dataList does not work
Date Mon, 25 Apr 2005 16:26:13 GMT
I appreciate all the help on this. Can somebody confirm whether this
is a bug or not? If it is i will add it to JIRA.

Thanks,
Brandon

On 4/24/05, Brandon Goodin <brandon.goodin@gmail.com> wrote:
> I set a breakpoint on the action method it is suppossed to call and it
> never reaches the breakpoint. I don't really know how to diagnose
> where it IS getting to.
> 
> Brandon
> 
> On 4/24/05, Rob Decker <rob@objectsource.org> wrote:
> > What do you mean by "fails to call the appropriate action method" (what
> > _does_ it call?) and "returns back to the page" (normal if the action
> > returns null).
> >
> >
> > ----- Original Message -----
> > From: "Brandon Goodin" <brandon.goodin@gmail.com>
> > To: "MyFaces Discussion" <users@myfaces.apache.org>
> > Sent: Sunday, April 24, 2005 8:33 PM
> > Subject: Re: commandLink in dataList does not work
> >
> > i've used x:commandLink and h:commandLink and both do nothing
> > regardless of the backing beans session or request scope.
> >
> > I placed  <h:messages layout="table"/> at the top of my page and there
> > was no results.
> >
> > This is really frustrating.
> >
> > Brandon
> >
> > On 4/24/05, Rob Decker <rob@objectsource.org> wrote:
> > > I haven't tried it in a dataTable yet but it fixed it for me in a
> > dataList.
> > > It's supposed to be in UIData components.
> > >
> > > One thing you should do is put a <h:messages> in your jsp to make sure
> > it's
> > > not a conversion/validation error.
> > >
> > > Try using <h:commandLink> in your dataList.
> > >
> > >
> > > ----- Original Message -----
> > > From: "Brandon Goodin" <brandon.goodin@gmail.com>
> > > To: "MyFaces Discussion" <users@myfaces.apache.org>
> > > Sent: Sunday, April 24, 2005 7:35 PM
> > > Subject: Re: commandLink in dataList does not work
> > >
> > > i put my backing bean in session and it still does not work. Any other
> > > thoughts suggestions?
> > >
> > > Brandon
> > >
> > > On 4/24/05, Rob Decker <rob@objectsource.org> wrote:
> > > > You need set the backing bean in session instead of request. This is a
> > > known
> > > > bug.
> > > >
> > > > ----- Original Message -----
> > > > From: "Brandon Goodin" <brandon.goodin@gmail.com>
> > > > To: "MyFaces Discussion" <users@myfaces.apache.org>
> > > > Sent: Sunday, April 24, 2005 6:35 PM
> > > > Subject: commandLink in dataList does not work
> > > >
> > > > I've been tryingto get a simple commandLink to work in a dataList. It
> > > > properly displays links. However, when i select the link it fails to
> > > > call the appropriate action method and returns back to the page. No
> > > > error meassages are written to the screen or logs.
> > > >
> > > > This is in Tomcat 5 using myfaces jsf impl.
> > > >
> > > > here is my code:
> > > >
> > > > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> > > > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> > > > <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
> > > > <h:form>
> > > >
> > > > <x:dataList
> > > > id="ancestorTree"
> > > > var="ancestor"
> > > > binding="#{categoryAdmin.ancestorTree}">
> > > > <x:commandLink action="#{categoryAdmin.ancestor}"
> > > > value="#{ancestor.title}"/>
> > > > </x:dataList>
> > > >
> > > > <h:commandButton  styleClass="buttonnormal"
> > > > action="#{categoryAdmin.add}" value="Add Category"/>
> > > >
> > > > <h:inputHidden id="categoryAdmin_parentCategoryId"
> > > > value="#{categoryAdmin.parentCategoryId}"/>
> > > >
> > > > <!-- category list -->
> > > >
> > > > <h:dataTable style="margin: 10px; border: 1px solid black"
> > > > var="category" binding="#{categoryAdmin.categoryTable}">
> > > >
> > > > <h:column>
> > > > <f:facet name="header">
> > > > <h:outputText value="Title" style="border-bottom: 1px solid black"/>
> > > > </f:facet>
> > > > <h:commandLink action="#{categoryAdmin.child}">
> > > > <h:outputText value="#{category.title}"/>
> > > > </h:commandLink>
> > > > <f:facet name="footer">
> > > > <h:outputText value="" style="border-top: 1px solid black"/>
> > > > </f:facet>
> > > > </h:column>
> > > >
> > > > <h:column>
> > > > <f:facet name="header">
> > > > <h:outputText value="" style="border-bottom: 1px solid black"/>
> > > > </f:facet>
> > > > <h:commandLink action="#{categoryAdmin.edit}"><h:outputText
> > > > value="Edit"/></h:commandLink>
> > > > <f:facet name="footer">
> > > > <h:outputText value="" style="border-top: 1px solid black"/>
> > > > </f:facet>
> > > > </h:column>
> > > >
> > > > <h:column>
> > > > <f:facet name="header">
> > > > <h:outputText value="Tree" style="border-bottom: 1px solid black"/>
> > > > </f:facet>
> > > > <h:outputText value="#{category.ancestorTree}"/>
> > > > <f:facet name="footer">
> > > > <h:outputText value="" style="border-top: 1px solid black"/>
> > > > </f:facet>
> > > > </h:column>
> > > >
> > > > </h:dataTable>
> > > >
> > > > <h:commandButton  styleClass="buttonnormal"
> > > > action="#{categoryAdmin.add}" value="Add Category"/>
> > > >
> > > > </h:form>
> > > >
> > > > Thanks,
> > > > Brandon
> > > >
> > > >
> > >
> > >
> >
> >
>

Mime
View raw message