There's no easy way to determine this.

I pass the mode in as part of the command-link:

<h:commandLink action="goto add or edit page">
    <t:updateActionListener
        property="#{page.displayOnlyMode}"
        value="#{true}" />
</h:commandLink>

Not sure if the timing of this will work out for your spring-injected
values as I use the mode at renderResponse and action time, not at
initialization time.

On 12/22/06, support <[EMAIL PROTECTED]> wrote:
Is there a way, in the backend bean constructor to find out which
commandlink was pressed by the user to make the call?

I am having difficulty with using the same page for both Insert and
Update on information contained in the database.  The command link does
not hit the action listener if the wrong mode is set, but not sure how
to detect what mode I am in before all the setters get executed (spring
injected).

Thanks

Roger

Reply via email to