Re: PlaceTokenizer with no (trailing) token

2011-02-28 Thread Thomas Broyer


On Saturday, February 26, 2011 10:12:53 AM UTC+1, George Moschovitis wrote:

 Is there a way to implement a place with no token?


No.
You can have a tokenizer with no prefix though, and map a place type to a 
token (and back) there.
 

 ie, have a tokenizer like this:

 @Prefix(prefix)
 public class MyTokenizer ... {
   ...
   @Override
   public String getToken(P place) {
 return null; 
   }
 }

 this one generates tokens like this:

 #prefix:null

 is there a way to get rid of ':null' ?


See http://code.google.com/p/google-web-toolkit/issues/detail?id=5899#c1
http://code.google.com/p/google-web-toolkit/issues/detail?id=5899#c1 

-- 
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: PlaceTokenizer with no (trailing) token

2011-02-27 Thread ciosbel
I think you have to play around with
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/app/place/AbstractPlaceHistoryHandler.java?r=8815
but i've never tried.

If you have luck, just tell us.

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



PlaceTokenizer with no (trailing) token

2011-02-26 Thread George Moschovitis
Is there a way to implement a place with no token?

ie, have a tokenizer like this:

@Prefix(prefix)
public class MyTokenizer ... {
  ...
  @Override
  public String getToken(P place) {
return null; 
  }
}

this one generates tokens like this:

#prefix:null

is there a way to get rid of ':null' ?

thanks,
-g.

-- 
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: PlaceTokenizer with no (trailing) token

2011-02-26 Thread David Chandler
Curious, that. You could return .

/dmc

On Sat, Feb 26, 2011 at 4:12 AM, George Moschovitis 
george.moschovi...@gmail.com wrote:

 Is there a way to implement a place with no token?

 ie, have a tokenizer like this:

 @Prefix(prefix)
 public class MyTokenizer ... {
   ...
   @Override
   public String getToken(P place) {
 return null;
   }
 }

 this one generates tokens like this:

 #prefix:null

 is there a way to get rid of ':null' ?

 thanks,
 -g.

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: PlaceTokenizer with no (trailing) token

2011-02-26 Thread George Moschovitis
then it generates:

#prefix:

it would be nice to have a way to remove the trailing :

-g.

 

 Curious, that. You could return .

 this one generates tokens like this:

 #prefix:null

 is there a way to get rid of ':null' ?

 thanks,
 -g.

 -- 
 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-we...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-tool...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.




 -- 
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w: http://code.google.com/
 b: http://googlewebtoolkit.blogspot.com/
 t: @googledevtools
  

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