Is JavaFX a better way to create a html report - html

I have a Swing application, one thing it does is create an html report that then opens in a browser. Creating this html report within Java and having to write Javascript ectera is hard work. I notice that javafx is now included in Java and I wonder if I could use javafx to create the html report instead and would that be a good idea.

No, it seems I have misunderstopod JavaFX. I thought it was a way to create fancy html applications, but it seems it is more a way to create desktop applications but using technologies familiar to html like CSS to create UI's currently difficult with Swing technology.
For dynamic creating html I am finding the j2html library useful.

Related

Want to use paragraph in vb but don't want to use labels

I am now designing window forms in vb. I am familiar with HTML design and controls in vb.net . What I wonder is whether can I design paragraphs in vb as in HTML and I don't want to use labels. Pls, your advices and experiences would be helpful for me.
I don't think there is a way to do this without a label, textbox or any other windows tool.
If your purpose is to make a design with html code, you can use a control named Web browser, create the html page and display it with this control. But I don't think it could be very helpful as the HTML page will be separate from the app, and so you will lose making full control over it.
If it is possible, creating a web project using asp.net instead of windows project, will be the best solution.

Umbraco vs DotNetNuke with own template

I would like to ask you to which one from this two systems i can easier implement my own template? I have ready template of my web page and i want to integrate it with one of this systems, my template contains some js code.
If you want to do it easy, I prefer to use Umbraco, because DNN for now, it is powerful and complex solution.And it will take more time for integration.
If your website really really simple, most probably, you can build website with Umbraco without any line of custom code c#.

HTML Layout/Templating

I am building a website where i'm looking to create html templates which contain placeholders where i'll be able to inject pages/content, menus, etc.... I really like AngularJS which has good support for this but am thinking that it might be a bit of an overkill for what i'm building. There is a chance some parts of the application will eventually be ripped out and run standalone and so dont want to tie the html/javascript to a library which requires so much framework specific syntax. Are there any other, simpler libraries, that will allow me to do this? thanks in advance
/Eric
KnockoutJS is pretty lightweight and also includes a templating feature.
I wouldn't just dismiss angularjs because it seems like a heavy framework. There are very simple ways to use it without using any of the "advanced" features like routing, creating services, creating directives, etc. You can simply have a controller and use the built in directives to do a lot of powerful things on a single page. Angular is also pretty small and is easily bootstrapped with the ng-app tag anywhere in your DOM.

Is HTML5 compatible with C#?

I am having trouble finding a clear answer on this one. I have an ASP.NET 4.0 Silverlight app, but recently a ton of users are complaining about not being able to use the site on mobile devices and Linux distro's. The app is built on MVVM architecture, and thus we are considering changing the UI to alleviate the complaints. We are leaning toward HTML5, but I'm not sure if this is even technically possible with ASP.NET 4.0. I've seen some posts saying that HTML5 only works with javascript code behinds, and that with ASP.NET 4.5 HTML5 support will be added. Am I understanding this correctly? Maybe it would make more sense to just go with an ASPX UI, what are the advantages of HTML5 over .ASPX? Any help is appreciated.
HTML5 is a set of client-side technologies.
ASP.Net is a server-side technology.
They have nothing to do with each-other.
However, it will be easier in ASP.Net MVC.
You would replace what is currently in the Silverlight plugin that runs in the users browser with some html and javascript instead.
It is not technically possible with ASP.NET 4.0. ASP.NET certainly needs the upgrade in order to handle any HTML5-producing code behind or 'plug-ins.' I second the notion of ASP.NET MVC. Also it seems you are comparing a car to gasoline when you ask the advantages of HTML5 over ASPX.
HTML5 works in conjunction with Javascript on the client side. You can still use ASP.NET to process data and deliver content server side. Here are some quick links.
http://visualstudiomagazine.com/articles/2011/09/01/pfcov_html5.aspx
http://mvchtml5.codeplex.com/ (I know it's mvc, but it might be helpful regardless.)
I'm really surprised where somebody telling that all the C# code of the ViewModel and xaml code behind replace with Javascript . Is is possible ? Where in MVVM architecture code are huge and all are responsible for higher task(like communicate with service layer or database).
Is it possible to convert all C# code in JavaScript.
Even I have seen if a JavaScript function take over 25 lines than it becomes some clumsy fro developer to understand . Simple or small functionality can easy develop with javaScript .
C# is very standard and object oriented language ,to develop LOB it has great role but Javascript is not too much .
I'm think Using asp.net mvc is nice to use HTML5 , see we just need to change UI page look using HTML5 but rest of application functionality should remain Same .

guide on how to kick start template based flash website?

I'm very new to flash and as3 design patterns. But I can read and write as3 quite ok, i've created small widgets with that. I've developed several web sites using php and also python.
Now for a educational cd-rom project i'm working on, i've basically designed all templates (A home page, a generic page with navigation and a sidebar - kind of like a wordpress blog). I have all the data for the cdrom on word files, which i intend to place on xml files.
My question is what is the best way to start a project like this? Can anyone guide me to a template or something that can be used for kickstarting this? kind of like a wordpress (without the admin)? Or am i on this all wrong? Can someone please help
The Gaia Framework may be useful to you for this project.