Re: [Wicket-user] closing ServletResponse stream/writer

2007-07-19 Thread jan_bar
Thanks for your care. I have a filter that appends some statistics (request
processing time, date, ...) as comment to response of text/html content:

final String stats = String.format(!--%s (%d[ms])--, new Date(),
responseTime);
try {
try {
response.getOutputStream().println(stats);
} catch(IllegalStateException e) {
// try writer
response.getWriter().println(stats);
}
} catch (IOException e) {
LOG.warn(Cannot write to response, e);
}

-- 
Jan Bares
http://jan.vegetband.cz


Johan Compagner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 i can remove the close() on it.
 But i am curious what you want to write afterwards
 because how do you know what to get the writer or the outputstream?
 because for the redirect strategy we just use the outpustream (bytes)
 instead of the writer (strings)

 and you can't use the output and the writer in one request.

 if you want to append or do stuff or replace stuff wicket has special
 support for that with IResponseFilters

 johan

 On 7/19/07, jan_bar [EMAIL PROTECTED] wrote:
 
  Thans for the answer, but I never said that BufferedHttpServletResponse
is
  handled by container. In my opinion, BufferedHttpServletResponse should
  not
  call servletResponse.getOutputStream().close(), as pointed in my first
  quesion. There can be other filters up the chain who want to write to
the
  response. Besides that, wicket is incosistent. For instance WebResponse
  uses
  httpServletResponse.getWriter(), but never calls close() on it.
 
  Regards, Jan
 
  --
  Jan Bares
  http://jan.vegetband.cz
 
 
  Jean-Baptiste Quenot [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   * jan_bar:
   
the ServletResponse javadoc doesn't state if and when one should
call
getWriter().close() or getOutputStream().close(). I have a filter
that
writes comments after the request was processed. Wicket sometimes
  closes
  the
response and sometimes not. For instance
BufferedHttpServletResponse.writeTo(HttpServletResponse
  servletResponse)
calls:
   
final OutputStream out = servletResponse.getOutputStream();
out.write(this.byteBuffer);
out.close();
  
   FYI BufferedHttpServletResponse is not directly handled by the
   servlet container, it is a wrapper around the real response for
   the REDIRECT_TO_BUFFER RenderStrategy.
   --
Jean-Baptiste Quenot
   aka  John Banana   Qwerty
   http://caraldi.com/jbq/
  
  

 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
 
 
 
 

 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] closing ServletResponse stream/writer

2007-07-18 Thread jan_bar
Thans for the answer, but I never said that BufferedHttpServletResponse is
handled by container. In my opinion, BufferedHttpServletResponse should not
call servletResponse.getOutputStream().close(), as pointed in my first
quesion. There can be other filters up the chain who want to write to the
response. Besides that, wicket is incosistent. For instance WebResponse uses
httpServletResponse.getWriter(), but never calls close() on it.

Regards, Jan

-- 
Jan Bares
http://jan.vegetband.cz


Jean-Baptiste Quenot [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 * jan_bar:
 
  the ServletResponse javadoc doesn't state if and when one should call
  getWriter().close() or getOutputStream().close(). I have a filter that
  writes comments after the request was processed. Wicket sometimes closes
the
  response and sometimes not. For instance
  BufferedHttpServletResponse.writeTo(HttpServletResponse servletResponse)
  calls:
 
  final OutputStream out = servletResponse.getOutputStream();
  out.write(this.byteBuffer);
  out.close();

 FYI BufferedHttpServletResponse is not directly handled by the
 servlet container, it is a wrapper around the real response for
 the REDIRECT_TO_BUFFER RenderStrategy.
 -- 
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] closing ServletResponse stream/writer

2007-07-17 Thread jan_bar
Hi,

the ServletResponse javadoc doesn't state if and when one should call
getWriter().close() or getOutputStream().close(). I have a filter that
writes comments after the request was processed. Wicket sometimes closes the
response and sometimes not. For instance
BufferedHttpServletResponse.writeTo(HttpServletResponse servletResponse)
calls:

final OutputStream out = servletResponse.getOutputStream();
out.write(this.byteBuffer);
out.close();

In that case my filter cannot append anything (I will have to wrap the
response). I think that the close() should not be called at all, flush() is
better. It is responsibility of Servlet to close the stream.

What is your opinion?

Jan

-- 
Jan Bares
http://jan.vegetband.cz




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket 1.2.6 critical bug

2007-04-27 Thread jan_bar
Hi,

I have posted new bug in 1.2.6:
https://issues.apache.org/jira/browse/WICKET-511.
For me, this is a show stopper (1.2.6 is unusable).

Thanks, for your support, Jan

-- 
Jan Bares
http://jan.vegetband.cz





-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-27 Thread jan_bar
Hi,

I think that you cannot nest form in HTML. You have to nest them with
CSS. This will also solve your trouble with form submits - I think that the
browser simply ignores the nested form tags.

Jan

-- 
Jan Bares
http://jan.vegetband.cz


John RDF [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 I have nested forms and need them for the following reason..

 I have a reusable panel for addresses which has its own form lookup from
 postcode submit button to auto fill the address.

 This panel is used in another form 3 times which needs addresses for
 different people.

 My problem is that the lookup button on each address panel is also causing
 submission of the outer form which I think should be incorrect behaviour.

 Is there a way to do this in wicket and get my expected behaviour (only
one
 form submitted)?

 -- 
 View this message in context:
http://www.nabble.com/Nested-Forms-and-onSubmit%28%29--tf3657476.html#a10218520
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket 1.2.6 critical bug

2007-04-27 Thread jan_bar
Thanks for your support, I now use PageParameters.getString() instead of 
PageParameters().get().
Spec says String, String[].

Jan

-- 
Jan Bares
http://jan.vegetband.cz


  Igor Vaynberg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
  afaik servlet spec is string,string[] not string,string, or has this 
changed recently?

  -igor



  On 4/27/07, Johan Compagner  [EMAIL PROTECTED] wrote:
we do follow the spec now... so we could change it back for 1.2 but for 1.3 
i would keep it.

johan




On 4/27/07, jan_bar  [EMAIL PROTECTED] wrote:
  Hi,

  I have posted new bug in 1.2.6:
  https://issues.apache.org/jira/browse/WICKET-511.
  For me, this is a show stopper (1.2.6 is unusable).

  Thanks, for your support, Jan

  --
  Jan Bares
  http://jan.vegetband.cz 





  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/ 
  ___
  Wicket-user mailing list 
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user 




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now. 
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list 
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






--


  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/


--

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Translation of application.properties

2007-02-20 Thread jan_bar
Hi wicket developers,

where can I send you translation of Application.properties for Czech
language (cs)? I can also maintain the translation for future versions.

Thanks, Jan

-- 
Jan Bares
http://jan.vegetband.cz





-
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] Translation of application.properties

2007-02-20 Thread jan_bar
https://issues.apache.org/jira/browse/WICKET-301

Jan

-- 
Jan Bares
http://jan.vegetband.cz


Frank Bille [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Jan

You can add the translation to our issue tracking:
http://issues.apache.org/jira/browse/WICKET

Thanx in advance :)

Frank



On 2/20/07, jan_bar [EMAIL PROTECTED] wrote:
Hi wicket developers,

where can I send you translation of Application.properties for Czech
language (cs)? I can also maintain the translation for future versions.

Thanks, Jan

--
Jan Bares
http://jan.vegetband.cz





-
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




-
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] ContainerFeedbackMessageFilter

2007-01-18 Thread jan_bar
https://issues.apache.org/jira/browse/WICKET-217.

Jan

Igor Vaynberg [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
makes sense to me, go ahead

-igor



On 1/17/07, jan_bar [EMAIL PROTECTED] wrote:
Hi,

ContainerFeedbackMessageFilter filters out messages for the container (for
instance Form). I don't know if this is intention or bug, for me this seems
better:

public boolean accept(FeedbackMessage message)
{
if (message.getReporter() == null)
{
return false;
}
else if(container == message.getReporter())  //=== missing?
{
return true;
}
else
{
return container.contains(message.getReporter (), true);
}
}

Should I fill bug report?

Jan




-
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




-
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] ContainerFeedbackMessageFilter

2007-01-17 Thread jan_bar
Hi,

ContainerFeedbackMessageFilter filters out messages for the container (for
instance Form). I don't know if this is intention or bug, for me this seems
better:

public boolean accept(FeedbackMessage message)
{
if (message.getReporter() == null)
{
return false;
}
else if(container == message.getReporter())  //=== missing?
{
return true;
}
else
{
return container.contains(message.getReporter(), true);
}
}

Should I fill bug report?

Jan




-
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] Validation of RadioGroup, DropDownChoice etc.

2007-01-10 Thread jan_bar
Hi,

it would be nice if setRequired(true) works on RadioGroup or DropDownChoice
and similar controls. For instance, radio group with initial state that has
no radio checked, user is required to select one, there is no default
value. When RadioGroup has required=true, it will verify if one of he radios
is checked, otherwise it displays error select one of the choices. The
same logic can be applied to DropdownChoice, the Choose one entry is
invalid input.
How can I implements this behaviour in wicket-1.2.4?

Thanks for your support and precious time, Jan




-
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] Back button - redirect to another page

2006-12-15 Thread jan_bar
Thanks Johan,

I was a little big unclear. By default the HTML pages returned from wicket has 
no-cache, so the back button usually posts request to server. When the previous 
page url is RedirectPageRequestTarget, the page instance is found in page map 
and rendered again. Why is the Page.onRedirect() method final? If this method 
is not final, I can override it, check internal state and decide to call 
setResponsePage(some other page). 

Sample:
To create an order, user has to go through several pages of order build wizard. 
On the final page he submits the order. At this time the order is removed from 
session. When the user presses Back, the previous page cannot render, because 
there is no order, user has to start at the first page of the wizard.

Jan


  Johan Compagner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
  When a user presses Back in a browser the page doesn't render again at least
  not in the serverside. By default it is a puur client side thing. (you can 
configure 
  the page in configureResponse to always go back to the server when a user 
hits back) 

  So what gets throwed at what time?


  On 12/14/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,

I have a not bookmarkable page (page with a form), when user clicks a link
(submit), the model data are cleared and confirmation page is displayed.
Now, when the user pressed Back in browser, the page renders again, but 
because the model changed, it throws.
I want to be able to detect, when the old page is again requested and
redirect user to another page. But I don't know how the handle it, I suppose
that calling setResponsePage during rendering phase is too late. 
Another solution is to remove the page from page map, but it is not nice,
because the user will see error page.

Thank you, Jan




- 
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


--

-
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] Back button - redirect to another page

2006-12-15 Thread jan_bar
Thanks Johan for your time and support,

I tried to override onBeforeRequest(), just to test - the first call to 
onBeforeRender suceeds but any furter call will throw and should redirect to 
some page, but the redirect doesn't work. Wicket doesn't do anything special on 
AbortException. The result is similar to removing the page from page map.
I prefer something like:

onRedirect() {setRresponsePage(Homepage.class);}

Thanks Jan

My test code:

 private boolean doThrow;

 @Override
 protected void onBeforeRender() {
  if(doThrow) {
   RequestCycle.get().setRequestTarget(new PageRequestTarget(new HomePage()));

   throw new AbortException();
  }

  super.onBeforeRender();

  doThrow = true;
 }

  Johan Compagner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
  first of all no-cache will not result in a get request to the server again.
  That will only happen if you add  no-store to the configureResponse param 
