Re: Sample Application which shows how to use GWT inside a Struts 1.2 App

2015-07-17 Thread Aryan
Hi croj78,

  its long time ago post but did you get any sample for gwt-struts 
integration. searched many threads but didn't get any response with steps 
mentioned.

  Any help will be appreciated .

On Friday, February 5, 2010 at 9:29:49 PM UTC+5:30, crojay78 wrote:

 Hi,

 does anyone has a sample application where I can see how to use GWT
 screens in a struts application? I was looking for this but without
 success. It would be nice if somebody can provide something or maybe
 has the mood to make such a sample app.

 I guess a lot of people would be greatful or at least I am :-)

 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/d/optout.


Re: Chart and Graphs with Legend

2013-09-11 Thread Aryan
You may check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ . I am not sure if it cater all your needs 
but in this API every chart comes as a regular gwt widget hence you can 
almost play around and do all sorts of stuffs which you can do with regular 
widgets. You can customize the legend by setting 
chart.setDefualtColors(String[] ) (just make sure you give enough colors 
according to number of legends in the chart)


On Wednesday, 17 July 2013 01:14:26 UTC+5:30, das.ani...@gmail.com wrote:

 Hi 

 I am a newbie, i have some doubts in the gwt

 1 - Here are the points which i need to customize the Line / Bar Chart 

   a) Legend position Should come under the chart panel. 
   b) Customized legend color change 
   c) Customized font color, Size of legends 
   d) Customezed Tooltip for graph 

 2 - For  Separate Graph view 

   In a single page user can see maximum four graphs at a time. But There 
 is a selection criteria where 
   a) If some select one check box a graph will come out full page. 
   b) If some one select two checkboxes, two graphs will be displya in full 
 page (one is left and another one is right ) 
   c) If some one select three check box three graphs will come in the 
 entire page (Two graphs Above and one below) 
   d) if some one select four check box four graphs will come in the entire 
 page (Above Two and Two Below) 
  similarly 
   i) If some one deselect a checkbox out of four selected three graphs 
 will be display (Two graphs Above and one below) 
   ii) If some one deselect another check box two graphs will be display in 
 the entire page.


 can anyone guide me with
 simple example code will be a great help. 


 Thanks in Advance.

 Regards
 Anirudha 


-- 
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: Chart and Graphs with Legend

2013-09-11 Thread Aryan
Hi,

You may check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ . I am not sure if it cater all your needs 
but in this API every chart comes as a regular gwt widget hence you can 
almost play around and do all sorts of stuffs which you can do with regular 
widgets. But customize legend can be quite tricky.

On Wednesday, 17 July 2013 01:14:26 UTC+5:30, das.ani...@gmail.com wrote:

 Hi 

 I am a newbie, i have some doubts in the gwt

 1 - Here are the points which i need to customize the Line / Bar Chart 

   a) Legend position Should come under the chart panel. 
   b) Customized legend color change 
   c) Customized font color, Size of legends 
   d) Customezed Tooltip for graph 

 2 - For  Separate Graph view 

   In a single page user can see maximum four graphs at a time. But There 
 is a selection criteria where 
   a) If some select one check box a graph will come out full page. 
   b) If some one select two checkboxes, two graphs will be displya in full 
 page (one is left and another one is right ) 
   c) If some one select three check box three graphs will come in the 
 entire page (Two graphs Above and one below) 
   d) if some one select four check box four graphs will come in the entire 
 page (Above Two and Two Below) 
  similarly 
   i) If some one deselect a checkbox out of four selected three graphs 
 will be display (Two graphs Above and one below) 
   ii) If some one deselect another check box two graphs will be display in 
 the entire page.


 can anyone guide me with
 simple example code will be a great help. 


 Thanks in Advance.

 Regards
 Anirudha 


-- 
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: GWT Chart which displays bars on x axis at irregular intervals

