I got them from the showcase send those so I can check it Regards Sent from my BlackBerry® from Iusacell wireless device from Iusacell
-----Original Message----- From: Mohamad Nasreddinne <[email protected]> Date: Mon, 13 Apr 2009 17:44:29 To: <[email protected]> Subject: RE: mixing SmartGMt code and GWT Ext code hey how did you give the url of the xml file ? i have the 2 xml file but i forgot to send them to you Date: Mon, 13 Apr 2009 10:27:14 -0500 Subject: Re: mixing SmartGMt code and GWT Ext code From: [email protected] To: [email protected] Yup! it worke just fined, i copy/paste your code and I add the folder data into the public folder (public folder is inside your src folder inside your main package). I added the trip.xml and the countries-grouped.xml into the data folder, perhaps this might be your error, you need 2 xml files instead of 1. I attached an image. Regards,_____________________ Ing. Gabriel Gutiérrez Monterrey, México On Mon, Apr 13, 2009 at 9:44 AM, Gabriel Ernesto Gutierrez Añez <[email protected]> wrote: Ok, i'll try, give me acouple of minutes. Regards,_____________________ Ing. Gabriel Gutiérrez Monterrey, México On Fri, Apr 10, 2009 at 12:24 PM, Mohamad Nasreddinne <[email protected]> wrote: My code is the same as the code in the demo the problem is that i have one folder in each tree but the content of the xml is not displayed . so if you can test it and tell me if it works . thank you /* * GWT-Ext Widget Library * Copyright 2007 - 2008, GWT-Ext LLC., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 3 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; import com.gwtext.client.core.Connection; import com.gwtext.client.data.Node; import com.gwtext.client.dd.DragData; import com.gwtext.client.dd.DragDrop; import com.gwtext.client.widgets.Component; import com.gwtext.client.widgets.Panel; import com.gwtext.client.widgets.form.FieldSet; import com.gwtext.client.widgets.form.FormPanel; import com.gwtext.client.widgets.form.Radio; import com.gwtext.client.widgets.layout.HorizontalLayout; import com.gwtext.client.widgets.layout.VerticalLayout; import com.gwtext.client.widgets.tree.*; import com.gwtext.client.widgets.tree.event.TreePanelListenerAdapter; public class TwoTreesSample implements EntryPoint { public void onModuleLoad() { Panel panel = new Panel(); panel.setBorder(false); panel.setPaddings(15); //create form for nody drop style FormPanel formPanel = new FormPanel(); formPanel.setBorder(false); formPanel.setHideLabels(true); FieldSet fieldSet = new FieldSet("Drop style"); fieldSet.setWidth(420); formPanel.add(fieldSet); final Radio moveRadio = new Radio(); moveRadio.setName("dropstyle"); moveRadio.setBoxLabel("Move"); moveRadio.setChecked(true); fieldSet.add(moveRadio); final Radio copyRadio = new Radio(); copyRadio.setName("dropstyle"); copyRadio.setBoxLabel("Copy"); fieldSet.add(copyRadio); //create source countries tree final TreePanel treePanel = new TreePanel(); treePanel.setTitle("Countries"); treePanel.setAnimate(true); treePanel.setEnableDD(true); treePanel.setContainerScroll(true); treePanel.setRootVisible(true); treePanel.setWidth(200); treePanel.setHeight(400); treePanel.setSelectionModel(new MultiSelectionModel()); final XMLTreeLoader loader = new XMLTreeLoader(); loader.setDataUrl("data/countries-grouped.xml"); loader.setMethod(Connection.GET); loader.setRootTag("countries"); loader.setFolderTitleMapping("@title"); loader.setFolderTag("continent"); loader.setLeafTitleMapping("@title"); loader.setLeafTag("country"); loader.setQtipMapping("@qtip"); loader.setIconMapping("@icon"); AsyncTreeNode root = new AsyncTreeNode("Countries", loader); treePanel.setRootNode(root); root.expand(); treePanel.expandAll(); //create target vacation tree final TreePanel tripTreePanel = new TreePanel(); tripTreePanel.setTitle("Trip Planner"); tripTreePanel.setAnimate(true); tripTreePanel.setEnableDD(true); tripTreePanel.setContainerScroll(true); tripTreePanel.setRootVisible(true); tripTreePanel.setWidth(200); tripTreePanel.setHeight(400); final XMLTreeLoader tripLoader = new XMLTreeLoader(); tripLoader.setDataUrl("data/trip.xml"); tripLoader.setMethod(Connection.GET); tripLoader.setRootTag("vacations"); tripLoader.setFolderIdMapping("@title"); tripLoader.setFolderTag("trip"); tripLoader.setQtipMapping("@qtip"); tripLoader.setIconMapping("@icon"); tripLoader.setAttributeMappings(new String[]{"@trip"}); final AsyncTreeNode tripRoot = new AsyncTreeNode("Places to Visit", tripLoader); tripTreePanel.setRootNode(tripRoot); //add trip tree listener that handles move / copy logic tripTreePanel.addListener(new TreePanelListenerAdapter() { public void onRender(Component component) { tripRoot.expand(); tripTreePanel.expandAll(); } public boolean doBeforeNodeDrop(TreePanel treePanel, TreeNode target, DragData dragData, String point, DragDrop source, TreeNode dropNode, DropNodeCallback dropDropNodeCallback) { if ("true".equals(target.getAttribute("trip"))) { if (copyRadio.getValue()) { TreeNode copyNode = dropNode.cloneNode(); Node[] children = copyNode.getChildNodes(); for (int i = 0; i < children.length; i++) { Node child = children[i]; copyNode.removeChild(child); } dropDropNodeCallback.setDropNode(copyNode); } } return true; } }); Panel horizontalPanel = new Panel(); horizontalPanel.setLayout(new HorizontalLayout(20)); horizontalPanel.add(treePanel); horizontalPanel.add(tripTreePanel); Panel verticalPanel = new Panel(); verticalPanel.setLayout(new VerticalLayout(15)); verticalPanel.add(formPanel); verticalPanel.add(horizontalPanel); panel.add(verticalPanel); RootPanel.get().add(panel); } } Date: Fri, 10 Apr 2009 19:18:53 +0200 Subject: Re: mixing SmartGMt code and GWT Ext code From: [email protected] To: [email protected] at least you'll meet the problems reported as issues :D... and others unknown ;) .... bye patrizio 2009/4/10 Neo <[email protected]> Oh !! I did not know that. So are you saying that it will be a risk using Smart GWT in my application ? And if that is so then what kind of problems can I run into ? On Apr 9, 7:07 pm, James <[email protected]> wrote: > but its still beta, not recommended for production code, see the > issues:http://code.google.com/p/smartgwt/issues/list > > 2009/4/7 Gabriel Ernesto Gutierrez Añez <[email protected]> > > > > > sweet! > >_____________________ > > Ing. Gabriel Gutiérrez > > Celular: +52 1 81 1071 7213 > > Oficina: +52 81 8153 2415 > > Monterrey, México > > > On Tue, Apr 7, 2009 at 1:29 AM, Neo <[email protected]> wrote: > > >>http://code.google.com/p/smartgwt/ > > >> On Apr 3, 7:07 pm, Gabriel Ernesto Gutierrez Añez > >> <[email protected]> wrote: > >> > What is the SmartGWT, btw? > > >> > Regards, > >> >_____________________ > >> > Ing. Gabriel Gutiérrez > >> > Celular: +52 1 81 1071 7213 > >> > Oficina: +52 81 8153 2415 > >> > Monterrey, México > > >> > On Fri, Apr 3, 2009 at 7:29 AM, Gabriel Ernesto Gutierrez Añez < > >> gutierrez.ge > > >> > @gmail.com> wrote: > >> > > could you add the exception and part of the code? > > >> > > and oding an example to see if it works. > > >> > > regards, > >> > >_____________________ > >> > > Ing. Gabriel Gutiérrez > >> > > Celular: +52 1 81 1071 7213 > >> > > Oficina: +52 81 8153 2415 > >> > > Monterrey, México > > >> > > On Fri, Apr 3, 2009 at 6:11 AM, Neo <[email protected]> wrote: > > >> > >> Hi, > >> > >> I have created a GWT-Ext application. I want to use a ColumnTree so > >> > >> tried using extjs to create the control. But got some exception which > >> > >> I could not resolve. Even help from forums was not sufficient :(. > >> > >> However after searching a bit found an easy way of creating the > >> > >> control through SmartGWT. > > >> > >> My question is that if I create ColumnTree control using SmartGWT, > >> can > >> > >> I add the control to my GWT Ext panel ? > > >> > >> Basically I would be mixing SmartGMt code and GWT Ext code. Is this a > >> > >> correct way of doing things ?- Hide quoted text - > > >> > - Show quoted text -- Hide quoted text - > > - Show quoted text - check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages _________________________________________________________________ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
