You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by marimuthup <ma...@infotechsw.com> on 2004/12/17 11:35:53 UTC

How to give a custom render to swing elements in Jelly Script

Hi,


In this list sample I have given my custom renderer.

But its not picking up...

Could some say me how to add a custom renderer to a List.

<?xml version="1.0"?>

<j:jelly
    xmlns:j="jelly:core"
    xmlns="jelly:swing" >

  <frame var="frame" title="Homepage Builder" location="100,100"
size="800,400">
        <panel>
          <borderLayout>
                <borderAlign align="west">
                      <label text="Space Name:"/>
                      <textField var="pictureField" />
		      <scrollPane>
			      <j:useBean class="CollectRegions" var="collectRegions"/>
			      <j:useBean class="RegionRenderer" var="renderRegions"/>
				<list model="${collectRegions}" renderer="${renderRegions}"/>
		      </scrollPane>
		</borderAlign>
            </borderLayout>
        </panel>
    </frame>
    ${frame.show()}
</j:jelly>

Thanks and regards
P.Marimuthu


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: How to give a custom render to swing elements in Jelly Script

Posted by Paul Libbrecht <pa...@activemath.org>.
I  would try cellRenderer="${renderRegions}" instead... the bean 
property sounds to be rather of this name.

paul


Le 17 déc. 04, à 11:35, marimuthup a écrit :

> 				<list model="${collectRegions}" renderer="${renderRegions}"/>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org