Hi Pascal,

What happens when you sit the </wo:if> and <wo:else> flush against each other 
(something I always do), and have the entire html block sit inside the AUC?


On 30/03/2013, at 5:33 AM, Pascal Robert wrote:

> I'm having a problem with a AjaxObserveField. I'm using it with a 
> WOPopUpButton so that if the selected value of the pop up is not empty, the 
> pop up won't show, and it will display some attributes of the selection.
> 
> Structure:
> 
>  <wo:AjaxUpdateContainer id="supplier_info">
>    <wo:if condition="$purchaseOrder.supplier">
>     <wo:str value="$purchaseOrder.supplier.company" />
>    </wo:if>
>  </wo:AjaxUpdateContainer>
> 
>  <div>
>    <wo:else>
>      <wo:AjaxObserveField updateContainerID="supplier_info" 
> action="$justRefresh">
>        <wo:popUpButton style="width: 150px;" list="$suppliers" 
> item="$supplierItem" displayString="$supplierItem.company" 
> selection="$purchaseOrder.supplier" noSelectionString="Please select a 
> supplier..." />
>      </wo:AjaxObserveField>
>    </wo:else>
>   </div>
> 
> When I select a value in the list, I see a POST request being made, but I 
> have a breakpoint in the justRefresh method and I never reach it. What is 
> happening here?
> 
> Request 
> URL:http://127.0.0.1:56277/cgi-bin/WebObjects/MyApp.woa/ajax/zcYVC5w6HwxHyW7sPqLFkM/8.0.13.5.1_u=supplier_info&1364581831478
> 
> Request Method:POST
> 
> Query parameters:
> 
> _u=supplier_info&1364581831478
> 
> Form Data:
> 
>       • 0.13.5.1.25.17.1.1:5
>       • _partialSenderID:0.13.5.1.25.17.1.1
>       • AJAX_SUBMIT_BUTTON_NAME:0.13.5.1.25.17.1
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to [email protected]


-- 
Matt.

http://logicsquad.net/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to