GWT CellList custom template for Cell Items

2011-03-25 Thread Zed
By default CellList items rendered as column. I want to add float:Left
style to each item. I want them to display as a row. But every my
element in CellList is wrapped by CellList div. So I want to
customize that div style template. Is it possible?
I found in CellList.class sources interface :

 interface Template extends SafeHtmlTemplates {
@Template(div onclick=\\ __idx=\{0}\ class=\{1}\ style=
\outline:none;\ {2}/div)
SafeHtml div(int idx, String classes, SafeHtml cellContents);

@Template(div onclick=\\ __idx=\{0}\ class=\{1}\ style=
\outline:none;\ tabindex=\{2}\{3}/div)
SafeHtml divFocusable(int idx, String classes, int tabIndex,
SafeHtml cellContents);

@Template(div onclick=\\ __idx=\{0}\ class=\{1}\ style=
\outline:none;\ tabindex=\{2}\ accesskey=\{3}\{4}/div)
SafeHtml divFocusableWithKey(int idx, String classes, int
tabIndex, char accessKey, SafeHtml cellContents);
  }

Can I customize that? Or maybe there is another workaround way?

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



Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Zed
Thanks it works now. I'm happy.

On 25 мар, 18:07, Thomas Broyer t.bro...@gmail.com wrote:
 Override the CellList styles (pass an overridden CellList.Resource to the
 constructor) to add the appropriate CSS properties to cellListEvenItem and
 cellListOddItem.
 I'd recommend using display:inline-block instead of float:left though; have
 a look at the com/google/gwt/resources/client/inline-block.css for a
 cross-browser implementation.

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



External Images in CellTable cell

2011-03-11 Thread Zed
Hellow evreyone.
Does anybody know how to add external Images in to the CellTable
widget? (not Icons)
If I do it directly in string renderer like
public String render(java.lang.String obj) {
return obj == null ?  : img src=' + obj + ';
}

div style=outline:none;lt;img src=http://www.tirerack.com/images/
wheels/brandlogos/bbs.gifgt;/div

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



Re: External Images in CellTable cell

2011-03-11 Thread Zed
Thanks, I've done it as follows (added new abstract class ImageColumn,
don't know if it's the right way):
   table.addColumn(new ImageColumnTireBrandProxy() {

  Rendererjava.lang.String renderer = new
AbstractRendererjava.lang.String() {
 public String render(java.lang.String obj) {
   return obj == null ?  : String.valueOf(obj);
 }
  };

  @Override
  public String getValue(TireBrandProxy object) {
 return renderer.render(object.getBrandPictureUrl());
  }
   }, image);

   public abstract class ImageColumnT extends ColumnT, String {
public ImageColumn() {
super(new ImageCell());
}
   }

On 11 мар, 17:57, Thomas Broyer t.bro...@gmail.com wrote:
 Why don't you use an ImageCell? in that case, just return the image URL from
 your Column's getValue

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



Re: How to implement custom find methods in GWT+roo scaffolding app

2011-03-03 Thread Zed
http://forum.springsource.org/showthread.php?t=104652

