Re: [Wicket-user] Different MarkupContainer in (wicket.extensions.markup.html.tree)Tree

2006-11-19 Thread Matej Knopp
I assume you are using 1.x.
If you need functionality like that, you should derive your tree from 
DefaultAbstractTree and specify the markup (you can use the markup from 
the Tree class). That way you can e.g. put a panel to tree node.

Just look like the Tree class is done and try to do something similar.

-Matej

Peter Klassen wrote:
> Hi all,
> i am searching for an approach to get different types of 
> MarkupContainers for the different levels of nodes in a tree. E.g. at a 
> root i want to define a panel. For a node, i want to define another 
> panel including some labels, links and icons.
> 
> The problem is the markup which is defined once in the html file for 
> every type of node in the tree.
> Anyone a good idea?
> 
> Thx for every answer in advance.
> Cheers, Peter
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Different MarkupContainer in (wicket.extensions.markup.html.tree)Tree

2006-11-19 Thread Peter Klassen
Hi all,
i am searching for an approach to get different types of 
MarkupContainers for the different levels of nodes in a tree. E.g. at a 
root i want to define a panel. For a node, i want to define another 
panel including some labels, links and icons.

The problem is the markup which is defined once in the html file for 
every type of node in the tree.
Anyone a good idea?

Thx for every answer in advance.
Cheers, Peter

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] who wants to be in charge of doing wicket-stuff releases

2006-11-19 Thread Eelco Hillenius
Is there anyone who likes to volunteer for doing releases of some of
the wicket-stuff projects? We (the core team) just can't find enough
time for it, and furthermore, we want to keep focussed on the core
project instead.

The projects do not need a lot of releasing, though most projects in
there could use a release right now. The release manager for
wicket-stuff would basically ensure that version numbers are upped
when projects are changed and that - if they are changed - a release
is made every once in a while. He/ she can of course delegate creating
the actual release to the 'owners' of particular projects. Another
task of the release manager is to put out a notice (e.g. on this list
and/ or on a blog) that a new release is done. And finally he/ she
might do some work on the wicket-stuff web site.

Any takers?

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Igor Vaynberg

you have to version properties if you want back button support



public void setExternalSrc(boolean externalSrc) {



   if (externalSrc!=this.externalSrc) {
   final boolean old=this.externalSrc;
   addStatChange(new Change() { void undo() { this.externalSrc=old;
}});
   }


this.externalSrc = externalSrc;
}
}




-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2006-11-19 Thread Johan Compagner

ahh ofcourse stupid me

On 11/19/06, Matej Knopp <[EMAIL PROTECTED]> wrote:


Wouldn't a page factory be actually better solution? It could take an
existing page from pagemap and return it. Seems to me easier than custom
request target resolver strategy.

-Matej

