Jon,

 

Many times I just copy and past the code that is already written. As you
just said, search confirguration xml cod efor attribute of your interest
in WEB-INF folder and copy the code to your new configuration.

 

For boolean attributes you can use something like this:

 

<content>

    <attribute>0x12b4a</attribute>

    <renderer>

      <param
name="trueTag">com.aprisma.spectrum.app.util.render.Yes</param>

      <param
name="falseTag">com.aprisma.spectrum.app.util.render.No</param>

      com.aprisma.spectrum.app.util.render.BooleanRenderer

    </renderer><editable/>

  </content>

 

Regards,

 

Ales

 

From: Jon Whitehouse [mailto:[email protected]] 
Sent: Tuesday, February 10, 2009 10:12 PM
To: spectrum
Subject: [spectrum] Customizing - Drop downs

 

All,

 

I have my developer ID and am starting to learn how to customize
spectrum by reading the Customization Guide.  I have created my new
attributes in model editor, but now I am curious if I wanted to add a
'drop down' menu to the editable field.

 

For example in OneClick in the Component Details -> Information tab
under General Information

 

I added a field called "Production Status" and I can "set" it to
whatever I want.. which is great, but I really only want to be able to
select from 4 choices from a pulldown menu (kind of like how you can
select yes or no for "in Hibernation".

 

"Production"

"QA"

"Development"

"Sandbox"

 

How would I do that?

 

would the xml be something like

 

<param
name="Production">com.aprisma.spectrum.app.util.render.Production</param

...

...

 

 

---

Jon Whitehouse

Systems Engineer - IT, Server Support

MS 5221

1800 W. Center Street

Warsaw, IN 46580

(574) 371-8684

(574) 377-2829 (cell)

[email protected] <mailto:[email protected]> 

 

 

 

*       --To unsubscribe from spectrum, send email to [email protected]
with the body: unsubscribe spectrum [email protected] 


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to