2013-09-11 Thread Aryan
You may check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ . You can trick API to give irregular 
interval at categorical axis on CategoryDataTable by giving space instead 
of name like jan,feb, ,apr,  ,   ,july,.. just take care you 
give different amount of space each time. On second though you may do this 
on any other chart API. 


On Thursday, 11 October 2012 16:47:59 UTC+5:30, Louise Mortimer wrote:

 I need to create various charts (using GWT) which will display values 
 along the x axis at irregular intervals. 
 All examples I have come across (and 
 testinghttp://www.javaranch.com/unit-testing.jsp I 
 have done) display the values along the x axis at regular intervals. 
 However for my purposes I need to display a set of values (Y axis) taken 
 at specific times/java.util.Date (X axis). 
 The range of the x axis can be varied from 1 month to n months *and the 
 labels must show the Months*. The values however must be displayed at the 
 appropriate place on the x axis (see screen shots). 

 Does anyone have any idea how to achieve this using the GWT charts?




 https://lh5.googleusercontent.com/-5t8YTr6-718/UHaqsCwqpRI/BLc/Sls1aXN9_1I/s1600/6+mnths.png


 https://lh3.googleusercontent.com/-PyPZEmb16eE/UHaqvuVWCoI/BLk/Y2WtwV_S22E/s1600/12+months.png


 https://lh5.googleusercontent.com/-Mr0QBSZDcFE/UHaqmBkaU9I/BLU/m7wu_4C1VOM/s1600/1+mnth.png



-- 
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: Is there any chart library for GWT?

2013-09-11 Thread Aryan
 
  
Check out GWT-RCharts hosted on http://code.google.com/p/gwt-rcharts/ and 
demo at http://gwt-rcharts.appspot.com/


On Tuesday, 8 January 2008 03:14:03 UTC+5:30, Sarah kho wrote:

 Hi 
 how we can resolve charting requirement when we use GWT, is there any 
 sample code for it? 

 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: Is there any chart library for GWT?

2013-09-11 Thread Aryan
 0 down vote 
 
Check out GWT-RCharts hosted on http://code.google.com/p/gwt-rcharts/ and 
demo at http://gwt-rcharts.appspot.com/


On Tuesday, 8 January 2008 03:14:03 UTC+5:30, Sarah kho wrote:

 Hi 
 how we can resolve charting requirement when we use GWT, is there any 
 sample code for it? 

 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: FIll Color Fill Pattern on Column Chart Series..

2013-09-11 Thread Aryan
Check out GWT-RCharts hosted on http://code.google.com/p/gwt-rcharts/ and 
demo at http://gwt-rcharts.appspot.com/ . You may use stacked column chart 
for you purpose. Setting chart.setDefaultColors(String[].) customizes the 
color. By changing stoke styles you may be able to do border stuff. 

On Friday, 14 September 2012 04:33:59 UTC+5:30, Sury Balasubramanian wrote:

 Hi 
 i am trying to create a column chart with every series having a different 
 color [as a means to create a waterfall chart]. 

 Some of the deficiencies in GWT Column Chart that would be great to have :

 1. Methods to have a fill pattern for each of the series. 
 2. Ability to fill each series and treat each series data point as its own 
 entity
 3. Ability to have borders and bordering options for each series

 Thanks

 Sury


-- 
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: A native GWT chart library?

2013-09-11 Thread Aryan
Check out GWT-RCharts hosted on http://code.google.com/p/gwt-rcharts/ and 
demo at http://gwt-rcharts.appspot.com/

-- 
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: Draw graphs using GWT

2013-09-11 Thread Aryan
Check out GWT-RCharts hosted on http://code.google.com/p/gwt-rcharts/ and 
demo at http://gwt-rcharts.appspot.com/ .

On Tuesday, 19 June 2012 17:39:06 UTC+5:30, mo momo wrote:

 Hello,

   My objective is to draw graph that present the production servers of an 
 IT company. The UI should be something like:

  
