I am trying to use the GWT-VL framework to validate my client side form.So as the first step i downloaded the .jar file from sourceforge.net and imported it into my projects libraries.
Then i write a class which tries to use the validations.
The error which i get is "No source code is available for type eu.maydu.gwt.validation.client.ValidationProcessor; did you forget to inherit a required module?"
So my question is does my class which uses the validation framework need to extend any class?
Or is there any problem with my importing the .jar file?
I think it should be not because i have added this .jar files to my libraries.
Or is there any other modification in need to make?
Also please suggest any other frameworks for validation of GWT-forms.I am just trying to integrate GWT-VL to play around with it and see if its convenient for usage.
Thanks
You have to add the following line in your module.gwt.xml file:
<inherits name='eu.maydu.gwt.validation.ValidationLibrary' />
The class that uses the validation library does not have to extend a special class.
You should update your module XML file, (modulename.gwt.xml) and add a reference to the framework you are using.. The required modification should be in the readme file of the downloads 90% of the time.
Related
Hello I´m writting a plug-in for Eclipse and part of the work of its work is to add new xhtml files in a JSF project.
I wonder what's the best way here. Is there a particular and recommended API for this case or I just have to treat this kind of file as a non-particular one and handle all the contents by myself?
There are a number of model-to-text generators (one of them mine, in full disclosure) that can help you if there is some boilerplate you want generated around your structure. An example of this is how Eclipse can generate getters and setters for Java instance variables.
If you're not familiar with those. though, or if the file content is relatively simple then you might want to just treat your generated xhtml as simple text files and use the basic resource methods to create them.
This was my first attempt at making a framework in Xcode and it's structure is something like:
framework.h
framework.m
class1.h
class1.m
I am now trying to make a console application that uses the framework. I have added it to the Linked Frameworks and Libraries, and put in the file path to the derived data folder that contains the framework into the Framework Search Paths.
When I try to build the console application, I get the error 'Class1.h' file not found.
Am I not building the framework correctly or not including it as I should? I also tried copying the framework to my Library/Frameworks folder though it didn't put it there automatically, and I got the same error.
The solution was to make the 'Class1.h' header file public in the project headers. I also needed to make a lot of other header files public because they were included in Class1.h, but everything builds smoothly now.
I'm trying to use and web service with gsoap. I've already generated all *.h and *.cpp using wsdl2h and soapcpp2, included all libraries, at least I think so, but when I build the project it gives me the message of undefined references to a lot of methods. The thing is all methods are declared in soapH.h (the prototype) and in soapC.cpp (the implementation).
Any help will be appreciated.
It seems that you included some generated header files in your build, which should not. (e.g. the .h file generated from wsdl) There are descriptions in the comment section in each generated files, and you'd better read them to get familiar how to use them.
Also, if you use openssl, the library should also be included during linking process(-lssl)
Solved, All I need was the original header file, I was getting one from the wsdl.
In case anyone encounteres this problem: you do not have to include all the .cpp files in your makefile - some of them are included by the other. What you need also depends on whether you are building a client or a server.
Consult the documentation here to see which files are needed and for what.
I am doing a project where iphone or ipad is a client side..
problem here is using WSDL file we have generated stubs using a software...
the generated stubs are in the format .h and .m file
but how to run this file in xcode or integrate with the xcode....
I am not getting any links or tutorial to do so please suggest me how to do.
Thank u
Depends on a software that you have used to generate proxy classes from wsdl. We have successfully used http://code.google.com/p/wsdl2objc/, and just added generated files to project (project->add existing files). Bear in mind that those are just proxy classes, project structure and code to consume the webservice you have to write on your own.
Its depend upon the type of web service are generated. If its XML outputted web service , then you need to use nsxmlparser to parse the XML web-service.And if its outputted as JSON then you had to use JSON parser etc. Therefore its depends upon type of your web-service is, then you can use suitable parser to parse the web service. There are several links available on internet.
to all
In my iphone game I want to add external .h and .a files. I am adding them by using add project option given in Xcode. It get added but I want to invoked the methods given in the header files. As per instruction given to us we have to call one method which is declared in external header file. We have to call that method inside AppDelegate's applicationDidFinishLaunching method . But at the time of compilation it gives one error that is referenced from: and symbol not found. I don't understand how to invoked this method and how to get referenced for the method.
I am sending one link please see that. The same problem with my application is coming.
http://forums.macrumors.com/showthread.php?t=443437
In that three screen shots are given by some toddburch on Jan 24, 2009, 07:37 AM
The same error for my methods are also coming but my code is in Cocoa with objective-c not in ruby.
If anyone know the solution please reply me As soon as possible.
The .h is not enough. You also need the implementation, either source code or compiled framework.
Do you have access to the source code itself? Try dragging the .h and .m/.c files from the framework directory directly into your project. It's a little messy, but I think it will solve your problem based on the error messages you are getting. You can put them all in a group so your project doesn't look so crowded after you drag them over if you like.
You currently have two files
A *.h header file which describes the classes and functions available in your third party library
A *.a static library file which holds the pre-compiled code for the functions described by the *.h file.
Assuming you've got to the stage where you can #include or #import "xyz.h" and compile your application, the bit which is missing is linking your executable with the *.a file.
The symbol not found error message is the linker telling you it knows some of your code is calling a particular function, but it can't currently find another code module that provides an implementation of that function.
One thing to check is that your *.a file is correctly configured within your project to be passed to the linker. One way to do this is to expand the "Targets" section of the main XCode window. If you drill down into the section representing your application you should see a subnode labeled "Link Binaries with Libraries". Your *.a file should be listed, if it isn't one way to add it is to simple drag and drop the file into this section.