of the WebPage.

  i thought that onRedirect() didn't even get called , dummy method (it doesn't 
do anything). But it seems to be called i see. 
  We could make it none final, but all our event methods are final and redirect 
to something else. 
  We first have to discuss why it is in the current state.

  But you can override onBeginRender of the page. And then throw an 
AbortException (RestartResponseAtInterceptPageException) 

  johan




  On 12/15/06, jan_bar [EMAIL PROTECTED] wrote:
Thanks Johan,

I was a little big unclear. By default the HTML pages returned from wicket 
has no-cache, so the back button usually posts request to server. When the 
previous page url is RedirectPageRequestTarget, the page instance is found in 
page map and rendered again. Why is the Page.onRedirect() method final? If this 
method is not final, I can override it, check internal state and decide to call 
setResponsePage(some other page). 

Sample:
To create an order, user has to go through several pages of order build 
wizard. On the final page he submits the order. At this time the order is 
removed from session. When the user presses Back, the previous page cannot 
render, because there is no order, user has to start at the first page of the 
wizard.

Jan


  Johan Compagner [EMAIL PROTECTED] wrote in message news:[EMAIL 
PROTECTED] ...
  When a user presses Back in a browser the page doesn't render again at 
least
  not in the serverside. By default it is a puur client side thing. (you 
can configure 
  the page in configureResponse to always go back to the server when a user 
hits back) 

  So what gets throwed at what time?


  On 12/14/06, jan_bar [EMAIL PROTECTED]  wrote: 
Hi,

I have a not bookmarkable page (page with a form), when user clicks a 
link
(submit), the model data are cleared and confirmation page is 
displayed.
Now, when the user pressed Back in browser, the page renders again, 
but 
because the model changed, it throws.
I want to be able to detect, when the old page is again requested and
redirect user to another page. But I don't know how the handle it, I 
suppose
that calling setResponsePage during rendering phase is too late. 
Another solution is to remove the page from page map, but it is not 
nice,
because the user will see error page.

Thank you, Jan





- 
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 


--





-
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

Re: [Wicket-user] Back button - redirect to another page

2006-12-15 Thread jan_bar
Thanks Erik and Johan, now I have what I searched for.

Jan

Erik van Oosten [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi Jan,

 Try to throw an RestartResponseAtInterceptPageException.

  Erik.

 jan_bar schreef:
  Thanks Johan for your time and support,
 
  I tried to override onBeforeRequest(), just to test - the first call
  to onBeforeRender suceeds but any furter call will throw and should
  redirect to some page, but the redirect doesn't work. Wicket doesn't
  do anything special on AbortException.
 

 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=DEVDEV




-
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] Bug in SimpleConverterAdapter?

2006-12-12 Thread jan_bar
Hi,

in my opinion, the logic with isAssignableFrom should be the opposite one
(wicket 1.2.3):