___ __  _
   l  ServerA   l l  ServerB  l
   ll   --  ll
   ll ll
   l___ _ l l_l

   The company where I work has imposed GWT as a tool to implement the 
 client side. Could you please suggest something like JGraph that I could 
 apply in the client side using GWT.
  
 Regards.



 Regards


-- 
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: Need Feedback on charts frameworks for GWT

2013-09-11 Thread Aryan


  Check out GWT-RCharts hosted on http://code.google.com/p/gwt-rcharts/ and 
demo at http://gwt-rcharts.appspot.com/

On Tuesday, 22 March 2011 05:38:28 UTC+5:30, Romain BIARD wrote:

 Hi everybody, 

 I'm looking for different feedback about frameworks which provides 
 client-side charts, especially well integrated with GWT MVP 
 Architecture (I managed to persuade my client to migrate to GWT 
 2.2.0 :p ) . I don't know which solution fit the best and the 
 community didn't discuss about it for a while... 

 What about your XP ? JS wrapper, clientsidegchart, GXT ? 

 Thanks for your feedback !

-- 
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: Can This Be Done?

2013-09-11 Thread Aryan
You may also like to check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ .

On Thursday, 12 April 2012 05:31:18 UTC+5:30, Al Yameen wrote:

 Hi all,

 Can the site's functionality be replicated with GWT? 

 http://nextbigsound.com/267814/stats-Drake#267814-fans

 Thanks,
 Al


-- 
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: best way to use chart in GWT

2013-09-11 Thread Aryan
You may like to Check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ .

On Monday, 8 November 2010 22:00:38 UTC+5:30, Genesis Simpleman wrote:

 Hi 
 I'm having problem to decide what is the base way to implement chart 
 in gwt. 
 i taught about gwt library (i.e. gchart of gflot) - but they are 
 insufficient by look, interaction and components. 
 Also looked at gwt visualization but it requires open link to the web, 
 (i need it in intranet). 
 And also look at some javascript library - but then i need to write 
 wrappers and take care of the cross browser issue. 
 P.s. i cannot use flash component as well. 

 currently it seems that wrapping the javascript library is the best 
 solution, but i'll be happy to hear other suggestions, or experiences 
 before diving in. 

 Thanx 
 onentwoo

-- 
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: Custom Visulization

2013-09-11 Thread Aryan
You may like to Check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ .

On Tuesday, 24 August 2010 20:14:40 UTC+5:30, Raju wrote:

 Hi Experts, 

  I need to create Custom Visulization i.e a new chart (like piechart) 
 xy chart. 

 I also followe custom visulization in tutorials. i understood about 
 flex table. now i need to know about charts.Is there any example for 
 custom charts. 

 can any body help this.

-- 
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: charting in gwt without javascript wrapper

2013-09-11 Thread Aryan
You may like to Check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ .

On Thursday, 14 October 2010 22:10:15 UTC+5:30, Nauman Badar wrote:

 Hi

 Is there a way to implement charts in gwt views without using javascript 
 wrapper classes as they are being used in gwt visualisations?

 are the visualizations charts optimized for gwt?
  
 *Best Regards
 Nauman Badar*

  

-- 
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: Creating charts using GWT

2013-09-11 Thread Aryan
You may like to Check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ .

On Thursday, 5 March 2009 01:18:00 UTC+5:30, JoeB wrote:

 Hi, 

 Can someone give me advice on the best way to create polished-looking 
 charts using GWT?  Notes: 
 1) My GWT app won't have web access so it can't call out to Google 
 Visualizations. 
 2) The GChart package is nice for bar charts and line charts, but it 
 doesn't support gauges (like on a dashboard) or 3D pie charts, both of 
 which I need. 
 3) I've thought about using JFreeChart on the server to create image 
 files, then displaying those in the client.  Is this the best way?  Is 
 there anything better out there? 

 Thanks. 

 -- Joe 


-- 
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: GWT + Charts

