+1 on the event handler.
I would say the screen is a left over fragment from the ajax autocomplete
commits.
While we're (sort of) on the topic of the autocomplete, does anybody really
find the following intuitive?
<field name="exampleFeatureId" id-name="exampleFeatureId">
<text/>
<on-field-event-update-area event-type="change"
area-id="exampleFeatureId" area-target="findExampleFeatures"/>
</field>
Also why would you want to search on an id field? Wouldn't the description
be more appropriate? I would have rather seen something like this:
<field name="exampleFeatureId">
<drop-down>
<server-options target="findExampleFeatures"
search-field="description"/>
</drop-down>
</field>
- Scott
2008/6/22 David E Jones <[EMAIL PROTECTED]>:
>
> It's interesting that we need this. It is probably common enough that maybe
> we should change the groovy event handler to automatically put it in the
> context.
>
> Also, does anyone know what the "ExampleFeatureOptions" screen in the
> ExampleFeatureScreens.xml file is meant to be used for? It doesn't seem to
> be referred to anywhere, and it points to a script that doesn't seem to
> exist, and an ftl file that doesn't seem to exist...
>
> -David
>
>
>
> On Jun 21, 2008, at 8:10 PM, [EMAIL PROTECTED] wrote:
>
> Author: lektran
>> Date: Sat Jun 21 19:10:26 2008
>> New Revision: 670298
>>
>> URL: http://svn.apache.org/viewvc?rev=670298&view=rev
>> Log:
>> Fix after groovy migration
>>
>> Modified:
>>
>> ofbiz/trunk/framework/example/webapp/example/WEB-INF/actions/includes/FindExampleFeatures.groovy
>>
>> Modified:
>> ofbiz/trunk/framework/example/webapp/example/WEB-INF/actions/includes/FindExampleFeatures.groovy
>> URL:
>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/webapp/example/WEB-INF/actions/includes/FindExampleFeatures.groovy?rev=670298&r1=670297&r2=670298&view=diff
>>
>> ==============================================================================
>> ---
>> ofbiz/trunk/framework/example/webapp/example/WEB-INF/actions/includes/FindExampleFeatures.groovy
>> (original)
>> +++
>> ofbiz/trunk/framework/example/webapp/example/WEB-INF/actions/includes/FindExampleFeatures.groovy
>> Sat Jun 21 19:10:26 2008
>> @@ -25,6 +25,7 @@
>> import org.ofbiz.entity.condition.EntityFunction;
>> import org.ofbiz.entity.condition.EntityOperator;
>>
>> +delegator = request.getAttribute("delegator");
>>
>> andExprs = [];
>> fieldValue = request.getParameter("exampleFeatureId");
>>
>>
>>
>