Johan Compagner wrote:
> subclass: DefaultRequestTargetResolverStrategy
> and then resolveBook
>
> and do what ever you want there. But don't just return a page from a
> application wide pool
>
> johan
>
>
> On 11/3/06, [EMAIL PROTECTED] *
> <[EMAIL PROTECTED] > wrote:
>
> John,
>
> when I use bookmarkable urls I get every time I reload the page
> a new instance. Is there a way to avoid this?
>
> Maciej
>
>  > -Ursprüngliche Nachricht-
>  > Von: wicket-user@lists.sourceforge.net
> 
>  > Gesendet: 03.11.06 16:30:22
>  > An: wicket-user@lists.sourceforge.net
> 
>  > Betreff: Re: [Wicket-user] Strategy to avoid new instances of
> pages and panels
>
> what do you mean with reloads the page?
>  >
>  > A normal refresh (if url is wicket:interface=xxx) then a page is
> not recreated.
>  > Or do you mean bookmarkable urls?
>  >
>  > Other links like pageLinks or your own links you can do what ever
> you want with pooling pages.
>  >
>  >
>  > johan
>  >
>  >
>  >
>  >
>  > On 11/3/06, [EMAIL PROTECTED]
>  <[EMAIL PROTECTED]
> 
>  > > wrote:Hi all!
>  >
>  > I am looking for a pattern, strategy or code example how to avoid
> creation of new page Instances when a user reloads a page. Can
> someone give my a hint how to achieve following behaviour:
>  >
>  >
>  > - "static" pages which have only a single instance during whole
> application lifecycle ?
>  > - some kind of page and/or factory or proxy to reuse instances?
>  >
>  > Any best practice or some examples would be nice.
>  >
>  >
>  > Thank you very much,
>  >
>  > Maciej Bednarz
>  >
>  >
>  >
>  >
>
-
>  > Using Tomcat but need to do more? Need to support web services,
> security?
>  > Get stuff done quickly with pre-integrated technology to make
> your job easier
>  >
>  > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>  >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>  >
>  > ___
>  > Wicket-user mailing list
>  > Wicket-user@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/wicket-user
>  >
>  >
>  > -
>  >
>
-
>  > Using Tomcat but need to do more? Need to support web services,
> security?
>  > Get stuff done quickly with pre-integrated technology to make
> your job easier
>  > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>  >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>  >
>  > -
>  > ___
>  > Wicket-user mailing list
>  > Wicket-user@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/wicket-user
>  >
>
> --
> mfG
>
> Bednarz, Hannover
>
>
-
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
> 
>
>
-
> Using Tomcat but need to do more? Need to support web services,
security?
>

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Juergen Donnerstag:

> That is added by default

So, the  links are  already transformed automagically  without the
need to do anything more?  I have to check that.
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
That is added by default

Juergen

On 11/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
> * Juergen Donnerstag:
>
> > ApplicationSettings.getContextPath() and PrependContextPathHandler
>
> Thanks Juergen,
>
> PrependContextPathHandler  seems to  be  what we  are looking  for
> indeed.  But  what does it mean  «This is a markup  inline filter
> which by  default is added  to the  list of markup  filters.»  It
> suggests that I don't have to do  anything to use it, but the next
> sentence indicates how to use it...
> --
>  Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Francisco Treacy
Hi all,

I know I'm not addressing the exact issue, but just my two cents:

I needed to dynamically specify the src attribute of the img tag, and I 
couldn't find great examples for doing this. And I adopted the following:

WebMarkupContainer flag = new WebMarkupContainer("flag-image-path");
flag.add(new SimpleAttributeModifier("src", 
Application.get().getApplicationSettings().getContextPath() + File.separator + 
"images/flags/" + entry.getPhoto().getLocation().getCountry().toLowerCase() + 
".png"));
add(flag);

It worked but I wasn't deeply convinced with it. As I have to do this type of 
stuff quite often in my code, and, moreover, I thought it wasn't the cleanest 
way possible (I prefer to leave paths like 'images/flags' and '.png' in my HTML 
page), I wrote a WebComponent that maybe some people could find useful.

Basically, it watchs the 'src' attribute, looking for the @DYNAMIC@ placeholder 
that it inserts the specified value at java code level. I also added the 
external flag, to point to dynamic external image sources.

I use it a lot, although I don't know if it has a good "wicket approach". Let 
me know if anything's wrong with it. Here it goes:

public class DynamicPathImage extends WebComponent {

private static final long serialVersionUID = 1L;

private boolean externalSrc = false;

public DynamicPathImage(String id, String text) {
super(id, new Model(text));
}

@Override
public void onComponentTag(final ComponentTag tag) {
checkComponentTag(tag, "img");
String dynamicText = getModelObjectAsString();
super.onComponentTag(tag);

String src = (String) tag.getAttributes().getString("src");
if (src != null && src.contains("@DYNAMIC@")) {
src = src.replaceAll("@DYNAMIC@", dynamicText);
} else {
src = dynamicText;
}

if (isExternalSrc()) {
tag.put("src", src);
} else {
tag.put("src", 
Application.get().getApplicationSettings().getContextPath() + File.separator + 
src);
}
}

public boolean isExternalSrc() {
return externalSrc;
}

public void setExternalSrc(boolean externalSrc) {
this.externalSrc = externalSrc;
}
}

