Hello,

I'm trying to set focus on the first enabled field in my form. The first
field is disabled if the data is being edited. I thought this would work:


<bean:define id="form" name="configuration.user"/>
<bean:define id="focus" value="userName"/>

<logic:equal name="form" property="edit" scope="request" value="true">
        <bean:define id="focus" value="password"/>
</logic:equal>

<html:form action="/configuration/user_save" focus=${focus}">


But this complains about "No bean found under attribute key form". The weird
thing is, I use that same bean further down the page without any problem:


<html:text property="userName" readonly="${form.edit}"
disabled="${form.edit"/>


If I take out the <logic:equal> code then it works (but doesn't set focus to
the password field when required). What am I doing wrong here?

Thanks,
Kent


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

Reply via email to