2013-09-11 Thread Aryan
You may like to Check out GWT-RCharts hosted on 
http://code.google.com/p/gwt-rcharts/ and demo at 
http://gwt-rcharts.appspot.com/ .

On Saturday, 8 January 2011 22:39:29 UTC+5:30, Ross McKinnon wrote:

 Hi There, 

 Im looking to insert some basic pie charts etc into my application 
 based constructed using data from my MySQL database.  Does anyone know 
 some useful projects that offer this kind of feature... 

 Your help will be appreciated! 

 Thanks, 
 Ross

-- 
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: GWT and charts

2013-09-11 Thread Aryan
Check out GWT-RCharts hosted on http://code.google.com/p/gwt-rcharts/ and 
demo at http://gwt-rcharts.appspot.com/




On Monday, 23 March 2009 11:32:36 UTC+5:30, robinson wrote:

 Hi there guys, 

 I am developing a java based application and require a charting 
 utility. But when i started using google visualizations for this I 
 figured out that it has a dependency on internet. Is there any way for 
 me to get charts using GWT, without depending on internet. 


-- 
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: RequestFactroy dilemma when entity id is null.

2013-04-18 Thread Aryan
Thanks Stefan. But in my opinion method with too many parameter of same 
type will require a developer to be more careful.

SearchAPI.lookup(Integer, String, String, String, String, String)

One has to be careful with parameter positions like 2nd is for name and so 
on. Although IDE like eclipse is there for little help but still we may not 
call it a best practice. 

On Wednesday, 17 April 2013 20:06:41 UTC+5:30, Stefan Ollinger wrote:

  It isnt exactly a use-case of RF to construct existing entities on the 
 client side.
 Either you create a new one, or load an existing one form the server.

 Alternatively you can create a search API which expects simple parameters 
 instead of objects:
 searchApi.lookup(id, name, ..)

 Putting everything in objects adds sometimes only another layer of 
 indirection.

 Regards,
 Stefan

 On 17.04.2013 16:22, Aryan wrote:
  
 Thanks Jens, This is exactly how I am doing right now. I am having 
 something like EmployeeSearchProxy extends ValueProxy for EmployeeSearch 
 class which wraps up Employee and have an additional field for id.

 But it seems to me as workaround for a perticular case which solves a 
 perticular problem. A few workarounds are not bad but if they grew large 
 enough, they may haunt you back in maintainance. 

 The real problem is control and communication which developer can do with 
 GWT-RequestFactory framework. 

 If I could have said at runtime to RequestFactory 
 Hey RequestFactory, chill !!!, don't make any checks and don't throw 
 any exception, this one is just for search purpose

 I guess it could might have been a better design and more compiling to 
 object oriented principles. 


 On Wednesday, 17 April 2013 17:50:20 UTC+5:30, Jens wrote: 


 *
 *Is there any way I can tell RequestFactory: 
 '*Hey RequestFactory, chill !!!, don't make any checks and don't 
 throw any exception, this one is just for search purpose*'


  Use ValueProxy instead, e.g. EmployeSearchCriteriaProxy extends 
 ValueProxy. ValueProxies do not have an identity and RF should not care 
 about IDs and Versions. 
 At first it may sound stupid to duplicate all the methods from your 
 EmployeeEntityProxy because you can filter all properties of your Employee 
 but in the future you may need to filter employees based on more complex 
 data that is not directly available on EmployeeEntityProxy.

  -- J.

 -- 

  


  

-- 
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.




RequestFactroy dilemma when entity id is null.

2013-04-17 Thread Aryan
Hi everyone,

I have been using GWT-RequestFactory and I have to admit that it pretty 
much ease and speed up the development but also some times I feel a bit 
more control and flexibility required to be given out of the *API* to 
developer. 

In short my problem here is : I am not able to send an entity proxy to 
server with an id and null version because I get something like this 

*The persisted entity with id '1' has null version'*