Object convert(..) {
...
// buggy, should be the opposite
//else if (value != null  (!value.getClass().isAssignableFrom(c)))
else if (value != null  (!c.isAssignableFrom(value.getClass(
...
}

Where I can fill bug report?

Jan




-
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] wicket bug in page map?

2006-11-21 Thread jan_bar
Now it seems to me, that the problem is in my application. We have a page
with Flash application that talks to the server via AJAX. When a link is
pressed to continue to next page, the link is handled by javascript,
javascript asks Flash to save data to the server and also passes the new URL
to the flash. Flash should request the url only after it gets response from
the server that data are saved, but instead it sends both requests
simultaneously.

Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Thanks Johan for your support, see inline

  How is that page rendered? What do you see in the url of the browser?
  (my question is is it a redirect or not)

 The URL is see in browser is
 http://localhost:8091/app/cs/ewish?wicket:interface=:5::

 It is created in previous page in Link.onClick() with this code:

 public static void handleClick(final Class pageClass, final Page
 currentPage) {
 try {
 final Constructor ctor = pageClass.getConstructor(IModel.class);
 page.setResponsePage((Page)(ctor.newInstance(page.getModel(;
 } catch (Exception e) {
 LOG.error(Cannot instantiate  + pageClass.getSimpleName(), e);
 }
 }


 I modified the HttpSessionStore and log the calls to set/get/remove
 attribute. The attribute p:null:5 was never set, but is needed to
resolve
 link to the image.

 So it seems that the page is not in session.

 Thanks, Jan

 
  Because if it is a redirect then the page should be found.
  If it is not a redirect and it is a bookmarkable page. Maybe the page is
 not
  yet in the session
  and the request for the image is already coming in. But this is almost
not
  possible because
  we also use buffered response. So we stream if the page is completely
 there
  and then the page is stored
  in the session.
 
  You can try to debug what pages are going into the session (under which
 key)
  and when they are asked again.
  and also monitor the removes.
 
  Then it should be clear what happens.
 
  johan
 
 
  On 11/21/06, jan_bar [EMAIL PROTECTED] wrote:
  
   Hi,
  
   It seems to me that there is a bug in wicket 1.2.3. I have a WebPage
 with
   Image. Sometimes the image is not rendered because the image handler
   interface is not found in page map (it returns page expired error). I
   tried
   to debug wicket, but page map handling is quite not clear to me. So I
 have
   couple of questions:
   * are there known errors similar to this one?
   * how can I debug this bug? The HttpSessionStore looks for attribute
   p:null:number, but it is not found, there are other attributes
where
   the
   number part is one less the searched number. The number is the
same
   number as in the URL of the rendered page.
  
   I am almost sure that the bug is in wicket since there is nothing
 unusual
   in
   my page. The problems happens sometimes, so it looks like thread
   synchronization problem.
  
   Thanks, Jan
  
  
  
  
 

 -
   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




-
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] 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


Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-10 Thread jan_bar
It worked well until I pass parametr with %2F ('/') . The problem is that
HttpServletRequest.getPathInfo() returns the URL that is already decoded
(checked with Jetty 6 and Tomcat 5.5). For nice URLs the getRequestURI() or
getRequestURL() should be used, it seems to return the request as it was
passed to server.

https://issues.apache.org/jira/browse/WICKET-40

Jan

Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Can you confirm that fixes your problem and doesn't introduce new
 ones? And could you please open a bug report for this
 (http://issues.apache.org/jira/browse/WICKET, also so that it ends up
 in our change list).

 Cheers,

 Eelco


 On 11/9/06, jan_bar [EMAIL PROTECTED] wrote:
  The URL is already URL decoded when it reaches servlet.doXXX(), so
  AbstractRequestTargetUrlCodingStrategy.decodeParameters() should not
call
  URLDecode again.
 
  Jan
 
  jan_bar [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   Hi,
  
   I use nice URL with a parameter that contains a '+' character. The '+'
is
   URLDecoded to space (' ') in
   AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is
fine.
  So
   I URLEncoded the parametr, so my nice URL looks like
   http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded
by
   servlet, so Wicket again sees it as someId/1+1, so the result is
someId=1
   1.
   How can I pass the '+' as parameter?
  
   Thanks, Jan
  
  
  
  
 
 -
   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=lnkkid=120709bid=263057dat=121642
 
 
 
 

 -
  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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread jan_bar
Hi,

I use nice URL with a parameter that contains a '+' character. The '+' is
URLDecoded to space (' ') in
AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine. So
I URLEncoded the parametr, so my nice URL looks like
http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by
servlet, so Wicket again sees it as someId/1+1, so the result is someId=1
1.
How can I pass the '+' as parameter?

Thanks, Jan




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread jan_bar
Sure, have a look at the url in my original post :-)

Jan

Erik van Oosten [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Did you try %2b ?

 Erik.

 jan_bar schreef:
  Hi,
 
  I use nice URL with a parameter that contains a '+' character. The '+'
is
  URLDecoded to space (' ') in
  AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine.
So
  I URLEncoded the parametr, so my nice URL looks like
  http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded
by
  servlet, so Wicket again sees it as someId/1+1, so the result is
someId=1
  1.
  How can I pass the '+' as parameter?
 
  Thanks, Jan
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 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=lnkkid=120709bid=263057dat=121642




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread jan_bar
The URL is already URL decoded when it reaches servlet.doXXX(), so
AbstractRequestTargetUrlCodingStrategy.decodeParameters() should not call
URLDecode again.

Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I use nice URL with a parameter that contains a '+' character. The '+' is
 URLDecoded to space (' ') in
 AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine.
So
 I URLEncoded the parametr, so my nice URL looks like
 http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by
 servlet, so Wicket again sees it as someId/1+1, so the result is someId=1
 1.
 How can I pass the '+' as parameter?

 Thanks, Jan




 -
 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=lnkkid=120709bid=263057dat=121642




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Current wicket news and mailing lists

2006-10-20 Thread jan_bar
Hi,

news://gmane.com.java.wicket.devel seems to be dead now,
news://gmane.com.java.wicket.user still works. What are the current
available news feeds for development questions?
I did not found anything on http://incubator.apache.org/projects/wicket.
Also the project info web site http://incubator.apache.org/wicket/ doesn't
work

Thanks, Jan




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] urlFor on root

2006-09-19 Thread jan_bar
Hi,

I observe strange behaviour. My web application is deployed as EAR with gc
as context root. The servlet mapping is /*. The Url generated by urlFor()
is:
http://localhost:8091/gc?wicket:interface=:16:mainFrameBorder:processBar:wishEditor:editWish:-1:IFlashListener

I think that urlFor should add '/' after the gc:
http://localhost:8091/gc/?wicket:interface

In fact, when browser requestes the URL it is redirected to (note the
appended '/'):
http://localhost:8091/gc/?wicket:interface=:16:mainFrameBorder:processBar:wishEditor:editWish:-1:IFlashListener

It worked well when the servlet mapping was not root (/*) but something
like /myservlet/*.

Jan




-
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] urlFor on root

2006-09-19 Thread jan_bar
Thanks Johan

I searched bugzilla, but did not found any similar bug report. What is wrong
with this setup? Should I have Wicket servlet mapped as /something/* to
avoid troubles?

I am not versed in servlet context path, I cannot help you. I would append
'/' if not already present in path.

Jan


Johan Compagner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
yes this is a know problem. I think there is already a bug report for this.
Funny that it only comes up now twice. And this behaviour is there already a
long time
Maybe because it is not the recommended way of configuring the wicket
servlet..
This kind of configuring is really only working right in wicket 2.0 where we
use a filter.

So the context path must always append and / no matter what the context
path is and what the servlet path?

johan



On 9/19/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,

I observe strange behaviour. My web application is deployed as EAR with gc
as context root. The servlet mapping is /*. The Url generated by urlFor()
is:
http://localhost:8091/gc?wicket:interface=:16:mainFrameBorder:processBar:wishEditor:editWish:-1:IFlashListener

I think that urlFor should add '/' after the gc:
http://localhost:8091/gc/?wicket:interface

In fact, when browser requestes the URL it is redirected to (note the
appended '/'):
http://localhost:8091/gc/?wicket:interface=:16:mainFrameBorder:processBar:wishEditor:editWish:-1:IFlashListener

It worked well when the servlet mapping was not root (/*) but something
like /myservlet/*.

Jan




-
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




-
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] How do I prevent a wicket:link to change style

2006-09-19 Thread jan_bar
Link.setAutoAnable()

Jan

Stefan Arentz [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have a wicket:link in a master template and it seems to change
 from a aLink/a to a spanemLink/em when the current page is
 the same as the one linked to.

 Is it possible to turn this behaviour off or to customize it?

  S.




-
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] Linking dynamic javascript/css

2006-09-11 Thread jan_bar
Hi,

on my page I need to link link dynamic javascript. With
TextTemplateHeaderContributor the javascript/css is inlined into markup, but
how I can have something similiar with linked dynamic javascript/css?
Should I use something similar as Image (also places links to image URL) and
use TextTemplate as resource instead of Image's resource? BTW, the link
should be in header, not body.

Thanks, Jan




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Get url of BookmarkablePageLink

2006-09-11 Thread jan_bar
Hi,

how can I get url of BookmarkablePageUrl without adding it to the page? Even
if getURL() is public it still needs to be added to PageMap, otherwise it
throws. Is the BookmarkablePageUrl really public if it depends on PageMap
instance?

Thanks, Jan




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket way of doing (inter-)component updates?

2006-08-22 Thread jan_bar
Hi,

I would like to see some sample too. In my opinion, the hierarchical model
sample should be part of the wicket samples. We can very easy partition our
pages into Panels, Borders and whatever, but what about models? They are not
so easy to use. I think that a set of possible solutions (model - best
practices) used by core Wicket developers may be of immense help.

Thank you, Jan

Andre Matheus [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Could you please explain better the option 2?

If do you have an example it could be useful.

Thanks.
___
André Matheus

On 8/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Basically you have the choice between either:
 1) using observers/ event listeners for notification much like you
 would probably do with swing;
 2) use a hierarchal model that is shared between components so that
 any change in that model is automatically cascaded.

 1) is probably more work and has the danger that it causes a domino
 effect letting you end up with a zillion listeners, but the advantage
 is that you don't need a foreign model and it is more loosely bound.

 My personal preference is usually 2). Not that this model hierarchy
 can be on the actual model objects as well as on the IModels
 themselves.

 Eelco

 -
 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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
__
André Matheus

-
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=lnkkid=120709bid=263057dat=121642




-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket way of doing (inter-)component updates?

2006-08-22 Thread jan_bar
Thanks Eelco for your time. I hope I get the intent even if I did not looked
at Wicket 2.0.

The first solution with CompoundPropertyModel is clear, I just hesitate to
use the component id as the model accessor string. But my hesitation can be
solved with BoundCompoundPropertyModel.

The second solutions is interesting albeit more code is needed.

The last remark is not clear to me, I have look into Wicket 2.0 sources.

Thanks again, Jan

Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Take a look at how NewUserWizard of wicket-examples/wizard works. It
uses itself as the model object:

public class NewUserWizard extends WizardNewUserWizard
{
...
private static final ListString allRoles = Arrays.asList(new
String[] { admin, user,
moderator, joker, slacker });

private boolean assignRoles = false;

private User user;

public NewUserWizard(MarkupContainer parent, String id)
{
super(parent, id);

// create a blank user
user = new User();

setModel(new CompoundPropertyModelNewUserWizard(this));
...


Then, later on, that is used like:

  new RequiredTextField(this, user.firstName);
  new RequiredTextField(this, user.lastName);
  new TextField(this, user.department);
  new CheckBox(this, assignRoles);


The point here is that NewUserWizard is used as the compound model
object, nesting the user and assignRoles properties. Instead of
NewUserWizard, we could have any other class to nest those properties,
and instead of a CompoundPropertyModel, we could have just passed the
model in the constructors of the panels that use them. And instead of
relying on one top level model object, we could have used nested
IModel instances:

public class GimmeAll {
  private User user;
  private boolean assignRoles;
  ...
}

public class UserModel extends LoadableDetachableModelUser {

  private final IModelGimmeAll parentModel;

  public UserModel(IModelGimmeAll model) {
this.parentModel = model;
  }

  protected User load() {
GimmeAll o = parentModel.getObject();
return (o != null) ? o.getUser() : null;
  }

  protected void onDetach() {
parentModel.detach();
  }
}

and finally, in 2.0 you can 'force' using the proper model even if it
is not the concrete object yet:

public class SomePanel extends PanelUser {
  public SomePanel(MarkupContainer parent, IModelUser model) {
super(parent, model);
  }
}


Does that help?

Eelco


On 8/22/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 I would like to see some sample too. In my opinion, the hierarchical model
 sample should be part of the wicket samples. We can very easy partition
our
 pages into Panels, Borders and whatever, but what about models? They are
not
 so easy to use. I think that a set of possible solutions (model - best
 practices) used by core Wicket developers may be of immense help.

 Thank you, Jan

 Andre Matheus [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Could you please explain better the option 2?

 If do you have an example it could be useful.

 Thanks.
 ___
 André Matheus

 On 8/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Basically you have the choice between either:
  1) using observers/ event listeners for notification much like you
  would probably do with swing;
  2) use a hierarchal model that is shared between components so that
  any change in that model is automatically cascaded.
 
  1) is probably more work and has the danger that it causes a domino
  effect letting you end up with a zillion listeners, but the advantage
  is that you don't need a foreign model and it is more loosely bound.
 
  My personal preference is usually 2). Not that this model hierarchy
  can be on the actual model objects as well as on the IModels
  themselves.
 
  Eelco
 

 -
  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=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 __
 André Matheus

 -
 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=lnkkid=120709bid=263057dat=121642






 -
 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

Re: [Wicket-user] Pro Wicket beta book available

2006-08-16 Thread jan_bar
Hi and thanks for info. Which version of Wicket does it cover? 1.2?

Jan


Per Ejeklint [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Just want to inform that Apress have had problems with their
 downloadable beta books, but it's fixed. I just bought and
 downloaded Pro Wicket http://www.apress.com/book/bookDisplay.html?
 bID=10189, there are 9 chapters + appendix and intro available.
 Looks very nice and will definitely be worth US$20 for me. So now I
 will make a nice brew (tea) and dig in.

 Per




-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I use markup containers in head?

2006-07-29 Thread jan_bar
Never mind, it works fine. Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 how can I handle this problem:

 head
 wicket:head
 meta wicket:id=description name=description content=[SEO page
 description] /
 /wicket:head
 /head

 

 public class Title extends Panel {
 public Title(String id) {
 super(id);

 WebMarkupContainer description = new
WebMarkupContainer(description);
 description.add(new AttributeModifier(content, true, new Model(me
 description)));
 add(description);
 }
 }

 Thanks for your support, Jan




 -
 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




-
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] How can I use markup containers in head?

2006-07-28 Thread jan_bar
Hi,

how can I handle this problem:

head
wicket:head
meta wicket:id=description name=description content=[SEO page
description] /
/wicket:head
/head



public class Title extends Panel {
public Title(String id) {
super(id);

WebMarkupContainer description = new WebMarkupContainer(description);
description.add(new AttributeModifier(content, true, new Model(me
description)));
add(description);
}
}

Thanks for your support, Jan




-
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] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Hi,

I have a Panel and I want to change it's markup according to values
specified at the tag using the panel:

div wicket:id=myPanel myValues=showLeft showRight

The class MyPanel should read the attribute myValues and use the values as
model inside the panel, for instance show/hide some components inside that
panel.

How can I get the value of the attribute *inside* my Panel component?

Thanks, Jan




-
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] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Thanks Eelco for you quick support.

Jan

Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Override onComponentTag in your component and get the values with
 tag.getAttributes().

 In Wicket 2.0, you can even do getMarkupAttributes right in your
 component's constructor.

 Eelco



 On 7/24/06, jan_bar [EMAIL PROTECTED] wrote:
  Hi,
 
  I have a Panel and I want to change it's markup according to values
  specified at the tag using the panel:
 
  div wicket:id=myPanel myValues=showLeft showRight
 
  The class MyPanel should read the attribute myValues and use the
values as
  model inside the panel, for instance show/hide some components inside
that
  panel.
 
  How can I get the value of the attribute *inside* my Panel component?
 
  Thanks, Jan
 
 
 
 

 -
  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




-
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] wicket examples - live in action

2006-07-12 Thread jan_bar
Hi,

just to let you know, the live exmples at
http://www.wicket-library.com/wicket-examples/ doesn't work well (at least
for me). When I click on Source code and select any file on the left, I
get Internal error.

Thanks, Jan





-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wizard sample - same URL

2006-07-11 Thread jan_bar
Hi,

the wicket wizard component
(http://www.wicket-library.com/wicket-examples/wizard) takes advantage of
using the same URL for more (wizard) pages. The browser's Back button then
skips all wizard pages with same URL and jumps to the page before the
wizard. I want to ask if this functionality is part of the HTTP protocol,
or, in other words, if it is safe to use this in real application. Does it
work in all current browsers? Is it documented somewhere?

Thanks, Jan





-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Cache control for shared resources

2006-06-21 Thread jan_bar
Thanks, now I can create my own NonCacheablePackageResource and override
setHeaders().

Jan

Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I changed PackageResource so that the constructor is protected instead
 of private now. Having a private constructor in a non final class
 doesn't make sense anyway.

 Could you try if extending that class and overriding setHeaders does
 the job for you?

 Eelco






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


Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-21 Thread jan_bar
Hi,

just in the case, do you take IDN (International Domain Names) into
consideration? Allowed characters for .de domain are listed here:
http://www.denic.de/en/domains/idns/liste.html.

http://www.mädchen.de (doesn't work but is registered)

Jan




All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread jan_bar
Thanks Eelco,

 Additionally, you could consider using Resource.setCacheable(false),
 and then the IResourceStream's (or actually IModifiable's)
 lastModifiedTime result is used.

Actually (in wicket 1.2), the Resource.setCacheable(false) will call
response.setLastModifiedTime(Time.valueOf(-1)) and that will not append the
Last-Modified header at all.

Jan





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


Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread jan_bar
My resource is static file, so naturaly I want to use PackageResource. But I
cannot override the configureResponse() or setHeaders() because
PackageResource has private contructor. I cannot resue this class.

Thanks Jan


Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 You can override Resource.configureResponse or WebResource.setHeaders.

 Additionally, you could consider using Resource.setCacheable(false),
 and then the IResourceStream's (or actually IModifiable's)
 lastModifiedTime result is used.

 Eelco


 On 6/19/06, jan_bar [EMAIL PROTECTED] wrote:
  Hi,
 
  how can I add response.setHeader(Pragma, no-cache) to some shared
  resources? I have upload area/folder and when resource is uploaded I
want to
  see the new resource instead of cached old resource.
 
  Thanks, Jan
 
 
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 







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


[Wicket-user] Cache control for shared resources

2006-06-19 Thread jan_bar
Hi,

how can I add response.setHeader(Pragma, no-cache) to some shared
resources? I have upload area/folder and when resource is uploaded I want to
see the new resource instead of cached old resource.

Thanks, Jan





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


[Wicket-user] Examples - upload with ajax feedback

2006-06-14 Thread jan_bar
Hi,

I have troubles with 1.2 examples. With IE and upload with ajax feedback I
observe strange behaviour. Sometimes the form is submitted twice at the same
time, the first POST doesn't have body, the second one is correct (I clicked
only once on submit button). The POST without body is logged by Wicket as:

10:20:13.265 WARN!! POST
/wicket-examples/upload?wicket:interface=:4:ajax-simpleUpload:10:IFormSubmit
Listener HTTP/1.1 HttpException(400,Bad Request,Missing Content)

This happens only with IE (6.0], Firefox is fine.

Can someone else reproduce this?

Thanks, Jan





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


Re: [Wicket-user] Examples - upload with ajax feedback

2006-06-14 Thread jan_bar
Two bug reports with fixes were filled.

Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I am not sure, but I think, that the form onsubmit= javascript should
 return false if the standard submit behvaiour should be disabled.
 Unfortunately progressbar.js, wupd.start() function has no return value,
it
 means random return value is used

 Should I fill bug report?

 Regards, Jan

 jan_bar [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  I have troubles with 1.2 examples. With IE and upload with ajax feedback
I
  observe strange behaviour. Sometimes the form is submitted twice at the
 same
  time, the first POST doesn't have body, the second one is correct (I
 clicked
  only once on submit button). The POST without body is logged by Wicket
as:
 
  10:20:13.265 WARN!! POST
 

/wicket-examples/upload?wicket:interface=:4:ajax-simpleUpload:10:IFormSubmit
  Listener HTTP/1.1 HttpException(400,Bad Request,Missing Content)
 
  This happens only with IE (6.0], Firefox is fine.
 
  Can someone else reproduce this?
 
  Thanks, Jan
 
 
 
 
 










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


[Wicket-user] Communication with Flash

2006-06-05 Thread jan_bar
Hi,

I have a Flash on one wicket html page, the Flash needs to get configuration 
data from server. I don't know what is the best way how to do that and how 
wicket can help me.

The Flash has to send a request with something similar to session id, that 
is bound to the session of the user. Based on that id the response should 
contain data specific for the user.
How can I parse data from the Flash request? There is no Form object backing 
up the request. I know I can use getParam(), but can I use Wicket way of 
handling params?

The whole communication is similar to AJAX. Wicket supports AJAX but I don't 
know how much it is bound to javascript.

Thanks for any hints, Jan 





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


Re: [Wicket-user] Per page settings

2006-06-05 Thread jan_bar

Juergen Donnerstag [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I'm not sure I understand what the RFE suggests or requests. I
 understand your want to server HTML file (*.html) without xml
 declaration and XML (*.xml) with xml decls. Like XmlPage.java in the
 examples for the XML file you need to subclass Page.getMarkupType() to
 return xml because that is what Wicket assumes to be the file
 extension. Any ouy may as well subclass Page.configureResponse() to no
 remove the xml decl. And voila, from that point on you can use WebPage
 as base class for HTML pages and your XmlPage as base class for XML
 pages

 Isn't that the solution? What else are you asking for?

 Juergen

 On 6/3/06, jan_bar [EMAIL PROTECTED] wrote:
  RFE 1499927.
 
  I already fix that with XmlPage.configureResponse().
 
  Jan
 
  Juergen Donnerstag [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   You could create your own BasePage for all Xml and HTML Pages and
   subclass configureResponse. I'm not especially in favor of such
   if(condition). They'll always be subject to discussions.
  
   Juergen
  
   On 6/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Could you please submit a feature request for that?
   
Eelco
   
On 6/2/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 I am facing unpleasant troubles with
setStripXmlDeclarationFromOutput.
  My
 application needs to output HTML pages with stripped XML prologue,
but
  at
 the same time I have to serve XML files *with* the XML prologue.
The
 settings like StripXmlDeclarationFromOutput or StripWicketTags
(and
  other)
 or only application wide.

 Maybe, when Page.configureResponse() sees getMarkupType()==xml,
it
  should
 not strip XML prologue even if StripXmlDeclarationFromOutput is
set?

 Thanks for your support, Jan
 
 
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 







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


[Wicket-user] Re: Per page settings

2006-06-02 Thread jan_bar
Lee, it was a description of solution, not working Java code :-)

Jan


 Looks like at least one of your problems is doing string comparison
 using ==.

 jan_bar wrote:
  Hi,
 
  I am facing unpleasant troubles with setStripXmlDeclarationFromOutput.
My
  application needs to output HTML pages with stripped XML prologue, but
at
  the same time I have to serve XML files *with* the XML prologue. The
  settings like StripXmlDeclarationFromOutput or StripWicketTags (and
other)
  or only application wide.
 
  Maybe, when Page.configureResponse() sees getMarkupType()==xml, it
should
  not strip XML prologue even if StripXmlDeclarationFromOutput is set?
 
  Thanks for your support, Jan
 
 
 
 
 
  ---
  All the advantages of Linux Managed Hosting--Without the Cost and Risk!
  Fully trained technicians. The highest number of Red Hat certifications
in
  the hosting industry. Fanatical Support. Click to learn more
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user

 - --
 Justin Lee
 http://www.antwerkz.com
 AIM : evan chooly
 Skype : evanchooly
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.2.1 (Cygwin)

 iD8DBQFEgFhvJnQfEGuJ90MRA2TKAKCHKnFYH4yHxY1pj87DXEtwMWzKvQCdFtAk
 7dLgzS8246Lf3gO1Zg9i0+I=
 =vvmu
 -END PGP SIGNATURE-


 ---
 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642





---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] setStripWicketTags doesn't strip the xmlns:wicket attribute

2006-06-02 Thread jan_bar
Hi,

I think that setStripWicketTags(true) should also remove the xmlns:wicket
attribute. Should I fill bug report?

Jan





---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setStripWicketTags doesn't strip the xmlns:wicketattribute

2006-06-02 Thread jan_bar
RFE 1499926.

Jan

Juergen Donnerstag [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 An RFE please

 Juergen

 On 6/2/06, jan_bar [EMAIL PROTECTED] wrote:
  Hi,
 
  I think that setStripWicketTags(true) should also remove the
xmlns:wicket
  attribute. Should I fill bug report?
 
  Jan





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


Re: [Wicket-user] Per page settings

2006-06-02 Thread jan_bar
RFE 1499927.

I already fix that with XmlPage.configureResponse().

Jan

Juergen Donnerstag [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 You could create your own BasePage for all Xml and HTML Pages and
 subclass configureResponse. I'm not especially in favor of such
 if(condition). They'll always be subject to discussions.

 Juergen

 On 6/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Could you please submit a feature request for that?
 
  Eelco
 
  On 6/2/06, jan_bar [EMAIL PROTECTED] wrote:
   Hi,
  
   I am facing unpleasant troubles with setStripXmlDeclarationFromOutput.
My
   application needs to output HTML pages with stripped XML prologue, but
at
   the same time I have to serve XML files *with* the XML prologue. The
   settings like StripXmlDeclarationFromOutput or StripWicketTags (and
other)
   or only application wide.
  
   Maybe, when Page.configureResponse() sees getMarkupType()==xml, it
should
   not strip XML prologue even if StripXmlDeclarationFromOutput is set?
  
   Thanks for your support, Jan





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


[Wicket-user] SubmitLink, ctor with model

2006-04-30 Thread jan_bar
Hi,

I submitted bug report for SubmitLink, see http://tinyurl.com/lzxkf.
I also miss SubmitLink(id, model, form) constructor. The model may be needed
when the link changes visibility or enablement.

Thanks, Jan





---
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] FrameworkSettings.getVersion() seems to be buggy

2006-03-29 Thread jan_bar
Hi,

I tried FrameworkSettings.getVersion(), but it seems to read
wicket.properties of my application instead from wicketXX.jar. Does it work
for you?

Thanks, Jan





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Get version of Wicket from program

2006-03-07 Thread jan_bar



Hi,

for me that 
WicketServlet.class.getResourceAsStream("/META-INF/MANIFEST.MF") returns 
MANIFEST.MF from the JRE. How can I get Wicket manifest?

Is this method safe even if the Wicket.jar is part 
of WAR/EAR?

Jan

  "Martijn Dashorst" [EMAIL PROTECTED] 
  wrote in message news:[EMAIL PROTECTED]...Basically 
  the way Johan said is the way we retrieve the version of our own 
  application.Our own application tries to retrieve the version number 
  of the war archive, so that is a different usecase.Martijn
  On 3/7/06, Maurice 
  Marrink [EMAIL PROTECTED] 
  wrote:
  Codesource 
should never be null, if you class is in a jar file,codesource points to 
the jar.else it might point to a directory where your class files can be 
found(or in subdirs thereof). if none of the above is available it will 
point to the classfile itself.But perhaps Martijn can tell you 
how he did it, i know he did it forour project but can't seem to find 
where.MauriceOn 3/7/06, Joni Suominen  [EMAIL PROTECTED] 
wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag 
wrote:  Do you know how to access that 
information?How do you get the jar  file name a 
specific class has been loaded from?  
getClass().getProtectionDomain().getCodeSource().getLocation() gives 
you the location where the class was loaded from. I don't know in 
which situations the CodeSource may be null, though. 
Joni 
--- This SF.Net 
email is sponsored by xPML, a groundbreaking scripting language that 
extends applications into web and mobile media. Attend the live webcast 
 and join the prime developer group breaking into this new coding 
territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 
 ___ 
Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user---This 
SF.Net email is sponsored by xPML, a groundbreaking scripting 
languagethat extends applications into web and mobile media. Attend the 
live webcast and join the prime developer group breaking into this new 
coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 
___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst 
  Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 



[Wicket-user] Re: Re: Get version of Wicket from program

2006-03-07 Thread jan_bar



Finally this works for me:

URL url = 
"">url 
= "" URL("jar", "", url.toString() + "!/META-INF/MANIFEST.MF");

Manifest manifest = new 
Manifest(url.openStream());
Jan

  "Martijn Dashorst" [EMAIL PROTECTED] 
  wrote in message news:[EMAIL PROTECTED]...we 
  could check the manifest ourselves in wicket servlet or 
  application.Martijn
  On 3/7/06, Eelco 
  Hillenius  
  [EMAIL PROTECTED] wrote:
  Yeah, 
it wouldn't hurt to have version info available *easy* some way :) 
EelcoOn 3/7/06, Igor Vaynberg [EMAIL PROTECTED] 
wrote: heh, easier to let maven filter it into some static variable 
in some class i think :) 
-Igor On 3/7/06, jan_bar  [EMAIL PROTECTED] wrote: 
   Hi,   for me 
that 
WicketServlet.class.getResourceAsStream("/META-INF/MANIFEST.MF") 
returns MANIFEST.MF from the JRE. How can I get Wicket manifest? 
  Is this method safe even if the Wicket.jar is part of 
WAR/EAR?   Jan   "Martijn 
Dashorst" [EMAIL PROTECTED] 
wrote in message news:[EMAIL PROTECTED] 
...  Basically the way Johan said is the way we retrieve the 
version of our own  application.   Our own 
application tries to retrieve the version number of the war archive, 
so that is a different usecase.   Martijn 
 On 3/7/06, Maurice Marrink 
[EMAIL PROTECTED] 
wrote:   Codesource should never be null, if you class is in 
a jar file,   codesource points to the jar.   
 else it might point to a directory where your class files can be 
found   (or in subdirs thereof). if none of the above is 
available it will   point to the classfile itself.  
But perhaps Martijn can tell you how he did it, 
i know he did it for   our project but can't seem to find 
where. Maurice   
   On 3/7/06, Joni Suominen  [EMAIL PROTECTED] wrote: 
   On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag 
wrote: Do you know how to access that 
information?How do you get the jar  
file name a specific class has been loaded from?   

getClass().getProtectionDomain().getCodeSource().getLocation() gives 
youthe location where the class was loaded from. I 
don't know in which situations the CodeSource may be 
null, though.   Joni 
  
  --- 
This SF.Net email is sponsored by xPML, a 
groundbreaking scripting languagethat 
extends applications into web and mobile media. Attend the live 
webcastand join the prime developer group breaking 
into this new coding  territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 

___
Wicket-user mailing listWicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user 
  
---   
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language   that extends applications into web and mobile 
media. Attend the live  webcast   and join the prime 
developer group breaking into this new coding territory! 
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 
  ___   
Wicket-user mailing list   Wicket-user@lists.sourceforge.net 
  https://lists.sourceforge.net/lists/listinfo/wicket-user 
   -- 
 Living a wicket life...   Martijn Dashorst - http://www.jroller.com/page/dashorst 
   Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 
--- 
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
languagethat extends applications into web and mobile media. Attend the 
live webcastand join the prime developer group breaking into this new 
coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ 
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 
-- Living a wicket 
  life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 
  1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 



[Wicket-user] Re: Re: Wicket 1.2 and wicket:header

2006-03-06 Thread jan_bar



For me it would be nice if WebMarkupContainerWithAssociatedMarkup is 
standalone class. I can put it as a member to my Form and use it in 
renderHead(). 

Jan


"Johan Compagner" [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]...
But 
  a form component (so not a panel with own markup)can contribute to a 
  header just fine:public void renderHead(HtmlHeaderContainer 
  container)But i guess the discussion is here that even for non own 
  markup components we need to search for markup where the header part is 
  in??Or do i misunderstand the discussion we have here?The 
  problem i have with that renderHead call is that i need to do some tricky 
  stuff sothat when i have 2 components on the same page the headers is not 
  contributed twice But that is easy done with a boolean or thread local 
  fieldjohan
  On 3/6/06, Eelco 
  Hillenius  
  [EMAIL PROTECTED] wrote:
  I 
agree with the inconvenience Jan has. I have an other example... I was 
working on a slider this weekend, based on the Yahoo slider_javascript_ 
component. It would be nice to let this be a form componentthat can 
participate in form validation, population, etc, but also 
tousemarkup with this form, including header contribution. 
Currently, you either have to make the component a panel, and nest a 
formcomponent in that and let that pass any interesting events thu to 
theparent, or you have to extend formcomponent and write a lot 
ofduplicate code - the code that's now in both Panel and 
WebMarkupContainerWithAssociatedMarkup - yourself.It would be 
nice if there was an easier/ more elegant way.EelcoOn 
    3/5/06, jan_bar [EMAIL PROTECTED] 
 wrote: I will try to express myself better and I 
will add bug report if needed. In Wicket 1.1 I had a 
ValidatedForm class that inherits from Form. That class does client 
form validation (uses fvalidate scripts). The  ValidatedForm needs 
to add the scripts (and css) to the Page markup where the form is 
used. In Wicket I created ValidateForm.html with 
wicket:head, put the scrripts there and use 
_javascript_Reference. With Wicket 1.2 (beta) it doesn't work. The 
reason is that Wicket doesn't read the associated markup for 
Form. I think I can create new class out of 
WebMarkupContainerWithAssociatedMarkup, add it as a member  of my 
ValidatedForm and in onComponentTagBody() call 
renderAssociatedMarkup(). But there should be easier way. I 
think, that the same problem applies to FormComponent subclasses. If 
I want to tweak the Button with some clever scripts but use it as 
Button in  Java, I can't. I hope I was clear enough, 
thanks, Jan "Johan Compagner" [EMAIL PROTECTED] wrote in 
message 
news:[EMAIL PROTECTED] ... 
please add a bug report, and describe or attach a test what you exactly 
do. johan On 3/4/06, jan_bar 
 [EMAIL PROTECTED]  
wrote:  Hi,   I am migrating Wicket 
1.1.1 application to Wicket 1.2 (snapshot 20060302).  It seems 
that wicket:header doesn't work. My WebPage contains a MyForm. 
The  MyForm inherits from From and markup has 
wicket:head section. This section  is not shown 
in the final markup. This worked in previous version. I tried  
to debug but I am lost, because I don't have deep knowledge of Wicket. 
  Where can I check why the wicket:head is 
ignored?   Thanks, Jan   
This the inherited MyForm markup:   
html  head   meta name="author" 
content="jan_bar" /  wicket:head  
script type="text/_javascript_" 
src=""/script   
/wicket:head  /head  
body  /body  /html 
  
---   This 
SF.Net email is sponsored by xPML, a groundbreaking scripting 
language  that extends applications into web and mobile media. 
Attend the live webcast  and join the prime developer 
group breaking into this new coding  territory!  
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 
  ___  
Wicket-user mailing list  Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user 
---This 
SF.Net email is sponsored by xPML, a groundbreaking scripting language 
that extends applications into web and mobile media. Attend the live 
webcastand join the prime developer group breaking into this new coding 
territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user 
mailing listWicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Get version of Wicket from program

2006-03-06 Thread jan_bar
Hi,

how can I get Wicket version from my program? Something like:

String Application.getVersion()

In my opinion this is useful function. For instance when I write something,
that might not work well in next version of Wicket, I can assert on Wicket
version.

Thanks, Jan





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Re: Re: Wicket 1.2 and wicket:header

2006-03-06 Thread jan_bar
Hi,

I created standalone class out of WebMarkupWithAssociatedMarkup, it required
just a small typing. The ctor now takes WebMarkupContainer (Form in my
case), all occurences of 'this' now use the 'container', class
HeaderPartContainer extends WebMarkupContainer and I have to add public
setMyMarkupStream() that calls protected setMarkupStream(). Usage is similar
like in Panel. To my surprice it works without further debugging/tweaking.

Jan

Juergen Donnerstag [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Yes, it is about having an extra markup file with Form (or any other
Component) but ONLY wicket:head would be taken from that file. That
used to work and it still does if you derive your component from
WebMarkupWithAssociatedMarkup, but of course you can not use it with
Form. I tried Jan's suggestion already and made it a helper class, but
it would required a) plenty of parameters and b) we'd need to make a
couple more methods public (or add even more parameter to the methd
call). My first approach (though I didnt spend to much time on it)
looked fairly ugly.

renderHead(): That's actually where WebMarkupWithAssociatedContainer
taps in (see Panel, Border)

And I dont want to move all the stuff from
WebMarkupContainerWithAssociatedMarkup into WebMarkupContainer. I dont
think this pretty nice either. What we would need were extend java
access model like you and Jon were discussing on Eclipsezone.

Juergen

On 3/6/06, jan_bar [EMAIL PROTECTED] wrote:

 For me it would be nice if
 WebMarkupContainerWithAssociatedMarkup is standalone class.
 I can put it as a member to my Form and use it in renderHead().

 Jan


 Johan Compagner [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 But a form component (so not a panel with own markup)
 can contribute to a header just fine:

 public void renderHead(HtmlHeaderContainer container)

 But i guess the discussion is here that even for non own markup components
 we need
 to search for markup where the header part is in??

 Or do i misunderstand the discussion we have here?

 The problem i have with that renderHead call is that i need to do some
 tricky stuff so
 that when i have 2 components on the same page the headers is not
 contributed twice
 But that is easy done with a boolean or thread local field

 johan



 On 3/6/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  I agree with the inconvenience Jan has. I have an other example... I
  was working on a slider this weekend, based on the Yahoo slider
  javascript component. It would be nice to let this be a form component
  that can participate in form validation, population, etc, but also to
  use  markup with this form, including header contribution. Currently,
  you either have to make the component a panel, and nest a form
  component in that and let that pass any interesting events thu to the
  parent, or you have to extend formcomponent and write a lot of
  duplicate code - the code that's now in both Panel and
  WebMarkupContainerWithAssociatedMarkup - yourself.
 
  It would be nice if there was an easier/ more elegant way.
 
  Eelco
 
 
  On 3/5/06, jan_bar [EMAIL PROTECTED]  wrote:
  
   I will try to express myself better and I will add bug report if
needed.
  
   In Wicket 1.1 I had a ValidatedForm class that inherits from Form.
That
   class does client form validation (uses fvalidate scripts). The
   ValidatedForm needs to add the scripts (and css) to the Page markup
 where
   the form is used. In Wicket I created ValidateForm.html with
 wicket:head,
   put the scrripts there and use JavaScriptReference. With Wicket 1.2
 (beta)
   it doesn't work. The reason is that Wicket doesn't read the associated
   markup for Form.
   I think I can create new class out of
   WebMarkupContainerWithAssociatedMarkup, add it as a
 member
   of my ValidatedForm and in onComponentTagBody() call
   renderAssociatedMarkup(). But there should be easier way.
  
   I think, that the same problem applies to FormComponent subclasses. If
I
   want to tweak the Button with some clever scripts but use it as Button
 in
   Java, I can't.
  
   I hope I was clear enough, thanks, Jan
  
   Johan Compagner [EMAIL PROTECTED] wrote in message
  
 news:[EMAIL PROTECTED]
 ...
   please add a bug report, and describe or attach a test what you
exactly
 do.
  
   johan
  
  
  
   On 3/4/06, jan_bar  [EMAIL PROTECTED]  wrote:
Hi,
   
I am migrating Wicket 1.1.1 application to Wicket 1.2 (snapshot
 20060302).
It seems that wicket:header doesn't work. My WebPage contains a
 MyForm.
   The
MyForm inherits from From and markup has wicket:head section. This
   section
is not shown in the final markup. This worked in previous version. I
 tried
to debug but I am lost, because I don't have deep knowledge of
Wicket.
Where can I check why the wicket:head is ignored?
   
Thanks, Jan
   
This the inherited MyForm markup:
   
html
head
meta name=author content=jan_bar /
wicket:head

[Wicket-user] Re: Re: Re: Re: Wicket 1.2 and wicket:header

2006-03-06 Thread jan_bar
Thanks Eelco, I will test it.

Jan

Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I just commited improvements for header contributions. I created
behavior HeaderContributor which allows you to contribute to the page
header without being bound to the static class structure. Furthermore,
this would be a good basis for cleaning up our ajax support; they now
implement IHeaderContributor and have methods for writing to the
header, but using this new behaviors are more strongly typed and all
the filtering of double contributions is put in the behavior as an
implementation detail. It can be used like:

add(HeaderContributor.forCssReference(MyPanel.class, mystyle.css));

Preferably in constructors as their greatest value is for creating
custom components still.

Have fun with it, and as always be patient a few hours before it'll
show up in annonymous CVS.

Eelco


On 3/6/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 I created standalone class out of WebMarkupWithAssociatedMarkup, it
required
 just a small typing. The ctor now takes WebMarkupContainer (Form in my
 case), all occurences of 'this' now use the 'container', class
 HeaderPartContainer extends WebMarkupContainer and I have to add public
 setMyMarkupStream() that calls protected setMarkupStream(). Usage is
similar
 like in Panel. To my surprice it works without further debugging/tweaking.

 Jan

 Juergen Donnerstag [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Yes, it is about having an extra markup file with Form (or any other
 Component) but ONLY wicket:head would be taken from that file. That
 used to work and it still does if you derive your component from
 WebMarkupWithAssociatedMarkup, but of course you can not use it with
 Form. I tried Jan's suggestion already and made it a helper class, but
 it would required a) plenty of parameters and b) we'd need to make a
 couple more methods public (or add even more parameter to the methd
 call). My first approach (though I didnt spend to much time on it)
 looked fairly ugly.

 renderHead(): That's actually where WebMarkupWithAssociatedContainer
 taps in (see Panel, Border)

 And I dont want to move all the stuff from
 WebMarkupContainerWithAssociatedMarkup into WebMarkupContainer. I dont
 think this pretty nice either. What we would need were extend java
 access model like you and Jon were discussing on Eclipsezone.

 Juergen

 On 3/6/06, jan_bar [EMAIL PROTECTED] wrote:
 
  For me it would be nice if
  WebMarkupContainerWithAssociatedMarkup is standalone class.
  I can put it as a member to my Form and use it in renderHead().
 
  Jan
 
 
  Johan Compagner [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  But a form component (so not a panel with own markup)
  can contribute to a header just fine:
 
  public void renderHead(HtmlHeaderContainer container)
 
  But i guess the discussion is here that even for non own markup
components
  we need
  to search for markup where the header part is in??
 
  Or do i misunderstand the discussion we have here?
 
  The problem i have with that renderHead call is that i need to do some
  tricky stuff so
  that when i have 2 components on the same page the headers is not
  contributed twice
  But that is easy done with a boolean or thread local field
 
  johan
 
 
 
  On 3/6/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
   I agree with the inconvenience Jan has. I have an other example... I
   was working on a slider this weekend, based on the Yahoo slider
   javascript component. It would be nice to let this be a form component
   that can participate in form validation, population, etc, but also to
   use  markup with this form, including header contribution. Currently,
   you either have to make the component a panel, and nest a form
   component in that and let that pass any interesting events thu to the
   parent, or you have to extend formcomponent and write a lot of
   duplicate code - the code that's now in both Panel and
   WebMarkupContainerWithAssociatedMarkup - yourself.
  
   It would be nice if there was an easier/ more elegant way.
  
   Eelco
  
  
   On 3/5/06, jan_bar [EMAIL PROTECTED]  wrote:
   
I will try to express myself better and I will add bug report if
 needed.
   
In Wicket 1.1 I had a ValidatedForm class that inherits from Form.
 That
class does client form validation (uses fvalidate scripts). The
ValidatedForm needs to add the scripts (and css) to the Page markup
  where
the form is used. In Wicket I created ValidateForm.html with
  wicket:head,
put the scrripts there and use JavaScriptReference. With Wicket 1.2
  (beta)
it doesn't work. The reason is that Wicket doesn't read the
associated
markup for Form.
I think I can create new class out of
WebMarkupContainerWithAssociatedMarkup, add it as a
  member
of my ValidatedForm and in onComponentTagBody() call
renderAssociatedMarkup(). But there should be easier way.
   
I think, that the same

[Wicket-user] Re: Wicket 1.2 and wicket:header

2006-03-05 Thread jan_bar
The wicket:head is ignored because the MyForm markup is in read by Wicket.
So how can I add markup to Form?

Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I am migrating Wicket 1.1.1 application to Wicket 1.2 (snapshot 20060302).
 It seems that wicket:header doesn't work. My WebPage contains a MyForm.
The
 MyForm inherits from From and markup has wicket:head section. This
section
 is not shown in the final markup. This worked in previous version. I tried
 to debug but I am lost, because I don't have deep knowledge of Wicket.
 Where can I check why the wicket:head is ignored?

 Thanks, Jan

 This the inherited MyForm markup:

 html
 head
 meta name=author content=jan_bar /
 wicket:head
 script type=text/javascript
src=fvalidate/fValidate.config.js/script
 /wicket:head
 /head
 body
 /body
 /html





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Wicket 1.2 and wicket:header

2006-03-05 Thread jan_bar
Just a side note, the wicket:header should be wicket:head, the code is
correct, the message title and text has typo.

Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I am migrating Wicket 1.1.1 application to Wicket 1.2 (snapshot 20060302).
 It seems that wicket:header doesn't work. My WebPage contains a MyForm.
The
 MyForm inherits from From and markup has wicket:head section. This
section
 is not shown in the final markup. This worked in previous version. I tried
 to debug but I am lost, because I don't have deep knowledge of Wicket.
 Where can I check why the wicket:head is ignored?

 Thanks, Jan

 This the inherited MyForm markup:

 html
 head
 meta name=author content=jan_bar /
 wicket:head
 script type=text/javascript
src=fvalidate/fValidate.config.js/script
 /wicket:head
 /head
 body
 /body
 /html





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Wicket 1.2 and wicket:header

2006-03-05 Thread jan_bar
Hi Juergen,

you got it wrong, the wicket:head is for Form, not Page, see me other
post.

Jan

Juergen Donnerstag [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
wicket:head in Pages don't make any sense. Just remove it and you are
done.

Juergen

On 3/4/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 I am migrating Wicket 1.1.1 application to Wicket 1.2 (snapshot 20060302).
 It seems that wicket:header doesn't work. My WebPage contains a MyForm.
The
 MyForm inherits from From and markup has wicket:head section. This
section
 is not shown in the final markup. This worked in previous version. I tried
 to debug but I am lost, because I don't have deep knowledge of Wicket.
 Where can I check why the wicket:head is ignored?

 Thanks, Jan

 This the inherited MyForm markup:

 html
 head
 meta name=author content=jan_bar /
 wicket:head
 script type=text/javascript
src=fvalidate/fValidate.config.js/script
 /wicket:head
 /head
 body
 /body
 /html





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Wicket 1.2 and wicket:header

2006-03-05 Thread jan_bar



I will try to express myself better and I will add 
bug report if needed.

In Wicket 1.1 I had a ValidatedForm class that 
inherits from Form. That class does client form validation (uses fvalidate 
scripts). The ValidatedForm needs to add the scripts (and css) to the Page 
markup where the form is used. In Wicket I created ValidateForm.html with 
wicket:head, put the scrripts there and use _javascript_Reference. With 
Wicket 1.2 (beta) it doesn't work. The reason is that Wicket doesn't read the 
associated markup for Form.
I think I can create new class out of 
WebMarkupContainerWithAssociatedMarkup, add it as a member of my ValidatedForm 
and in onComponentTagBody() call renderAssociatedMarkup(). But there should be 
easier way.

I think, that the same problem applies to 
FormComponent subclasses. If I want to tweak the Button with some clever scripts 
but use it as Button in Java, I can't.

I hope I was clear enough, thanks, Jan

  "Johan Compagner" [EMAIL PROTECTED] wrote in 
  message news:[EMAIL PROTECTED]...please 
  add a bug report, and describe or attach a test what you exactly 
  do.johan
  On 3/4/06, jan_bar 
   [EMAIL PROTECTED] 
  wrote:
  Hi,I 
am migrating Wicket 1.1.1 application to Wicket 1.2 (snapshot 
20060302).It seems that wicket:header doesn't work. My WebPage contains 
a MyForm. TheMyForm inherits from From and markup has 
wicket:head section. This sectionis not shown in the final 
markup. This worked in previous version. I tried to debug but I am lost, 
because I don't have deep knowledge of Wicket.Where can I check why the 
wicket:head is ignored?Thanks, JanThis the inherited 
MyForm markup:htmlhead meta 
name="author" content="jan_bar" /wicket:headscript 
type="text/_javascript_" 
src=""/script/wicket:head 
/headbody/body/html---This 
SF.Net email is sponsored by xPML, a groundbreaking scripting language 
that extends applications into web and mobile media. Attend the live 
webcastand join the prime developer group breaking into this new coding 
territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Re: Wicket 1.2 and wicket:header

2006-03-05 Thread jan_bar



Exactly. But in Wicket 1.1 it had markup. See my 
other reply to Johan why I need it.

Thanks, Jan

  "Igor Vaynberg" [EMAIL PROTECTED] wrote in 
  message news:[EMAIL PROTECTED]...form 
  doesnt have its own markup, so how can it have a wicket:head tag associated 
  with it?-Igor
  On 3/5/06, jan_bar 
   [EMAIL PROTECTED] 
  wrote:
  Hi 
Juergen,you got it wrong, the wicket:head is for Form, not 
Page, see me other post.Jan"Juergen Donnerstag" [EMAIL PROTECTED] 
wrote in 
messagenews:[EMAIL PROTECTED] 
...wicket:head in Pages don't make any sense. Just remove it and 
you aredone.JuergenOn 3/4/06, jan_bar [EMAIL PROTECTED] wrote: 
Hi,  I am migrating Wicket 1.1.1 application to Wicket 1.2 
(snapshot 20060302). It seems that wicket:header doesn't work. My 
WebPage contains a MyForm.The MyForm inherits from From and 
markup has wicket:head section. This section is not 
shown in the final markup. This worked in previous version. I tried 
to debug but I am lost, because I don't have deep knowledge of 
Wicket. Where can I check why the wicket:head is ignored? 
 Thanks, Jan This the inherited MyForm 
markup: html head meta 
name="author" content="jan_bar" / wicket:head  
script 
type="text/_javascript_"src=""/script 
/wicket:head /head body 
/body /html 
 
--- This SF.Net 
email is sponsored by xPML, a groundbreaking scriptinglanguage 
that extends applications into web and mobile media. Attend the live 
webcast and join the prime developer group breaking into this 
new codingterritory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 
 ___ 
Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user---This 
SF.Net email is sponsored by xPML, a groundbreaking scripting 
languagethat extends applications into web and mobile media. Attend the 
live webcast and join the prime developer group breaking into this new 
coding territory!http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642 
---This 
SF.Net email is sponsored by xPML, a groundbreaking scripting 
languagethat extends applications into web and mobile media. Attend the 
live webcast and join the prime developer group breaking into this new 
coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 
___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket 1.2 and wicket:header

2006-03-04 Thread jan_bar
Hi,

I am migrating Wicket 1.1.1 application to Wicket 1.2 (snapshot 20060302).
It seems that wicket:header doesn't work. My WebPage contains a MyForm. The
MyForm inherits from From and markup has wicket:head section. This section
is not shown in the final markup. This worked in previous version. I tried
to debug but I am lost, because I don't have deep knowledge of Wicket.
Where can I check why the wicket:head is ignored?

Thanks, Jan

This the inherited MyForm markup:

html
head
meta name=author content=jan_bar /
wicket:head
script type=text/javascript src=fvalidate/fValidate.config.js/script
/wicket:head
/head
body
/body
/html





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket and Tomcat session id reuse

2006-03-02 Thread jan_bar
Hi,

I created a little application that tests various session behaviour. I 
notied something interesting with Tomcat. When session is invalidated and 
browser sends request to Tomcat with session id in cookie (the session was 
invalidated), Tomcat doesn't create new session with new id, it just reuse 
the session id. Just to be clean about that, here is part of the log:

PersistentSessionListener.sessionCreated(), id = 
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionDestroyed(), id = 
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionCreated(), id = 
94B93B22C9E1B8B2EFA96807764C12E9

Even if suprising behaviour, it is in my opinion correct. Why to generate 
new session id when I can reuse the already generated one?

And now to the point. It seems to me that Wicket 1.1.1 is not prepared to 
handle this correctly, for instance the WebApplication.redirectMap contains 
entries, that are not valid for the new session if it has the same id.

Can someone confirm this?

I use JBoss 4.0.3SP1

Thanks, Jan 





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Wicket and Tomcat session id reuse

2006-03-02 Thread jan_bar
Resin has sesion id reuse by default, see 
http://www.caucho.com/resin-3.0/config/webapp.xtp#session-config, search for 
reuse-session-id. I suspect, that Tomcat has something similar, I just 
cannot find the config parameter.

Jan

jan_bar [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,

 I created a little application that tests various session behaviour. I 
 notied something interesting with Tomcat. When session is invalidated and 
 browser sends request to Tomcat with session id in cookie (the session was 
 invalidated), Tomcat doesn't create new session with new id, it just reuse 
 the session id. Just to be clean about that, here is part of the log:

 PersistentSessionListener.sessionCreated(), id = 
 94B93B22C9E1B8B2EFA96807764C12E9
 PersistentSessionListener.sessionDestroyed(), id = 
 94B93B22C9E1B8B2EFA96807764C12E9
 PersistentSessionListener.sessionCreated(), id = 
 94B93B22C9E1B8B2EFA96807764C12E9

 Even if suprising behaviour, it is in my opinion correct. Why to generate 
 new session id when I can reuse the already generated one?

 And now to the point. It seems to me that Wicket 1.1.1 is not prepared to 
 handle this correctly, for instance the WebApplication.redirectMap 
 contains entries, that are not valid for the new session if it has the 
 same id.

 Can someone confirm this?

 I use JBoss 4.0.3SP1

 Thanks, Jan




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting 
 language
 that extends applications into web and mobile media. Attend the live 
 webcast
 and join the prime developer group breaking into this new coding 
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Wicket and Tomcat session id reuse

2006-03-02 Thread jan_bar
Thanks Johan,

(I cannot indent your message, because it is not plain text). I have exactly
the situation you describe. I use the REDIREC_TO_BUFFER, invalidate a page a
no redirect. With Jetty I get session expired page, which is expected, but
with Tomcat I get back the original page. Only after subsequent refresh or
button click I get the session expired. This is due to the fact, that the
buffered response was not cleared from the map.

Jan


Johan Compagner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
that map doesn't really matter
it is only filled with something if we send out a client side redirect to a
page that we already renderd (REDIREC_TO_BUFFER)

So it will only go wrong if the session got invalidated in a request then
a redirect is done to a page that was created for that request
But i guess this is maybe even wat you want because maybe it is the ByeBye
page?

The problem is that a buffered response isn't even checked for a new session
(or better said not yet created session)
because we don't create the session at that time..

We could stored those redirect buffers in the session, but we don't want
that because the session could be clusted ect and then it is constanlty
touched and updated and therefor replicated.

johan



On 3/2/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,

I created a little application that tests various session behaviour. I
notied something interesting with Tomcat. When session is invalidated and
browser sends request to Tomcat with session id in cookie (the session was
invalidated), Tomcat doesn't create new session with new id, it just reuse
the session id. Just to be clean about that, here is part of the log:

PersistentSessionListener.sessionCreated(), id =
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionDestroyed(), id =
94B93B22C9E1B8B2EFA96807764C12E9
PersistentSessionListener.sessionCreated(), id =
94B93B22C9E1B8B2EFA96807764C12E9

Even if suprising behaviour, it is in my opinion correct. Why to generate
new session id when I can reuse the already generated one?

And now to the point. It seems to me that Wicket 1.1.1 is not prepared to
handle this correctly, for instance the WebApplication.redirectMap contains
entries, that are not valid for the new session if it has the same id.

Can someone confirm this?

I use JBoss 4.0.3SP1

Thanks, Jan





--- 
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket and HTTP headers

2006-03-01 Thread jan_bar
Hi,

Wicket 1.1 doesn't have good support for manipulating HTTP headers, the 
Page.configureResponse() cannot access headers when 
ApplicationSettings.REDIRECT_TO_BUFFER is used.

Is there solution for Wicket 1.1 (other then using Filters)?

Will Wicket 1.2 change it? I have found this: 
http://thread.gmane.org/gmane.comp.java.wicket.user/7212

Thanks Jan 





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Source of application using Wicket

2006-02-28 Thread jan_bar
I tried with latest snapshot of wicket and wicket-extension (did not found
latest dojo). It's better but I cannot compile either, with javac 1.5.0_05 I
get compiler internal error (java.lang.AssertionError).

Jan


jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Thanks Martijn,

 I have latest version of burgerweeshuis, but it doesn't compile. It seems
 that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot
 should I use?

 Jan



 Martijn Dashorst [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 wicket phonebook is a good example to start with.

 Under construction, and more specifically /NOT/ by wicket guru's is the
 Burgerweeshuis project hosted at sourceforge.

 http://www.sourceforge.net/projects/burgerweeshuis

 It is a dutch project, but you might find some interesting things there.
It
 uses hibernate 3, annotations and wicket. It is a rewrite of a previously
 Model2 application (based on maverick).

 Martijn



 On 2/27/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 the Wicket samples is basic source of how to start with Wicket. But I miss
 some real world (more complex) applications. I like to learn from code
 written by Wicket gurus. For instance Pet Store with Wicket. Can you help
 me?

 Thank you, Jan





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 -- 
 Living a wicket life...

 Martijn Dashorst - http://www.jroller.com/page/dashorst

 Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Source of application using Wicket

2006-02-28 Thread jan_bar
Building with 1.5.0_05 and 1.5.0_06 ends with internal compiler error in
UserDetailsPage.java at this line:

  public RolesListView(String id) {
   super(id, new LoadableDetachableModel() {
@Override
protected Object load() {
 return getUserDao().findRoles();// this line crashes javac
}
   });
  }

This compiles correctly:

  public RolesListView(String id) {
   super(id, new LoadableDetachableModel() {
@Override
protected Object load() {
 Object obj = getUserDao().findRoles();
 return obj;
}
   });
  }

Which javac do you use?

Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I tried with latest snapshot of wicket and wicket-extension (did not found
 latest dojo). It's better but I cannot compile either, with javac 1.5.0_05
I
 get compiler internal error (java.lang.AssertionError).

 Jan


 jan_bar [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Thanks Martijn,
 
  I have latest version of burgerweeshuis, but it doesn't compile. It
seems
  that the wicket SNAPSHOT in the lib/wicket is out fo date. Which
snapshot
  should I use?
 
  Jan
 
 
 
  Martijn Dashorst [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  wicket phonebook is a good example to start with.
 
  Under construction, and more specifically /NOT/ by wicket guru's is the
  Burgerweeshuis project hosted at sourceforge.
 
  http://www.sourceforge.net/projects/burgerweeshuis
 
  It is a dutch project, but you might find some interesting things there.
 It
  uses hibernate 3, annotations and wicket. It is a rewrite of a
previously
  Model2 application (based on maverick).
 
  Martijn
 
 
 
  On 2/27/06, jan_bar [EMAIL PROTECTED] wrote:
  Hi,
 
  the Wicket samples is basic source of how to start with Wicket. But I
miss
  some real world (more complex) applications. I like to learn from code
  written by Wicket gurus. For instance Pet Store with Wicket. Can you
help
  me?
 
  Thank you, Jan
 
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
  -- 
  Living a wicket life...
 
  Martijn Dashorst - http://www.jroller.com/page/dashorst
 
  Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
 
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Re: Source of application using Wicket

2006-02-28 Thread jan_bar
Hi,

I cannot deploy it in JBoss jboss-4.0.3SP1:
13:05:32,090 ERROR [[/burgerweeshuis]] Servlet /burgerweeshuis threw load()
exception
java.lang.NoClassDefFoundError: wicket/AjaxHandler

I think something is missing in the war. I use wicket-1.2-20060227-0200.jar,
wicket-extensions-1.2-20060227-0200.jar and wicket-contrib-dojo-0.3.1.jar
instead of the original files in the lib/wicket.

Thanks for your time, Jan


Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Just get the latest or build a fresh one yourself.

Eelco

On 2/27/06, jan_bar [EMAIL PROTECTED] wrote:
 Thanks Martijn,

 I have latest version of burgerweeshuis, but it doesn't compile. It seems
 that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot
 should I use?

 Jan



 Martijn Dashorst [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 wicket phonebook is a good example to start with.

 Under construction, and more specifically /NOT/ by wicket guru's is the
 Burgerweeshuis project hosted at sourceforge.

 http://www.sourceforge.net/projects/burgerweeshuis

 It is a dutch project, but you might find some interesting things there.
It
 uses hibernate 3, annotations and wicket. It is a rewrite of a previously
 Model2 application (based on maverick).

 Martijn



 On 2/27/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 the Wicket samples is basic source of how to start with Wicket. But I miss
 some real world (more complex) applications. I like to learn from code
 written by Wicket gurus. For instance Pet Store with Wicket. Can you help
 me?

 Thank you, Jan





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 --
 Living a wicket life...

 Martijn Dashorst - http://www.jroller.com/page/dashorst

 Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Source of application using Wicket

2006-02-27 Thread jan_bar
Thanks Martijn,

I have latest version of burgerweeshuis, but it doesn't compile. It seems
that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot
should I use?

Jan



Martijn Dashorst [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
wicket phonebook is a good example to start with.

Under construction, and more specifically /NOT/ by wicket guru's is the
Burgerweeshuis project hosted at sourceforge.

http://www.sourceforge.net/projects/burgerweeshuis

It is a dutch project, but you might find some interesting things there. It
uses hibernate 3, annotations and wicket. It is a rewrite of a previously
Model2 application (based on maverick).

Martijn



On 2/27/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,

the Wicket samples is basic source of how to start with Wicket. But I miss
some real world (more complex) applications. I like to learn from code
written by Wicket gurus. For instance Pet Store with Wicket. Can you help
me?

Thank you, Jan





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: New snapshots available

2006-02-27 Thread jan_bar
Hi,

how can I access the snapshot downloads? Currently I have to go the the
Wicket downloads area and remove the package_id parameter from Url. I this
way I get all packages, including snapshots. There must be simpler way.

Thanks, Jan


Martijn Dashorst [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
All,

I have uploaded a new snapshot release for a lot of Wicket projects:
 o wicket
 o wicket-extensions
 o wicket-examples
 o wicket-spring
 o wicket-spring-annot
 o wicket-spring-examples
 o wicket-spring-annot-examples
 o wicket-auth-roles
 o wicket-auth-roles-examples

They have all been created using maven 2. It is our intention to move
our build system to maven 2, at least for the core projects.

Most notable changes to wicket:
 o ajax paging navigator
 o new date picker (Yahoo), old datepicker has been deprecated
 o maven 2 build system: much faster build times!
 o markup fragments (inline panels)
 o and of course the first downloadable releases of the spring and
authorization projects

Please help test our new build system, and try these packages. I have
done the most I can to make sure everything is in there, but things
may be missing.

If anyone has time and interest in a maven 2 build, please take a look
at the yet unreleased wicket-spring-cattr and
wicket-spring-cattr-examples project. They have a specific dependency
on commons-attributes-plugin to modify source code. I have tried to
get this one to build, but didn't manage to make it work. If anyone
can add this feature to the examples project, then we'd be very
thankful.

Have fun!

Martijn

--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: New snapshots available

2006-02-27 Thread jan_bar
Never mind, I found it. http://wicket.sourceforge.net, Project info -
Sourceforge, download pages

Jan

jan_bar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 how can I access the snapshot downloads? Currently I have to go the the
 Wicket downloads area and remove the package_id parameter from Url. I this
 way I get all packages, including snapshots. There must be simpler way.

 Thanks, Jan


 Martijn Dashorst [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 All,

 I have uploaded a new snapshot release for a lot of Wicket projects:
  o wicket
  o wicket-extensions
  o wicket-examples
  o wicket-spring
  o wicket-spring-annot
  o wicket-spring-examples
  o wicket-spring-annot-examples
  o wicket-auth-roles
  o wicket-auth-roles-examples

 They have all been created using maven 2. It is our intention to move
 our build system to maven 2, at least for the core projects.

 Most notable changes to wicket:
  o ajax paging navigator
  o new date picker (Yahoo), old datepicker has been deprecated
  o maven 2 build system: much faster build times!
  o markup fragments (inline panels)
  o and of course the first downloadable releases of the spring and
 authorization projects

 Please help test our new build system, and try these packages. I have
 done the most I can to make sure everything is in there, but things
 may be missing.

 If anyone has time and interest in a maven 2 build, please take a look
 at the yet unreleased wicket-spring-cattr and
 wicket-spring-cattr-examples project. They have a specific dependency
 on commons-attributes-plugin to modify source code. I have tried to
 get this one to build, but didn't manage to make it work. If anyone
 can add this feature to the examples project, then we'd be very
 thankful.

 Have fun!

 Martijn

 --
 Living a wicket life...

 Martijn Dashorst - http://www.jroller.com/page/dashorst

 Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642





 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Source of application using Wicket

2006-02-26 Thread jan_bar
Hi,

the Wicket samples is basic source of how to start with Wicket. But I miss
some real world (more complex) applications. I like to learn from code
written by Wicket gurus. For instance Pet Store with Wicket. Can you help
me?

Thank you, Jan





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Re: Wicket 1.1 line endings bug?

2005-11-06 Thread jan_bar
I use DiffUtil. The extension may help. You don't have troubles with it?

Jan

Juergen Donnerstag [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Are you using DiffPrint which we use for core unit tests?  May be we
just have to extend this class

Juergen

On 11/5/05, jan_bar [EMAIL PROTECTED] wrote:
 I don't know what is the best solutions. For me the pain is in JUnit tests
 when I compare byte to byte the rendered results with expected results. It
 should not break because of changed line endings. I have to write
comparator
 that will take different line endings into account.

 Jan





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-05 Thread jan_bar
I don't know what is the best solutions. For me the pain is in JUnit tests
when I compare byte to byte the rendered results with expected results. It
should not break because of changed line endings. I have to write comparator
that will take different line endings into account.

Jan

Juergen Donnerstag [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I think it can be solved at all. What ever the OS of the container is,
each client might have a different OS with line endings. Because of
this, I gues that all browser are able to handle any line endings
properly. If that is true, than it is only a question of which OS we
use for building the release. For consistency reasons, IMO we should
stay with Windows.

Juergen

On 11/4/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
 And to add to that, I don't think the different line endings rendering
 can be solved. When I build the release on laptop, Mac and Linux users
 will have different line endings when rendering.

 There is only one solution to this: everybody build their own release
 directly from CVS, and does this for all components. Another one would
 be to have our output stream convert the line endings to the current
 platform. But I don't know if that is good for performance.

 Martijn


 On 11/4/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
  Anyhow, now I'm confused. Should I make the next (1.1.x) release with
  my Mac or with my laptop? Doing it on my mac gives you consistent
  results comparing with 1.1. Doing it on my laptop gives you PC line
  endings.
 
  Martijn
 
  On 11/3/05, jan_bar [EMAIL PROTECTED] wrote:
   Hi,
  
   I compared results of rendered page from Wicket 1.1-rc2 and final 1.1.
In
   one page the 1.1 version mixes unix and microsoft line endings (it
worked
   well with 1.1-rc). Is this know bug?
  
   Jan
  
  
  
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server.
Download
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  --
  Living a wicket life...
 
  Martijn Dashorst - http://www.jroller.com/page/dashorst
 
  Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
 


 --
 Living a wicket life...

 Martijn Dashorst - http://www.jroller.com/page/dashorst

 Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server.
Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-03 Thread jan_bar
Filled as #1347101. Thanks for your work on Wicket. It would be nice if you
don't change line endings in Wicket sources (this is not related to the
reported bug) between releases of Wicket. When I use source comparing just
to see differences between versions, all files differ.

Thanks, Jan


Martijn Dashorst [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I don't know... It could be that because the 1.1 build was done on my Mac,
and the RC builds were done on my MS laptop.

Can you file a bug report, with a more precise description on what you think
is wrong?

Martijn


On 11/3/05, jan_bar [EMAIL PROTECTED] wrote:
Hi,

I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In
one page the 1.1 version mixes unix and microsoft line endings (it worked
well with 1.1-rc). Is this know bug?

Jan





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Re: Re: Wicket 1.1 line endings bug?

2005-11-03 Thread jan_bar



Who is Mac? A cute cat? Then I will survive with 
any line endings he likes.

Jan

  "Igor Vaynberg" [EMAIL PROTECTED] wrote in 
  message news:[EMAIL PROTECTED]...TORCH 
  IT...FIRE FIRE!-Igor
  On 11/3/05, Adam 
  Chesney [EMAIL PROTECTED] wrote:
  
+1 also.

I think that settles it... Martijn... if you 
would be so kind as to destroy your Mac immediatly and post some photos to 
the list to prove that you have done so.

A sledgehammer ought to suffice.

Thanks,

Adam.


  - 
  Original Message - 
  From: 
  Igor Vaynberg 
  
  To: 
  wicket-user@lists.sourceforge.net 
  Sent: 
  Thursday, November 03, 2005 4:15 PM
  Subject: 
  [Norton AntiSpam] Re: [Wicket-user] Re: Wicket 1.1 line endings bug?
  +1 on stopping the use of the mac 
  :)-Igor
  On 11/3/05, Johan 
  Compagner [EMAIL PROTECTED] wrote: 
  You 
should just stop using youre mac yes. That would be make everything much 
better :) 

On 11/3/05, Martijn Dashorst [EMAIL PROTECTED]  wrote: 
I 
  don't change the line endings, CVS does that for me. So basically you 
  are suggesting I should stop using my mac ;-).Long live the 
  differences between Mac, Linux and Dos... CR/LF/CRLF.Just 
  curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS, 
  and compare it to another version. I know most IDE's support that. 
  Martijn
  On 11/3/05, jan_bar [EMAIL PROTECTED] 
   wrote: 
  Filled 
as #1347101. Thanks for your work on Wicket. It would be nice if 
youdon't change line endings in Wicket sources (this is not 
related to thereported bug) between releases of Wicket. When I 
use source comparing just to see differences between versions, 
all files differ.Thanks, Jan"Martijn Dashorst" 
 
[EMAIL PROTECTED] wrote in 
messagenews:[EMAIL PROTECTED]I 
don't know... It could be that because the 1.1 build was done on my 
Mac,and the RC builds were done on my MS laptop.Can you 
file a bug report, with a more precise description on what you think 
is wrong?MartijnOn 11/3/05, jan_bar [EMAIL PROTECTED] wrote:Hi,I 
compared results of rendered page from Wicket 1.1-rc2 and final 1.1. 
In one page the 1.1 version mixes unix and "microsoft" line 
endings (it workedwell with 1.1-rc). Is this know 
bug?Jan---SF.Net 
email is sponsored by:Tame your development challenges with 
Apache's Geronimo App Server. Downloadit for free - -and be 
entered to win a 42" plasma tv or your very 
ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ 
Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Living 
a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 
1.1 is out: http://wicket.sourceforge.net/wicket-1.1 
--- 
SF.Net email is sponsored by:Tame your development 
challenges with Apache's Geronimo App Server. Downloadit for 
free - -and be entered to win a 42" plasma tv or your very 
ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ 
Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - 
  http://www.jroller.com/page/dashorstWicket 
  1.1 is out: http://wicket.sourceforge.net/wicket-1.1 
  


[Wicket-user] Re: Re: Wicket 1.1 line endings bug?

2005-11-03 Thread jan_bar
Just for your information, I have a JUnite test that compares rendering
result to stored file (as you do in Wicket test). That test ceased to work
in with 1.1. I spent some time finding where the difference is. I stored the
new file and compared to the old one with CVS. It showed that the files
differ, but showed no different lines. Some of the diffing SW can show you
whitespaces (tabs vers. spaces) but only few of them will show you different
line endings. I don't think it is good to join the already confused world of
line-endings, it's better to stick with just one. Just my opinion.

Jan

Martijn Dashorst [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I don't change the line endings, CVS does that for me. So basically you are
suggesting I should stop using my mac ;-).

Long live the differences between Mac, Linux and Dos... CR/LF/CRLF.

Just curious, why don't you use CVS diff's? Check out Wicket 1.1 from CVS,
and compare it to another version. I know most IDE's support that.

Martijn


On 11/3/05, jan_bar [EMAIL PROTECTED] wrote:
Filled as #1347101. Thanks for your work on Wicket. It would be nice if you
don't change line endings in Wicket sources (this is not related to the
reported bug) between releases of Wicket. When I use source comparing just
to see differences between versions, all files differ.

Thanks, Jan


Martijn Dashorst [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I don't know... It could be that because the 1.1 build was done on my Mac,
and the RC builds were done on my MS laptop.

Can you file a bug report, with a more precise description on what you think
is wrong?

Martijn


On 11/3/05, jan_bar [EMAIL PROTECTED] wrote:
Hi,

I compared results of rendered page from Wicket 1.1-rc2 and final 1.1. In
one page the 1.1 version mixes unix and microsoft line endings (it worked
well with 1.1-rc). Is this know bug?

Jan





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1





--- 
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Using Javascript in Panels

2005-09-30 Thread jan_bar
It doesn't matter how many times you have script src= with the same URL on
your page. It will be cached and downloaded only when needed.

Jan

Scott Sauyet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi Folks,

 It's been far too long since I asked a question on this list.  One might
 think I was starting to get it.  :-)

 I'm planning on building my first reusable panel soon; and I'm pretty
 sure I understand what I need to in order to do this, but one thing is
 nagging at me.  The panel will have associated Javascript.  This is
 straightforward enough, but that Javascript file depends upon another
 Javascript library, Ben Nolan's excellent Behaviours
 (http://bennolan.com/behaviour/).  I use that library for things other
 than this panel on some pages, but not on others.  I'd rather not
 include it twice on a single page.

 I could simply include the Behaviour library on each page, needed or
 not, and have the panel assume that it will be in place.  But I really
 don't like the idea that the panel can't be dropped into place.  It's
 not meant as a reusable panel for anything off my current project, but
 it feels somehow... wrong.  Perhaps I can add something to the Behaviour
 library that will only define things if they haven't already been
 defined, but that starts to bring back nightmares of old #IFDEF days;
 possible but not pleasing.

 So, I guess the question is, has anyone found an elegant solution to
 this problem?  Am I missing something basic?

 Thanks for all the help this list has given.

-- Scott



 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Image should support size

2005-09-22 Thread jan_bar
Hi,

I think that Image should support size out of the box. Size of most images
is known and specifying size improves rendereing in browser. I suggest to
add new method setSize(int,int). When the size is specified, the width and
height attributes will be added.

Thanks, Jan





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user