You can't do that. But you can map your home page to different url
(e.g. /home) and wicket will redirect automatically.

-Matej

On Wed, Mar 19, 2008 at 12:57 AM, Matthew Young <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  How to make HybridUrlCodingStrategy work on home page if my
>  contextpath="/"?  HybridUrlCodingStrategy doesn't allow mapping "/".
>
>
>
>  On Tue, Mar 18, 2008 at 11:52 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
>  > Hi,
>  >
>  > you can mount your page using HybridUrlCodingStrategy. Then it should
>  > automatically redirect to URL that has page instance information in
>  > it.
>  >
>  > -Matej
>  >
>  > On Tue, Mar 18, 2008 at 7:48 PM, Matthew Young <[EMAIL PROTECTED]> wrote:
>  > > Thank you Matej and Igor.  I learned several new things.
>  >  IAjaxCallDecorator
>  > >  is very cool and I did not realize <wicket:link> works on stylesheet
>  > ref,
>  > >  too. The wiki here:
>  > >
>  > 
> http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags
>  > >  make it seem like it only work with <a href> and <img src>.
>  > >
>  > >  Igor: I'm not very on this one ("src wmc"):
>  > >
>  > >
>  > >  > you can just create an anon subclass of src wmc and subclass
>  > >  >oncomponenttag() directly and save some space.
>  > >
>  > >  Do you mean this:
>  > >
>  > >         WebMarkupContainer img = new WebMarkupContainer("thumbnail") {
>  > >             private static final long serialVersionUID = 1L;
>  > >             @Override protected void onComponentTag(final ComponentTag
>  > tag){
>  > >                 super.onComponentTag(tag);
>  > >                 tag.put("src", thumbnailUrl);
>  > >             }
>  > >         };
>  > >
>  > >
>  > >  == I have a couple of questions: ==
>  > >
>  > >  In Ajax mode, the browser address always show:
>  > >
>  > >     http://localhost:8080
>  > >
>  > >  so if I refresh, I get a new page, not the same existing page.  How can
>  > I
>  > >  have the address like this:
>  > >
>  > >     http://localhost:8080/?wicket:interface=:0:1:::
>  > >
>  > >  so on refresh I get the same page (like in non-Ajax mode)?
>  > >
>  > >  2) When something goes wrong in Flickr, I throw a RuntimeException
>  > which
>  > >  blows up in ListView's model.getObject().  I want to Ajax update the
>  > >  feedbackPanel to show some error message. How can this be done?
>  > >
>  > >  Thank you very much.
>  > >
>  > >
>  > >  On Mon, Mar 17, 2008 at 3:15 PM, Igor Vaynberg <[EMAIL PROTECTED]
>  > >
>  > >  wrote:
>  > >
>  > >
>  > >
>  > > > there are a couple of things i would change
>  > >  >
>  > >  > 1) add(new StyleSheetReference("pageCss", getClass(), "flickr.css"));
>  > >  >
>  > >  > do you really need that? can you not simply put link tag inside
>  > >  > wicket:link tags?
>  > >  >
>  > >  > 2) // Initially there is no photo to display so add a temporary place
>  > >  > holder component to make Wicket happy
>  > >  >
>  > >  > you dont need to do that, make loadable detachable model that is
>  > >  > pulling image links return an empty list if tags string is empty,
>  > that
>  > >  > way you add the listview right away and dont need that replace mambo
>  > >  > jumbo
>  > >  >
>  > >  > 3) Photo photo = (Photo) item.getModelObject(); item.add(new
>  > >  > Thumbnail("t", photo));
>  > >  >
>  > >  > im not a big fan of that, why not simply item.add(new Thumbnail("t",
>  > >  > item.getModel()));
>  > >  >
>  > >  > it makes code simpler, you dont load the model object needlessly, and
>  > >  > it makes thumbnail more flexible by taking an imodel.
>  > >  >
>  > >  > 4) img.add(new SimpleAttributeModifier("src", photo.getSmallSquareUrl
>  > ()));
>  > >  >
>  > >  > you can just create an anon subclass of src wmc and subclass
>  > >  > oncomponenttag() directly and save some space.
>  > >  >
>  > >  > pretty sweet tutorial though, thanks
>  > >  >
>  > >  > -igor
>  > >  >
>  > >  >
>  > >  > On Mon, Mar 17, 2008 at 1:04 PM, Matthew Young <[EMAIL PROTECTED]>
>  > wrote:
>  > >  > > Hi, I am new to Wicket and to help me learn, I created a Wicket
>  > version
>  > >  > of
>  > >  > >  the Flickr demo like the one on the Ruby on Rails site seen here
>  > >  > >  http://www.rubyonrails.org/screencasts. I put my version in my
>  > blog
>  > >  > here:
>  > >  > >  http://limboville.blogspot.com/2008_03_01_archive.html.  Please
>  > take a
>  > >  > look
>  > >  > >  and give me some feedback.
>  > >  > >
>  > >  > >  Thanks!
>  > >  > >
>  > >  >
>  > >  > ---------------------------------------------------------------------
>  > >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > >  > For additional commands, e-mail: [EMAIL PROTECTED]
>  > >  >
>  > >  >
>  > >
>  >
>  >
>  >
>  > --
>  > Resizable and reorderable grid components.
>  > http://www.inmethod.com
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to