Here is detailed explanation by example

1)Consider Entity  : Employee (id, name, age, address, city country, 
gender).
2)Consider a search by keywords page where we have textboxes for
 i) Employee ID 
II) Name 
   iii) City
   iv) Country
v) gender
3) User chooses any number of above fields, types things and hit enter. 
 eg. Name : thom   ---  hit on search
4) A Celltable or Grid appears as results of search 
 eg. list of all employees whose name like '%thom%', - Thomas, Thor etc
  
Hope that explains the feature. So here I am sending the keywords to sever 
wrapped in a bean proxy itself. for example when user hits 'Search' button 
: -
 req = reqFactory.getEmployeeRequest();
 EmployeeProxy emp = req.create(EmployeeProxy.class);
 emp.setId(idTextBox.getValue()); //getting entered (or null) value in 
text box
 emp.setName(nameTextBox.getValue());
 //..
 req.searchEmployeeByKey(emp).fire(new ReceiverListEmployeeProxy () 
{

 public void onSuccess(ListEmployeeProxy list) {}


  });

Here I am using a entity proxy just for search purpose. But if the '*id' 
*entity 
is populate ( consider user knows employee id and enters it in respective 
text box and hit search) like 
   emp.setId(idTextBox.getValue()) // it not null this time!!! say id is '*
1'*

RequestFactory complains *'The persisted entity with id '1' has null 
version'

*So I tried to find a workaround by setting version to *'0' *or any number. 
But in my EmployeeLocator I have this :
   
   @Override
public Employee find(Class? extends Employee clazz, final Integer id) 
{
return employeeDao.findById(id);// *Assume version is 21*. *bam!!  
0 != 21 -- Autobean frozen!  *
} 

Which will return latest entity from database having the latest version. 
Now if its now *'0' *, I mean if it does not match with the arbitrary 
version set on client,  the RequestFactory will again throw exception 
complaining :
  *The AutoBean has been frozen.

*
*
--x---x---x--x
*
*
*Is there any way I can tell RequestFactory: 
'*Hey RequestFactory, chill !!!, don't make any checks and don't throw 
any exception, this one is just for search purpose*'


Thanks in advance. 

-- 
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: RequestFactroy dilemma when entity id is null.

2013-04-17 Thread Aryan
Thanks Jens, This is exactly how I am doing right now. I am having 
something like EmployeeSearchProxy extends ValueProxy for EmployeeSearch 
class which wraps up Employee and have an additional field for id.

But it seems to me as workaround for a perticular case which solves a 
perticular problem. A few workarounds are not bad but if they grew large 
enough, they may haunt you back in maintainance. 

The real problem is control and communication which developer can do with 
GWT-RequestFactory framework. 

If I could have said at runtime to RequestFactory 
Hey RequestFactory, chill !!!, don't make any checks and don't throw 
any exception, this one is just for search purpose

I guess it could might have been a better design and more compiling to 
object oriented principles. 


On Wednesday, 17 April 2013 17:50:20 UTC+5:30, Jens wrote:


 *
 *Is there any way I can tell RequestFactory: 
 '*Hey RequestFactory, chill !!!, don't make any checks and don't 
 throw any exception, this one is just for search purpose*'


 Use ValueProxy instead, e.g. EmployeSearchCriteriaProxy extends 
 ValueProxy. ValueProxies do not have an identity and RF should not care 
 about IDs and Versions. 
 At first it may sound stupid to duplicate all the methods from your 
 EmployeeEntityProxy because you can filter all properties of your Employee 
 but in the future you may need to filter employees based on more complex 
 data that is not directly available on EmployeeEntityProxy.

 -- J.


-- 
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: RequestFactory Eagerly Fetches the collections in my entity meant to loaded Lazy

2013-02-17 Thread Aryan
Thanks Thomas, You always been a great help... :)
 
 