On 2 мар, 15:26, Zed zed...@gmail.com wrote:
 As far as I see no one is going to answer me.
 I foundhttps://jira.springsource.org/browse/ROO-1595and if I got
 them right there is NO custom finder methods available at this time
 (it's still openned).
 Without them I can't use generated Request object and possibly all
 over stuff.
 If you don't want to explain just say am I right or not. If I can't
 use custom finder methods I just leave roo and do everything by hands.

 On 1 мар, 12:50, Zed zed...@gmail.com wrote:







  At the moment I moved forward. In ROO-931 its says us At the moment
  the gwt setup command generates request objects for all finder
  methods (from 
  herehttps://jira.springsource.org/browse/ROO-931?page=com.atlassian.jira).
  I added 'finder' using Roo shell command: finder add
  findEmployeesByDepartmentEquals
  After that Roo generated me an Aspect:

  privileged aspect Employee_Roo_Finder {

      public static Query
  Employee.findEmployeesByDepartmentEquals(String department) {
          if (department == null || department.length() == 0) throw new
  IllegalArgumentException(The department argument is required);
          EntityManager em = Employee.entityManager();
          Query q = em.createQuery(SELECT Employee FROM Employee AS
  employee WHERE employee.department = :department);
          q.setParameter(department, department);
          return q;
      }

  and added anotation to Employee.java:  @RooEntity(finders =
  {findEmployeesByDepartmentEquals})
  but no request objects generated. My EmployeeRequest.java (generated
  and maintained by Roo) looks as follows (I can't see finder methods
  there):

  @RooGwtMirroredFrom(org.springsource.roo.extrackgae.server.domain.Employee 
  )
  @ServiceName(org.springsource.roo.extrackgae.server.domain.Employee)
  public interface EmployeeRequest extends RequestContext {

      abstract Requestjava.lang.Long countEmployees();

      abstract
  Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.reque 
  st.EmployeeProxy
  findAllEmployees();

      abstract
  Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.reque 
  st.EmployeeProxy
  findEmployeeEntries(int firstResult, int maxResults);

      abstract
  Requestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProx 
  y
  findEmployee(Long id);

      abstract
  InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.Empl 
  oyeeProxy,
  java.lang.Void remove();

      abstract
  InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.Empl 
  oyeeProxy,
  java.lang.Void persist();

  }

  Tell me please where I'm wrong? How to make finder methods works?

  On 25 фев, 17:00, Zed zed...@gmail.com wrote:

       Hellow everyone, I started to deal with GWT+roo scaffolding ap and
   found the idea very cool. Thank you guys!
   But I found it hard for me to understanf how to implement custom
   find methods like for example -  findAllEmployeesByName.
   I looked all the documentations and it's written there that I can add
   this method to Entity object itself like this:

    @RooJavaBean
    @RooToString
    @RooEntity
   public class Employee {

   .

       @NotNull
       private String displayName;

       @SuppressWarnings(unchecked)
       public static ListEmployee findAllEmployeesByName(String name){
           return entityManager().createQuery(select ... from Employee
   o).getResultList();
       }}

   I added it but nothing happend. No code generation started.
   I see all finder methods are in Aspects which are generated by Roo
   itself and I can't put my code there.
   Can you guys give me some hint please.

   With respect
   Andrew Efremov

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



Re: How to implement custom find methods in GWT+roo scaffolding app

2011-03-02 Thread Zed
As far as I see no one is going to answer me.
I found https://jira.springsource.org/browse/ROO-1595 and if I got
them right there is NO custom finder methods available at this time
(it's still openned).
Without them I can't use generated Request object and possibly all
over stuff.
If you don't want to explain just say am I right or not. If I can't
use custom finder methods I just leave roo and do everything by hands.

On 1 мар, 12:50, Zed zed...@gmail.com wrote:
 At the moment I moved forward. In ROO-931 its says us At the moment
 the gwt setup command generates request objects for all finder
 methods (from 
 herehttps://jira.springsource.org/browse/ROO-931?page=com.atlassian.jira).
 I added 'finder' using Roo shell command: finder add
 findEmployeesByDepartmentEquals
 After that Roo generated me an Aspect:

 privileged aspect Employee_Roo_Finder {

     public static Query
 Employee.findEmployeesByDepartmentEquals(String department) {
         if (department == null || department.length() == 0) throw new
 IllegalArgumentException(The department argument is required);
         EntityManager em = Employee.entityManager();
         Query q = em.createQuery(SELECT Employee FROM Employee AS
 employee WHERE employee.department = :department);
         q.setParameter(department, department);
         return q;
     }

 and added anotation to Employee.java:  @RooEntity(finders =
 {findEmployeesByDepartmentEquals})
 but no request objects generated. My EmployeeRequest.java (generated
 and maintained by Roo) looks as follows (I can't see finder methods
 there):

 @RooGwtMirroredFrom(org.springsource.roo.extrackgae.server.domain.Employee )
 @ServiceName(org.springsource.roo.extrackgae.server.domain.Employee)
 public interface EmployeeRequest extends RequestContext {

     abstract Requestjava.lang.Long countEmployees();

     abstract
 Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.reque 
 st.EmployeeProxy
 findAllEmployees();

     abstract
 Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.reque 
 st.EmployeeProxy
 findEmployeeEntries(int firstResult, int maxResults);

     abstract
 Requestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProx y
 findEmployee(Long id);

     abstract
 InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.Empl 
 oyeeProxy,
 java.lang.Void remove();

     abstract
 InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.Empl 
 oyeeProxy,
 java.lang.Void persist();

 }

 Tell me please where I'm wrong? How to make finder methods works?

 On 25 фев, 17:00, Zed zed...@gmail.com wrote:







      Hellow everyone, I started to deal with GWT+roo scaffolding ap and
  found the idea very cool. Thank you guys!
  But I found it hard for me to understanf how to implement custom
  find methods like for example -  findAllEmployeesByName.
  I looked all the documentations and it's written there that I can add
  this method to Entity object itself like this:

   @RooJavaBean
   @RooToString
   @RooEntity
  public class Employee {

  .

      @NotNull
      private String displayName;

      @SuppressWarnings(unchecked)
      public static ListEmployee findAllEmployeesByName(String name){
          return entityManager().createQuery(select ... from Employee
  o).getResultList();
      }}

  I added it but nothing happend. No code generation started.
  I see all finder methods are in Aspects which are generated by Roo
  itself and I can't put my code there.
  Can you guys give me some hint please.

  With respect
  Andrew Efremov

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



Re: How to implement custom find methods in GWT+roo scaffolding app

2011-03-01 Thread Zed
At the moment I moved forward. In ROO-931 its says us At the moment
the gwt setup command generates request objects for all finder
methods (from here
https://jira.springsource.org/browse/ROO-931?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs).
I added 'finder' using Roo shell command: finder add
findEmployeesByDepartmentEquals
After that Roo generated me an Aspect:

privileged aspect Employee_Roo_Finder {

public static Query
Employee.findEmployeesByDepartmentEquals(String department) {
if (department == null || department.length() == 0) throw new
IllegalArgumentException(The department argument is required);
EntityManager em = Employee.entityManager();
Query q = em.createQuery(SELECT Employee FROM Employee AS
employee WHERE employee.department = :department);
q.setParameter(department, department);
return q;
}

and added anotation to Employee.java:  @RooEntity(finders =
{findEmployeesByDepartmentEquals})
but no request objects generated. My EmployeeRequest.java (generated
and maintained by Roo) looks as follows (I can't see finder methods
there):

@RooGwtMirroredFrom(org.springsource.roo.extrackgae.server.domain.Employee)
@ServiceName(org.springsource.roo.extrackgae.server.domain.Employee)
public interface EmployeeRequest extends RequestContext {

abstract Requestjava.lang.Long countEmployees();

abstract
Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy
findAllEmployees();

abstract
Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy
findEmployeeEntries(int firstResult, int maxResults);

abstract
Requestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy
findEmployee(Long id);

abstract
InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy,
java.lang.Void remove();

abstract
InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy,
java.lang.Void persist();
}

Tell me please where I'm wrong? How to make finder methods works?

On 25 фев, 17:00, Zed zed...@gmail.com wrote:
     Hellow everyone, I started to deal with GWT+roo scaffolding ap and
 found the idea very cool. Thank you guys!
 But I found it hard for me to understanf how to implement custom
 find methods like for example -  findAllEmployeesByName.
 I looked all the documentations and it's written there that I can add
 this method to Entity object itself like this:

  @RooJavaBean
  @RooToString
  @RooEntity
 public class Employee {

 .

     @NotNull
     private String displayName;

     @SuppressWarnings(unchecked)
     public static ListEmployee findAllEmployeesByName(String name){
         return entityManager().createQuery(select ... from Employee
 o).getResultList();
     }}

 I added it but nothing happend. No code generation started.
 I see all finder methods are in Aspects which are generated by Roo
 itself and I can't put my code there.
 Can you guys give me some hint please.

 With respect
 Andrew Efremov

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



Re: How to implement custom find methods in GWT+roo scaffolding app

2011-03-01 Thread Zed
At the moment I moved forward. In ROO-931 its says us At the moment
the gwt setup command generates request objects for all finder
methods (from here
https://jira.springsource.org/browse/ROO-931?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs).
I added 'finder' using Roo shell command: finder add
findEmployeesByDepartmentEquals
After that Roo generated me an Aspect:

privileged aspect Employee_Roo_Finder {

public static Query
Employee.findEmployeesByDepartmentEquals(String department) {
if (department == null || department.length() == 0) throw new
IllegalArgumentException(The department argument is required);
EntityManager em = Employee.entityManager();
Query q = em.createQuery(SELECT Employee FROM Employee AS
employee WHERE employee.department = :department);
q.setParameter(department, department);
return q;
}

and added anotation to Employee.java:  @RooEntity(finders =
{findEmployeesByDepartmentEquals})
but no request objects generated. My EmployeeRequest.java (generated
and maintained by Roo) looks as follows (I can't see finder methods
there):

@RooGwtMirroredFrom(org.springsource.roo.extrackgae.server.domain.Employee)
@ServiceName(org.springsource.roo.extrackgae.server.domain.Employee)
public interface EmployeeRequest extends RequestContext {

abstract Requestjava.lang.Long countEmployees();

abstract
Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy
findAllEmployees();

abstract
Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy
findEmployeeEntries(int firstResult, int maxResults);

abstract
Requestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy
findEmployee(Long id);

abstract
InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy,
java.lang.Void remove();

abstract
InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProxy,
java.lang.Void persist();
}

Tell me please where I'm wrong? How to make finder methods works?

On 25 фев, 17:00, Zed zed...@gmail.com wrote:
     Hellow everyone, I started to deal with GWT+roo scaffolding ap and
 found the idea very cool. Thank you guys!
 But I found it hard for me to understanf how to implement custom
 find methods like for example -  findAllEmployeesByName.
 I looked all the documentations and it's written there that I can add
 this method to Entity object itself like this:

  @RooJavaBean
  @RooToString
  @RooEntity
 public class Employee {

 .

     @NotNull
     private String displayName;

     @SuppressWarnings(unchecked)
     public static ListEmployee findAllEmployeesByName(String name){
         return entityManager().createQuery(select ... from Employee
 o).getResultList();
     }}

 I added it but nothing happend. No code generation started.
 I see all finder methods are in Aspects which are generated by Roo
 itself and I can't put my code there.
 Can you guys give me some hint please.

 With respect
 Andrew Efremov

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



How to implement custom find methods in GWT+roo scaffolding app

2011-02-25 Thread Zed
Hellow everyone, I started to deal with GWT+roo scaffolding ap and
found the idea very cool. Thank you guys!
But I found it hard for me to understanf how to implement custom
find methods like for example -  findAllEmployeesByName.
I looked all the documentations and it's written there that I can add
this method to Entity object itself like this:

 @RooJavaBean
 @RooToString
 @RooEntity
public class Employee {

.

@NotNull
private String displayName;

@SuppressWarnings(unchecked)
public static ListEmployee findAllEmployeesByName(String name){
return entityManager().createQuery(select ... from Employee
o).getResultList();
}
}
I added it but nothing happend. No code generation started.
I see all finder methods are in Aspects which are generated by Roo
itself and I can't put my code there.
Can you guys give me some hint please.

With respect
Andrew Efremov

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



Re: Connecting to site 127.0.0.1

2009-02-16 Thread Zed

I have the same problem, when using hosted mode - Connecting to site
127.0.0.1 and nothing happens.
Don't understand the reason, the problem appeared without any visible
trigger and now returns all the time.
It happens also when I run the server first time and after very long
stay periods.
Using gwt 1.5.3
Looking urgently for solution..

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