You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Walter Mourão <wa...@gmail.com> on 2008/01/29 17:40:32 UTC
[Trinidad] CommandLink not working inside dialog
Hi folks,
the following code works fine outside dialogs. Inside dialogs the action and
actionListener are not executed:
...
<tr:table id="searchResult" allDetailsEnabled="true" var="row"
rowBandingInterval="1" ...
<tr:column width="46px">
<f:facet name="header">
<h:panelGroup><t:graphicImage
url="/images/space.gif"/></h:panelGroup>
</f:facet>
<h:panelGroup>
<tr:commandLink id="deleteAction" actionListener="#{
categoriaPessoaController.delete}" partialSubmit="true" blocking="true">
<t:graphicImage
url="/skins/#{preferences.skin}/images/tableDelete.gif"
title="#{messages['action.delete']}" style="border-style:none" />
<f:param name="id" id="id" value="#{row.id}" />
</tr:commandLink>
</h:panelGroup>
</tr:column>
...
Hints ?
Thanks in advance,
--
Walter Mourão
http://arcadian.com.br
http://waltermourao.com.br
Re: [Trinidad] CommandLink not working inside dialog
Posted by Andrew Robinson <an...@gmail.com>.
I thought you were using a dialog component. I have to punt on this as I
have no idea on the dialog action framework code.
On Jan 29, 2008 11:10 AM, Walter Mourão <wa...@gmail.com> wrote:
> Yes, actually tr:form and tr:subform as follows:
>
> ...
> <tr:form id="manageCategoriaPessoaForm"
> partialTriggers="manageCategoriaPessoaForm_search:newAction
> manageCategoriaPessoaForm_search:searchAction
> manageCategoriaPessoaForm_search:searchResult:loadAction
> manageCategoriaPessoaForm_edit:saveAction
> manageCategoriaPessoaForm_edit:cancelAction" >
> ...
> <tr:commandButton id="dialog" text="dialog"
> action="dialog:/com/arcadian/logOne/comum/domain/crud/categoriapessoa-crud-filter-dlg"
> blocking="true" partialSubmit="true" useWindow="true"/>
> ...
>
>
> 2008/1/29, Andrew Robinson <an...@gmail.com>:
>
> > Is the popup trigger inside a tr:form?
> >
> > On Jan 29, 2008 9:40 AM, Walter Mourão <wa...@gmail.com> wrote:
> >
> > > Hi folks,
> > > the following code works fine outside dialogs. Inside dialogs the
> > > action and actionListener are not executed:
> > > ...
> > > <tr:table id="searchResult" allDetailsEnabled="true" var="row"
> > > rowBandingInterval="1" ...
> > > <tr:column width="46px">
> > > <f:facet name="header">
> > > <h:panelGroup><t:graphicImage
> > > url="/images/space.gif"/></h:panelGroup>
> > > </f:facet>
> > > <h:panelGroup>
> > > <tr:commandLink id="deleteAction" actionListener="#{
> > > categoriaPessoaController.delete}" partialSubmit="true"
> > > blocking="true">
> > > <t:graphicImage url="/skins/#{preferences.skin}/images/tableDelete.gif"
> > > title="#{messages['action.delete']}" style="border-style:none" />
> > > <f:param name="id" id="id" value="#{row.id}" />
> > > </tr:commandLink>
> > > </h:panelGroup>
> > > </tr:column>
> > > ...
> > >
> > > Hints ?
> > >
> > > Thanks in advance,
> > >
> > > --
> > > Walter Mourão
> > > http://arcadian.com.br
> > > http://waltermourao.com.br
> >
> >
> >
>
>
> --
> Walter Mourão
> http://arcadian.com.br
> http://waltermourao.com.br
>
Re: [Trinidad] CommandLink not working inside dialog
Posted by Walter Mourão <wa...@gmail.com>.
Yes, actually tr:form and tr:subform as follows:
...
<tr:form id="manageCategoriaPessoaForm"
partialTriggers="manageCategoriaPessoaForm_search:newAction
manageCategoriaPessoaForm_search:searchAction
manageCategoriaPessoaForm_search:searchResult:loadAction
manageCategoriaPessoaForm_edit:saveAction
manageCategoriaPessoaForm_edit:cancelAction" >
...
<tr:commandButton id="dialog" text="dialog"
action="dialog:/com/arcadian/logOne/comum/domain/crud/categoriapessoa-crud-filter-dlg"
blocking="true" partialSubmit="true" useWindow="true"/>
...
2008/1/29, Andrew Robinson <an...@gmail.com>:
>
> Is the popup trigger inside a tr:form?
>
> On Jan 29, 2008 9:40 AM, Walter Mourão <wa...@gmail.com> wrote:
>
> > Hi folks,
> > the following code works fine outside dialogs. Inside dialogs the action
> > and actionListener are not executed:
> > ...
> > <tr:table id="searchResult" allDetailsEnabled="true" var="row"
> > rowBandingInterval="1" ...
> > <tr:column width="46px">
> > <f:facet name="header">
> > <h:panelGroup><t:graphicImage
> > url="/images/space.gif"/></h:panelGroup>
> > </f:facet>
> > <h:panelGroup>
> > <tr:commandLink id="deleteAction" actionListener="#{
> > categoriaPessoaController.delete}" partialSubmit="true" blocking="true">
> > <t:graphicImage url="/skins/#{preferences.skin}/images/tableDelete.gif"
> > title="#{messages['action.delete']}" style="border-style:none" />
> > <f:param name="id" id="id" value="#{row.id}" />
> > </tr:commandLink>
> > </h:panelGroup>
> > </tr:column>
> > ...
> >
> > Hints ?
> >
> > Thanks in advance,
> >
> > --
> > Walter Mourão
> > http://arcadian.com.br
> > http://waltermourao.com.br
>
>
>
--
Walter Mourão
http://arcadian.com.br
http://waltermourao.com.br
Re: [Trinidad] CommandLink not working inside dialog
Posted by Andrew Robinson <an...@gmail.com>.
Is the popup trigger inside a tr:form?
On Jan 29, 2008 9:40 AM, Walter Mourão <wa...@gmail.com> wrote:
> Hi folks,
> the following code works fine outside dialogs. Inside dialogs the action
> and actionListener are not executed:
> ...
> <tr:table id="searchResult" allDetailsEnabled="true" var="row"
> rowBandingInterval="1" ...
> <tr:column width="46px">
> <f:facet name="header">
> <h:panelGroup><t:graphicImage
> url="/images/space.gif"/></h:panelGroup>
> </f:facet>
> <h:panelGroup>
> <tr:commandLink id="deleteAction" actionListener="#{
> categoriaPessoaController.delete}" partialSubmit="true" blocking="true">
> <t:graphicImage url="/skins/#{preferences.skin}/images/tableDelete.gif"
> title="#{messages['action.delete']}" style="border-style:none" />
> <f:param name="id" id="id" value="#{row.id}" />
> </tr:commandLink>
> </h:panelGroup>
> </tr:column>
> ...
>
> Hints ?
>
> Thanks in advance,
>
> --
> Walter Mourão
> http://arcadian.com.br
> http://waltermourao.com.br