Craig, if you're reading this, sorry to address you specifically in
the subject, but I believe you commented once on this and said there was something wrong (or bad) about doing things this way and I want to make sure I'm doing things correct since I'm working on that CRUD example/lesson...


My index.jsp (welcome file):
----------------------------
<jsp:forward page="/employeesSearch.faces"/>


Navigation rule:
-----------------
<navigation-rule>
        <navigation-case>
            <from-outcome>employeesSearch</from-outcome>
            <to-view-id>/employeesSearch.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>


A managed Bean for "employeesSearch":
-------------------------------------
<managed-bean>
        <managed-bean-name>employeesSearch</managed-bean-name>

<managed-bean-class>net.reumann.EmployeesSearchAction</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
            <property-name>employeesListBean</property-name>
            <value>#{employeesListBean}</value>
        </managed-property>
        <managed-property>
            <property-name>employee</property-name>
            <value>#{employee}</value>
        </managed-property>
        <managed-property>
            <property-name>searchCriteria</property-name>
            <value>#{searchCriteria}</value>
        </managed-property>
    </managed-bean>

Result:
-------
EmployeesSearchAction has a prerender() that fires when index.jsp is hit and the user is forwarded to the employeesSearch.jsp screen.


Question:
---------
Is the above the approriate way to handle an etnry point into an application when typically you want to go to somewhere different than the initial index page and you need a prerender to fire in a backing bean in order to setup that resulting page you forward(redirect) to?


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

Reply via email to