Re: ResourceNameIterator for Mobile devices

2011-03-28 Thread Jeremy Thomerson
I didn't read your post in detail, but why not use the file extension as the "mobile" attribute? Unless you're planning on serving the same resources as both xml and html to the iphone device, etc. Just an idea - not fully fleshed out On Mon, Mar 28, 2011 at 6:05 PM, Bruno Borges wrote: > So th

Re: ResourceNameIterator for Mobile devices

2011-03-28 Thread Bruno Borges
So this is what I have for now. class MobileStreamLocator extends ResourceStreamLocator implements IResourceStreamLocator { public IResourceStream locate(final Class clazz, String path, final String style, final Locale locale, final String extension) { StringBuilder newExtensions = new StringBui

ResourceNameIterator for Mobile devices

2011-03-28 Thread Bruno Borges
I'm playing with Wurfl and mobile development on Wicket now and I was looking at ResourceNameIterator. It seems to be the best place to have an extended version of the resource stream locator algorithm. What I want to do is to get this: 1. _