...and in my page I would call it like this:

// Set path for the country flag image

add(new DynamicPathImage("flag-image-path", 
entry.getPhoto().getLocation().getCountry().toLowerCase()));


If I need to include a dynamic path not in my Wicket-enabled application:

// Set path for the main photo
DynamicPathImage photo = new DynamicPathImage("entry-image-path", PHOTO_DIR_URL 
+ entry.getPhoto().getImagePath());
photo.setExternalSrc(true);
add(photo);

Thanks,
Francisco







___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] onSelectionChanged returning null value for newSelection

2006-11-19 Thread Dipu
Hi All, 

I am trying to set wantOnSelectionChangedNotifications on a dropdown choice, 
when i do that it does the roundtrip but i am getting null value for the 
newSelection, 
any ideas why , i am using wicket 1.2.1

Pasting the code snippen below.


DropDownChoice promotionType = new 
DropDownChoice("promotionType",promotion_Types, new PromotionTypeRenderer())
{
 protected void onSelectionChanged(final Object newSelection)
 {
  System.out.println(newSelection);
}

protected boolean wantOnSelectionChangedNotifications()
{
return true;
}
};
add(promotionType);


HTML 


option-1
option-2



Regards
Dipu-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Juergen Donnerstag:

> ApplicationSettings.getContextPath() and PrependContextPathHandler

Thanks Juergen,

PrependContextPathHandler  seems to  be  what we  are looking  for
indeed.  But  what does it mean  « This is a markup  inline filter
which by  default is added  to the  list of markup  filters. »  It
suggests that I don't have to do  anything to use it, but the next
sentence indicates how to use it...
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2006-11-19 Thread Matej Knopp
Wouldn't a page factory be actually better solution? It could take an
existing page from pagemap and return it. Seems to me easier than custom
request target resolver strategy.

-Matej

Johan Compagner wrote:
> subclass: DefaultRequestTargetResolverStrategy
> and then resolveBook
> 
> and do what ever you want there. But don't just return a page from a 
> application wide pool
> 
> johan
> 
> 
> On 11/3/06, [EMAIL PROTECTED] * 
> <[EMAIL PROTECTED] > wrote:
> 
> John,
> 
> when I use bookmarkable urls I get every time I reload the page
> a new instance. Is there a way to avoid this?
> 
> Maciej
> 
>  > -Ursprüngliche Nachricht-
>  > Von: wicket-user@lists.sourceforge.net
> 
>  > Gesendet: 03.11.06 16:30:22
>  > An: wicket-user@lists.sourceforge.net
> 
>  > Betreff: Re: [Wicket-user] Strategy to avoid new instances of
> pages and panels
> 
> what do you mean with reloads the page?
>  >
>  > A normal refresh (if url is wicket:interface=xxx) then a page is
> not recreated.
>  > Or do you mean bookmarkable urls?
>  >
>  > Other links like pageLinks or your own links you can do what ever
> you want with pooling pages.
>  >
>  >
>  > johan
>  >
>  >
>  >
>  >
>  > On 11/3/06, [EMAIL PROTECTED]
>  <[EMAIL PROTECTED]
> 
>  > > wrote:Hi all!
>  >
>  > I am looking for a pattern, strategy or code example how to avoid
> creation of new page Instances when a user reloads a page. Can
> someone give my a hint how to achieve following behaviour:
>  >
>  >
>  > - "static" pages which have only a single instance during whole
> application lifecycle ?
>  > - some kind of page and/or factory or proxy to reuse instances?
>  >
>  > Any best practice or some examples would be nice.
>  >
>  >
>  > Thank you very much,
>  >
>  > Maciej Bednarz
>  >
>  >
>  >
>  >
> -
>  > Using Tomcat but need to do more? Need to support web services,
> security?
>  > Get stuff done quickly with pre-integrated technology to make
> your job easier
>  >
>  > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>  >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
>  >
>  > ___
>  > Wicket-user mailing list
>  > Wicket-user@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/wicket-user
>  >
>  >
>  > -
>  >
> -
>  > Using Tomcat but need to do more? Need to support web services,
> security?
>  > Get stuff done quickly with pre-integrated technology to make
> your job easier
>  > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>  >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
>  >
>  > -
>  > ___
>  > Wicket-user mailing list
>  > Wicket-user@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/wicket-user
>  >
> 
> --
> mfG
> 
> Bednarz, Hannover
> 
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integra

Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2006-11-19 Thread Johan Compagner

