[Wicket-user] urlPrefix in WebRequestCodingStrategy

2006-11-18 Thread jan_bar
Hi,

my wicket servlet has two different mappings:

servlet-mapping
servlet-nameWicketServlet/servlet-name
url-pattern/cs/app/*/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameWicketServlet/servlet-name
url-pattern/en/app/*/url-pattern
/servlet-mapping

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] fired concern

2006-11-18 Thread Potions Quest
Stocks Quotes in attachement

Inc is Sasp Blog Wikipedia am continued donations running Blogfrom in 
Weblogjump!
Mack is primaries officials grandson immigrants Altoona of moved senior.
Ok Meby promotions am items colson Musicthis?
Graphics gamesthis change under registered dcb is Unionrugby.
Adding Tsunami Medecins Sans Frontieres sms!
Showcbgb Historythe famed.

others.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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] General ProgressIndicator (wicket 2)

2006-11-18 Thread Eelco Hillenius
I don't think there is at this time. However, a contribution is
welcome (please use JIRA for that).

Eelco


On 11/17/06, Stefan Lindner [EMAIL PROTECTED] wrote:
 The fiel upload example contains an upload progress bar. But this component 
 seems to be hard wired to an file upload. Is there a general progress 
 indicator component? A mechanism thats reports the status of an operatioin 
 that is processes somewhere in the backend of n applicatioin?

 Stefan Linder

 -
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TextTemplateHeaderContributor

2006-11-18 Thread Manuel Alejandro de Brito Fontes
Thanks for the reply. That works perfect, my fault. I think that add 
(...) belongs to 1.x, and no that is a IBehavior.
One detail about add(TextTemplateHeaderContributor.forCss 
( Spinner.class,Spinner.css, new Model( (Serializable) cssMap ) ));  
is that the code is incorporated in the head of the html writing the  
code.
I create an alternative

new StyleSheetReference( this, spinnerCSS,
new ResourceReference( Spinner.css, spinnerCSS.css ) {

private static final long serialVersionUID =  
-5001445753978421349L;

@Override
protected Resource newResource() {

final PackagedTextTemplate template = new  
PackagedTextTemplate( Spinner.class, Spinner.css );
template.interpolate( cssMap );

final Resource oResult = new Resource() {

private static final long 
serialVersionUID = 0L;

@Override
public IResourceStream 
getResourceStream() {
return new StringResourceStream 
( template.asString() );
}
};

 return oResult;
 }
}

and

wicket:head
link type=text/css wicket:id=spinnerCSS/link
/wicket:head

in the markup.

Is not simple like TextTemplateHeaderContributor, but in the renderer  
html is more clean.

Again, thanks for the reply.

On 19-11-2006, at 2:10, Eelco Hillenius wrote:

 Did you add that to your page or component?

 add(TextTemplateHeaderContributor.forCss( Spinner.class,
 Spinner.css, new Model( (Serializable) cssMap ) ));

 (notice the add call)

 If you want to see this in action, take a look at
 wicket-contrib-yui(-examples) in the wicket-stuff repo
 (https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket- 
 contrib-yui)
 and check out the Slider component.

 Eelc


 On 11/17/06, Manuel Alejandro de Brito Fontes
 [EMAIL PROTECTED] wrote:

 Hi, I'm trying to do something similar like this
 (http://chillenious.wordpress.com/tag/wicket/page/2/) but
 instead of a dynamic javascript, i want to modify a css style.
 The next code is similar to the previous page:

 MapString, CharSequence cssMap = new MiniMapString,  
 CharSequence( 1 );
 cssMap.put( fieldWidth, txtWidth );

 TextTemplateHeaderContributor.forCss( Spinner.class,
 Spinner.css, new Model( (Serializable) cssMap ) );

 That works perfect, because if I print the content of the  
 template, the
 ${fieldWidth} is replaced by 12.
 System.out.println(TextTemplateHeaderContributor.forCss(
 Spinner.class, Spinner.css, new Model( (Serializable) cssMap ) ));




 But I don't see the code in the header. I'm missing something?.

 I'm using 2.0-SNAPSHOT (checkout from today)




 Thanks in advice.







 - 
 
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Manuel Alejandro de Brito Fontes
[EMAIL PROTECTED]

Any fool can write code that a computer can understand.
Good programmers write code that humans can understand.

   --- Martin Fowler, Refactoring: Improving the  
Design of Existing Code





-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user