On Saturday, 16 February 2013 03:47:37 UTC+5:30, Thomas Broyer wrote:

 Because a ValueProxy has no identity (and therefore cannot be retrieved 
 again later), .with() doesn't apply to it; it only applies to EntityProxy.

 On Friday, February 15, 2013 11:07:10 PM UTC+1, Aryan wrote: 

 Hi all,
 RequestFactory seems to fetch whatever the collection I have in my 
 ValueProxy eagarly.

 Lets see the code
  
 @Entity
 public class Venue implements Serializable {
  
  private name;
  private Address address;
  
 private  SetVenueContact contacts;
 
 @OneToMany(fetch = FetchType.LAZY)
 public SetVenueContact getVenueContactses() {
 return this.contacts;
 }

   // other getters and setters

 }
 Lets assume I have set everything else for RequestFactory and Hibernate 
 (Hibernate standalone tests run fine) in order.
  
 I call the below code from client:
  
 requestFactory.venueRequest.findById(7).fire(new RecieverVenueProxy() {
  
   public void onSuccess(VenueProxy res) {
log.info(I never get this :();
}
 });
  
 In service method
  
 public Venue findById() {
   //currently I am using a command pattern for a unit of transaction 
 but anyway I just write simply whats happening
  
   // assume try catch and variable declaration code
  
   session = HibernateUtil.getSessionFactory.openSession();
   trx = session.getTrasaction(); 
   trx.beginTransaction();
   venue = veneuDao.findById(7);
   trx.commit();
   session.close();
 }
  

 ##
 Run Application and get this exception
 org.hibernate.LazyInitializationException: failed to lazily initialize a 
 collection of role: com.x..dto.Venue.contacts, no session or 
 session was closed
  at 
 org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
  at 
 org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
  at 
 org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368)
  at 
 org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
  at 
 org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:186)
  at 
 com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:617)
  at 
 com.google.web.bindery.requestfactory.server.Resolver.access$400(Resolver.java:50)
  at 
 com.google.web.bindery.requestfactory.server.Resolver$PropertyResolver.visitReferenceProperty(Resolver.java:139)
  at 
 com.google.web.bindery.autobean.shared.AutoBeanVisitor.visitCollectionProperty(AutoBeanVisitor.java:229)
  at 
 com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:300)
  at 
 com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166)
  at 
 com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101)
  at 
 com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:395)
  at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:483)
  at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225)
  at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127)
  at 
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133
 )
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
  at 
 com.x.x.x.PersistenceFilter.doFilter(PersistenceFilter.java:35)
  at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
  at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at 
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at 
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  at 
 org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
  at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  at org.mortbay.jetty.Server.handle

RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Hi all,
 
At first is it a necessity to use 'InstanceRequest' for persisting 
Entites?
 
Anyway what I am doing is 
_
client
 
 creating a proxy - calling edit() [request.edit(proxy)] - set the data 
