pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shahzad Bhatti <sbha...@peak6.com>
Subject Form setLabel
Date Wed, 14 Apr 2010 22:07:12 GMT
I am trying to use Label along with Form such as
                                                          <BoxPane styles="{horizontalAlignment:'left'}">
                                                              <Form wtkx:id="form" styles="{rightAlignLabels:true,
fill:true}">
                                                                  <sections>
                                                                      <Form.Section>
                                                                          <Border styles="{backgroundColor:null,
padding:2}">
                                                                              <content>
                                                                                <Label
Form.label="name" textKey="name" styles="{font:{size:12, bold:true}}"/>
                                                                              </content>
                                                                          </Border>
                                                                      </Form.Section>
                                                                      <Form.Section>
                                                                          <Border styles="{backgroundColor:null,
padding:2}">
                                                                              <content>
                                                                                        <Label
Form.label="symbol" textKey="symbol" styles="{horizontalAlignment:'right'}"/>
                                                                                        <Label
Form.label="bid" textKey="bid" styles="{horizontalAlignment:'right'}"/>
                                                                                        <Label
Form.label="ask" textKey="ask" styles="{horizontalAlignment:'right'}"/>
                                                                                        <Label
wtkx:id="changeLabel" Form.label="change" textKey="change" styles="{horizontalAlignment:'right'}"/>
                                                                                        <Label
Form.label="isExchangeDelayed" textKey="exchangeDelayed" styles="{horizontalAlignment:'right'}"/>
                                                                              </content>
                                                                          </Border>
                                                                      </Form.Section>
...


But I am getting following error:
Caused by: java.lang.reflect.InvocationTargetException    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)    ... 19 more Caused by: java.lang.IllegalStateException
   at org.apache.pivot.wtk.Form.setLabel(Unknown Source)    ... 23 more


Looking at the source, this happens when the attributes of component are null. Any idea how
to fix it?

Thanks.


______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email

Mime
View raw message