subclass: DefaultRequestTargetResolverStrategy
and then the method resolveBookmarkablePage(final RequestCycle requestCycle,
final RequestParameters requestParameters)

then create a new:
public CompoundRequestCycleProcessor(IRequestCodingStrategy
requestCodingStrategy,
   IRequestTargetResolverStrategy requestTargetResolverStrategy,
   IEventProcessorStrategy eventProcessorStrategy,
IResponseStrategy responseStrategy,
   IExceptionResponseStrategy exceptionResponseStrategy)

with your subclass of RequestTargetResolverStrategy

And override the method in  WebApplication
   protected IRequestCycleProcessor newRequestCycleProcessor()
   {
   return new  CompoundRequestCycleProcessor(new
WebRequestCodingStrategy(),new Your
RequestTargetResolverStrategy(),null,null,null);
   }




johan

On 11/17/06, Wilson <[EMAIL PROTECTED]> wrote:



Hi Johan,

I am having problems with new instances caused by bookmarkable pages.

I was unable to find how to provide my own implementation of
IRequestTargetResolverStrategy. Probably I must override a method
somewhere,
but I was unable to find it.

How do I provide my implementation to IRequestTargetResolverStrategy?

Tks,

Wilson


subclass: DefaultRequestTargetResolverStrategy
and then resolveBook

and do what ever you want there. But don't just return a page from a
application wide pool

johan


On 11/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> John,
>
> when I use bookmarkable urls I get every time I reload the page
> a new instance. Is there a way to avoid this?
>
> Maciej
>

--
View this message in context:
http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a7407830
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Johan Compagner

yes,

just set the context path in the settings when you are behind a
proxy/virtual host.
then it should work. Please let us know what situation doesn't work for you
that you expect to work.

johan


On 11/19/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:


ApplicationSettings.getContextPath() and PrependContextPathHandler

Juergen

On 11/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
> * Juergen Donnerstag:
>
> > Please  take a  look at  the examples. They  are usually  a good
> > source for informaton. As far as I can tell, in Wicket you don't
> > need it, at least I didn't.
>
> It works in the general case if you use relative paths, for
> example: 
>
> But if you use WebApplication.mount(), those links cease to
> reference the proper resource as in this case we need an absolute
> path, and thus referencing the context path.
> --
>  Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] urlPrefix in WebRequestCodingStrategy

2006-11-19 Thread Johan Compagner

