Re: how to mark wicket html response as cacheable?

2008-09-01 Thread ywtsang

thanks

how about skipping the content rendering?

i.e. how to just make the web page's response to include the headers only?


jWeekend wrote:
 
 One way is to override WebPage's setHeaders(WebResponse response) method
 and call setHeader on the passed in WebResponse.
 
 Regards - Cemal
  http://www.jWeekend.co.uk http://jWeekend.co.uk 
  
 
 ywtsang wrote:
 
 i want to set my html with last modified date in order to allow client
 side caching
 
 how can we do that in wicket?
 
 or we need to manipulate the response header directly?
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19249443.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Reloading parent window( panel in parent window) from popup window

2008-09-01 Thread Siju Kalathoor

Hi All,

can you please give some code reference / tips on how to do reload of
parent window and/or a panel in parent window , reloaded, from a popup
window?

I have a window iwht user details opened in a popup from parent window and
on submit of data in popup window, I need to relead a panel in parent
winodw?

thanks in advance.

best ergards,
Siju J Kalathoor
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com

Experience certainty.   IT Services
  Business Solutions
  Outsourcing


=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




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



Display Html page Using Popup

2008-09-01 Thread swapnil.wadagave

Hi ,
I am preparing  online help for my apps.So i want provide a link for every
page one popup will occur and in that popup he can bale to view respective
html/doc file.
but here pbms for me are where should i kept those help files and how do i
refer them using wickets.
I am refering this link
http://javathoughts.capesugarbird.com/2007/06/simple-context-sensitive-help-system.html
Do you have any furhter help for this.
I am not getting html at popup

Thanks and Regards,
swapnil
-- 
View this message in context: 
http://www.nabble.com/Display-Html-page-Using-Popup-tp19249694p19249694.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Dynamically adding components to RepeatingView

2008-09-01 Thread Sarkast

Hi there,

I'm unable to find a good solution to dynamically add elements to a
repeating view when an ajax call is coming in without reloading to whole
repeating view. I would also like to add the component to a specific place
in the repeating view, not at the end necessarily. Is that possible?

The only way I could find right now is having empty, invisible components
which I fill if needed. However this is quite ugly, especially since I don't
know how many placeholder components I need in advance.

Is there a simple solution?

- Tom

On a side note. I came across a problem where I need a sjax call :)  Is that
somewhere implemented or do I need to wrap an ajax call so it is
synchronous? (A javascript onclick event needs information from the server,
so that the user can select an option priour to sending the ajax request)


-- 
View this message in context: 
http://www.nabble.com/Dynamically-adding-components-to-RepeatingView-tp19250274p19250274.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Wicket Wizard Extra Textfield

2008-09-01 Thread John Bailey

Hello,

I'm fairly new to Wicket have been working with the Wizard extension. My problem 
is that in the form markup of the wizard there is the following:


div 
style=width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hiddeninput 
type=text autocomplete=false/.../div


I am writing an application which should be viewed on a mobile phone browser and 
I cannot rely on css working. Therefore, phones display this extra textfield.


I've tried overriding the form (with the newForm method), and the overview bar 
but had no success. Does anyone have any ideas on how I can stop this extra 
textfield from being added to the markup?


Thanks,

John


--
John Bailey, SkyCash
email: john.bailey at skycash.com, mobile: +48 694205152

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



Pageable JasperReport

2008-09-01 Thread freak182

Hello,

I checkout the wicket-jasperreport project i successfully play with it. Now
my problem is, i want a pagination functionality in the wicket-jasperreport
example. The report data that came from the db and it has 1,000 records
retrieved and i dont want to display that in pdf 1000 pages , (although pdf
reader has a pagination function and to minimize db query) , instead i want
a paging navigator. I just want a functionality just like DataView that
fetch every time the data from db when the link click. 

here is the code snippet from wicket-jasperreport

/**
 * Simple Jasper reports example with PDF output and a jasper reports
panel..
 * 
 * @author Eelco Hillenius
 */
public class SimplePdfPage extends WicketExamplePage implements Serializable
{
/**
 * Constructor.
 */
public SimplePdfPage()
{
ServletContext context = ((WebApplication)
getApplication()).getServletContext();
final File reportFile = new
File(context.getRealPath(/reports/ds_report_1.jasper));
final Map parameters = new HashMap();
JRResource pdfResource = new
JRHtmlResource(reportFile).setReportParameters(

parameters).setReportDataSource(createReportDataSource());
add(new EmbeddedJRReport(report, pdfResource));
}

...I want the JasperReport DataSource ( to be more precise
JRBeanCollectionDataSource) came from the paged list from the paging
navigator. Can someone point to me where should i start or what wicket
should i extend/implement or do some code changing?

Thanks a lot.
Cheers.

-- 
View this message in context: 
http://www.nabble.com/Pageable-JasperReport-tp19250292p19250292.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket Phonebook: Maven repos not available, can't build

2008-09-01 Thread pixotec



Martijn Dashorst wrote:
 
 and why even bother using mergere.com or devzus.com as a repo manager?
 

I just installed Maven 2.0.9under Windows, checked out the phonebook and die
mvn package.
I can not find the string mergere in the project's directory, so it must
be at a remote source...

nevertheless, after installing JTA by hand (how it was described in the
error message) everything works now...

now I have two good applications to look into:
- the phonebook
- the cheesr-shop of the ebook Wicket in Action that I bought ;-)
-- 
View this message in context: 
http://www.nabble.com/Wicket-Phonebook%3A-Maven-repos-not-available%2C-can%27t-build-tp19215315p19251706.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Processor 50% active all the time

2008-09-01 Thread Ronald Pieterse

Hello.

I have been using Wicket for some time now and noticed that my processor
activity is always at about 50%. When I start up my application server
(Resin 3.1.6) it is still ol but as soon as I call a page in the wicket app
it goes up.
With JProfiler I see that the most activity is caused by the
org.apache.wicket.util.thread.Task$1 class. Anyone any idea what could be
causing this problem? It is just a pretty standard wicket app using
authentication (using Swarm) but I eliminated that as to be the source of
the problem.

If you need more info please let me know.

Greetings,
Ronald

-- 
View this message in context: 
http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19251820.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket Phonebook: Maven repos not available, can't build

2008-09-01 Thread Martin Funk

pixotec wrote:


Martijn Dashorst wrote:
  

and why even bother using mergere.com or devzus.com as a repo manager?




I just installed Maven 2.0.9under Windows, checked out the phonebook and die
mvn package.
I can not find the string mergere in the project's directory, so it must
be at a remote source...

nevertheless, after installing JTA by hand (how it was described in the
error message) everything works now...

now I have two good applications to look into:
- the phonebook
- the cheesr-shop of the ebook Wicket in Action that I bought ;-)
  

yeah, cheers, have fun and feel welcome :-)

mf

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



Migrating code from 1.2 to 1.3

2008-09-01 Thread swapnil.wadagave


Hi i have code of wickets 1.2 the code snippnet is specified below,

((WebApplication) Application.get())
.getWicketServlet().getServletName()

I want to migrate this into 1.3.How i can get same thing with 1.3?

Thanks and Regards,
swapnil
-- 
View this message in context: 
http://www.nabble.com/Migrating-code-from-1.2-to-1.3-tp19252101p19252101.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Processor 50% active all the time

