Posts

jsf - Facelets Taglib outside WEB-INF directory? -

I am trying to create a Facet tagline. So far I have read every tutorial like *. Taglib.xml has written the file and placed the tag itself inside the WEB-INF directory, but no one really says why. If I move the tags to another directory and files moved to the * taglib.xml update I try to talk to get the following TagException : /confirmation/fields/ordersearchalternatives.xhtml @ 33,42 is the same if *. The taglib.xml file is moved to another directory and the web.xml indicates that to. If it only works, then the tags seem to be inside the 'xhtml files and taglib descriptors web-inf directory. What I would like to achieve, is the tagline descriptor as well as inside the XHTML files of the tag, it is the resource directory and its pointing to the web.xml file. Is this possible? Is this completely out of best practice? Maybe it helps someone else: stumbled I figured How to WEB-INF outside of the directory, to tell my taggiobosh javax.faces.FA...

c++ - sql3_finalize creates a segfault -

I am trying to code a function that creates a zSQL database with the order of a file using SQLite is. The code for my function is as follows: bool createDatabaseFromFile (database & amp; db, std :: istream & commandfile, const char * dbName, std :: ostream * err, bool multiline queries) {Details stmt; Std :: string line STR; std :: string queryStr; Bool end = false; If (! DbName) // If the database address is not provided, then we get it from the first line of command file {std :: getline (commandFile, lineStr); dbName = lineStr.c_str (); } bool noError = db.open (dbName, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, mistake); // If the database does not open, the following loops are not used while (std :: getline (commandFile, lineStr) & amp; amp; amp; amp; amp; amp; amp; amp ; if (lineStr.substr (0,4) == "#END") until the end of the file or keyword "#END"; amp; amp; amp; amp; amp; amp; True; else if (lineStr.substr! (0,2)! = "//") // exc...

android - Bixolon sdk encoding characters_android -

I would like to print characters like Ä ??, Ä ??, Å¡ like exact Croatian characters I SPP-R200II I am using Bixolon SDK for printer. The code is very simple, just want to print some strings ListaRacuna.mBixolonPrinter.printText (slanjeNaPrinter, BixolonPrinter.ALIGNMENT_LEFT, 0, BixolonPrinter.TEXT_SIZE_HORIZONTAL1 | BixolonPrinter.TEXT_SIZE_VERTICAL1, incorrect); ListaRacuna.mBixolonPrinter.lineFeed (1, Incorrect); ListaRacuna.mBixolonPrinter.cutPaper (true); with connection with the printer via Bluetooth Passed the Spanish letters (± ±, Ã, à©, â € ¬ ...) and contacted Bixolon support e-mails, they responded with a simple solution, and it worked: When you receive the bixolonPrinter object, create it before printing the text: bixolonPrinter.setSingleByteFont (BixolonPrinter.CODE_PAGE_858_EURO); You will need to continuously change the code CODE_PAGE _ * in the other code related to those characters you are trying to print. BTW, it may be interesting to c...

Java Casting query Exception and error -

When do we get an incompatible type compilation error in Java and when do we get class class exception? The API specification clearly states: For that code, the object is attempting to put an object in a subclass in which this is not an example. ClassCastException is generated at runtime because the compiler believes that the cast can be valid. Example: // The bottom line will be compiled but the class class upstream runtime integer will be raised on the I = (integer) new object (); Incompatible type error can be easily solved by compiling it at compiled time. It only appears that the category for which you are trying to insert a specific object falls into the same hierarchy. Example: string str = "abc"; & Lt; Br> Integer number = (integer) str; // COLLECTION ERROR: Integer and string are not in the same sequence

symfony - Symfony2 FosUserBundle Roles ROLE_ADMIN -

I have found this problem. My SF2NView is configured with FusiusBandal and FacebookBundle. I have succeeded in section only on some ADMIIN FRONTAGE (means mediator object) By default, every user created in my project is only ROLE_USER. The "moderator" thing can only be accessed by being ROLE_ADMIN The problem is that I "" $ user-> Also add the role of addRole ('ROLE_ADMIN') , checking that the user's role is unsuccessful. I would like to show some stuff if the user has the role to play, but I can not. Neither " {% if_granted ('ROLE_ADMIN')%} ", nor " $ this-> container->; ('security.context ') -> (' ROLE_ADMIN ') isGranted "succedded" Everybody is not getting anything wrong or when it comes to twig . Check if the user has ROLE_USER works Just to make sure I'm adding my config content. Security: Ankoders: FOS \ UserBundle \ Model \ UserInterface: sha512 Symfony \ Co...

ios - Xcode 5 showing "splash screen missing" even if it is present in the project bundle -

Image
I have added 7 splash screens (3 for the iPhone and 4 for the iPad) in the Xcode project in total For, I've added the encoded resources under the splash screen - & gt; Splash folder. Default -568 h @ 2x.png Default - Landscape @ 2x_ipad.png Default-Landscape ~ iPad Default-Portrait @ 2x_ipad.png Default-Portrait ~ iPad .png Default .png Default @ 2x.png But when I open my project in Xcode, it shows the warning below is. Does anyone know That's why this is happening I'm new to Xcode 5 and do not know a lot about this way. Any help will be greatly appreciated. Thank you .. You simply create different shapes for the slash screen. X: 768x1004, etc. Xcode will automatically show different images for different devices (iPhone, iPad, Retina or not)

HTTP POST Request Test using LoadRunner -

I am new to the loader and my purpose is to test a web server and send a different number of users and HTTP post to my The script is: verb () { lr_start_transaction ("FORM_PAGE"); web_submit_data ("index.html", "action = https: // , "snapshot = t5.inf", " Mode = html ", ITEMDATA," name = data "," value = >, ENDITEM, LAST) ; lr_end_transaction ("FORM_PAGE", LR_AUTO); return 0; } I expect a small number of transactions and the increase in the number of errors when the payload Constant number of users Increased with the ties. But I think that when payload increases, the total number of transactions increases, from 5 kB to 15 kb and further up to 25 kb with 100 users. Anyone can give information on this? Updated: Another observation is that for 15 KB, the TCP connection for the next recurrence has been started with SEN , Before the last one was finished. Therefore, there is no doubt that the sche...