Fail to render : Page not found: /common_script.zul - java

I recently being assign to a new department and to my worst nightmare, i am asked to support a piece of website coded with ZK with no documentation, no handover, and no one knows the system. But, i am blessed with the laptop where the previous developer develop this system on.
With a few days of linking the bots, i manage to found out that this website is indeed written in ZK, Birt Report and the IDE is Eclipse Galileo 3.5.1 I have quite a bit of knowledge in Spring, hence i am able to hack the code to only certain extend.
I hit a road block in Eclipse IDE, everytime it is trying to render the ZK pages so i can modify the screen. I always getting the "Fail to render : Page not found: /common_script.zul" error when i am on the ZUL Visual Editor.
Any idea where should i start to be able to render the ZK page? I find manually edit the .zul XML is pretty much impossible for the enhancements i need to do.
The ZK version is "ZK 5.0.5 2010110316" base on the view page source.

Related

Tapestry - Websockets

recently i'm playing around with some "new" webframeworks(i'm planning to do a small hobby project (webcam picture ocr recognition -> put contents via rest -> display them within a self refreshing table), but i don't want to use anything i know already (mostly Spring MVC, Wicket and Spark).
First shot: Let's use Tapestry. Ok, Hello World is working fine, the concept is clear. But as i was looking for a library for Websockets, i almost desperated.
I found:
https://github.com/uklance/tapestry-atmosphere
(https://github.com/dragansah/tapestry-websocket)
Both of them are more or less outdated/dead.
Are there any extensions for tapestry, making Atmosphere/Websockets implentation easier? I can't get the libraries, shown above, to work (not even the examples are working locally - there is just a bunch of javascript errors).
Working with 'raw' athmosphere is no problem, everything is working fine, but i'm looking for a more framework 'included' solution.
Is there anything existing (as mentioned, tapestry is my prefered solution..)
thanks in advance four your help.
I'm the author of tapestry-atmosphere and tapestry-cometd. Although I've not done development on either for quite some time they should still do the job.
Is there a feature you need?

Embedding a web application inside Eclipse/IntelliJ

I have a couple of questions regarding Eclipse and IntelliJ IDEA support for building a plugin that can...
show (and accept user input to) an interactive web application (with drag-and-drop diagram editing functionalities similar to Visio/OmniGrapffle/Inkscape) inside the main workspace (the biggest space to the right:)) of the IDE.
interaction with the web application (e.g. clicking on a box in the diagram) will trigger some action in the IDE (e.g. show a corresponding source file, or opening a dialog to create a new class).
In other words, I plan to let the web application manage most of the GUI aspects to overcome the limitations of Eclipse and IDEA in terms of animation, or flexibility in terms of showing nice graphics.
To this end, the web application needs to be able to communicate with the services/other plugins provided inside the IDE.
Browsing the web and StackOverflow revealed to me that Eclipse supports an OSGI architecture that might enable me to write an webservice that can be accessed from a web application. But I'm not sure where to start with. Also no relevant information concerning building my plugin for IntelliJ IDEA can be found.
It would be great if you can provide me some pointers. Thank you very much.
PS: I was considering building a normal plugin, (e.g. using the Eclipse's Graphiti project) but the user experience (button's shape, dialogs, properties windows, etd.) using only Eclipse platform support seems limited, as opposed to full HTML/CSS/JavaScript/etc/ supported by a web application. I might be wrong with my approach though so any help would greatly be appreciated.

updating JUST HTML files on Google App Engine