2008-09-01 Thread Martijn Dashorst
Start the application in deployment mode?

Martijn

On Mon, Sep 1, 2008 at 11:48 AM, Ronald Pieterse
[EMAIL PROTECTED] wrote:

 Hello.

 I have been using Wicket for some time now and noticed that my processor
 activity is always at about 50%. When I start up my application server
 (Resin 3.1.6) it is still ol but as soon as I call a page in the wicket app
 it goes up.
 With JProfiler I see that the most activity is caused by the
 org.apache.wicket.util.thread.Task$1 class. Anyone any idea what could be
 causing this problem? It is just a pretty standard wicket app using
 authentication (using Swarm) but I eliminated that as to be the source of
 the problem.

 If you need more info please let me know.

 Greetings,
 Ronald

 --
 View this message in context: 
 http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19251820.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Sending Ajaxrequest only if enter is pressed in a textfield

2008-09-01 Thread Sarkast

Hello, 

I hope I'm not spamming this forum too much -.-  I have a hard time finding
viable solutions for seemingly easy questions. 

Currently I want a textfield which will send a request only if either enter
is pressed or when the textfield looses focus.

I have an AjaxEventBehaviour implementation which does the following:
(the action in question is onkeydown or onblur in my case

protected CharSequence getEventHandler() {
if(action.equalsIgnoreCase(onkeydown)) {
CharSequence handler = super.getEventHandler();

String check = javascript: if (event.keyCode == 13) { ;
String endCheck =  return false; };

return check + handler + endCheck;
}
else {
return super.getEventHandler();
}
}


This works fine, the request gets fired when I want to. However the value of
the textfield isn't up to date. 

It works when I have the following

textField.add(new OnChangeAjaxBehavior() {

@Override
protected void onUpdate(AjaxRequestTarget arg0) {
//do nothing
}});

The Textfield has as a model a PropertyModel. Whenever I change something in
the textfield the value is send to the server, but I want this communication
taking place only if either enter is pressed or the textfield looses focus
(onblur). When I remove the OnChangeAjaxBehaviour then the Property name
isn't up to date...

I fail at putting it together the way I want to  can someone please
help?

- Tom



-- 
View this message in context: 
http://www.nabble.com/Sending-Ajaxrequest-only-if-enter-is-pressed-in-a-textfield-tp19252434p19252434.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Mount files outside container

2008-09-01 Thread Mathias P.W Nilsson

I will look into this immediately. 
-- 
View this message in context: 
http://www.nabble.com/Mount-files-outside-container-tp19232069p19252473.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Processor 50% active all the time

2008-09-01 Thread Ronald Pieterse

It is already running in deployment mode.


Martijn Dashorst wrote:
 
 Start the application in deployment mode?
 
 Martijn
 
 On Mon, Sep 1, 2008 at 11:48 AM, Ronald Pieterse
 [EMAIL PROTECTED] wrote:

 Hello.

 I have been using Wicket for some time now and noticed that my processor
 activity is always at about 50%. When I start up my application server
 (Resin 3.1.6) it is still ol but as soon as I call a page in the wicket
 app
 it goes up.
 With JProfiler I see that the most activity is caused by the
 org.apache.wicket.util.thread.Task$1 class. Anyone any idea what could be
 causing this problem? It is just a pretty standard wicket app using
 authentication (using Swarm) but I eliminated that as to be the source of
 the problem.

 If you need more info please let me know.

 Greetings,
 Ronald

 --
 View this message in context:
 http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19251820.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19252483.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Processor 50% active all the time

2008-09-01 Thread Martijn Dashorst
It is the modification watcher thread, which is turned off in
deployment mode. So either you have tweaked the settings, or don't run
in deployment mode.

Martijn

On Mon, Sep 1, 2008 at 12:44 PM, Ronald Pieterse
[EMAIL PROTECTED] wrote:

 It is already running in deployment mode.


 Martijn Dashorst wrote:

 Start the application in deployment mode?

 Martijn

 On Mon, Sep 1, 2008 at 11:48 AM, Ronald Pieterse
 [EMAIL PROTECTED] wrote:

 Hello.

 I have been using Wicket for some time now and noticed that my processor
 activity is always at about 50%. When I start up my application server
 (Resin 3.1.6) it is still ol but as soon as I call a page in the wicket
 app
 it goes up.
 With JProfiler I see that the most activity is caused by the
 org.apache.wicket.util.thread.Task$1 class. Anyone any idea what could be
 causing this problem? It is just a pretty standard wicket app using
 authentication (using Swarm) but I eliminated that as to be the source of
 the problem.

 If you need more info please let me know.

 Greetings,
 Ronald

 --
 View this message in context:
 http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19251820.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




 --
 View this message in context: 
 http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19252483.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Migrating code from 1.2 to 1.3

2008-09-01 Thread Michael Sparer

It is generally recommended to use WicketFilter in lieu of WicketServlet, the
filter can be accessed by Webapplication.getWicketFilter. If you can't move
to WicketFilter with your app, the Servlet spec recommends to  share
information using the ServletContext class and [to] perform shared business
logic by invoking methods on common non-servlet classes rather than
accessing Servlets directly.

hth
Michael

swapnil.wadagave wrote:
 
 
 Hi i have code of wickets 1.2 the code snippnet is specified below,
 
 ((WebApplication) Application.get())
 .getWicketServlet().getServletName()
 
 I want to migrate this into 1.3.How i can get same thing with 1.3?
 
 Thanks and Regards,
 swapnil
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Migrating-code-from-1.2-to-1.3-tp19252101p19253043.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Processor 50% active all the time

2008-09-01 Thread Ronald Pieterse

Got it. The following line caused thr problem:

getResourceSettings().setResourcePollFrequency(Duration.NONE);

pretty logcally also :-) took it out and now it works like a charm.
Thnx for getting me on the way!

Ronald


Martijn Dashorst wrote:
 
 It is the modification watcher thread, which is turned off in
 deployment mode. So either you have tweaked the settings, or don't run
 in deployment mode.
 
 Martijn
 
 On Mon, Sep 1, 2008 at 12:44 PM, Ronald Pieterse
 [EMAIL PROTECTED] wrote:

 It is already running in deployment mode.


 Martijn Dashorst wrote:

 Start the application in deployment mode?

 Martijn

 On Mon, Sep 1, 2008 at 11:48 AM, Ronald Pieterse
 [EMAIL PROTECTED] wrote:

 Hello.

 I have been using Wicket for some time now and noticed that my
 processor
 activity is always at about 50%. When I start up my application server
 (Resin 3.1.6) it is still ol but as soon as I call a page in the wicket
 app
 it goes up.
 With JProfiler I see that the most activity is caused by the
 org.apache.wicket.util.thread.Task$1 class. Anyone any idea what could
 be
 causing this problem? It is just a pretty standard wicket app using
 authentication (using Swarm) but I eliminated that as to be the source
 of
 the problem.

 If you need more info please let me know.

 Greetings,
 Ronald

 --
 View this message in context:
 http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19251820.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




 --
 View this message in context:
 http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19252483.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Processor-50--active-all-the-time-tp19251820p19253189.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem with multiple browser windows and locked page maps

