You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Neil Clayton <ne...@cloudnine.net.nz> on 2003/07/22 22:53:21 UTC
[JELLY] - Jelly/Jexl question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It may be that I'm being impatient (please ignore | forgive me if you think
this is the case), but I'm wondering if all of my problems with Jelly/SWT
relate to Jexl behavior:
(reference: my message with subject: how to enable logging? (SWT specific))
My simple question is this:
<scrolledComposite var="scrolled" parent="${sash}" type="V_SCROLL, BORDER"
background="132,251,232">
<fillLayout/>
<composite var="grid">
<fillLayout/>
<label text="yay" background="12,12,12"/>
</composite>
<onEvent type="Resize" var="resizeEvent">
${grid.computeSize(scrolled.getBounds().width, SWT.DEFAULT) }
</onEvent>
${grid.setSize(10, 10) }
</scrolledComposite>
Will Jexl be able to parse and evaluate
"${grid.computeSize(scrolled.getBounds().width, SWT.DEFAULT) }"
?
Am I doing "non-jexl-nice" things here?
Neil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/HaRDLXcfQF3yrNoRAgs/AKCiIqPS4jB7kiwpP4fJFHU5Nc/IlwCfXqLc
aUfKPJWWX/FLd28c9W3r+7k=
=4SG6
-----END PGP SIGNATURE-----
Re: [JELLY] - Jelly/Jexl question
Posted by Neil Clayton <ne...@cloudnine.net.nz>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK. Yes, that's the unqualified name of the class. Using a FQN does not seem
to work either...
However; if I change to using:
"${grid.computeSize(scrolled.getBounds().width, scrolled.getBounds().height)
}"
still I get no joy :-(.
The jelly debug output shows:
1346 [main] DEBUG - findVariable: grid value: Composite {}
1430 [main] DEBUG - Evaluating EL:
grid.computeSize(scrolled.getBounds().width, scrolled.getBounds().height)
1431 [main] DEBUG - findVariable: grid value: Composite {}
1431 [main] DEBUG - findVariable: scrolled value: null
1431 [main] DEBUG - findVariable: scrolled value: null
1431 [main] DEBUG - findVariable: scrolled value: null
1431 [main] DEBUG - findVariable: scrolled value: null
1431 [main] DEBUG - value of expression: null
I tried also using "scrolled.bounds.width" with the same result.
Is there a reference for what Jexl supports?
Neil
On Wednesday 23 July 2003 00:32, Paul Libbrecht wrote:
> Neil Clayton wrote:
> > Will Jexl be able to parse and evaluate
> > "${grid.computeSize(scrolled.getBounds().width, SWT.DEFAULT) }"
>
> Neil,
>
> If SWT.DEFAULT is a static member of SWT class than I think the answer
> is: jexl doesn't know how to handle constants... (a bug should be filed,
> I think this was discussed recently on the list about DISPOSE_ON_CLOSE).
>
> Oh, plus you were'nt providing the full-classname of SWT, or ?
>
> Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD4DBQE/HjbPLXcfQF3yrNoRAtsZAJdk1bK5HmaH4aRRZga6aMiWMHuxAKCxLmdY
OH4PknuCMtANoJ9pmlRJgg==
=nzLX
-----END PGP SIGNATURE-----
Re: [JELLY] - Jelly/Jexl question
Posted by Paul Libbrecht <pa...@activemath.org>.
Neil Clayton wrote:
> Will Jexl be able to parse and evaluate
> "${grid.computeSize(scrolled.getBounds().width, SWT.DEFAULT) }"
Neil,
If SWT.DEFAULT is a static member of SWT class than I think the answer
is: jexl doesn't know how to handle constants... (a bug should be filed,
I think this was discussed recently on the list about DISPOSE_ON_CLOSE).
Oh, plus you were'nt providing the full-classname of SWT, or ?
Paul