Re: Image from resource in SafeHtmlTemplate

2011-08-13 Thread Ioan Agopian
You can use the following code to build the html for the image: AbstractImagePrototype.create(Resources.Singleton.GetMyImage()).getHTML(); Regards, Ioan On Aug 13, 12:25 am, Micah Caldwell mic...@gmail.com wrote: I have an image from a ClientBundle resource: final String myImageUrl = new

Re: Image from resource in SafeHtmlTemplate

2011-08-13 Thread Ioan Agopian
You don't have to run the result of AbstractImagePrototype.create through the template, just add it to the SafeHtmlBuilder: String imageHtml = AbstractImagePrototype.create(Resources.sSingleton.getMyImage()).getHTML(); safeHtmlBuilder.appendHtmlConstant(imageHtml); On Aug 13, 7:12 pm, Steen

Re: Application written using GWT 2.1.1 goes belly up in 2.3 dev mode -- please help me to understand

2011-08-04 Thread Ioan Agopian
Hi, It seems that GWT is no longer in the build path. Try setting it again in the project settings under Google / Web toolkit. Regards, Ioan On Aug 4, 8:20 pm, Rob Tanner caspersg...@gmail.com wrote: Hi, I have a production application built using GWT 2.1.1 and the Eclipse plugin.  I've

Re: GWT CELLTABLE How to restore old value in cell if validation fails

2011-08-03 Thread Ioan Agopian
selectionModel.isSelected(object) ) My Grid contain (2-N) column so I am asking this question ? On Aug 2, 5:42 pm, Ioan Agopian ioan.agop...@gmail.com wrote: Hi Vaibhav, Youcando it like this: // clear incorrect data cell.clearViewData(KEY_PROVIDER.getKey(object)); cellTable.redraw

Re: Web-/Server Management Tool with GWT

2011-08-02 Thread Ioan Agopian
Hi any, Pretty big project to start with :). I think you're looking at it wrong as the main task will be to handle all the configuration for the server services, and GWT can only provide the user interface. All the background server work has to happen on the server, and GWT only runs on the

Re: GWT CELLTABLE How to restore old value in cell if validation fails

2011-08-02 Thread Ioan Agopian
Hi Vaibhav, You can do it like this: // clear incorrect data cell.clearViewData(KEY_PROVIDER.getKey(object)); cellTable.redraw(); Where cell is the TextEditCell that you're using for that column. Regards, Ioan On Aug 2, 12:59 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote: Hi all, PFA

Re: GWT CELLTABLE Editable value not persisted when user clicked cell twice or thrice

2011-08-02 Thread Ioan Agopian
Hi, You have to update the value stored in your dataprovider to the new value. If not, when user clicks repeatedly the cell, it will revert to the old value. Regards, Ioan On Aug 2, 1:01 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote: Hi, Editable value not persisted when user clicked

Re: CellTable with SimplePager displaying GAE datastore data in async

2011-07-08 Thread Ioan Agopian
What framework are you using to connect to the datastore? I've not used JDO or JPA, but in Objectify you can set an offset and a limit on a query. In onRangeChanged you can get them like this: Range range = display.getVisibleRange(); Integer offset = range.getStart(); Integer limit =

Re: problems using ScrollPanel and layout panels

2011-07-04 Thread Ioan Agopian
Williame, thanks for your response, I really hope we can find an elegant solution. I don't think that your approach works well for dynamic content. I don't really know the size of the cell tree in advance so I can't adjust the size of the containing panel when placing the cell tree in it. At

problems using ScrollPanel and layout panels

2011-07-01 Thread Ioan Agopian
Hi all, I have the following code: g:DockLayoutPanel unit='PX' ui:field=dockPanel g:north size='35' g:HTMLPanel Header /g:HTMLPanel /g:north g:center g:ScrollPanel width = 100% height = 100%