Миграция приложения Delphi к Java или к веб-приложению

Во-первых, HTML не использует синтаксис JSX. Если вы каким-то образом визуализируете класс React для элемента HTML, вы должны использовать допустимый дочерний синтаксис HTML.

Изменить:

Кому:

https://codepen.io/trdunya/ pen / PLPPbM? editors = 1011

Также;

Вы можете создавать DIV с одинаковыми именами классов в вашем HTML-файле.

var matched = document.querySelectorAll('.myItem'); matched.forEach(function(item) { ReactDOM.render( , item ); });

6
задан Irfan Mulic 7 May 2009 в 00:47
поделиться

6 ответов

Why don't you give FreePascal a try? It uses the same language as Delphi, and can compile to a native application on Windows / Linux / Mac. Since you already have your app in Delphi, converting it shouldn't be too difficult.

Have a look at the freepascal website

4
ответ дан 8 December 2019 в 17:27
поделиться

If I had to deploy on a CD, I'd probably go with Adobe's AIR. It is really fulfilling the promise Java made 10 years ago in a reasonable way. It isn't perfect, but it does a pretty good job.

3
ответ дан 8 December 2019 в 17:27
поделиться

I've heard this internet thing is really taking off.

For all of the reasons that applications have gone online over the past 10 years, there really isn't much discussion to be had.

While Java is reliable, distributing and rolling out subsequent updates to those applications is heavy and time consuming.

I did Delphi development for over 9 years. I resisted the idea of distributing real applications over the web for quite some time. Today, I can't believe anyone would choose to continue in this way.

One nice thing, you can probably reuse some of your Delphi logic on the backend if you get creative. (I would only recommend this for the short term)

But, this answer doesn't really address your issue as you are saying that you must distribute it via CD.

3
ответ дан 8 December 2019 в 17:27
поделиться

The Java 6u10 release allows for distributing Java WebStart applications on media instead of from a Webserver, which might be exactly what you are looking for. You can also put the JRE installer for Windows on the CD too, if needed.

What exactly are your requirements crossplatformwise?

2
ответ дан 8 December 2019 в 17:27
поделиться

Если большая часть приложения основана на HTML, почему бы не сделать его полноценным веб-приложением с использованием Ajax и Java?

Я рекомендую NetBeans и ICEFaces, то есть Java Server Faces реализация с поддержкой Ajax, включая одновременные обновления - если один пользователь редактирует запись, все остальные пользователи увидят обновление на своей веб-странице.

Можно упаковать все приложение в один файл JAR, включая контейнер сервлета ( Например, Jetty), поэтому простой java -jar myapp.jar будет запускать приложение.

NetBeans позволяет визуально редактировать веб-страницы ICEFaces и даже визуально редактировать отношения страниц. Учебные руководства на NetBeans.org превосходны, и с такими инструментами, как Maven, Hudson и другими, качество кода и процесс разработки могут достичь очень высокого уровня.

1
ответ дан 8 December 2019 в 17:27
поделиться

Если у вас есть приложение Delphi, использующее Datasnap: вы также можете повторно использовать свой сервер, созданный в Delphi, с Datasnap в Delphi Prism и создать приложение Silverlight.

То же самое верно и для DataAbstract

1
ответ дан 8 December 2019 в 17:27
поделиться
Другие вопросы по тегам:

Похожие вопросы: