Re: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2012-05-10 Thread Nick Siderakis
Workaround for using "/" rather than ":" as the place delimiter post here 
http://puretech.siderakis.com/2012/05/custom-delimiter-in-gwt-places.html

On Thursday, January 20, 2011 11:58:30 AM UTC-5, Karthik Reddy wrote:
>
> Thanks Martin for opening an issue. Also, please feel to share with us any 
> code related to implementing your own PlaceHistoryMapper, Tokenizers ,  to 
> circumvent this issue. 
>
> This is an issue a lot of developers would eventually face . I would 
> encourage developers to star this issue in the aforementioned location. 
> Hopefully, the GWT team will pick it up for 2.3. 
>

-- 
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/-/EBC_s5NJFd8J.
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: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-20 Thread karthik . eleven
Thanks Martin for opening an issue. Also, please feel to share with us any 
code related to implementing your own PlaceHistoryMapper, Tokenizers ,  to 
circumvent this issue. 

This is an issue a lot of developers would eventually face . I would 
encourage developers to star this issue in the aforementioned location. 
Hopefully, the GWT team will pick it up for 2.3. 

-- 
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: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-20 Thread Martin Ždila
Hello

You can star the issue at 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5899.

Best regards
--
Martin Ždila

-- 
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: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-18 Thread chm124
Hi
I've read the notes from karthik reddy and the following answers from
Thomas Broyer.
Simply said i want to do the same like karthik asked for in the
initial posting.
I've also read Th.Broyers articles about (GWT-2.1) activities and
places and also "Allow a fallback PlaceTokenizer, or pre-
processor" (https://jira.springsource.org/browse/ROO-1276)  ... but,
to be honest, i do not completly understand all, yet. :(

I'm currently using GWT_2.2.1 (at time i cannot be more precise
concerning the version); and at time i use

// in MyModule.java i use the "standard/default classes"
AppPlaceHistoryMapper historyMapper =
GWT.create(AppPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new
PlaceHistoryHandler(historyMapper);
// ...
ActivityMapper activityMapper = new AppActivityMapper(clientFactory);
ActivityManager activityManager = new ActivityManager(activityMapper,
eventBus);

AppPlaceHistoryMapper is the "standard" from "HelloMvp"-demoApp:
@WithTokenizers({HomePlace.Tokenizer.class,
UserPrefsPlace.Tokenizer.class})
public interface AppPlaceHistoryMapper extends PlaceHistoryMapper {}

I can use now one time '@Prefix("")', but when i use '@Prefix("")'
several times, i got the following error:
"Deferred binding failed for
'ch.webmover.test.gwt.playgroundModul.client.mvp.AppPlaceHistoryMapper' (did
you forget to inherit a required module?) ..."

So what is (on GWT_2.1.1/mvp-framework) "best practice" to have more
flexability over historyToken-Places-Mapping?
Our Project isn't as simple as the HelloMVP,
i dream about tokens like '#contactList',
'#contactDetail;cid=5467946',
maybe also things like
'#campaign/setup',  '#campaign/start' ... which could be also
'#campaign:setup',  '#campaign:start' ... but several times the same
prefix seams to be forbidden. so ... what "exactly" should i do ...
... or, what concrete classes (implementing which interfaces) do i
have to implement?
In "GWT 2.1 Places – Part II" (http://tbroyer.posterous.com/gwt-21-
places-part-ii) "Using a factory for your PlaceTokenizer" Th.Broyers
taks about using PlaceHistoryHandlerWithFactory or
PlaceHistoryMapperWithFactory ...

i would be very thankful for a +/- precise guidance like in the way
of:
"implement concrete class Xyz which must implement $Interface ... etc.
etc."
Thanks in advance,
greez, _christoph


-- 
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: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-02 Thread Thomas Broyer


On Sunday, January 2, 2011 7:06:45 PM UTC+1, karthik reddy wrote:
>
> Thomas
>
> I see that you have submitted related to this.
>
> http://gwt-code-reviews.appspot.com/824801/show
>
> *"Then, the empty-prefix 
> (@Prefix("")) is special-cased to:
>
>  - not insert the ":" separator when generating tokens"
>
> *
> I guess, the patch has not made it to 2.1.1.
>

Yes it has: 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.1/user/src/com/google/gwt/place/impl/AbstractPlaceHistoryMapper.java?r=9485#44
 

-- 
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-tool...@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: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-02 Thread karthik reddy
I do not want to re-invent the wheel here if someone has already customized 
the behavior of the prefix by implementing the PlaceHistoryMapper  interface, 
as Thomas mentioned. If someone has already done it , would appreciate if 
you could provide the code samples.

Thomas

I see that you have submitted related to this.

http://gwt-code-reviews.appspot.com/824801/show

*"Then, the empty-prefix 
(@Prefix("")) is special-cased to:

 - not insert the ":" separator when generating tokens"

*
I guess, the patch has not made it to 2.1.1.

thanks

-- 
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-tool...@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: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-02 Thread Thomas Broyer
The PlaceHistoryMapper implementation generated by GWT.create() enforces 
these prefix+token pairs (it extends AbstractPlaceHistoryMapper), but 
PlaceHistoryHandler does not, and you can very well implement the 
PlaceHistoryMapper interface by yourself, using the "pattern" you like. In 
this case though, you have to do everything by yourself, you cannot benefit 
from the @WithTokenizers/@Prefix and/or factory that are used by the code 
generator.

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



Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-01 Thread karthik reddy
.#prefix:token  Vs ...#prefix   


I am trying to achieve the latter. Is there a way to do it??? 

Making prefix empty using @Prefix("") does not seem to cut it.

FYI:   The new google groups UI which seems to have to been built using GWT, 
is successfully able to do this but am not able to figure out how.

https://groups.google.com/forum/?fromgroups#!forum/google-web-toolkit


Would appreciate any thoughts/ideas

thanks

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