简体   繁体   English

Wicket / Java UI框架开发

[英]Wicket/Java UI framework Development

I am quite used to creating user interfaces with HTML/CSS/JS. 我已经习惯了使用HTML / CSS / JS创建用户界面。 However, I am working on a JAVA application that utilizes Wicket. 但是,我正在开发利用Wicket的JAVA应用程序。

Can anyone point to me anything that shows how to create a ui with Wicket, from a stand point such as mine? 从我的立场来看,谁能指出我能用Wicket创建ui的东西吗? If that makes sense. 如果这样的话。 I have been trying to understand how I am going to develop the UI after reading many articles and meeting with our developers. 在阅读了许多文章并与我们的开发人员会面之后,我一直试图了解如何开发UI。 I am just not wrapping my head around how to do it. 我只是没有把注意力放在如何做上。

Also, from what I know, does it make sense to actually use Wicket when you have a ui designer and developer on staff who can create an MVC UI from scratch? 另外,据我所知,当您有可以从头开始创建MVC UI的ui设计人员和开发人员时,实际使用Wicket是否有意义?

Please, if this doesn't make sense I hope you feel compelled to ask questions to pull whatever info you need and I am not saying. 拜托,如果这没有道理,我希望您感到被迫提出问题以索取您需要的任何信息,我不是在说。 I am desperately trying to figure a.) does wicket make sense still, b.)how in the heck do I build a UI using it! 我拼命地试图a。)wicket仍然有意义吗,b。)我到底该如何使用它来构建UI!

I think it can't get better than the examples in wicketstuff. 我认为这不会比wicketstuff中的示例更好。 You can just parse through the forminput sample . 您可以仅分析forminput样本 The sourcecode button is on right top. 源代码按钮在右上方。

There is indeed a small curve related to getting started with wicket as it changes the complete direction of thinking towards web GUI. 与wicket入门有关的确存在一条小曲线,因为它改变了向Web GUI思维的完整方向。

Basically, the idea of wicket is to have HTML template pages with some wicket markup placeholders that will be filled by the parallel java class. 基本上,wicket的想法是让HTML模板页面带有一些wicket标记占位符,这些占位符将由并行java类填充。

The best way is to start looking at wicket tutorials on the official Wicket website . 最好的方法是开始在Wicket官方网站上查看检票口教程。 Then there is wicketstuff, which also has a very comprehensive collection as mentioned by Suraj Chandran. 然后是wicketstuff,也有Suraj Chandran提到的非常全面的收藏。 Most examples show you both Java and the associated HTML markup. 大多数示例都向您展示Java和相关的HTML标记。

Even if you are not a Java developer it would be beneficial for you to understand how different Wicket markup tags get interpreted and how a Wicket-based application is built from several HTML pages, borders, panels and other Wicket-related components. 即使您不是Java开发人员,了解如何解释不同的Wicket标记标签以及如何从多个HTML页面,边框,面板和其他与Wicket相关的组件构建基于Wicket的应用程序也将对您有所帮助。

Wicket is very good for separating Java code from HTML (much better than frameworks that use JSP, PHP, and other technologies that mix code with HTML). Wicket对于将Java代码与HTML分离非常好(比使用JSP,PHP和其他将代码与HTML混合的技术的框架要好得多)。 Because there is no Java source code in the HTML pages it makes it easier for designers to work independently of the developers. 由于HTML页面中没有Java源代码,因此设计人员可以更轻松地独立于开发人员工作。 Also HTML files can be edited in HTML editor programs like Dreamweaver directly. HTML文件也可以直接在HTML编辑器程序(如Dreamweaver)中进行编辑。

If you are a Dreamweaver user and are familiar with Template and Library functions, then in the Wicket world you will find very similar concepts. 如果您是Dreamweaver用户并且熟悉模板和库功能,那么在Wicket领域中您会发现非常相似的概念。 Dreamweaver Template = Wicket Border, Dreamweaver Library Item = Wicket Panel, for example. 例如,Dreamweaver模板= Wicket边框,Dreamweaver库项目= Wicket面板。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM