Displaying drop down menus

26 views
Skip to first unread message

Prabhu S

unread,
Jul 18, 2019, 8:00:56 AM7/18/19
to AjaxSwing Community Support


Hi,

Our swing app as certain operations which involve choosing from drop down menus. An instance is as shown below. Its using our native standalone JAVA client. This drop down does not happen with Ajax. For example, clicking on the window "All Events" nothing happens. Any suggestions?



Server OS: CentOS 7
AjaxSwing version: 4.6.2
JDK version: 1.6

Yevhen Badorov

unread,
Jul 18, 2019, 9:12:09 AM7/18/19
to AjaxSwing Community Support
Hi!
For correct work on UNIX, you need to use AjaxSwing with either X-Window system or Xvfb.
Here is a step-by-step guide for setting up AJaxSwing for UNIX (in the next release this process will be more straightforward and clear) :
Before you start make sure you have Xvfb and zip packages installed.
1. Remove conf/lastKnownJdkVersion.txt if it exists.
2. Execute the following command
    chmod 777 bin/setup/setup.sh
    Run bin/setup/setup.sh
3. Start AjaxSwing, wait for a few minutes, then stop it.
4. Run bin/setup/setupForXvfb.sh
5. In bin/setEnv.sh replace 

    JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true"
    with
    JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=false"

    In conf/default.properties set

    agent.usePlatformGraphicsEnvironment=true

6. Start AJS with the following command (it's just an example, don't start AjaxSwing like this each time)

    Xvfb :0 -screen 0 1920x1080x24 & ./startServer.sh

    or start Xvfb in the background before running AJS

It's better to execute Xvfb on server's startup and then just start AjaxSwing with ./startServer.sh

Prabhu S

unread,
Jul 19, 2019, 2:29:07 AM7/19/19
to AjaxSwing Community Support
Hi Yevhen,

Thanks for the response. We followed the steps mentioned with Xvfb. But couldn't get the drop down menu working. Still see the same issue.

Regards,
Prabhu.S

Yevhen Badorov

unread,
Jul 23, 2019, 5:42:36 AM7/23/19
to AjaxSwing Community Support
Hi,

The solution we provided in our previous email has proved itself as a reliable one, it should definitely work. If it doesn’t, the only reason is misconfiguration.

We can help you with configuring AjaxSwing to work with your app.

Reply all
Reply to author
Forward
0 new messages