2008-09-01 Thread Jan Stette
Johan,

I've had a look at doing the workaround you suggest, but I don't know
Wicket's internals enough to fully understand where to plug it in.  In the
constructor of a page, I can check the page map name, but how would I do the
redirect here?  Conversely, I can override onBeginRequest() in the request
cycle, but in this case, how would I check the page map name and access
other page details in order to redirect to the same page?  Sorry if I'm
being dim here, but some more details would be greatly appreciated.

And yes, pages shouldn't take a long time to load, it's just that in some
applications it's hard to guarantee that it will never happen, and we'd like
to handle all cases to make our application as robust as possible.

Regards,
Jan


2008/8/29 Johan Compagner [EMAIL PROTECTED]

 Yes your observation is exactly what i described.

 What you can do is for example check in the constructor (with pagemap
 param) or in onbegin request (before render) of a page, if the pagemap
 is the default, if it is create the same page with a new  pagemap and
 redicect to that one.

 Whay you want is that the default pagemap is never used, by defaul all
 pages are going into that

 But you should check if you really want long running processes like that!

 Jihan

 On 8/29/08, Jan Stette [EMAIL PROTECTED] wrote:
  Thanks for your answers, Matej and Johan.
 
  Matej: we are running with multi-window support on, and store per-window
  related navigation in the session keyed on page map name.  This works
 fine
  most of the time.
 
  Johan: I've been stepping through the Wicket code and studying the docs
 to
  understand how it deals with new windows, and I think I'm starting to
  understand what's happening, and your comments about default page maps.
 
  Basically what seems to be the case is that the inital window in a
 session
  never receives its own page map name, it stays on the default one.  This
  means that this initial window is indistinguishable from a brand new
 window
  that hasn't yet had a page map name allocated and been redirected to a
 page
  with this set.  I've done some tests which seem to confirm this
 hypothesis:
 
  - I open an initial browser window on my application (window 1)
  - I open a second window in the same session (window 2)
 
  If a start a long-running operation in window 1, any new windows created
  will lock until window 1's operation has been completed.
  However, if I start the long-running operation in window 2, I can open
 new
  windows to my heart's content and they will not block.
 
  Does that make sense, is this an accurate description of the problem?
 
  It seems odd that the initial window is never allocated a page map name,
  which leads to this assymtry between windows.  Is this something that can
 be
  fixed?  Or even better, can I do something my side in order to force any
  window/page map opened against a session to have a unique name allocated?
 
  Regards,
  Jan
 
 
  2008/8/29 Johan Compagner [EMAIL PROTECTED]
 
  And even with that check it will not work.
  If you open a new tab then the first page wicket will render when you
  type in an url will be the defaul pagemap. Only on the first page
  rendered we know that we have to redirect. So that first page will be
  blocked. The only thing that could maybe help is never use the defaul
  pagemap. So always use from the first page on a differnt one. And if
  you then see that a defaul pagemap request is done in your page,
  create a new pagemap and redirect again.
 
  On 8/29/08, Matej Knopp [EMAIL PROTECTED] wrote:
   Only if multi window support is on (which is off by default with
   secondlevelcachesessionstore). The multiwindow support is more or less
   a hack, because HTTP doesn't really provide any means to detect
   browser windows/tabs.
  
   -Matej
  
   On Fri, Aug 29, 2008 at 2:28 AM, Jan Stette [EMAIL PROTECTED]
  wrote:
   I agree, that's a better long-term fix.  Even so, isn't it wrong that
  the
   request from a new window is locked waiting on the other window's
 page
  map
   -
   I would have thought the new window should have ended up with its own
  page
   map?
  
   Regards,
   Jan
  
  
   2008/8/29 Matej Knopp [EMAIL PROTECTED]
  
   Hi,
  
   the long running process should be executed in separate thread. You
   can make wicket periodically poll for result (via ajax). It is
   generally not a good idea to run action that potentially can take
 long
   time to complete from a request thread.
  
   -Matej
  
   On Thu, Aug 28, 2008 at 8:42 PM, Jan Stette [EMAIL PROTECTED]
  wrote:
I'm having a problem with the following scenario:
   
1.  A user logs into our Wicket application and starts using it.
2.  The user clicks on a link which kicks off a potentially
long-running
operation.
3.  While getting bored with waiting for this to complete, the
 user
   copies
the URL from her browser into another tab or window.
   
Unfortunately, at this stage, the second window is 

Re: Migrating code from 1.2 to 1.3

2008-09-01 Thread swapnil.wadagave


Thanks For Reply,

As you said i will go with,
but just take a look with this code snippnet,

