Re: Manualy define WOPopUpButton
Re: Manualy define WOPopUpButton
- Subject: Re: Manualy define WOPopUpButton
- From: Dirk Bajohr <email@hidden>
- Date: Tue, 7 Sep 2004 13:54:28 +0200
Hi Kevin,
after investigating the problem I only found one solution: create your
own implementation of a PopUpButton. I don't know whether Apple
provides the sources for WOPopUpButton and if we can modify/extend
them, so I have used the WOTonomy source code for WOPopUpButton, it's
available from SourceForge. The IsoPopUpButton can be modified without
any problems for your needs. Take a look at the example!
I have attached a small application that demonstrates the use (and of
course includes the sources) of IsoPopUpButton. Sorry, folks, but the
attachment will get stripped off by the mailing list. I don't know
whether the app runs under XCode, personally I (only) use Eclipse /
WOLips.
If you have any questions feel free to contact me (off list).
Cheers,
Dirk
[demime 0.98b removed an attachment of type application/x-gzip which had a name of PopTest.tar.gz]
Am 07.09.2004 um 00:34 schrieb Kevin Xiaowen Ren:
> Hi,
>
> What I have done now is using WOGenericContainer NOT WOGenericElement
> to setup <option>.
> in HTML: <WEBOBJECT NAME= MyOption ><WEBOBJECT NAME= MyLabel
> ></WEBOBJECT></WEBOBJECT>
>
> MyOption:WOGenericContainer
> {
> elementName="option";
> class = getOptionClass;
> value = modelItem.name;
>
> }
> MyLabel:WOString{
> value = modelItem.name;
> }
>
> The display interface in the browser is quiet right, but how to get
> the selected value is problem.
> Any idea?
>
> kevin
>
>
>
>
>>> Hi,
>>>
>>> Who has done this before? Cause I want to define the font weight for
>>> displayString.
>>>
>>> I want to know how to binding value in <option> tag, like
>>> displayString, value and selection in WOPopUpButton.
>>> I was trying do this code, but no lucky.
>>> MyOption:WOGenericElement
>>> {
>>> elementName="option";
>>> class = getOptionClass;
>>> otherTagString = "selected";
>>> formValue = modelItem.name;
>>> invokeAction=selectedThisModel;
>>> }
>>>
>>>
>>> thanks,
>>>
>>> kevin
>>> _______________________________________________
>>> webobjects-dev mailing list | email@hidden
>>> Help/Unsubscribe/Archives:
>>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
>
>
--
Dirk Bajohr
iSOLUTION - Individuelle Software fuer moderne Kommunikation
Hauptstr. 50
53757 Sankt Augustin
T +49 2241 921567-0
F +49 2241 921567-89
http://www.isolution.de
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.