hmm, this is the first time that i see this that someone uses 2 url mappings
for the wicket servlet.
This is currently not supported yes. And i don't know if we should because
in wicket 2.0 this changes again because of the filter.
And a filter can only be mapped to one /cs/app/* (but mostly likely you
don't map a filter to anything)

can't you use this:

/app/*

and then have your bookmarkable pages mapped to /en en /cs
so that the outside urls get
/app/en
and
/app/cs

johan



On 11/18/06, jan_bar <[EMAIL PROTECTED]> wrote:


 Hi,

my wicket servlet has two different mappings:

WicketServlet
/cs/app/*


WicketServlet
/en/app/*


When the session is created, the "en" or "cs" part is used to recognize
language and this new locale is set to new session. Unfortunately wicket
caches urlPrefix in WebRequestCodingStrategy. It means that if the very
first request is on http://domain/context/en/app/something, the urlPrefix
is "/context/en/app" forever. When someone connects on
http://domain/context/cs/app/something, the Locale is set correctly, but
any links created will point to 
"/context/en/app/something".
I think that WebRequestCodingStrategy should set urlPrefix to null for each
new request.

Thanks, Jan

(wicket 1.2.3)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
ApplicationSettings.getContextPath() and PrependContextPathHandler

Juergen

On 11/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
> * Juergen Donnerstag:
>
> > Please  take a  look at  the examples. They  are usually  a good
> > source for informaton. As far as I can tell, in Wicket you don't
> > need it, at least I didn't.
>
> It works in the general case if you use relative paths, for
> example: 
>
> But if you use WebApplication.mount(), those links cease to
> reference the proper resource as in this case we need an absolute
> path, and thus referencing the context path.
> --
>  Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Juergen Donnerstag:

> Please  take a  look at  the examples. They  are usually  a good
> source for informaton. As far as I can tell, in Wicket you don't
> need it, at least I didn't.

It works in the general case if you use relative paths, for
example: 

But if you use WebApplication.mount(), those links cease to
reference the proper resource as in this case we need an absolute
path, and thus referencing the context path.
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
Please take a look at the examples. They are usually a good source for
informaton. As far as I can tell, in Wicket you don't need it, at
least I didn't.

Juergen

On 11/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
> * Carfield Yim:
>
> > Astheuserwill   deploytheapplicationwith
> > difference  web  application  name,  like  http://host1/app1  or
> > http://host2/app2. The  URL  will  be  /app1/images/icon.jpg  or
> > /app2/images/icon.jpg  .  How  can  I  set  the  image  path  to
> > something  like $baseurl/images/icon.jpg  ?  I've  try to  setup
> >  at   but  the rendered  HTML don't
> > contain that elements.
>
> I  have the  same  problem and  Wicket does  not  seem to  address
> that.   Seems   like  we  have   to  use  a  template   for  that,
> like   wicket.extensions.util.resource.TextTemplate   to   replace
> $contextPath
>
> You don't  need to specify  the full  URL with host  name however,
> using an absolute path is sufficient.
> --
>  Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Carfield Yim:

> Astheuserwill   deploytheapplicationwith
> difference  web  application  name,  like  http://host1/app1  or
> http://host2/app2. The  URL  will  be  /app1/images/icon.jpg  or
> /app2/images/icon.jpg  .  How  can  I  set  the  image  path  to
> something  like $baseurl/images/icon.jpg  ?  I've  try to  setup
>  at   but  the rendered  HTML don't
> contain that elements.

I  have the  same  problem and  Wicket does  not  seem to  address
that.   Seems   like  we  have   to  use  a  template   for  that,
like   wicket.extensions.util.resource.TextTemplate   to   replace
$contextPath

You don't  need to specify  the full  URL with host  name however,
using an absolute path is sufficient.
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] atom Use following

2006-11-19 Thread harms
November October September is August July June may? Dont know who is to or 
trust no. Advertise in Previous Next raquo Muffins Votes Views Submitted.
See of location ghosts coming?
Be able saver.
Bubbles is fluid joint!
Everyone feels so or far away me Heavy.
Os or Windows is air Hockey plays very well looks like. Wish Asteroids scr or 
another?
Put in you just in takes much of. Dig dug many people internet object am 
tunnels ground.
Here Month Turkey war is Members Most.
Increased mobility right Golgi tendon organs nerve.
Gas redissolve During period am Once. Sponsored Searches Body Armor! Stuffmoney 
Stuffshop a Stuffvideo a Sponsored Searches Body Armor Hurricane is Hypnosis.
Did show signs including soft grip of strength.
Endings involved humans of motion in sense stimulated muscles. November October 
September is August July June may?

Thanks.gif
Description: GIF image
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user