Hi,

But the action from the commandLink isn't - but it should, shouldn't it?

Yeah, normally it should :)

If you delete an entry from the backing bean list and a dataTable is
bound to the list, there is no need for a refreshing. In the render
response phase the list is retrieved and all the children are rendered
out. So, if you have deleted the entry correctly there must be an
error in between.

Post a little bit more of your view- and managed bean-code in order to
see what may be wrong.

Have you put a messages-tag on your page? If not, you don`t see any
messages created from your application and you will not be informed
about occuring errors. Any exceptions thrown?

cheers,

Gerald

On 11/12/06, Torsten Krah <[EMAIL PROTECTED]> wrote:
Using a commandLink with an action and an action listener does not
invoke the action, neither the page is redisplayed correct.

<h:commandLink action="#{a.fire}">
        <f:actionListener type="my.class">
</h:commandLink>

My action listener is called and does its job.
But the action from the commandLink isn't - but it should, shouldn't it?

Anyway - the actionListener is for deleting a row in a table. When the
page redisplays ( if cases where i dont want to navigate away from the
action - when it would be called ) , the "deleted" row is still there -
but the backing bean is in correct state, the list with the item the
table should show does not have the deleted item anymore, how can i
force the view to be "refreshed".

Scenario:

Table displays a set of customers. A delete Link is there, an
actionListener is called which fetches the backingbean, from this
information the needed data is constructed to delete the customer in the
datasource.
After deleting the table should be displayed without the last deleted
row.


Any things i've missed, thought this should work.

Torsten

ps: using myfaces 1.1.4







--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to