I have a Google App Engine Application, and as part of that Application I have my standard HTML pages, Home, ContactUs, Testimonials, Pricing ETC ETC, when users click on "login" or go to a specific URL eg (www.diarybooker.com/demo) it loads the actual application.
All these standard HTML files are fairly static files though, with analytics and SEO etc in them, however in order to update these currently I need to release a new version of my application every time.
Can anyone offer any advice as to how I can JUST update the HTML without having to release a new version of my application (especially if I am in the middle of a development cycle and don't want to branch just to update a contact number or fix an SEO issue etc)
It is entirely possible that I am actually using the system incorrectly and that I should be re-wiring things better/differently, but I cant find any information about how this SHOULD be setup, and Im not even sure what to search for either, so if anyone can at least point me in the direction of some information on this, I would be very greatful!!
By way of an alternative example, I have a friend who is running www.wineathome.org.uk and if you click on "attend a tasting" it moves off into http://wineathomeuk.appspot.com. Clearly this is not very clean and is also not the way to make it work, I could embed the application in an iframe, but is that really the way to go?!
You have your application code in source control, right? I'd suggest that you create a deployment directory and clone into it the version of the application that you want to have running on AppEngine. Then, copy into the deployment directory the versions of the HTML files that you want updated. Deploy away.
That is the only strategy that's going to work for you. The GAE deployment tool only deals with your application as a whole.
Looks like you have a couple of issues going on.
On the first issue as #AdamCrossland states you can use source control. I use git and create branches for my application at different versions. If you do that you can merge your updated HTML back into an older branch then update your application from that branch. That way your only changing the HTML files and leaving the application in it's current state. App Engine deploy is intelligent and will only upload the modified files. Doing this from Eclipse is a bit more difficult than from the CLI IMO, but YMMV.
The other issue of a friend clicking on attend a tasting routing the url to appspot is a bit harder to deal with unless some code is provided. I would think it is because the code is doing a redirect to a hard coded URL. I have several application mapped to a domains and none of them route to appspot unless I forced it to in order to use some functionality like HTTPS which only works on appspot.com. I personally try to avoid iframes it opens up an avenue for exploits.

GWT or JavaFX webpage dilemma

Im trying to resolve following dilemma. I have to develop whole webpage system(with user friendly content management, it should look like very simple Drupal or Joomla) as a project to school. The webpage should have function of adding and removing articles, editing menus, editing whole webpage layout(header position, menu position etc).
Im in phase of deciding which system would be the best for this purpose. I wrote several applications in GWT. It's very quick to develop something, it works on Tomcat etc. So it could be very good adept for this task. But recently I got an idea of writing whole webpage system in JavaFX 2.0 (webpage would open inside the browser).
What is your opinion about this fact ? Should I use JavaFX or GWT? I'm not sure if whole webpage will be quick enough in JavaFX. If the users that will be visiting this page wont have problems with launching this page etc. I havent found any information about this on the internet.
Thanks for your answers :)
Go for GWT (also consider using Vaadin or SmartGWT). It does not require a Java Virtual Machine to be installed on the client. Also, GWT allows the client to download only small pieces of the application, and not the whole thing.
You cited two Content Management Systems like Drupal and Joomla that are written in PHP, so maybe the best solution for you is a CMS written in java like Alfresco or Magnolia.
do you want to do a web page or an applicatin for one plugin ? GWT of course.
GWT
GWT follows a most innovative approach: you write the entire application in Java. But it’s executed in Javascript. A good portion of your code is cross-compiled to Javascript and uploaded to the client.
Judging from the presentations I’ve seen, this approach works surprisingly good. In former times the GWT compiler used to be slow, but today, they seem to have solved (or at least alleviated) the problem. As far as I can see, GWT is an excellent choice
javafx
JavaFX 2.0 is a pretty new GUI framework. So expect a few glitches. The good news is that it’s likely to improve over the years. And I suppose people will start to write JavaFX component frameworks if JavaFX is going to be popular.
There’s a video showing the domain of JavaFX very clearly.
Container terminal monitoring with 3D JavaFX
Source

Blackberry browser field implementation

I need to display any web page as a browser field,not browser session.I am building the app in 4.7 OS.Can anyone help me with sample code?
On 4.7 you are stuck with the old browser field. Also known as Browser Field 1. It renders HTML pretty close to how it was on 4.5 devices. There is no way to take advantage of the newer browser that you invoke via browser session. So, you can forget about CSS2 or or JavaScript on the pages you want to render as a browser field. But for the fairly basic stuff it is good enough.
For the sample code - you really should check out and understand all the examples there are in the development package before starting writing the code. It will really save more time than take for learning. Look at components\samples\com\rim\samples\device\blackberry\browser\BrowserFieldDemo.java
I doubt that the problem lies with the browser field per se. Rather with communications.
The people in the post that you refer to were probably suggesting ";deviceside=true" as this gets around the "BES effect" in a simulator.
You may wish to experiment with running the MDS emulator alongside the simulator session as well. There are a number of posts that discuss the impact of deviceside and simulation. You can test in code to see if you are running a simulator so that you can programmatically influence the "BES effect".

Categories

Resources