Hello List,

I get a silly error message in WOLips' component editor. The component content 
is

> <wo:popUpButton list="$customerRoleList" item="$customerRoleItem" 
> selection="$customerRoleSelection" displayString = 
> "$customerRoleDisplayString" noSelectionString = "$noSelectionString" />

seems ok so far.

But in the component editor I get a silly error message:

> 'item' must be bound when 'displayString' or 'value' is bound


'item' is bound, so what's going on here?

"Project->clean" in Eclipse didn't help.

Any ideas? Thanks.

C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M [email protected]
W www.i4innovation.de
Skype: christoph_wick

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600

> package de.propilots.proPilotsMgmtApp.components;
> 
> import com.webobjects.appserver.WOContext;
> import com.webobjects.foundation.NSArray;
> 
> import de.propilots.proPilotsMgmtApp.Session;
> import de.propilots.proPilotsMgmtApp.businessLogic.PPCustomerRole;
> import er.extensions.components.ERXComponent;
> 
> public class PPCustomerRolePopupComponent extends ERXComponent {
> 
>       private static final long serialVersionUID = -6177136293683095903L;
> 
>       private NSArray<PPCustomerRole > customerRoleList = null;
>       private PPCustomerRole customerRoleItem;
>       private PPCustomerRole customerRoleSelection;
>       
>       public PPCustomerRolePopupComponent(WOContext context) {
>         super(context);
>     }
> 
>       public NSArray<PPCustomerRole > customerRoleList() {
>               if (null == customerRoleList) {
>                       customerRoleList = new 
> NSArray<PPCustomerRole>(PPCustomerRole.COMPANY, PPCustomerRole.PERSONAL);
>               }
>               return customerRoleList;
>       }
> 
>       public PPCustomerRole customerRoleSelection() {
>               return customerRoleSelection;
>       }
> 
>       public void setCustomerRoleSelection(PPCustomerRole 
> customerRoleSelection)       {
>               this.customerRoleSelection = customerRoleSelection;
>       }
> 
>       public String noSelectionString() {
>               if (((Session) session()).locale().isDE()) {
>                       return "- bitte auswählen -";
>               } else {
>                       return "- please choose -";
>               }
>       }
>       
>       public PPCustomerRole customerRoleItem() {
>               return customerRoleItem;
>       }
>       
>       public String customerRoleDisplayString() {
>               if (((Session) session()).locale().isDE()) {
>                       return customerRoleItem.displayStringDE();
>               } else {
>                       return customerRoleItem.displayStringEN();
>               }
>       }
> }


 _______________________________________________
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