to proxy e.g.
proxy.setName(name')
...
...//Also some where setting the field for associted type
 
...//how I get a countryProxy is like this 
...requestCon.findById(123).fire  
 
proxy.setCountry(countryProxy); // I am sure countryProxy has required 
field. *checked for 'ID' i.e countryProxy.getId() != null
..
 
- call RequestContext appropriate method to save it to database.
 
request.save(proxy).fire.
 
__
On servier side..
 
public void save(MyEntiry me) {
 me.getCountry() != null; //Yesss!!! country is not null ... there is 
something
 me.getCountry().getId() == null; //Yes!... Id field is null ... on 
client side it wasn't
 
}
___
 
I need to load the associated entities to hibernate session at least it 
could have given me ID. :(
 
 
 
At the same time an udate method is working fine somehow ... !!! 
uses hbmSession.saveorupdate(. 
may be its just ignoring associated nulls... I have to yet check it out.
 
I have a presentation for this app tomorrow... 
 
Help!!!. 
Please!
 

-- 
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: RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Hi,
 
It's seems if I use the same RequestContext reference to create Proxy it 
doesn't give a problem...
 
But what if I am getting a proxy from somewher else already populated with 
values ...
 
is there a way to use that proxy or I just have to do all the setters and 
getters to create new proxy from the existing one.!
 
 

On Sunday, 17 February 2013 18:53:00 UTC+5:30, Aryan wrote:

 Hi all,
  
 At first is it a necessity to use 'InstanceRequest' for persisting 
 Entites?
  
 Anyway what I am doing is 
 _
 client
  
  creating a proxy - calling edit() [request.edit(proxy)] - set the data 
 to proxy e.g.
 proxy.setName(name')
 ...
 ...//Also some where setting the field for associted type
  
 ...//how I get a countryProxy is like this 
 ...requestCon.findById(123).fire  
  
 proxy.setCountry(countryProxy); // I am sure countryProxy has required 
 field. *checked for 'ID' i.e countryProxy.getId() != null
 ..
  
 - call RequestContext appropriate method to save it to database.
  
 request.save(proxy).fire.
  
 __
 On servier side..
  
 public void save(MyEntiry me) {
  me.getCountry() != null; //Yesss!!! country is not null ... there is 
 something
  me.getCountry().getId() == null; //Yes!... Id field is null ... on 
 client side it wasn't
  
 }
 ___
  
 I need to load the associated entities to hibernate session at least it 
 could have given me ID. :(
  
  
  
 At the same time an udate method is working fine somehow ... !!! 
 uses hbmSession.saveorupdate(. 
 may be its just ignoring associated nulls... I have to yet check it 
 out.
  
 I have a presentation for this app tomorrow... 
  
 Help!!!. 
 Please!
  


-- 
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: RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Pheww,
 
Caught the culprit... The Locators.
---
 
@Override
 
*public* MyDto find(Class? *extends* MyDto clazz,*final* Integer id) {

*return *new MyDAO.findById(id);//Earilier - return create(clazz); 

}
-
 
Beware whenever you are going for the '*Eclipse RPC Generater.'   *
Rather I am thinking now I could have saved a lot of time and done this by 
using 'Reg-ex'
 
 

-- 
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.




RequestFactory Eagerly Fetches the collections in my entity meant to loaded Lazy

2013-02-15 Thread Aryan
Hi all,
RequestFactory seems to fetch whatever the collection I have in my 
ValueProxy eagarly.

Lets see the code
 
@Entity
public class Venue implements Serializable {
 
 private name;
 private Address address;
 
private  SetVenueContact contacts;

@OneToMany(fetch = FetchType.LAZY)
public SetVenueContact getVenueContactses() {
return this.contacts;
}

  // other getters and setters

}
Lets assume I have set everything else for RequestFactory and Hibernate 
(Hibernate standalone tests run fine) in order.
 
I call the below code from client:
 
requestFactory.venueRequest.findById(7).fire(new RecieverVenueProxy() {
 
  public void onSuccess(VenueProxy res) {
   log.info(I never get this :();
   }
});
 
In service method
 
public Venue findById() {
  //currently I am using a command pattern for a unit of transaction 
but anyway I just write simply whats happening
 
  // assume try catch and variable declaration code
 
  session = HibernateUtil.getSessionFactory.openSession();
  trx = session.getTrasaction(); 
  trx.beginTransaction();
  venue = veneuDao.findById(7);
  trx.commit();
  session.close();
}
 
##
Run Application and get this exception
org.hibernate.LazyInitializationException: failed to lazily initialize a 
collection of role: com.x..dto.Venue.contacts, no session or 
session was closed
 at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
 at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
 at 
org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368)
 at 
org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
 at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:186)
 at 
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:617)
 at 
com.google.web.bindery.requestfactory.server.Resolver.access$400(Resolver.java:50)
 at 
com.google.web.bindery.requestfactory.server.Resolver$PropertyResolver.visitReferenceProperty(Resolver.java:139)
 at 
com.google.web.bindery.autobean.shared.AutoBeanVisitor.visitCollectionProperty(AutoBeanVisitor.java:229)
 at 
com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:300)
 at 
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166)
 at 
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101)
 at 
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:395)
 at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:483)
 at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225)
 at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127)
 at 
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133
)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
 at 
