APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Problems with text fields in ejss preview post and replies

Return to the Problems with text fields in ejss preview thread
Login to post to this thread

ejss EJS_5.1_141205 + text field preview problems
mrg_psu
9 Posts

Preview of models that contain text fields (or at least parsed text fields) seems to be broken.  Using the sample ejss files for the harmonic oscillator show the problem.  Deleting the text fields results in other elements showing up.  Nothing untoward seems to appear in the console output area.  

I've attached another example where deleting allows proper display of the other element in that panel.

This doesn't seem to be a problem in EJS_5.01beta_141014, so it does seem to be a new bug.

The model appears just fine in the browser.

-Mike Gallis

Post edited December 23, 2014 at 5:32 PM EST.

Attached File: ejss_src_fieldtest.zip


Replies to ejss EJS_5.1_141205 + text field preview problems

Re: ejss EJS_5.1_141205 + text field preview problems -
Francisco Esquembre
237 Posts

I have seen this problem happening in someone else's computer, but not in mine (I use a Windows 7 OS running under Parallel Desktop for Mac, and Java 1.7.0_67).

What  is exactly your operating system and Java version?

Paco



Re: Re: ejss EJS_5.1_141205 + text field preview problems -
Mariusz Krasinski
17 Posts

The same problem with Field and textField in my EJSS.

EJSS  5.1 141205
Windows 8.1
Java 1.8.0_25

Very similar problem occurs with Label but this time only when you are using label with string type variable as an argument and there is nothing in declaration table as an initial value. If you put empty string "" problem disappers.
Alas the method does not work for field and textfield.



Re: Re: ejss EJS_5.1_141205 + text field preview problems -
mrg_psu
9 Posts

I see this in my home workstation: Windows 7, java 8.25 (build 1.8.0_25-b18) (latest)
and my laptop: Windows 8, same java



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book