String servletName = ((WebApplication)
Application.get()).getWicketServlet().getServletName();   
 StringBuffer buf = new StringBuffer();
  buf.append('/').append(servletName ).append('/').append(HELP_LOCATION)
 .append(/index.html#).append(helpPageClassName);

this buf will be passes as url string to external link.so as your reply if i
try,
((WebApplication) Application.get()).getWicketFilter()---how do i
get servletname by this.

Regards,
Swapnil.
-- 
View this message in context: 
http://www.nabble.com/Migrating-code-from-1.2-to-1.3-tp19252101p19253461.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



In IE6, a hash string is automatically appended to an ajax

2008-09-01 Thread Ann Baert

In IE6, a hash string is automatically appended to an ajax request if the
page from which the ajax request originates, was invoked with that specific
hash string.

For example, a page that contains an AjaxLink is requested with an hash
string in the url (url + #topfocus). 

I've created an jira issue (with an example)
https://issues.apache.org/jira/browse/WICKET-1814
-- 
View this message in context: 
http://www.nabble.com/In-IE6%2C-a-hash-string-is-automatically-appended-to-an-ajax-tp19253747p19253747.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Going back to a previous URL?

2008-09-01 Thread classacts

Hello,

I have a web app that requires navigating to many temporary pages and
I'm trying to find an easy way to put place a link on the page or
programmatically redirect to a previously visited page (or referring page).

Let's say I'm on bookmarkable Page1.class with PageParameters
{id=1,0=foo,1=bar} and I click on a BookmarkablePage link to ConfigPage
PageParameters {id=1} and do some stuff like submit forms on that page,
etc... How can I place a Back button or link to the Page1.class with its
PageParameters intact?  The mechanism should also would even if the
originating page isn't Page1.class but any arbitrary class.

The best I've been able to do at the suggestion of someone in the channel is
to check the referrer in the request headers.  This has worked for some of
my use-cases, however It seems it doesn't work if forms are submitted on the
temporary visit.

I understand that browsers can remember history, but how about Wicket? 
Should I be using something like Component.setMetaDataKey()?  Any thoughts
on this are most welcome.


Thanks
-- 
View this message in context: 
http://www.nabble.com/Going-back-to-a-previous-URL--tp19254601p19254601.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: build from the wicket-1.4-m3 source failing

2008-09-01 Thread wicket user
i am using the version 1.5.0_04

thanks
Dipu

On Sun, Aug 31, 2008 at 12:39 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote:

 On Tue, 26 Aug 2008, wicket user wrote:
  when i try to build the wicket from the wicket-1.4-m3 source its failing
  with the following message

 What Java version do you use to compile? In 1.5 there have
 been a lot of generics bugs, some of which are fixed in
 recent 1.5 versions.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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




Re: build from the wicket-1.4-m3 source failing

2008-09-01 Thread Matej Knopp
What good it is to tell us which version you are using? The latest is
IIRC updated 16 so your JDK/JRE is really outdated. Please update your
JDK first before complaining. And when it still doesn't work let us
know.

-Matej

On Mon, Sep 1, 2008 at 3:34 PM, wicket user [EMAIL PROTECTED] wrote:
 i am using the version 1.5.0_04

 thanks
 Dipu

 On Sun, Aug 31, 2008 at 12:39 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote:

 On Tue, 26 Aug 2008, wicket user wrote:
  when i try to build the wicket from the wicket-1.4-m3 source its failing
  with the following message

 What Java version do you use to compile? In 1.5 there have
 been a lot of generics bugs, some of which are fixed in
 recent 1.5 versions.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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




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



Re: build from the wicket-1.4-m3 source failing

2008-09-01 Thread wicket user
sorry about that.

I updated to the latest version of JDK and its still failing to build.

pasting the stack trace below if it helps

thanks
Dipu


C:\wicket\wicket-svn\releases\wicket-1.4-m3\wicket\src\main\java\org\apache\wick
et\util\tester\FormTester.java:[600,20] inconvertible types
found   : org.apache.wicket.markup.html.form.FormComponentcapture of ?
required: org.apache.wicket.markup.html.form.upload.FileUploadField


[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
C:\wicket\wicket-svn\releases\wicket-1.4-m3\wicket\src\main\java\org\apache\wick
et\util\tester\FormTester.java:[600,20] inconvertible types
found   : org.apache.wicket.markup.html.form.FormComponentcapture of ?
required: org.apache.wicket.markup.html.form.upload.FileUploadField


at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
fail
ure
C:\wicket\wicket-svn\releases\wicket-1.4-m3\wicket\src\main\java\org\apache\wick
et\util\tester\FormTester.java:[600,20] inconvertible types
found   : org.apache.wicket.markup.html.form.FormComponentcapture of ?
required: org.apache.wicket.markup.html.form.upload.FileUploadField


at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:516)
at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
... 16 more






On Mon, Sep 1, 2008 at 2:45 PM, Matej Knopp [EMAIL PROTECTED] wrote:

 What good it is to tell us which version you are using? The latest is
 IIRC updated 16 so your JDK/JRE is really outdated. Please update your
 JDK first before complaining. And when it still doesn't work let us
 know.

 -Matej

 On Mon, Sep 1, 2008 at 3:34 PM, wicket user [EMAIL PROTECTED]
 wrote:
  i am using the version 1.5.0_04
 
  thanks
  Dipu
 
  On Sun, Aug 31, 2008 at 12:39 PM, Timo Rantalaiho [EMAIL PROTECTED]
 wrote:
 
  On Tue, 26 Aug 2008, wicket user wrote:
   when i try to build the wicket from the wicket-1.4-m3 source its
 failing
   with the following message
 
  What Java version do you use to compile? In 1.5 there have
  been a lot of generics bugs, some of which are fixed in
  recent 1.5 versions.
 
  Best wishes,
  Timo
 
  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




Re: Going back to a previous URL?

2008-09-01 Thread Uwe Schäfer

classacts schrieb:


Let's say I'm on bookmarkable Page1.class with PageParameters
{id=1,0=foo,1=bar} and I click on a BookmarkablePage link to ConfigPage
PageParameters {id=1} and do some stuff like submit forms on that page,
etc... How can I place a Back button or link to the Page1.class with its
PageParameters intact?  The mechanism should also would even if the
originating page isn't Page1.class but any arbitrary class.


*IF* i get this correctly, we do that by using HybridURLEncoding and 
passing pageInstances around.
linking to bookmarkable urls with additional state can be done with smth 
like:


Page targetPage = new BookmarkablePageClass(...
// the add state to it, like
targetPage.setPageToNavigateBackTo(getWebPage());
// and add params for the URL
targetPage.setMetaData(HybridUrlCodingStrategy.PAGE_PARAMETERS_META_DATA_KEY, 
new PageParameters(...));

setResponsePage(targetPage);

cu uwe

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



Re: Problem with multiple browser windows and locked page maps

2008-09-01 Thread Johan Compagner
First try to look at the newbrowser window check that we have in webpage.
Dont know if you can all do those things (clone the page and set
another pagemap)

What you could do is int the page const check pagemap, if default then
create the same page as you are on but then with a different pagemap
and throw a restartresponse exception.

Johan

On 9/1/08, Jan Stette [EMAIL PROTECTED] wrote:
 Johan,

 I've had a look at doing the workaround you suggest, but I don't know
 Wicket's internals enough to fully understand where to plug it in.  In the
 constructor of a page, I can check the page map name, but how would I do the
 redirect here?  Conversely, I can override onBeginRequest() in the request
 cycle, but in this case, how would I check the page map name and access
 other page details in order to redirect to the same page?  Sorry if I'm
 being dim here, but some more details would be greatly appreciated.

 And yes, pages shouldn't take a long time to load, it's just that in some
 applications it's hard to guarantee that it will never happen, and we'd like
 to handle all cases to make our application as robust as possible.

 Regards,
 Jan


 2008/8/29 Johan Compagner [EMAIL PROTECTED]

 Yes your observation is exactly what i described.

 What you can do is for example check in the constructor (with pagemap
 param) or in onbegin request (before render) of a page, if the pagemap
 is the default, if it is create the same page with a new  pagemap and
 redicect to that one.

 Whay you want is that the default pagemap is never used, by defaul all
 pages are going into that

 But you should check if you really want long running processes like that!

 Jihan

 On 8/29/08, Jan Stette [EMAIL PROTECTED] wrote:
  Thanks for your answers, Matej and Johan.
 
  Matej: we are running with multi-window support on, and store per-window
  related navigation in the session keyed on page map name.  This works
 fine
  most of the time.
 
  Johan: I've been stepping through the Wicket code and studying the docs
 to
  understand how it deals with new windows, and I think I'm starting to
  understand what's happening, and your comments about default page maps.
 
  Basically what seems to be the case is that the inital window in a
 session
  never receives its own page map name, it stays on the default one.  This
  means that this initial window is indistinguishable from a brand new
 window
  that hasn't yet had a page map name allocated and been redirected to a
 page
  with this set.  I've done some tests which seem to confirm this
 hypothesis:
 
  - I open an initial browser window on my application (window 1)
  - I open a second window in the same session (window 2)
 
  If a start a long-running operation in window 1, any new windows created
  will lock until window 1's operation has been completed.
  However, if I start the long-running operation in window 2, I can open
 new
  windows to my heart's content and they will not block.
 
  Does that make sense, is this an accurate description of the problem?
 
  It seems odd that the initial window is never allocated a page map name,
  which leads to this assymtry between windows.  Is this something that
  can
 be
  fixed?  Or even better, can I do something my side in order to force any
  window/page map opened against a session to have a unique name
  allocated?
 
  Regards,
  Jan
 
 
  2008/8/29 Johan Compagner [EMAIL PROTECTED]
 
  And even with that check it will not work.
  If you open a new tab then the first page wicket will render when you
  type in an url will be the defaul pagemap. Only on the first page
  rendered we know that we have to redirect. So that first page will be
  blocked. The only thing that could maybe help is never use the defaul
  pagemap. So always use from the first page on a differnt one. And if
  you then see that a defaul pagemap request is done in your page,
  create a new pagemap and redirect again.
 
  On 8/29/08, Matej Knopp [EMAIL PROTECTED] wrote:
   Only if multi window support is on (which is off by default with
   secondlevelcachesessionstore). The multiwindow support is more or
   less
   a hack, because HTTP doesn't really provide any means to detect
   browser windows/tabs.
  
   -Matej
  
   On Fri, Aug 29, 2008 at 2:28 AM, Jan Stette [EMAIL PROTECTED]
  wrote:
   I agree, that's a better long-term fix.  Even so, isn't it wrong
   that
  the
   request from a new window is locked waiting on the other window's
 page
  map
   -
   I would have thought the new window should have ended up with its
   own
  page
   map?
  
   Regards,
   Jan
  
  
   2008/8/29 Matej Knopp [EMAIL PROTECTED]
  
   Hi,
  
   the long running process should be executed in separate thread. You
   can make wicket periodically poll for result (via ajax). It is
   generally not a good idea to run action that potentially can take
 long
   time to complete from a request thread.
  
   -Matej
  
   On Thu, Aug 28, 2008 at 8:42 PM, Jan Stette [EMAIL PROTECTED]
  wrote:

Re: Migrating code from 1.2 to 1.3

2008-09-01 Thread Johan Compagner
Filters dont have a servletname...

Just configure something like this as a web.xml weapplication class param

On 9/1/08, swapnil.wadagave [EMAIL PROTECTED] wrote:


 Thanks For Reply,

 As you said i will go with,
 but just take a look with this code snippnet,

 String servletName = ((WebApplication)
 Application.get()).getWicketServlet().getServletName();
  StringBuffer buf = new StringBuffer();
   buf.append('/').append(servletName ).append('/').append(HELP_LOCATION)
  .append(/index.html#).append(helpPageClassName);

 this buf will be passes as url string to external link.so as your reply if i
 try,
 ((WebApplication) Application.get()).getWicketFilter()---how do i
 get servletname by this.

 Regards,
 Swapnil.
 --
 View this message in context:
 http://www.nabble.com/Migrating-code-from-1.2-to-1.3-tp19252101p19253461.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: how to mark wicket html response as cacheable?

2008-09-01 Thread Johan Compagner
Why would you do that? That should only be done in a head request.
But currently i dont think we have support for webpages last modified
request at the moment.

Problem is that wickets pages are really dynamic, make sure that yours
are really static dont use ajax and that stuff on them because if a
browser really caches stuff i dont know if then everything is always
in sync.

On 9/1/08, ywtsang [EMAIL PROTECTED] wrote:

 thanks

 how about skipping the content rendering?

 i.e. how to just make the web page's response to include the headers only?


 jWeekend wrote:

 One way is to override WebPage's setHeaders(WebResponse response) method
 and call setHeader on the passed in WebResponse.

 Regards - Cemal
  http://www.jWeekend.co.uk http://jWeekend.co.uk


 ywtsang wrote:

 i want to set my html with last modified date in order to allow client
 side caching

 how can we do that in wicket?

 or we need to manipulate the response header directly?





 --
 View this message in context:
 http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19249443.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Panel with css styling

2008-09-01 Thread Mathias P.W Nilsson

Hi!

I often come across this problem. A panel, let's say for checkout. ( So that
a user knows wich step he/she is in) 
1. Cart 
2. address 
3. payment and delivery 
4. control order 
5. receipt

This panel should be on top of each page showing the purchase steps. Of
course then the user is at step 3 the ( 3. Payment and delivery ) should be
highlighted in some way.

What is your approach on solving this.

What I have done so far is something like this.

Create a panel with the steps in
in every page do something like

CheckoutPanel p = new CheckoutPanel();
add( p ); // Add panel to page
p.setActiveTab( 2 ) ; ... cssing the tab

Can anyone give any suggestions on this. This is not very maintainable.

Let's say I want to change the order of the tabs, Add extra tabs,  then I
have to go into all pages and add, alter the index. I could of course use a
string instead but I have a feeling this could be solved in a much better
way. Suggestions?

The tabs are not clickable but could of course be a link panel of some sort.
Almost every site  has one or many panels like this. A menu that should be
added on each page and highlighting the link that the user is currently
using. Like border in some way.
-- 
View this message in context: 
http://www.nabble.com/Panel-with-css-styling-tp19256267p19256267.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Panel with css styling

2008-09-01 Thread Martin Makundi
Here is some Tab technique which I have used and is quite flexible and
you can even add autorization levels to the tab handling:

public class TabPage extends WebPage {
private static final ListClass? extends Panel tabs = Arrays.asList(
/**
 * Panels
 */
XyzPanel.class,
ZyzPanel.class,
FooPanel.class,
BarPanel.class
// ... etc ...
);
protected static final String NAVIGATION_TABS = navigationTabs;
protected SimpleAttributeModifier current;
private final TabbedPanel tabbedPanel;
private final ListNamedTab namedTabs;

public TabPage(PageParameters parameters) { // If you want to set
default tab from parameters
this();
String tabSelectionKey = Panel.class.getSimpleName();
String tabClassName = parameters.getString(tabSelectionKey);
if (tabClassName != null) {
for (NamedTab namedTab : namedTabs) {
if 
(tabClassName.equals(namedTab.getTabClass().getName())) {

tabbedPanel.setSelectedTab(namedTabs.indexOf(namedTab));
break;
}
}
}
}

public TabPage() {
current = new SimpleAttributeModifier(class, current);
namedTabs = getNamedTabs();
add(tabbedPanel = (TabbedPanel) new TabbedPanel(NAVIGATION_TABS,
namedTabs) {

/**
 * Generates a loop item used to represent a specific 
tab's
 * codeli/code element.
 *
 * @param tabIndex
 * @return new loop item
 */
@Override
protected LoopItem newTabContainer(int tabIndex) {
return new LoopItem(tabIndex) {
private static final long 
serialVersionUID = 1L;

protected void 
onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
String cssClass = (String) 
tag.getString(class);
if (cssClass == null) {
cssClass =  ;
}
NamedTab namedTab = 
namedTabs.get(getIteration());
String context;
if (namedTab.isSpecialTab()) {
context = adminTab;
} else {
context = normalTab;
}
cssClass +=   + context;

if (getIteration() == 
getSelectedTab()) {
cssClass +=  
selected_ + context;
}
if (getIteration() == 
getTabs().size() - 1) {
cssClass +=  last;
}
tag.put(class, 
cssClass.trim());
}

};
}

@Override
protected WebMarkupContainer newLink(String linkId, int 
index) {
WebMarkupContainer link = super.newLink(linkId, 
index);
NamedTab namedTab = namedTabs.get(index);

String tooltip = (String) 
namedTab.getTitle().getObject();

if (namedTab.isSpecialTab()) {
tooltip = 
getString(admin_panel_prefix) +   + tooltip;
}

link.add(new SimpleAttributeModifier(title, 
tooltip));
return link;
}
}.setVisible(0  namedTabs.size()));
}

/**
 * @return ListClass? extends TakpPanel
 */
private ListNamedTab getNamedTabs() {
ListNamedTab filteredTabs = new LinkedListNamedTab();
for (Class? extends Panel tabClass : tabs) {

Re: Panel with css styling

2008-09-01 Thread Igor Vaynberg
use markup inheritance and a base panel class:

class basecheckoutpanel extends panel {
  protected abstract int getmystepnumber();

  public basecheckoutpanel() {
 add(some component that displays all steps and highlights one
returned by getmystepnumber());
  }
}

class addressstep extends basecheckoutpanel {
  protected int getmystepnumber() { return 1; }
}

-igor

On Mon, Sep 1, 2008 at 8:09 AM, Mathias P.W Nilsson
[EMAIL PROTECTED] wrote:

 Hi!

 I often come across this problem. A panel, let's say for checkout. ( So that
 a user knows wich step he/she is in)
 1. Cart
 2. address
 3. payment and delivery
 4. control order
 5. receipt

 This panel should be on top of each page showing the purchase steps. Of
 course then the user is at step 3 the ( 3. Payment and delivery ) should be
 highlighted in some way.

 What is your approach on solving this.

 What I have done so far is something like this.

 Create a panel with the steps in
 in every page do something like

 CheckoutPanel p = new CheckoutPanel();
 add( p ); // Add panel to page
 p.setActiveTab( 2 ) ; ... cssing the tab

 Can anyone give any suggestions on this. This is not very maintainable.

 Let's say I want to change the order of the tabs, Add extra tabs,  then I
 have to go into all pages and add, alter the index. I could of course use a
 string instead but I have a feeling this could be solved in a much better
 way. Suggestions?

 The tabs are not clickable but could of course be a link panel of some sort.
 Almost every site  has one or many panels like this. A menu that should be
 added on each page and highlighting the link that the user is currently
 using. Like border in some way.
 --
 View this message in context: 
 http://www.nabble.com/Panel-with-css-styling-tp19256267p19256267.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: [OT] Wicket in Action Woes

2008-09-01 Thread Jonathan Locke


huh.  have not received my copy they promised me yet...


Eelco Hillenius wrote:
 
 I have no idea. Martijn and I (or rather, my parents in Holland)
 received a bunch of paper copies, so the actual book *is* out.
 
 Eelco
 
 On Sun, Aug 31, 2008 at 9:56 PM, Stefan Lindner [EMAIL PROTECTED]
 wrote:
 Amazon says that it ist to be published on Sept. 28. It's the seond time
 that the publishing date moved towards the end oft he year.

 Stefan

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Im Auftrag von James Carman
 Gesendet: Montag, 1. September 2008 00:24
 An: users@wicket.apache.org
 Betreff: [OT] Wicket in Action Woes

 I called my local Barnes  Noble today asking if they had a copy of
 WIA and the lady said that book is out of print; perhaps you can get
 one used through BN.com.  The Waldenbooks in our mall said it was on
 back order (I'm assuming this is because of my two talks I gave to
 the Cincinnati Java Users Group).  Is anyone else having issues
 getting a copy at brick and mortar stores?

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


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


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

-- 
View this message in context: 
http://www.nabble.com/-OT--Wicket-in-Action-Woes-tp19246776p19256831.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Panel with css styling

2008-09-01 Thread Mathias P.W Nilsson

Thanks!

I have tested Igors idé and this is what I have so far

public abstract class CheckoutStepPanel extends Panel{
private static final long serialVersionUID = 1L;
public String CSS_ACTIVE_STEP = selected;

/**
 * Add Steps as enum. If the Checkout changes then 
 * A serious amount of refactoring must be done
 */
public enum Step{
CART( checkout.step.cart ),
ADDRESS( checkout.step.address ),
PAYMENT( checkout.step.payment ),
CONTROL( checkout.step.control ),
RECEIPT( checkout.step.receipt );

private String resourceKey;

Step( String resourceKey ){
this.resourceKey = resourceKey;
}
public String getResourceKey(){
return this.resourceKey;
}
}
// TODO: Add back navigation if the active step is minor to the current
step
public CheckoutStepPanel( String id ){
super( id );
add( new ListView( steps , Arrays.asList( Step.values()  ) ){
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem listItem ) {
Step step = ( Step ) listItem.getModelObject();
Label item = new Label( step, new 
ResourceModel( step.getResourceKey()
) );
if( getActiveStep().equals( step ) ){
// Support multiple css classes
item.add( new AttributeAppender( 
class, new Model( CSS_ACTIVE_STEP ),
  ));
}
listItem.add( item );
}
} );

}

protected abstract Step getActiveStep(); 

}

Implementation

add( new CheckoutStepPanel( Steper ){
   @Override
   protected Step getActiveStep() {
  return Step.ADDRESS;
   }
});

I have made the steps in an enum because I can't just add another step
without adding a new page, markup etc.

Questions:
1. Is the resource implementation ok?
2. Other suggestions?




-- 
View this message in context: 
http://www.nabble.com/Panel-with-css-styling-tp19256267p19257876.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Mount files outside container

2008-09-01 Thread Mathias P.W Nilsson

I still have struggle with this image, flash, files and Wicket

Here is my problem.

I have all my css files, images, flashes pdf etc in a dir let's say 

c:/mydir/

To access these files from my webapp I have created a Servlet that get the
files from my dir outside of the container using this path
/Files/myimage.gif

In my web.xml I have the servlet  url-pattern/Files/*/url-pattern

The reasone I have the files outside the container is so that the css, files
can be changed without having to deploy the war file again or that the css
is Changed in the container but after redeploying the changes is lost
because of a designer changing the css.

Now, I can't use wicket declarations in my css file and when I have
background images in my css the servlet is not found. I would like to use
only wicket and not servlets mapping the files outside of the container. How
do you add background images in a css?

Do you keep the background image and the css inside the container? What
about when we need to change background image?


-- 
View this message in context: 
http://www.nabble.com/Mount-files-outside-container-tp19232069p19258448.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



css and components

2008-09-01 Thread Mathias P.W Nilsson

I have created a component and added a css file with HeaderContributor.forCss

How can I make this work with variation? 

On many pages I add a background image to a div by using the
AttributeModifer and adding the style tag to the div.Now I want my html
markup to be clean and not altering the markup from my wicket code like 
http://www.csszengarden.com/ http://www.csszengarden.com/ . How can I only
alter my css files and not the markup. Can it be acheived with wicket? 
-- 
View this message in context: 
http://www.nabble.com/css-and-components-tp19258531p19258531.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Mount files outside container

2008-09-01 Thread Ritesh Trivedi

I still dont understand why you are not using custom resource loader instead
of the servlet. If you use that, you have control over which resource files
are loaded first - the ones in the war or the ones outside.

As far as background images in the css, dont quote me on this, but you can
use absolute, relative paths or urls. If you have a fixed folder name where
the images are going to reside, you can specify it any one of those ways. I
dont think css files can read environment variables to avoid this fixed
location. One strategy would be to use the urls, and let apache (or
whichever webserver) serve the images. You can then play with the location
etc in apache config.


Mathias P.W Nilsson wrote:
 
 I still have struggle with this image, flash, files and Wicket
 
 Here is my problem.
 
 I have all my css files, images, flashes pdf etc in a dir let's say 
 
 c:/mydir/
 
 To access these files from my webapp I have created a Servlet that get the
 files from my dir outside of the container using this path
 /Files/myimage.gif
 
 In my web.xml I have the servlet  url-pattern/Files/*/url-pattern
 
 The reasone I have the files outside the container is so that the css,
 files can be changed without having to deploy the war file again or that
 the css is Changed in the container but after redeploying the changes is
 lost because of a designer changing the css.
 
 Now, I can't use wicket declarations in my css file and when I have
 background images in my css the servlet is not found. I would like to use
 only wicket and not servlets mapping the files outside of the container.
 How do you add background images in a css?
 
 Do you keep the background image and the css inside the container? What
 about when we need to change background image?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Mount-files-outside-container-tp19232069p19259336.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: css and components

2008-09-01 Thread Ritesh Trivedi

Why cant you declare one style class for each different background images and
just change the class attribute value using attribute modifier instead of
adding style attribute? that way you dont have to recompile and redeploy
java code and you dont mix your rendering stuff with your backend code.



Mathias P.W Nilsson wrote:
 
 I have created a component and added a css file with
 HeaderContributor.forCss
 
 How can I make this work with variation? 
 
 On many pages I add a background image to a div by using the
 AttributeModifer and adding the style tag to the div.Now I want my html
 markup to be clean and not altering the markup from my wicket code like 
  http://www.csszengarden.com/ http://www.csszengarden.com/ . How can I
 only alter my css files and not the markup. Can it be acheived with
 wicket? 
 

-- 
View this message in context: 
http://www.nabble.com/css-and-components-tp19258531p19259396.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: css and components

2008-09-01 Thread Mathias P.W Nilsson

The background images are fetched from database and there are about 10.000
different backgrounds depending on what parameters is passed to the item
list page.
-- 
View this message in context: 
http://www.nabble.com/css-and-components-tp19258531p19259434.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Sending Ajaxrequest only if enter is pressed in a textfield

2008-09-01 Thread Timo Rantalaiho
On Mon, 01 Sep 2008, Sarkast wrote:
 I have an AjaxEventBehaviour implementation which does the following:
 (the action in question is onkeydown or onblur in my case

Plain AjaxEventBehavior does not submit form data, you need
AjaxFormSubmitBehavior or AjaxFormCOmponentUpdatingBehavior
for that.

See the implementation of OnChangeAjaxBehavior for reference.
More generally, its always a good idea to have Wicket (and
other library) sources attached to your IDE, so that you can
see easily how stuff happens.

Best wishes,
Timo


-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Problem rendering not visible Form with OutputMarkupPlaceholderTag

2008-09-01 Thread German Morales
Hi all,

We had suffered an strange behavior, which i would like to share for
comments.
We have a Panel (loaded with ajax) with many Forms inside (because each
needs different models).
Some of these Forms are only visible under certain conditions, so we
overwrote isVisible with the condition.
Also, the Panel can be updated, so the Forms have
setOutputMarkupPlaceholderTag(true) to make them visible later.
That triggered a problem in the rendering of the ajax response.

After some investigation, the problem seems to be:
-When a Form is visible, Form#onComponentTag replaces the tag form by
div (because it's nor the Root form of the page), this works ok.
-When a Form is invisible, Form#onComponentTag is never called. Instead,
Component#render builds the response by itself, using
markupStream.getTag().getName(), which answers the tag form.
-Then, the ajax response has a mix of div and form. Apparently, all goes
ok until the first form is found, then the parsing goes somehow crazy and
this first form gets lost from the DOM, and the next forms and divs get
inserted outside (one level in DOM) the main component being replaced by the
ajax call.

We have found no way to fix it in the Form class itself. Component uses
markupStream.getTag() (which answers form). That is, it does not ask the
component for the tag to answer, but instead trusts in the HTML side. And we
can't change our html to say div, because Form also checks (when visible)
that the tag says form (checkComponentTag(tag, form)).

The solution was to put the missbehaving forms inside Panels, which do not
suffer this problem, and then make the panels visible/invisible (also with
OutputMarkupPlaceholderTag).

We have it running now, but we wanted to know if there was some better
solution, or perpahs something should be fixed to prevent future problems,
for example:
-inform somehow if a form is being set as invisible with
setOutputMarkupPlaceholderTag(true)?
-let Component ask itself for the tag to output in case of invisible +
setOutputMarkupPlaceholderTag(true), instead of just putting what the markup
says... then Form could say no, i want a div here.
-other?

Thanks in advance,

German


Re: Problem rendering not visible Form with OutputMarkupPlaceholderTag

2008-09-01 Thread German Morales
Hi again,

Thanks for the answer.

https://issues.apache.org/jira/browse/WICKET-1815
I just copied the e-mail in a jira issue, is this enough?

Bye,

German


2008/9/1 Matej Knopp [EMAIL PROTECTED]

 This looks like a bug/design flaw. Can you please open a jira issue?
 This could be solved by having (yet another) method in component that
 would allow to postprocess the placeholder tag.
 The implementation would  be fairly simple. Or maybe we could call
 onComponentTag and then strip all the attributes. This might be better
 idea as it would be consistent with the behavior when component is
 actually rendered.

 -Matej

 On Mon, Sep 1, 2008 at 10:11 PM, German Morales
 [EMAIL PROTECTED] wrote:
  Hi all,
 
  We had suffered an strange behavior, which i would like to share for
  comments.
  We have a Panel (loaded with ajax) with many Forms inside (because each
  needs different models).
  Some of these Forms are only visible under certain conditions, so we
  overwrote isVisible with the condition.
  Also, the Panel can be updated, so the Forms have
  setOutputMarkupPlaceholderTag(true) to make them visible later.
  That triggered a problem in the rendering of the ajax response.
 
  After some investigation, the problem seems to be:
  -When a Form is visible, Form#onComponentTag replaces the tag form by
  div (because it's nor the Root form of the page), this works ok.
  -When a Form is invisible, Form#onComponentTag is never called. Instead,
  Component#render builds the response by itself, using
  markupStream.getTag().getName(), which answers the tag form.
  -Then, the ajax response has a mix of div and form. Apparently, all
 goes
  ok until the first form is found, then the parsing goes somehow crazy
 and
  this first form gets lost from the DOM, and the next forms and divs get
  inserted outside (one level in DOM) the main component being replaced by
 the
  ajax call.
 
  We have found no way to fix it in the Form class itself. Component uses
  markupStream.getTag() (which answers form). That is, it does not ask
 the
  component for the tag to answer, but instead trusts in the HTML side. And
 we
  can't change our html to say div, because Form also checks (when
 visible)
  that the tag says form (checkComponentTag(tag, form)).
 
  The solution was to put the missbehaving forms inside Panels, which do
 not
  suffer this problem, and then make the panels visible/invisible (also
 with
  OutputMarkupPlaceholderTag).
 
  We have it running now, but we wanted to know if there was some better
  solution, or perpahs something should be fixed to prevent future
 problems,
  for example:
  -inform somehow if a form is being set as invisible with
  setOutputMarkupPlaceholderTag(true)?
  -let Component ask itself for the tag to output in case of invisible +
  setOutputMarkupPlaceholderTag(true), instead of just putting what the
 markup
  says... then Form could say no, i want a div here.
  -other?
 
  Thanks in advance,
 
  German
 

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




Re: [OT] Wicket in Action Woes

2008-09-01 Thread Martijn Dashorst
Just be patient: getting the first printed copies first is a writer's
prerogative. In the mean time, my Wicket in Action unboxing pictures
whos that the book is not a mirage:

http://martijndashorst.com/blog/2008/09/01/unboxing-wicket-in-action/

Martijn

On Mon, Sep 1, 2008 at 5:46 PM, Jonathan Locke [EMAIL PROTECTED] wrote:


 huh.  have not received my copy they promised me yet...


 Eelco Hillenius wrote:

 I have no idea. Martijn and I (or rather, my parents in Holland)
 received a bunch of paper copies, so the actual book *is* out.

 Eelco

 On Sun, Aug 31, 2008 at 9:56 PM, Stefan Lindner [EMAIL PROTECTED]
 wrote:
 Amazon says that it ist to be published on Sept. 28. It's the seond time
 that the publishing date moved towards the end oft he year.

 Stefan

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Im Auftrag von James Carman
 Gesendet: Montag, 1. September 2008 00:24
 An: users@wicket.apache.org
 Betreff: [OT] Wicket in Action Woes

 I called my local Barnes  Noble today asking if they had a copy of
 WIA and the lady said that book is out of print; perhaps you can get
 one used through BN.com.  The Waldenbooks in our mall said it was on
 back order (I'm assuming this is because of my two talks I gave to
 the Cincinnati Java Users Group).  Is anyone else having issues
 getting a copy at brick and mortar stores?

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


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



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




 --
 View this message in context: 
 http://www.nabble.com/-OT--Wicket-in-Action-Woes-tp19246776p19256831.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: [OT] Wicket in Action Woes

2008-09-01 Thread Jonathan Locke


wow. it comes with a free cat?!


Martijn Dashorst wrote:
 
 Just be patient: getting the first printed copies first is a writer's
 prerogative. In the mean time, my Wicket in Action unboxing pictures
 whos that the book is not a mirage:
 
 http://martijndashorst.com/blog/2008/09/01/unboxing-wicket-in-action/
 
 Martijn
 
 On Mon, Sep 1, 2008 at 5:46 PM, Jonathan Locke [EMAIL PROTECTED]
 wrote:


 huh.  have not received my copy they promised me yet...


 Eelco Hillenius wrote:

 I have no idea. Martijn and I (or rather, my parents in Holland)
 received a bunch of paper copies, so the actual book *is* out.

 Eelco

 On Sun, Aug 31, 2008 at 9:56 PM, Stefan Lindner [EMAIL PROTECTED]
 wrote:
 Amazon says that it ist to be published on Sept. 28. It's the seond
 time
 that the publishing date moved towards the end oft he year.

 Stefan

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Im Auftrag von James Carman
 Gesendet: Montag, 1. September 2008 00:24
 An: users@wicket.apache.org
 Betreff: [OT] Wicket in Action Woes

 I called my local Barnes  Noble today asking if they had a copy of
 WIA and the lady said that book is out of print; perhaps you can get
 one used through BN.com.  The Waldenbooks in our mall said it was on
 back order (I'm assuming this is because of my two talks I gave to
 the Cincinnati Java Users Group).  Is anyone else having issues
 getting a copy at brick and mortar stores?

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


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



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




 --
 View this message in context:
 http://www.nabble.com/-OT--Wicket-in-Action-Woes-tp19246776p19256831.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-OT--Wicket-in-Action-Woes-tp19246776p19260875.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [OT] Wicket in Action Woes

2008-09-01 Thread Martijn Dashorst
On Mon, Sep 1, 2008 at 11:21 PM, Jonathan Locke
[EMAIL PROTECTED] wrote:
 wow. it comes with a free cat?!

No, but the cat comes with free lunches [1].

Martijn

[1] http://flickr.com/photos/dashorst/1401989456/in/set-72157594446810313/
-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: [OT] Wicket in Action Woes

2008-09-01 Thread Robby O'Connor

Nice!

Martijn Dashorst wrote:

Just be patient: getting the first printed copies first is a writer's
prerogative. In the mean time, my Wicket in Action unboxing pictures
whos that the book is not a mirage:

http://martijndashorst.com/blog/2008/09/01/unboxing-wicket-in-action/

Martijn

On Mon, Sep 1, 2008 at 5:46 PM, Jonathan Locke [EMAIL PROTECTED] wrote:


huh.  have not received my copy they promised me yet...


Eelco Hillenius wrote:

I have no idea. Martijn and I (or rather, my parents in Holland)
received a bunch of paper copies, so the actual book *is* out.

Eelco

On Sun, Aug 31, 2008 at 9:56 PM, Stefan Lindner [EMAIL PROTECTED]
wrote:

Amazon says that it ist to be published on Sept. 28. It's the seond time
that the publishing date moved towards the end oft he year.

Stefan

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Im Auftrag von James Carman
Gesendet: Montag, 1. September 2008 00:24
An: users@wicket.apache.org
Betreff: [OT] Wicket in Action Woes

I called my local Barnes  Noble today asking if they had a copy of
WIA and the lady said that book is out of print; perhaps you can get
one used through BN.com.  The Waldenbooks in our mall said it was on
back order (I'm assuming this is because of my two talks I gave to
the Cincinnati Java Users Group).  Is anyone else having issues
getting a copy at brick and mortar stores?

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


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



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




--
View this message in context: 
http://www.nabble.com/-OT--Wicket-in-Action-Woes-tp19246776p19256831.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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









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



Re: how to mark wicket html response as cacheable?

2008-09-01 Thread ywtsang

yes, our pages basically are dynamic as the pages contain ajax component

we plan to do that for the optimization of non-javascript clients like
crawlers

we try to define a page modification logic and implement the 304 not
modified in order to save the bandwidth or so

if it is not supported by wicket now, we will look for our solution, thanks


Johan Compagner wrote:
 
 Why would you do that? That should only be done in a head request.
 But currently i dont think we have support for webpages last modified
 request at the moment.
 
 Problem is that wickets pages are really dynamic, make sure that yours
 are really static dont use ajax and that stuff on them because if a
 browser really caches stuff i dont know if then everything is always
 in sync.
 
 On 9/1/08, ywtsang [EMAIL PROTECTED] wrote:

 thanks

 how about skipping the content rendering?

 i.e. how to just make the web page's response to include the headers
 only?


 jWeekend wrote:

 One way is to override WebPage's setHeaders(WebResponse response) method
 and call setHeader on the passed in WebResponse.

 Regards - Cemal
  http://www.jWeekend.co.uk http://jWeekend.co.uk


 ywtsang wrote:

 i want to set my html with last modified date in order to allow
 client
 side caching

 how can we do that in wicket?

 or we need to manipulate the response header directly?





 --
 View this message in context:
 http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19249443.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/how-to-mark-%22wicket-html-response%22-as-%22cacheable%22--tp19248592p19264551.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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