Why is XMLParser not parsing camel case attributes?
Hi everyone, I'm trying to parse my xml string that contains some camel case attributes and for some reason it just doesn't work. Below is a simple test to help: *@Test public void xmlAttributeParsingProblem() { Document oDoc = XMLParser.parse(tototata myAttribute=\titi\ myAttribute2=\tete\ test=\test1\ testMe=\hello\ test_me=\world\tutu//tata/toto); Node oToto = oDoc.getChildNodes().item(0); Node oTata = oToto.getFirstChild(); assertEquals(test1, oTata.getAttributes().getNamedItem(test).getNodeValue()); //WORKS assertEquals(world, oTata.getAttributes().getNamedItem(test_me).getNodeValue()); //WORKS! assertEquals(hello, oTata.getAttributes().getNamedItem(testMe).getNodeValue()); // DOES NOT WORK assertEquals(tete, oTata.getAttributes().getNamedItem(myAttribute2).getNodeValue()); // DOES NOT WORK assertEquals(titi, oTata.getAttributes().getNamedItem(myAttribute).getNodeValue()); // DOES NOT WORK }* Any ideas why is that happening? I'm using gwt-test-utils by the way, but would that be the issue? like something on their end? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to mark a field as completely hidden for smartgwt ListGrid?
setCanHide(flase) didn't work for me... I had to set the height of the field as 0. field.setWidth(0); On Wednesday, January 4, 2012 5:04:23 AM UTC-5, Daniel wrote: Hi guys, How to mark a field as completely hidden for smartgwt ListGrid? I do listGridFields[i].setHidden(true) according to API,But it still could be able to show the field via a context menu. and the API said 'canPickFields' has been set false can solve this problem,but where the canPickFields ? Thank you Best Regards Daniel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to mark a field as completely hidden for smartgwt ListGrid?
actullally, listGrid.hideField(my_field); worked too, but I had to make sure this was set AFTER the field was added and its values set. On Wednesday, January 4, 2012 5:04:23 AM UTC-5, Daniel wrote: Hi guys, How to mark a field as completely hidden for smartgwt ListGrid? I do listGridFields[i].setHidden(true) according to API,But it still could be able to show the field via a context menu. and the API said 'canPickFields' has been set false can solve this problem,but where the canPickFields ? Thank you Best Regards Daniel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.