是否有与 ASP.NET 的 PrimeFaces 等效的东西? [英] Is there something equivalent to PrimeFaces for ASP.NET?

查看:25
本文介绍了是否有与 ASP.NET 的 PrimeFaces 等效的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多年来一直是 ASP.NET 开发人员,但最近我开始使用一些带有 JSF 2.0 的 PrimeFaces 解决方案.我没有什么可抱怨的.

I'm being a ASP.NET developer over years but recently I started to work with some PrimeFaces solutions with JSF 2.0. I haven't nothing to complain about it.

值得强调让我喜欢 PrimeFaces 的几点:许多组件,易于使用,完全基于 jQuery 和 jQuery UI(对我来说非常重要)并且非常专注于网络标准(对我来说更重要).

It is worth emphasizing a few points that did ​​me likes the PrimeFaces: many components, easy to use, fully based on jQuery and jQuery UI (which are very important to me) and very focused on web standards (even more important to me).

但在某些情况下,我真的希望我的服务器端使用 ASP.NET.我不想在这里开始讨论 JSP 和 ASP.NET 之间的优势,两者都有很多使用动机.

But there are some cases that I would really want my server-side with ASP.NET. I don't want to start a discussion here about advantages between JSP and ASP.NET, both has many motives to be used.

嗯,标准的 ASP.NET 组件不是基于 jQuery,不能使用 jQuery UI 主题进行主题化,不完全基于 Web 标准(一个大问题),而且可变性要简单得多(没有t Carousel、Accordion、Captcha、Slider、Spinner 等,等等.

Well, the standard ASP.NET components aren't jQuery based, aren't themable with jQuery UI Themes, aren't fully based on web standards (a big problem) and the variability is much more simple (there aren't Carousel, Accordion, Captcha, Slider, Spinner, etc, etc, etc).

编辑

继续这个传奇,@Raynos 的回答激励我去研究更简单的可能性,比如建议的 manos.但我真的想要一些更自动化的东西,至少在通用控件的 HTML 生成中.有人知道用于 manos 的工作 CRUD 示例或支持此任务的其他模块吗?

Continuing the saga, the @Raynos answers inspired me to study lighter possibilities, like the suggested manos. But I really would like something a little more automated, at least in the HTML generation for common controls. Someone known working CRUD samples for manos or additional modules supporting this task?

回想一下,主要问题仍然悬而未决:您知道任何基于 PrimeFaces 思想的 ASP.NET 的 UI 框架吗?像它一样喜欢开源?

Recalling that the main question is still open anyway: Do you know any UI Framework for ASP.NET based on the same ideas of PrimeFaces, prefered open-source like it is?

推荐答案

我想我们不能用简单的东西来回答你的问题.正如其他答案所示,不幸的是我们在 ASP.NET 中没有任何完全基于 Web 标准的 UI 框架.

I suppose we cannot answer your question with something simple. As showed by other answers, unfortunately we don't have in ASP.NET any UI framework fully web standards based.

您肯定可以选择不使用 ASP.NET,而是使用另一个基于 .NET Framework 的引擎.我真的认为 ASP.NET MVC 将更接近 JSF,因此更接近 PrimeFaces.但是它没有像您在 PrimeFaces 上喜欢的那样基于 jQuery 的大量内置控件.此外,如果您目前只使用普通的 ASP.NET,MVC 概念从专业项目开始可能会非常混乱.

You surelly have that choice about not using ASP.NET but another .NET Framework based engine. I really think that ASP.NET MVC would be the more closest to JSF and so to PrimeFaces. But it haven't a large set of builtin controls based on jQuery as you liked on PrimeFaces. Also, if you only used up to now the vanilla ASP.NET, the MVC concept can be very confusing to start through a professional project.

在学习全新的东西的同时继续学习您的技术知识可能更安全.即便如此,我也不会向您的项目表明 ma​​nos,尽管它显示出非常轻巧和稳定.此外,有了它,您将需要重新创建轮子",以便 ASP.NET 知道在标准范围内可以很好地完成许多任务.

It may be safer to continue with your technology knowledge while learning something totally new. Even so I don't indicate manos to your project, although it shows to be very light and stable. Furthermore, with it you would need to "recreate the wheel" for many tasks that ASP.NET knows to do well within the standards and such.

基于这些论点,您(或您的团队)似乎对 ASP.NET 非常熟悉,以至于您的迫切需要是使用好的工具来改进 ASP.NET 在 HTML5、Web 标准和主题.然后你不需要改变你现在知道的一切,只需改进你已经知道的(当然我们建议你逐渐考虑这些其他方法).

Based on these arguments, it seems that in your case you (or your team) is so familiar with ASP.NET that your immediate need is to use good tools to improve the shortcomings of ASP.NET on HTML5, web standards and themes. Then you don't need to change everything you knows right now, just improve what you already know (and of course we recommend that you consider these other approaches gradually).

那么让我们为您提供一些有用的提示:

So let a few helpful hints for you:

  • 首先阅读并下载使用 HTML5、jQuery 和 jQuery UI 的良好架构的示例.这篇文章 涵盖所有这些技术,并有完整的源代码可供下载.
  • 另外请记住,您不需要从头开始您的项目.有很棒的 HTML5 BoilerPlate,它附带了许多好的实践(以及一个不错的 Web.config 创造了许多好主意).重要的是,它也可以根据需要基于 jQuery.
  • 也许您已经为 PrimeFaces 创建了一些令人难以置信的主题,并且希望在您的 ASP.NET 项目中使用.然后记住:要利用您只需要使用 class 名称和 DOM 层次结构的 jQuery UI 主题.如果您的 PrimeFaces Complex DataTable 生成了一个令人难以置信的 HTML,它与您的 CSS 如此美妙,只需在 UserControl 中使用相同的生成 HTML,您就可以在您的所有页面中重复使用它,而无需重写所有 HTML.
  • 另请记住,PrimeFaces 是开源的,因此您可以随时打开源代码,阅读 jQuery 代码并重复使用您认为最适合您的内容.
  • First read about and download a sample of a good architecture using HTML5, jQuery and jQuery UI. This post covers all those technologies and have the full source code to download.
  • Also have in mind that you don't need start your project from scratch. There is the great HTML5 BoilerPlate which comes with dozens of good pratices (and a nice Web.config created with many nice ideas). Important note that it's also based on jQuery as you want.
  • Maybe you already have some incredible themes created for PrimeFaces and you would like to use on your ASP.NET projet. Then remember: to take advantage of the jQuery UI Themes you just needs using class names and DOM hierarchy. If your PrimeFaces Complex DataTable gerenates an incredible HTML which is so beautifull with your CSS, just use the same generated HTML inside a UserControl so you can reuse it around all yours pages without needing rewriting all the HTML.
  • Also remember that PrimeFaces is opensource and because of it you always can open the sources, read the jQuery codes and reuse what you really think are perfect for you.

最后,有许多工具和方法可以帮助您享受使用 PrimeFaces 所做的一切,并享受您在 ASP.NET 中的现有知识.不幸的是,我们还没有对 ASP.NET 做这样的事情,但也许你会做得很好,以至于你可以为每个人发布开源?

Then, finally, there are many tools and approaches to support you enjoy what you've done with PrimeFaces and also enjoy your existing knowledge in ASP.NET. Unfortunately we don't have done something like this to ASP.NET, but maybe what you'll do will be so good that you can publish opensource for everyone?

这篇关于是否有与 ASP.NET 的 PrimeFaces 等效的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