com.x.x.x.PersistenceFilter.doFilter(PersistenceFilter.java:35)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
 at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at 
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at org.mortbay.jetty.Server.handle(Server.java:324)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
 at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
 at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
 

Re: GWT MVP Architecture

2012-09-14 Thread Aryan






On 14 Sep, 14:21, stuckagain david.no...@gmail.com wrote:
 Why does the view need to be a singleton ?

I guess why I am having view as singleton is having better performance
as I see views are expensive to create.
Not creating em everytime saves operation deep down like
Document.create - appendChild. and so the DOM manipulation
that saves time.


 Anyway, when you are done with the presenter, then you need to tell it so.
 In that case it can unregister any installed handlers.

 David



 On Thursday, September 13, 2012 8:09:30 PM UTC+2, Aryan wrote:
  Hi all,

  lets look at the code:

  public class MyView implements IMyView {

      Button click;
  .
      public HasClickHandlers getClick(){
                return click;
       }

  }

  public class MyPresenter {

     public interface IMyView {
            public HasClickHandlers getClick();
      }

      private IMyView view;

      public MyPresenter(IMyView view){
        this.view = view;
        bind();
      }

      private void bind(){
         view.addClickHandler(new ClickHandler(){
              public void onClick(ClickEvent e){
                  Window.alert(heeo);

              }
      }//binds end

   }// class ends

  //(We are not using Activities or any MVP framework)

  ok tats it. Now in applicaton the view is singleton. but the presenter are
  not, so they are made as and when needed like :

  MyPresenter p = new MyPresenter(view); //view is singleton throughout the
  application; assume getting it by some factory

  Now suppose after a while if I have created *10 MyPresenter *instance
  that will add *10 clickHandler *to button c*lick . So one click event
  will be handled 10 times by 10 different handlers.*
  **
  I can see here it as happening when click the button I get 10 times alert
  window.

  So where I misunderstood the MVP architecture, what I am missing.
  please help
  **
  Thanks in advance.- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT MVP Architecture

2012-09-13 Thread Aryan
Hi all,
 
lets look at the code:
 
public class MyView implements IMyView {
 
Button click;
.
public HasClickHandlers getClick(){
  return click;
 }
 
}
 
 
public class MyPresenter {
 
   public interface IMyView {
  public HasClickHandlers getClick();
}
 
private IMyView view; 
 
public MyPresenter(IMyView view){
  this.view = view;
  bind();
}
 
private void bind(){
   view.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent e){
Window.alert(heeo);
 
}
}//binds end
 
 }// class ends
 
//(We are not using Activities or any MVP framework)
 
ok tats it. Now in applicaton the view is singleton. but the presenter are 
not, so they are made as and when needed like :
 
MyPresenter p = new MyPresenter(view); //view is singleton throughout the 
application; assume getting it by some factory 
 
Now suppose after a while if I have created *10 MyPresenter *instance that 
will add *10 clickHandler *to button c*lick . So one click event will be 
handled 10 times by 10 different handlers.*
** 
I can see here it as happening when click the button I get 10 times alert 
window. 
 
So where I misunderstood the MVP architecture, what I am missing. 
please help
** 
Thanks in advance.
 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VQpvCfRbzLoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Create New Page in GWT

2009-10-31 Thread Aryan

Can Any one give me. any IDEA that How to Create New Page in GWT Using
Command line... ???
pls m not Using eclips
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



GWT compiler for HPUX

2008-09-23 Thread Aryan

Does GWT compile exist for HPUX? I rquire GWT compile for HPUX for
supporting runtime compilation when my GWT application is deployed in
HPUX machine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---