Re: [Wicket-user] [STDERR] SERIALIZING SessionPageKey

2007-05-23 Thread Johan Compagner

which version do you use?
at my place there are all commented out in the code

johan

On 5/23/07, Herman Bovens [EMAIL PROTECTED] wrote:



Hello,

I constantly get these messages in the console window:

ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,4,0,0, null,
[EMAIL PROTECTED]
ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,4,0,0, null,
[EMAIL PROTECTED] bytes: [EMAIL PROTECTED]
ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,5,0,0, null,
[EMAIL PROTECTED]
ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,5,0,0, null,
[EMAIL PROTECTED] bytes: [EMAIL PROTECTED]
ERROR [STDERR]
TESTMAP:SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,5,0,0, null, [Page
class = herbo.mijnbroodje.pages.HistoryPage, id = 5, version = 0]]

I don't notice anything when using the application.  What do they mean?

Herman

--
View this message in context:
http://www.nabble.com/-STDERR--SERIALIZING-SessionPageKey-tf3800720.html#a10753583
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/
___
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


Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Alex Objelean


There is at least two solutions.
1. The ideea is to use script tag as a Label component and its modelObject
contains a generated script
http://www.nabble.com/Feedbackmessages%3A-extend-by-new-type-ALERT---tf3795933.html
see this post .

2. Use TextTemplateHeaderContributor for adding javascript - you can also
interpolate variables inside it.

component.add(TextTemplateHeaderContributor.forJavaScript(getClass(),myscript.js,
variables));




Mark van Leeuwen wrote:
 
 Writing my first custom component...
 
 I want to initialise the component using inline Javascript placed
 immediately after the component markup.
 
 Searching the message archive I found one solution which is to use a label
 to output the script. Seems a bit of a hack.
 
 Is there a better way?
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-way-to-insert-inline-Javascript-tf3802007.html#a10758551
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to customize Modal Window`s appearance

2007-05-23 Thread Nikhil Gahlot

Thanks for the reply. Can you please share your experience on the
customization magic with us. Some pointer would be of great help.
 
Nikhil



Scott Swank wrote:
 
 Agreed.  We've gone the complicated CSS magic route and it is a bit
 involved, but I can vouch for the fact that it's an option.  :)
 
 On 5/18/07, Matej Knopp [EMAIL PROTECTED] wrote:
 It is customizable, but you need a rather complicated CSS magic to do
 it. Or, you can just override the images. Look at the images in the
 modal window package to see how it works.

 -Matej

 On 5/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  you can try applying your own css, but i doubt it. the window is not
 made to
  be too customizable atm.probably next major ver of wicket will include
 a
  rework of it. for now, you can integrate any of the zillion of
 javascript
  libs out there that produce a simple modal pane.
 
  -igor
 
 
 
  On 5/17/07, Nikhil Gahlot [EMAIL PROTECTED] wrote:
  
   Hi,
  
   I am using ModalWindow for my login screen. In that I have used panel
 as
  its
   content. Now I want to hide everything (including title bar, close
 link,
   etc) on Modal Window except the rich panel I am using. In other
 words, is
   there a way I can remove modal window`s title bar with close link and
   borders(left, right and bottom) keeping only body active that houses
 my
   login panel?
  
   Thanks
   Nikhil
   --
   View this message in context:
 
 http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10676785
   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/
   ___
   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/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 
 -- 
 Scott Swank
 reformed mathematician
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10758593
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Mark van Leeuwen
Thanks for the suggestions but I don't like either of these solutions.

First one involving the use of the label is the hack to which I have already
referred. In my case I am extending DropDownChoice and it would be messy to
require a special label component to go with it. I want to use just the one
component. If I make it a panel, then I lose the advantage of allowing the
select and option tags to be used directly.

The 2nd option is also a pain. The script needs to be invoked when the page
is being loaded. To invoke script in the header means calling it from body
onload etc. Much simpler to just have the script inline after the component
html.

I am investigating now whether I might be able to by overriding
DropDownChoice.onRender().

Maybe a new behavior would be a more generic solution.

Any other ideas would be welcome...


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of Alex Objelean
 Sent: Wednesday, 23 May 2007 5:02 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Best way to insert inline Javascript
 
 
 
 There is at least two solutions.
 1. The ideea is to use script tag as a Label component and its
 modelObject
 contains a generated script
 http://www.nabble.com/Feedbackmessages%3A-extend-by-new-type-ALERT---
 tf3795933.html
 see this post .
 
 2. Use TextTemplateHeaderContributor for adding javascript - you can also
 interpolate variables inside it.
 
 component.add(TextTemplateHeaderContributor.forJavaScript(getClass(),mysc
 ript.js,
 variables));
 
 
 
 
 Mark van Leeuwen wrote:
 
  Writing my first custom component...
 
  I want to initialise the component using inline Javascript placed
  immediately after the component markup.
 
  Searching the message archive I found one solution which is to use a
 label
  to output the script. Seems a bit of a hack.
 
  Is there a better way?
 
 
 
 --
 View this message in context: http://www.nabble.com/Best-way-to-insert-
 inline-Javascript-tf3802007.html#a10758551
 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/
 ___
 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


Re: [Wicket-user] SVN access broken?

2007-05-23 Thread Ravindra Wankar

OK, I was able to get to it using

 http://svn.apache.org/repos/asf/incubator/wicket/trunk

However, there is a failure while running tests for 1.3.  From what I 
see seems like in 
org.apache.wicket.request.target.coding.UrlMountingTest. Am I the only 
one seeing this?

Thanks
Ravi.

Ravindra Wankar wrote:
 Both, web access and anonymous access do not work for me.

 Web access points to

 http://svn.apache.org/viewvc/incubator/wicket/branches/wicket

 and anonymous access to

 svn checkout 
 https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket wicket


 Thanks
 Ravi.

 -
 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


Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
Another way could be to create the javascript component and invoke it by 
adding a onload behavior to your dropdown, this should work?

I've implemented a simple progress indicator this way, although I used 
the onclick event.

regards Nino

Mark van Leeuwen wrote:
 Thanks for the suggestions but I don't like either of these solutions.

 First one involving the use of the label is the hack to which I have already
 referred. In my case I am extending DropDownChoice and it would be messy to
 require a special label component to go with it. I want to use just the one
 component. If I make it a panel, then I lose the advantage of allowing the
 select and option tags to be used directly.

 The 2nd option is also a pain. The script needs to be invoked when the page
 is being loaded. To invoke script in the header means calling it from body
 onload etc. Much simpler to just have the script inline after the component
 html.

 I am investigating now whether I might be able to by overriding
 DropDownChoice.onRender().

 Maybe a new behavior would be a more generic solution.

 Any other ideas would be welcome...
 

   
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of Alex Objelean
 Sent: Wednesday, 23 May 2007 5:02 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Best way to insert inline Javascript



 There is at least two solutions.
 1. The ideea is to use script tag as a Label component and its
 modelObject
 contains a generated script
 http://www.nabble.com/Feedbackmessages%3A-extend-by-new-type-ALERT---
 tf3795933.html
 see this post .

 2. Use TextTemplateHeaderContributor for adding javascript - you can also
 interpolate variables inside it.

 component.add(TextTemplateHeaderContributor.forJavaScript(getClass(),mysc
 ript.js,
 variables));




 Mark van Leeuwen wrote:
 
 Writing my first custom component...

 I want to initialise the component using inline Javascript placed
 immediately after the component markup.

 Searching the message archive I found one solution which is to use a
   
 label
 
 to output the script. Seems a bit of a hack.

 Is there a better way?


   
 --
 View this message in context: http://www.nabble.com/Best-way-to-insert-
 inline-Javascript-tf3802007.html#a10758551
 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/
 ___
 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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Mark van Leeuwen
Unfortunately onload is available only for body / img /applet type tags, not
select.

Mark

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of Nino Saturnino Martinez
 Vazquez Wael
 Sent: Wednesday, 23 May 2007 5:42 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Best way to insert inline Javascript
 
 Another way could be to create the javascript component and invoke it by
 adding a onload behavior to your dropdown, this should work?
 
 I've implemented a simple progress indicator this way, although I used
 the onclick event.
 
 regards Nino
 
 Mark van Leeuwen wrote:
  Thanks for the suggestions but I don't like either of these solutions.
 
  First one involving the use of the label is the hack to which I have
 already
  referred. In my case I am extending DropDownChoice and it would be messy
 to
  require a special label component to go with it. I want to use just the
 one
  component. If I make it a panel, then I lose the advantage of allowing
 the
  select and option tags to be used directly.
 
  The 2nd option is also a pain. The script needs to be invoked when the
 page
  is being loaded. To invoke script in the header means calling it from
 body
  onload etc. Much simpler to just have the script inline after the
 component
  html.
 
  I am investigating now whether I might be able to by overriding
  DropDownChoice.onRender().
 
  Maybe a new behavior would be a more generic solution.
 
  Any other ideas would be welcome...
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:wicket-user-
  [EMAIL PROTECTED] On Behalf Of Alex Objelean
  Sent: Wednesday, 23 May 2007 5:02 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Best way to insert inline Javascript
 
 
 
  There is at least two solutions.
  1. The ideea is to use script tag as a Label component and its
  modelObject
  contains a generated script
  http://www.nabble.com/Feedbackmessages%3A-extend-by-new-type-ALERT---
  tf3795933.html
  see this post .
 
  2. Use TextTemplateHeaderContributor for adding javascript - you can
 also
  interpolate variables inside it.
 
 
 component.add(TextTemplateHeaderContributor.forJavaScript(getClass(),mysc
  ript.js,
  variables));
 
 
 
 
  Mark van Leeuwen wrote:
 
  Writing my first custom component...
 
  I want to initialise the component using inline Javascript placed
  immediately after the component markup.
 
  Searching the message archive I found one solution which is to use a
 
  label
 
  to output the script. Seems a bit of a hack.
 
  Is there a better way?
 
 
 
  --
  View this message in context: http://www.nabble.com/Best-way-to-insert-
  inline-Javascript-tf3802007.html#a10758551
  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/
  ___
  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/
 ___
 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


Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Harald Gruber

you could implement it as behavior and just add it to the dropdown...

have a look at my example. the javascript is composed and written in the 
onRendered
method so its written out right after the component.

harald


 example ---

import org.apache.wicket.Component;
import org.apache.wicket.ResourceReference;
import org.apache.wicket.Response;
import org.apache.wicket.behavior.AbstractBehavior;
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.IHeaderContributor;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.markup.html.resources.JavascriptResourceReference;

public class RoundedCorners extends AbstractBehavior implements 
IHeaderContributor {
private static final long serialVersionUID = 1L;

private String componentTag;
private String options;

public RoundedCorners() {
this.options = normal,all;
}

public RoundedCorners(final String options) {
this.options = options;
}

public void bind(final Component component) {
component.setOutputMarkupId(true);
}

public void onComponentTag(final Component component, final 
ComponentTag tag) {
componentTag = tag.getName();
}

public void onRendered(Component component) {
String markupId = component.getMarkupId();
Response response = component.getResponse();
response.write(\nscript type=\text/javascript\\n);
response.write(!--\n);
response.write(Nifty(\);
response.write(componentTag);
response.write(#);
response.write(markupId);
response.write(\,\);
response.write(options);
response.write(\);\n);
response.write( --\n);
response.write(/script);
}

public void renderHead(IHeaderResponse response) {
response.renderCSSReference(new 
ResourceReference(RoundedCorners.class, nifty.css));
response.renderJavascriptReference(new 
JavascriptResourceReference(RoundedCorners.class, nifty.js));
}

}


-
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] FireFox 1.5 macos, ajax fails..

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
While developing on the gmap component, a collegue of mine needed to 
test it, unfortunately he had ff 1.5 and when moving around on the 
gmap(thats where the ajax fires) the script got non responsive.

So I went ahead and checked the wicket examples they give errors aswell, 
but does not end up non responsive. Now I havent got FF 1.5 on 2.0 
everythings just fine. I wont be able to give more exact error messages 
until next tuesday. As I dont think I can have both FF1.5 and 2.0 
installed at the same time.

BTW safari 2 works fine.

regards Nino

Matej Knopp wrote:
 What kind of errors?

 -Matej

 On 5/22/07, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
   
 Hi

 any had trouble with this. My Ajax calls fails with FF 1.5 on macos.
 Also following the wiki any trying the wicket examples fails or gives
 aleast a couple of errors.

 regards Nino

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


Re: [Wicket-user] xsd or dtd

2007-05-23 Thread Martijn Dashorst
Thanks!

Martijn

On 5/23/07, Timo Rantalaiho [EMAIL PROTECTED] wrote:
 On Tue, 22 May 2007, Martijn Dashorst wrote:
  Could you file an issue with this please? It would be nice to make the
  dtd work better.

 Sure, here it is:

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

 - Timo

 --
 Timo Rantalaiho   +358-45-6709709
 Reaktor Innovations OyURL: http://www.ri.fi/ 

 -
 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



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] continueToOriginalDestination / RestartResponseAtInterceptPageException with page parameters

2007-05-23 Thread Wouter de Vaal

Ok I've tested below and it worked for me, so I have added a bug report +
patch:

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


Wouter

On 5/21/07, Wouter de Vaal [EMAIL PROTECTED] wrote:


To summarize my problem:

Original call: /admin/editquote?id=13
Redirect url after login: /admin/editquote

I did some more debugging and it went down like this:

PageMap:
interceptContinuationURL = cycle.getRequest().getPath();
calls
ServletWebRequest
public String getPath()
{
return
((WebApplication)Application.get()).getWicketFilter().getRelativePath(
httpServletRequest);
}
Which calls

WicketFilter.getRelativePath(HttpServletRequest request)

is called, which does not include the queryParameters

so perhaps
interceptContinuationURL = cycle.getRequest().getPath(); should be:
interceptContinuationURL = cycle.getRequest().getURL();?

Problem is I can't test it now, making a snapshot build foobart my
login page, on which I just sent another mail.

Wouter

On 5/21/07, Johan Compagner [EMAIL PROTECTED] wrote:
 what does the getURL string return of a normal http request?
 thats also without the query string?

 What call do we need to have to really have the complete url?

 johan



  On 5/19/07, Wouter de Vaal [EMAIL PROTECTED] wrote:
 
  Ok sure, but I need some help.
 
  Usually the part of the request that is missing is taken from (when
  not using a framework)
  javax.servlet.http.HttpServletRequest.getQueryString()
 
  But PageMap is depending on org.apache.wicket.Request which seems
  unaware of http, but it does hold an instance of
  org.apache.wicket.request.RequestParameters.
 
  Now I guess I can do two things, change Request to hold an abstract
  for of getQueryString and implement it like the getUrl() method in all
  the implementing classes, or convert the RequestParameter object to a
  string. In the latter case I hope there is some utility class/method I
  can use.
 
  Can any of you wicket guys please assist me on this?
 
  Wouter
 
  On 5/18/07, Johan Compagner [EMAIL PROTECTED] wrote:
   yes please make a case (with a patch is even better :) )
  
  
   On 5/18/07, Wouter de Vaal  [EMAIL PROTECTED] wrote:
You are correct about the interpretation of my problem. I've run
the
   debugger
and interceptContinuationURL = cycle.getRequest ().getURL(); does
not
store the ?x=y part.
   
Shall I file a bug report?
   
Wouter
   
On 5/18/07, Johan Compagner  [EMAIL PROTECTED]  wrote:
 ahh but that is an url that doesn't have query args like ?xx=yy

 you only have a path that should work yes

 johan



 On 5/18/07, Thomas R. Corbin  [EMAIL PROTECTED] wrote:
  On Friday 18 May 2007 8:04 am, Johan Compagner escreveu:
   hmm this could be bug i think, we dont support post params
at
 all
   but get should be but maybe we store only part of the url
(only
 the
 path)
 
  i'm not sure that I quite understand the issue, but if
my
 user
 goes to a url
  such as
 
 

  
 http://myserver.com/myapp/app/queryDialog/variation/oru_edv/billGroup/23
 
  and they go through my login page, they still end up
at
 the
   right
 page with
  all the page parameters.
 
  Is that what you meant Wouter?
 
  In that case, I'm still on the pre-apache-package
reorg,
 but
   will
 upgrade
  this weekend.
 
  
   can you see what this code in PageMap:
  
   interceptContinuationURL = cycle.getRequest().getURL();
  
   does return? is getURL() onl returning the part withoug
query
   params?
  
   johan
  
   On 5/18/07, Wouter de Vaal  [EMAIL PROTECTED] wrote:
Hi,
   
I'm using the login/authorization strategy taken from the
 wicket
examples, which is
throw new
   RestartResponseAtInterceptPageException(
 SignIn.class);
   
in the application class and calling
   
continueToOriginalDestination()
   
in the login page.
   
However when I'm using a bookmarkable page with
 PageParameters,
   the
parameters get lost in the process..
   
Am I missing something, or is this behaviour just not
 supported?
   
Regards,
Wouter
   
   

  

-
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] JDK 1.4 wicket-examples source code for 1.3.0?

2007-05-23 Thread Martijn Dashorst
These are not branches but distinctions in types of projects: this way
we only have to specify the compiler version once.

All examples projects have been integrated into one project, and as
such needed to become JDK 1.5 (some projects such as auth-roles and
wicket-spring-annot are JDK 1.5 only).

In short: all examples are in the JDK 1.5 sub-module.

Martijn

On 5/23/07, Timo Rantalaiho [EMAIL PROTECTED] wrote:
 Hello,

 Where is the source code of wicket-examples for current
 Java 1.4 trunk? Or does it even exist?

 For 1.5 branch it's here alongside wicket, wicket-extensions
 etc

   http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.5/

 but for 1.4 not

   http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.4/

 - Timo

 --
 Timo Rantalaiho   +358-45-6709709
 Reaktor Innovations OyURL: http://www.ri.fi/ 

 -
 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



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] problem with Ajax and rendering on trunk version

2007-05-23 Thread Martijn Dashorst
Just to be safe, could you create a JIRA issue for this? Then it won't
go unnoticed.

Martijn

On 5/22/07, Xavier Hanin [EMAIL PROTECTED] wrote:
 Hi,

 I've just upgraded my 1.3 beta 1 version to a personnally build
 snapshot version based on revision xxx to fix a problem related to
 Ajax and Page Expired, and the problem I had before is gone. Great!

 But now I've another strange problem. I get the following error message:
 18:49:19.245 [btpool0-2] ERROR org.apache.wicket.RequestCycle - The
 component(s) below failed to render. A common problem is that you have
 added a component in code but forgot to reference it in the markup
 (thus the component will never be rendered).

 1. [MarkupContainer [Component id = progressBarStylesheet, page =
 org.xoocode.xooctory.web.pages.dashboard.Dashboard, path =
 2:projects-panel:projects:6:leftTimePanel:progressBar:progressBarStylesheet.StyleSheetReference,
 isVisible = true, isVersioned = false]]

 The problem is that the component is properly added, and it worked
 before upgrading, so...

 So I've tried to track down the problem, and I've not found the source
 of the problem. As a workaround I disable check rendering with:
 getDebugSettings().setComponentUseCheck(false);
 Then everything works properly, and the component (a style sheet) is
 properly rendered.

 Let me explain a little bit more the situation in which the problem occurs.
 The component which is causing the problem is a StyleSheetReference
 added to a panel. The markup contains the corresponding link in a
 wicket:head section.
 The panel is invisible when the page is loaded, but then I use an ajax
 link to trigger an action, which later triggers the visibility of this
 component to true. Then this component is refreshed by an AjaxTimer
 (actually I use wicket-contrib-push, but I don't think it really makes
 a difference, since it's using a simple AbstractAjaxTimerBehavior
 underneath). And that's when the component is rendered that the check
 rendering is failing. Some analysis shown that there's a
 StyleSheetReference with the good id in the renderedComponent
 attribute of Page, but it isn't the exact same StyleSheetReference
 instance as the one checked by the checkRendering method. For the
 moment I haven't managed to really see why I have two instances, what
 doesn't help is that it seems that when I debug, the problem goes away
 depending on the occurence of other timer based ajax requests.

 Do any of you have already faced this problem, or has any idea of how
 it could come from?

 Xavier

 --
 Xavier Hanin - Independent Java Consultant
 Manage your dependencies with Ivy!
 http://incubator.apache.org/ivy/

 -
 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



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] How to display applet in wicket?

2007-05-23 Thread edward durai

Finally, It's working.

My applet looks lik

APPLET codebase=http://localhost:8080/projectName; CODE=ClassName
WIDTH=400 HEIGHT=450


/APPLET

Here Hardcoded values x_axis_value and y_axis_value is working fine.
Consider I have one text box with label Dates and
Consider I have one text box with label values(y).
How to get both values and apply the above applet tags? I am the newbie of
wicket. Please tell your suggestions.




Robert Novotny wrote:
 
 One problem, which could arise, is the URL from which is the graph.class
 loaded. When you've got your applet page on
 http://server.com/page/applet.html, browser JVM willl try to load
 graph.class from http://server.com/page/graph.class URL. Also make sure
 that you have a correct case (Java classes should start with an uppercase
 letter, therefore I think it is better to have applect
 code=Graph.class.. and class called Graph).
 
 However, if you specify the JAR files in the archive attribute, your
 classes will be loaded from the specified JARs. 
 
 There can be another hiccup dealing with URL mounting. In our project we
 have mounted the Wicket webapplication on the
 url-pattern/app/*/url-pattern. Therefore our applet page has URL
 http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet,
 which means that the JAR files are loaded from the
 http://[servername]:8080/[appname] directory, i. e. from JAR files which
 are located in the directory just above the WEB-INF.
 
 If your webpage is mounted (for example to
 http://[servername]:8080/[appname]/app/userprofile), you could come across
 JAR loading problems, because JVM will try to load JAR/CLASS file from
 that http://[servername]:8080/[appname]/app/userprofile, which does not
 correspond to any server directory, therefore it will not find your
 JARs/CLASSes.
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 
 
 
  !-- Dynamic --
 !-- Dynamic --
 
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10759460
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket vs. struts presentation

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
I must dissagree(on the part where you say that wicket are mostly used 
in intranet apps), although not a wicket veteran yet(only been doing 
wicket for around 1.5 years).

The two projects I've been involved in during this periode has both been 
using wicket. Both projects being commercially and also public 
accessible. Also skimming the wiki looking at sites almost none seems to 
be intranet ones..

regards Nino

Johan Compagner wrote:
 wicket is a very good fit for intranet development.
 I think it is mostly used in that kind of webapps.

 johan


 On 5/22/07, *Florian Hehlen*  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:

 Hi,

 the reason we are comparing to Struts is that that's one of the
 contender. We are not a web-app shop. We need a general purpose
 toolkit for intranet development. But since struts is so popular
 it's being pitted against wicket.

 Florian


 Erik van Oosten wrote:
 Hi Florian,

 1- I am surprised you want to compare against Struts. Almost any modern 
 web
 framework will kick ass compared to Struts.

 2- I know only of one. It is the first article on this page on the wiki:

 http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a very

 nice comparison of Wicket and JSF listings. Its a simple application, you
 can easily image how to do it in Struts.

 3- Wicket is weak at sites that need to handle millions of hits per 
 minute
 (not many frameworks are good at this). Wicket is also not very good if 
 you

 need absolute and complete control on the format of your URLs. These are
 both extremes. I think Wicket will do very well for at least 90% of the 
 web
 applications.

 Good luck,
 Erik. 


 Florian Hehlen-2 wrote:

   
 Hi all,

 I am looking for help presenting wicket to my development team.

 1-Has anyone out there had to defend wicket vs. struts and would you 
 have any resources/links/presentations to pass this way to help in 

 presenting wicket to our group?

 2-Has anyone made any measurements/analysis of the code-base needed for 
 identical application in wicket vs. struts(or any other framework)

 3-Objectively, I am also looking for what wicket is weak at.


 florian

 
   


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


Re: [Wicket-user] problem with Ajax and rendering on trunk version

2007-05-23 Thread Xavier Hanin

On 5/23/07, Martijn Dashorst [EMAIL PROTECTED] wrote:


Just to be safe, could you create a JIRA issue for this? Then it won't
go unnoticed.



Done:
https://issues.apache.org/jira/browse/WICKET-589

Xavier

Martijn


On 5/22/07, Xavier Hanin [EMAIL PROTECTED] wrote:
 Hi,

 I've just upgraded my 1.3 beta 1 version to a personnally build
 snapshot version based on revision xxx to fix a problem related to
 Ajax and Page Expired, and the problem I had before is gone. Great!

 But now I've another strange problem. I get the following error message:
 18:49:19.245 [btpool0-2] ERROR org.apache.wicket.RequestCycle - The
 component(s) below failed to render. A common problem is that you have
 added a component in code but forgot to reference it in the markup
 (thus the component will never be rendered).

 1. [MarkupContainer [Component id = progressBarStylesheet, page =
 org.xoocode.xooctory.web.pages.dashboard.Dashboard, path =
 2:projects-panel:projects:6:leftTimePanel:progressBar:
progressBarStylesheet.StyleSheetReference,
 isVisible = true, isVersioned = false]]

 The problem is that the component is properly added, and it worked
 before upgrading, so...

 So I've tried to track down the problem, and I've not found the source
 of the problem. As a workaround I disable check rendering with:
 getDebugSettings().setComponentUseCheck(false);
 Then everything works properly, and the component (a style sheet) is
 properly rendered.

 Let me explain a little bit more the situation in which the problem
occurs.
 The component which is causing the problem is a StyleSheetReference
 added to a panel. The markup contains the corresponding link in a
 wicket:head section.
 The panel is invisible when the page is loaded, but then I use an ajax
 link to trigger an action, which later triggers the visibility of this
 component to true. Then this component is refreshed by an AjaxTimer
 (actually I use wicket-contrib-push, but I don't think it really makes
 a difference, since it's using a simple AbstractAjaxTimerBehavior
 underneath). And that's when the component is rendered that the check
 rendering is failing. Some analysis shown that there's a
 StyleSheetReference with the good id in the renderedComponent
 attribute of Page, but it isn't the exact same StyleSheetReference
 instance as the one checked by the checkRendering method. For the
 moment I haven't managed to really see why I have two instances, what
 doesn't help is that it seems that when I debug, the problem goes away
 depending on the occurence of other timer based ajax requests.

 Do any of you have already faced this problem, or has any idea of how
 it could come from?

 Xavier

 --
 Xavier Hanin - Independent Java Consultant
 Manage your dependencies with Ivy!
 http://incubator.apache.org/ivy/


-
 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



--
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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





--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/
-
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] How to display applet in wicket?

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
ahh, so you wish to use wicket to generate dynamic content for the applet?

Look at the howto include javascript thread, theres an example on howto 
create a attribute modifier, im not sure howto communicate with your 
applet though?


edward durai wrote:
 Finally, It's working.

 My applet looks lik

 APPLET codebase=http://localhost:8080/projectName; CODE=ClassName
 WIDTH=400 HEIGHT=450


 /APPLET

 Here Hardcoded values x_axis_value and y_axis_value is working fine.
 Consider I have one text box with label Dates and
 Consider I have one text box with label values(y).
 How to get both values and apply the above applet tags? I am the newbie of
 wicket. Please tell your suggestions.




 Robert Novotny wrote:
   
 One problem, which could arise, is the URL from which is the graph.class
 loaded. When you've got your applet page on
 http://server.com/page/applet.html, browser JVM willl try to load
 graph.class from http://server.com/page/graph.class URL. Also make sure
 that you have a correct case (Java classes should start with an uppercase
 letter, therefore I think it is better to have applect
 code=Graph.class.. and class called Graph).

 However, if you specify the JAR files in the archive attribute, your
 classes will be loaded from the specified JARs. 

 There can be another hiccup dealing with URL mounting. In our project we
 have mounted the Wicket webapplication on the
 url-pattern/app/*/url-pattern. Therefore our applet page has URL
 http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet,
 which means that the JAR files are loaded from the
 http://[servername]:8080/[appname] directory, i. e. from JAR files which
 are located in the directory just above the WEB-INF.

 If your webpage is mounted (for example to
 http://[servername]:8080/[appname]/app/userprofile), you could come across
 JAR loading problems, because JVM will try to load JAR/CLASS file from
 that http://[servername]:8080/[appname]/app/userprofile, which does not
 correspond to any server directory, therefore it will not find your
 JARs/CLASSes.


 edward durai wrote:
 
 Hi to all,

 I have one graph.java file. In HTML I can display like

 APPLET CODE=graph.class WIDTH=900 HEIGHT=400



  !-- Dynamic --
 !-- Dynamic --

 /APPLET


 In Wicket, how can I display this applet file? Please explain me. 

 Thank you for answering



   
 

   

-
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 vs. struts presentation

2007-05-23 Thread Martijn Dashorst
That is because there is little point in putting intranet applications
(or non-public facing applications) on the wiki: nobody can see the
applications or browse them.

/me reminds himself to create a video of some sorts for the application built.

Martijn

On 5/23/07, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 I must dissagree(on the part where you say that wicket are mostly used
 in intranet apps), although not a wicket veteran yet(only been doing
 wicket for around 1.5 years).

 The two projects I've been involved in during this periode has both been
 using wicket. Both projects being commercially and also public
 accessible. Also skimming the wiki looking at sites almost none seems to
 be intranet ones..

 regards Nino

 Johan Compagner wrote:
  wicket is a very good fit for intranet development.
  I think it is mostly used in that kind of webapps.
 
  johan
 
 
  On 5/22/07, *Florian Hehlen*  [EMAIL PROTECTED] mailto:[EMAIL 
  PROTECTED] wrote:
 
  Hi,
 
  the reason we are comparing to Struts is that that's one of the
  contender. We are not a web-app shop. We need a general purpose
  toolkit for intranet development. But since struts is so popular
  it's being pitted against wicket.
 
  Florian
 
 
  Erik van Oosten wrote:
  Hi Florian,
 
  1- I am surprised you want to compare against Struts. Almost any 
  modern web
  framework will kick ass compared to Struts.
 
  2- I know only of one. It is the first article on this page on the 
  wiki:
 
  http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a 
  very
 
  nice comparison of Wicket and JSF listings. Its a simple application, 
  you
  can easily image how to do it in Struts.
 
  3- Wicket is weak at sites that need to handle millions of hits per 
  minute
  (not many frameworks are good at this). Wicket is also not very good 
  if you
 
  need absolute and complete control on the format of your URLs. These 
  are
  both extremes. I think Wicket will do very well for at least 90% of 
  the web
  applications.
 
  Good luck,
  Erik.
 
 
  Florian Hehlen-2 wrote:
 
 
  Hi all,
 
  I am looking for help presenting wicket to my development team.
 
  1-Has anyone out there had to defend wicket vs. struts and would you
  have any resources/links/presentations to pass this way to help in
 
  presenting wicket to our group?
 
  2-Has anyone made any measurements/analysis of the code-base needed 
  for
  identical application in wicket vs. struts(or any other framework)
 
  3-Objectively, I am also looking for what wicket is weak at.
 
 
  florian
 
 
 
 
 
  
  -
  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
  mailto: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/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] Where to find good step-by-step tutorial of how to use tree extansion?

2007-05-23 Thread westpine

Hi! I want to learn how to use tree extansion, but i didn't find any tutorial
about it just javadoc and example. May be it enough for taugh developers,
but it looks like a dark woods for me. Besides when I used source code from
example SimpleTreePage it didn't work with following error: Markup of type
'html' for component SimpleTreePage not found, but it is in the same package
with SimpleTreePage.java. I just need step-by-step guide how to use it.
-- 
View this message in context: 
http://www.nabble.com/Where-to-find-good-step-by-step-tutorial-of-how-to-use-tree-extansion--tf3802774.html#a10760125
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket vs. struts presentation

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
Thats why peeps should add a user story if the site are non 
browsable(thats the part were you mention a video:).. But yeah I guess 
you're right:)

Martijn Dashorst wrote:
 That is because there is little point in putting intranet applications
 (or non-public facing applications) on the wiki: nobody can see the
 applications or browse them.

 /me reminds himself to create a video of some sorts for the application built.

 Martijn

 On 5/23/07, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
   
 I must dissagree(on the part where you say that wicket are mostly used
 in intranet apps), although not a wicket veteran yet(only been doing
 wicket for around 1.5 years).

 The two projects I've been involved in during this periode has both been
 using wicket. Both projects being commercially and also public
 accessible. Also skimming the wiki looking at sites almost none seems to
 be intranet ones..

 regards Nino

 Johan Compagner wrote:
 
 wicket is a very good fit for intranet development.
 I think it is mostly used in that kind of webapps.

 johan


 On 5/22/07, *Florian Hehlen*  [EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED] wrote:

 Hi,

 the reason we are comparing to Struts is that that's one of the
 contender. We are not a web-app shop. We need a general purpose
 toolkit for intranet development. But since struts is so popular
 it's being pitted against wicket.

 Florian


 Erik van Oosten wrote:
   
 Hi Florian,

 1- I am surprised you want to compare against Struts. Almost any 
 modern web
 framework will kick ass compared to Struts.

 2- I know only of one. It is the first article on this page on the 
 wiki:

 http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a 
 very

 nice comparison of Wicket and JSF listings. Its a simple application, 
 you
 can easily image how to do it in Struts.

 3- Wicket is weak at sites that need to handle millions of hits per 
 minute
 (not many frameworks are good at this). Wicket is also not very good 
 if you

 need absolute and complete control on the format of your URLs. These 
 are
 both extremes. I think Wicket will do very well for at least 90% of 
 the web
 applications.

 Good luck,
 Erik.


 Florian Hehlen-2 wrote:


 
 Hi all,

 I am looking for help presenting wicket to my development team.

 1-Has anyone out there had to defend wicket vs. struts and would you
 have any resources/links/presentations to pass this way to help in

 presenting wicket to our group?

 2-Has anyone made any measurements/analysis of the code-base needed 
 for
 identical application in wicket vs. struts(or any other framework)

 3-Objectively, I am also looking for what wicket is weak at.


 florian


   
 
 -
 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
 mailto: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/
 ___
 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


Re: [Wicket-user] continueToOriginalDestination / RestartResponseAtInterceptPageException with page parameters

2007-05-23 Thread Johan Compagner

thx i will look at it today

On 5/23/07, Wouter de Vaal [EMAIL PROTECTED] wrote:


Ok I've tested below and it worked for me, so I have added a bug report +
patch:

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


Wouter

On 5/21/07, Wouter de Vaal [EMAIL PROTECTED] wrote:

 To summarize my problem:

 Original call: /admin/editquote?id=13
 Redirect url after login: /admin/editquote

 I did some more debugging and it went down like this:

 PageMap:
 interceptContinuationURL = cycle.getRequest().getPath();
 calls
 ServletWebRequest
 public String getPath()
 {
 return
 ((WebApplication)Application.get()).getWicketFilter().getRelativePath(
 httpServletRequest);
 }
 Which calls

 WicketFilter.getRelativePath(HttpServletRequest request)

 is called, which does not include the queryParameters

 so perhaps
 interceptContinuationURL = cycle.getRequest().getPath(); should be:
 interceptContinuationURL = cycle.getRequest().getURL();?

 Problem is I can't test it now, making a snapshot build foobart my
 login page, on which I just sent another mail.

 Wouter

 On 5/21/07, Johan Compagner  [EMAIL PROTECTED] wrote:
  what does the getURL string return of a normal http request?
  thats also without the query string?
 
  What call do we need to have to really have the complete url?
 
  johan
 
 
 
   On 5/19/07, Wouter de Vaal [EMAIL PROTECTED] wrote:
  
   Ok sure, but I need some help.
  
   Usually the part of the request that is missing is taken from (when
   not using a framework)
   javax.servlet.http.HttpServletRequest.getQueryString()
  
   But PageMap is depending on org.apache.wicket.Request which seems
   unaware of http, but it does hold an instance of
   org.apache.wicket.request.RequestParameters.
  
   Now I guess I can do two things, change Request to hold an abstract
   for of getQueryString and implement it like the getUrl() method in
 all
   the implementing classes, or convert the RequestParameter object to
 a
   string. In the latter case I hope there is some utility class/method
 I
   can use.
  
   Can any of you wicket guys please assist me on this?
  
   Wouter
  
   On 5/18/07, Johan Compagner  [EMAIL PROTECTED] wrote:
yes please make a case (with a patch is even better :) )
   
   
On 5/18/07, Wouter de Vaal  [EMAIL PROTECTED] wrote:
 You are correct about the interpretation of my problem. I've run
 the
debugger
 and interceptContinuationURL = cycle.getRequest ().getURL();
 does not
 store the ?x=y part.

 Shall I file a bug report?

 Wouter

 On 5/18/07, Johan Compagner  [EMAIL PROTECTED]  wrote:
  ahh but that is an url that doesn't have query args like
 ?xx=yy
 
  you only have a path that should work yes
 
  johan
 
 
 
  On 5/18/07, Thomas R. Corbin  [EMAIL PROTECTED] wrote:
   On Friday 18 May 2007 8:04 am, Johan Compagner escreveu:
hmm this could be bug i think, we dont support post params
 at
  all
but get should be but maybe we store only part of the url
 (only
  the
  path)
  
   i'm not sure that I quite understand the issue, but
 if my
  user
  goes to a url
   such as
  
  
 
   
 
 http://myserver.com/myapp/app/queryDialog/variation/oru_edv/billGroup/23
  
   and they go through my login page, they still end up
 at
  the
right
  page with
   all the page parameters.
  
   Is that what you meant Wouter?
  
   In that case, I'm still on the pre-apache-package
 reorg,
  but
will
  upgrade
   this weekend.
  
   
can you see what this code in PageMap:
   
interceptContinuationURL = cycle.getRequest().getURL();
   
does return? is getURL() onl returning the part withoug
 query
params?
   
johan
   
On 5/18/07, Wouter de Vaal  [EMAIL PROTECTED] wrote:
 Hi,

 I'm using the login/authorization strategy taken from
 the
  wicket
 examples, which is
 throw new
RestartResponseAtInterceptPageException(
  SignIn.class);

 in the application class and calling

 continueToOriginalDestination()

 in the login page.

 However when I'm using a bookmarkable page with
  PageParameters,
the
 parameters get lost in the process..

 Am I missing something, or is this behaviour just not
  supported?

 Regards,
 Wouter


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

  

Re: [Wicket-user] Pattern for seperation of Java and Html - Comments Welcome

2007-05-23 Thread Kadir Sener GUMUS

Hi, i would like to share our experiences of our wicket project. Our project
is a turism portal which has booking functionalities with different products
and tourism guides,contents etc.  I want to draw your attention that
tourism guides,contents part!  That would mean lots of wicket pages
because of thousands of different touristic places, pictures, texts,
different layouts and so on. But it have been successfully separated as
html development and java development in the project.
There is a wicket page that responsible for showing those static contents
inside. Every static site page has resourceId parameter and this parameter
is processed and returned in getVariation() overriden method. How wicket
knows panels and components inside a contentPage on runtime. The answer is
behind autoAdd() method. Implement IComponentResolver interface and its
resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag
tag) method in your content page. Inside that implemented method, a content
service finds and returns the component with tag.getId(). Then component
is added by autoAdd(component). This is java part of dynamically component
resolving and adding to markup render. (also have a look in
AutoComponentResolver
class)
In html content part, a commercial CMS application is used to manage static
contents such as guides, tourism contents, any layout with wicket:id
attributes for components which will be loaded dynamically.
I am grateful to wicket-guys for that they created a framework like this.
Because, at once and ever first time in my programing life, i didnt care
about html part of the application :) Since all you know, html developers
create web site and html layouts, and then we -as developers- had put our
dynamic code blocks, expressions, custom jsp tags etc. at past!
here are the urls of our application for example to a wicket application in
such a heavy-loaded ecommerce:
www.avigo.de , www.dertour.de, www.atlasreisen.de, www.der.de,
www.meiers-weltreisen.de, www.adacreisen.de
these sites can be completely success-stories of Wicket-Hibernate-Spring
triology.
Regards,

Kadir Sener GUMUS


On 5/22/07, mchack [EMAIL PROTECTED] wrote:



Thanks for the reply. Not suggesting it should be part of the main
distribution. I am new to the framework and was trying to see if what I
proposed made sense. I want to make sure that I don't hinder or create
barriers to content creation on our portal and wanted to do it in a manner
that made sense. Maybe there are other ways to manage separation of
concerns.

In general are their recommended best practices regarding coordination and
workflow between the pure HTML designers and Java coders? In the component
model, seems like an HTML designer will come up with basic look and feel,
CSS, etc. and then the people on the framework side will
refactor/componentize the markup. At this point the original markup may
now be generated by an OO refactoring involving a number of new
pages/components to insert dynamic content/behavior. The original design
is
now split into a variety of new pages and will no longer be readily
accessible to the original designer as they now have to work on a variety
of
fragments. Any references to how to keep the HTML development happy would
be
appreciated.

Thanks


Eelco Hillenius wrote:

 Well, it's something you can quite easily do yourself. See
 org.apache.wicket.examples.customresourceloading. Unless I don't
 understand what you mean, it doesn't sound like something that should
 be a generic facility in Wicket to me.

 Eelco


 On 5/22/07, mchack [EMAIL PROTECTED] wrote:

 I know this is topic has been discussed frequently and I fully agree
with
 the
 current packaging methodology. There are many case where it would be
nice
 to
 have content easily included that was produced by the HTML designer
 without
 having to associate a corresponding java class. I think I have a
solution
 that is workable and doesn't violate the current best practices. Let me
 know
 if I am missing something.

 In certain cases for content such as press releases or other user
 generated
 content I would like to enable inclusion of pure content as a
component
 in
 a Wicket page. I am contemplating a component that would do the
 following.

 - Extend one of the existing containers such as WebComponent.
 - This component when inserted in a page would get the actual source
html
 from a Page Parameter such as http://host/wicketapp?RealPage.html or
 http://host/wicketapp?content=RealPage.html .
 - RealPage.html identifies the location of the content to be inserted.

 In this way I can create a wicket template for the main containment
page
 and
 then use it typically to insert the user generated content. This gives
me
 the flexibility I want without having to generate a class for all
 included
 content.

 Am I missing something here?

 Thanks
 --
 View this message in context:


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-23 Thread Lec

Gerolf,

I don't think you can do that with onClick(). i verified it by
writing that in wicket code. It hit error

-/form]]/componentevaluate![CDATA[document.getElementById('paragraph').onClick();]]/evaluate/ajax-response

Can anybody give me an input as to how can I make this code

   
target.appendJavascript(document.getElementById('paragraph').click();); 

run in IE and mozilla. Currently this code only run in IE but not in
Firefox. Is this a bug?


Gerolf Seitz wrote:
 
 i meant you should rather call
 document.getElementById('paragraph').onclick()
 than
 document.getElementById('paragraph').click()
 
 
 On 5/22/07, Lec [EMAIL PROTECTED] wrote:


 How do you invoke the eventhandler onclick() within  public void onClick(
 AjaxRequestTarget target ) and why would you want to do that for?


 Gerolf Seitz wrote:
 
  you could try to invoke the click eventhandler, that is onclick(). i
 tried
  it on a simple example and got the same error with click() in firefox.
  onclick() worked like a charm.
 
  hth,
gerolf
 
  On 5/22/07, Lec [EMAIL PROTECTED] wrote:
 
 
  This portion of code works in IE
 
  public void onClick( AjaxRequestTarget target )
  {
  target.appendJavascript(document.getElementById
  ('paragraph').click();)
  }
 
  but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it
 said
  ERROR: Exception evaluating javascript: TypeError:
  document.getElementById(paragraph).click is not a function
 
  Is this a bug?
 
 
  igor.vaynberg wrote:
  
   you do this using javascript, no roundtrip to the server is
 required.
  see
   some smooth scroll javascripts on the net.
  
   -igor
  
  
   On 5/21/07, Lec [EMAIL PROTECTED] wrote:
  
  
   Im trying to figure out a way to make button behave as if it's like
 a
   link
   component upon clicked. I want a button to archieve the same
 behaviour
  as
   link, and upon clicked, a particular html region will be focused or
   displayed, just like the same behaviour when you setAnchor in link
   component. But the thing now is that, button doesn't provide any
  method
   to
   set an anchor. How do we do that?
  
   --
   View this message in context:
  
 
 http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10714844
   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/
   ___
   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
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10733403
  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/
  ___
  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
 
 

 --
 View this message in context:
 http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10737393
 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 

Re: [Wicket-user] ajax update for header

2007-05-23 Thread dx74a19

Ok, now I think I found what was going on...
Previously I tought I resolved the thing by upgrading to latest 1.3, but it
was only sporadic behaviour..
I wrote my own TabbedPanel. Just because I needed that sometimes its ajax,
and sometimes not, based on a constructor boolean (and I wanted that because
I was trying to get rid of the error that pops up when
AjaxSelfUpdatingTimerBehavior is on one tab and when switching to another -
btw, a non-ajax tabbedpanel does not help, but anyway...). And on top of
that, I want to switch tabbedPanel tabs, also by setting a session variable,
without the caller referencing the panel directly. When doing that, the only
place, where I can call panel.replace(..), to switch the tab content, is
inside onBeforeRender - and that appears to be too late - the css does not
get included. 

I resolved now the problem in that way: my session variable, wich hold the
selected tab index, gets bound with the TabbedPanel - it holds a
SoftReference to the Panel - that way, when setting the tab index, the
session object knows to call setSelectedTab, which in turn calls
panel.replace - all before onBeforeRender. And looks like that works.

Sorry, if this post is so verbose. 
Bye


dx74a19 wrote:
 
 Hi all, 
 When I call ajaxRequestTarget.addComponent(theUpdatedComponent), and that
 component has associated markup, AND it includes Css (via
 add(.forCss(x)) ... does the ajax request take care of the css (add it
 to the page's styles somehow, automatique')?
 
 Dont know how or why, I found that issue in my app just now, after 3
 months of developing... Hope it's just my err somewhere..
 
 Btw, wicket is great. I choose it after evaluating many, many, MANY
 frameworks. 
 Just keep it cool  tidy. Thx ;)
 
 

-- 
View this message in context: 
http://www.nabble.com/ajax-update-for-header-tf3791286.html#a10762427
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Mark van Leeuwen
Thanks, that's interesting, I didn't realise that AbstractBehaviour could be
used for rendering into the html body.

I ended up overriding the DropDownChoice onRender method to get what I
wanted. In my case the script is so specific that there's little point in
creating a reusable behavior.

Thanks to everyone for their contributions. 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of Harald Gruber
 Sent: Wednesday, 23 May 2007 5:55 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Best way to insert inline Javascript
 
 
 you could implement it as behavior and just add it to the dropdown...
 
 have a look at my example. the javascript is composed and written in the
 onRendered
 method so its written out right after the component.
 
 harald
 
 
  example ---
 
 import org.apache.wicket.Component;
 import org.apache.wicket.ResourceReference;
 import org.apache.wicket.Response;
 import org.apache.wicket.behavior.AbstractBehavior;
 import org.apache.wicket.markup.ComponentTag;
 import org.apache.wicket.markup.html.IHeaderContributor;
 import org.apache.wicket.markup.html.IHeaderResponse;
 import
 org.apache.wicket.markup.html.resources.JavascriptResourceReference;
 
 public class RoundedCorners extends AbstractBehavior implements
 IHeaderContributor {
   private static final long serialVersionUID = 1L;
 
   private String componentTag;
   private String options;
 
   public RoundedCorners() {
   this.options = normal,all;
   }
 
   public RoundedCorners(final String options) {
   this.options = options;
   }
 
   public void bind(final Component component) {
   component.setOutputMarkupId(true);
   }
 
   public void onComponentTag(final Component component, final
 ComponentTag tag) {
   componentTag = tag.getName();
   }
 
   public void onRendered(Component component) {
   String markupId = component.getMarkupId();
   Response response = component.getResponse();
   response.write(\nscript type=\text/javascript\\n);
   response.write(!--\n);
   response.write(Nifty(\);
   response.write(componentTag);
   response.write(#);
   response.write(markupId);
   response.write(\,\);
   response.write(options);
   response.write(\);\n);
   response.write( --\n);
   response.write(/script);
   }
 
   public void renderHead(IHeaderResponse response) {
   response.renderCSSReference(new
 ResourceReference(RoundedCorners.class, nifty.css));
   response.renderJavascriptReference(new
 JavascriptResourceReference(RoundedCorners.class, nifty.js));
   }
 
 }
 
 
 -
 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


Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-23 Thread craigdd

Ravi,

I'd be interested in hearing your out come of your evaluation.  I'm in a
similar boat where my company is looking to move to a new UI framework,
their first choice or course is JSF and I'm pushing hard to go the wicket
route instead.  If I can show them a website like yours and say that it was
fairly easy to develop using wicket and you don't need to learn a whole new
markup language, ie tablibs, then that just might be the nail in the coffin
I need.

Thanks
Craig


RW wrote:
 
 
 
 
   
   
 
 
 
 It is currently written using a combination of Struts1, WebMacro
 (templating engine like Velocity), Torque etc. Due to the lack of user
 interface components in these tools we had to develop a lot of that
 ourselves. We are evaluating if we can do away with our code with
 Wicket or if Wicket can at least assist in simplifying our efforts.
 Besides, how easy and how long will it take to move to Wicket. As our
 efforts are commercial, we will be heavily penalized for making the
 wrong choice. 
 
 - Ravi. 
 
 craigdd wrote:
 
   Hey Ravi, just out of curiosity, is the application you provided a link
 for
 written in wicket?
 
 -Craig
  
 
 RW wrote:
   
   
 
 
 
   
 
 
 
 Go to... 
 http://www.celoxis.com/psa/user.do?bxn=umyhomeamp;amp;p_auth_authenticate=trueamp;amp;p_auth_login=markamp;amp;p_auth_password=celoxis1
   
 
 On this page click the Pick Columns link in the top right corner of
 the My Projects table. 
 
 Thanks 
 Ravi 
 
 
 Igor Vaynberg wrote:
 got a screenshot? dont really understand what you are
 describing. maybe something like our palette component in extensions? 
   
 -igor 
   
   
   On 5/21/07, Ravindra Wankar
amp;lt; [EMAIL PROTECTED]  amp;gt;
 wrote:
   
 In order to allow users to pick columns they wish to see in a table, we
 
 open/close a div layer that has 2 selectors to move columns to/from 
 Available to Selected and a submit/cancel button. We also position 
 this div layer close to the Pick Columns link.
 
 
 Is there a component in Wicket I can use to create a similar effect? 
 I've seen the ModalDialog but I'd like a slight variation because the 
 placement of this div layer needs to be controlled + the main window
 
 need not be greyed out when showing the layer. 
 
 Thanks 
 Ravi. 
 
 - 
 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/ 
 ___
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Component-for-opening-closing-an-arbitrary-div-layer-in-Wicket.-tf3794225.html#a10763908
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-23 Thread Flavius


There are no errors.  I did try setting the outputMarkupId to
true for the fragment.  In the examples (and in my own code
with just the TextField), setting the container was sufficient.
Adding this to the Fragment had no effect.

Here is the Ajax output from the console:

INFO:
INFO: Initiating Ajax POST request on
/;jsessionid=32444A7415B3D15E1792F255AFB8C5BE?wicket:interface=:0:inputForm:dropDown:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.8983050159419032
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (181 characters)
INFO:
?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
id=inputForm_container ![CDATA[

]]/component/ajax-response
INFO: Response parsed. Now invoking steps...
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...

Like I mentioned, if I just add a TextField (or any other form component)
it works great.  But my pages need to remove the control
and label.  In a couple of places, it needs to remove several controls,
a prime candidate for a fragment or panel, imho.

I've read other threads discussing setting the visibility like this:
http://www.nabble.com/Changing-visibility-via-ajax-tf1974532.html#a5418508

So I must conclude I'm doing something wrong.




Timo Rantalaiho wrote:
 
 On Tue, 22 May 2007, Flavius wrote:
 I am trying to setVisible on a Fragment using the
 AjaxFormComponentUpdatingBehavior object.
 It doesn't seem to work.  I've also tried this with a Panel and that's
 not
 working either.
 
 How does it not work? What does the Ajax debug console say?
 What is the error message / stack trace, if any?
 
 Looking quickly it occurs to me that maybe you should set 
 outputMarkupId(true) to the Fragment. If this is the case,
 it should be obvious from the error message on Ajax debug
 console.
 
 - Timo
 
 -- 
 Timo Rantalaiho   +358-45-6709709
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10764129
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Best way to create large groups of similar tags

2007-05-23 Thread Thomas Singer
I'm trying to create following page in Wicket:

  http://www.syntevo.com/smartcvs/comparison.jsp

Generally, I want to keep the text (including the links to other pages in 
it) in the HTML files for now. My problem is the creation of these tags 
without adding a separate component for each one:

td align=center
   img src=/graphics/feature-absent.gif border=0 alt=- width=9
height=9
/td

and

td align=center
img src=/graphics/feature-present.gif border=0 alt=+ width=9
 height=9
/td

What approach the Wicket experts suggest? Thanks in advance.

--
Tom


-
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] Popup Confirm Window after Server Work

2007-05-23 Thread RBr2000

Hi,

I am a Wicket newbie and have the following problem/question:

I created a FileUploadField and a an ImageButton for uploading the
previously choosen File.
So whenever the user tries to upload a file the sever shall check if the
file already exists. 
If it exists some kind of confirm dialog must appear: Overwrite,
Cancel?. 
How can I realize this in Wicket without ajax?  I found some examples which
open a 
Window on the onClick Event but in my case this is no option because the
popup window is
not neccessary at this point.

Thanks in advance,
RBr2000


-- 
View this message in context: 
http://www.nabble.com/Popup-Confirm-Window-after-Server-Work-tf3803146.html#a10761165
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to pass values to applet tags and display

2007-05-23 Thread Edi

Hi !

I have declared one applet file in display.html

display.html looks like

applet codebase=http://localhost:8080/project1; CODE=classname WIDTH=700
HEIGHT=350

/applet

Using this hard coded values, I can view the person name Martin in applet.

Consider I have one wicket button with text box with Label name person name.
If I enter some name and click button, it should pass the applet tag. 

How can I pass the person name here. 

Please explain with details

I am newbie of Wicket.

Thank you for answering


-- 
View this message in context: 
http://www.nabble.com/how-to-pass-values-to-applet-tags-and-display-tf3803180.html#a10761263
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-23 Thread Johan Compagner
so whats in the fragment doesnt disappear? looking at the ajax code we
see an empty component comming up. I guess the ajax console is saying
exatly the same stuff when you do it for the textfield?

On 5/23/07, Flavius [EMAIL PROTECTED] wrote:


 There are no errors.  I did try setting the outputMarkupId to
 true for the fragment.  In the examples (and in my own code
 with just the TextField), setting the container was sufficient.
 Adding this to the Fragment had no effect.

 Here is the Ajax output from the console:

 INFO:
 INFO: Initiating Ajax POST request on
 /;jsessionid=32444A7415B3D15E1792F255AFB8C5BE?wicket:interface=:0:inputForm:dropDown:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.8983050159419032
 INFO: Invoking pre-call handler(s)...
 INFO: Received ajax response (181 characters)
 INFO:
 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=inputForm_container ![CDATA[

 ]]/component/ajax-response
 INFO: Response parsed. Now invoking steps...
 INFO: Response processed successfully.
 INFO: Invoking post-call handler(s)...

 Like I mentioned, if I just add a TextField (or any other form component)
 it works great.  But my pages need to remove the control
 and label.  In a couple of places, it needs to remove several controls,
 a prime candidate for a fragment or panel, imho.

 I've read other threads discussing setting the visibility like this:
 http://www.nabble.com/Changing-visibility-via-ajax-tf1974532.html#a5418508

 So I must conclude I'm doing something wrong.




 Timo Rantalaiho wrote:
 
  On Tue, 22 May 2007, Flavius wrote:
  I am trying to setVisible on a Fragment using the
  AjaxFormComponentUpdatingBehavior object.
  It doesn't seem to work.  I've also tried this with a Panel and that's
  not
  working either.
 
  How does it not work? What does the Ajax debug console say?
  What is the error message / stack trace, if any?
 
  Looking quickly it occurs to me that maybe you should set
  outputMarkupId(true) to the Fragment. If this is the case,
  it should be obvious from the error message on Ajax debug
  console.
 
  - Timo
 
  --
  Timo Rantalaiho   +358-45-6709709
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
  -
  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
 
 

 --
 View this message in context:
 http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10764129
 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/
 ___
 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


[Wicket-user] tinyMCE + weblogic problems

2007-05-23 Thread Apaar Trivedi
Hey guys, When we try to use tiny mce for wicket 1.3 w/ weblogic we get
this error in our startup:

 

javax.servlet.ServletException:
org/apache/commons/collections/set/ListOrderedSet

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:532)

at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:32)

at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27)

at
com.dell.ren.servlet.RenAuthenticationFilter.doFilter(RenAuthenticationF
ilter.java:161)

at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27)

at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:7049)

at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)

at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)

at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:3732)

at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2773)

at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

 

And this prevents us from being able to use tinyMCE.  Any ideas?  Any
help is appreciated.  Thanks!

 

 

-
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] how to customize Modal Window`s appearance

2007-05-23 Thread Jonathan Locke


yeah, i'd be interested in this result too.


Scott Swank wrote:
 
 Agreed.  We've gone the complicated CSS magic route and it is a bit
 involved, but I can vouch for the fact that it's an option.  :)
 
 On 5/18/07, Matej Knopp [EMAIL PROTECTED] wrote:
 It is customizable, but you need a rather complicated CSS magic to do
 it. Or, you can just override the images. Look at the images in the
 modal window package to see how it works.

 -Matej

 On 5/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  you can try applying your own css, but i doubt it. the window is not
 made to
  be too customizable atm.probably next major ver of wicket will include
 a
  rework of it. for now, you can integrate any of the zillion of
 javascript
  libs out there that produce a simple modal pane.
 
  -igor
 
 
 
  On 5/17/07, Nikhil Gahlot [EMAIL PROTECTED] wrote:
  
   Hi,
  
   I am using ModalWindow for my login screen. In that I have used panel
 as
  its
   content. Now I want to hide everything (including title bar, close
 link,
   etc) on Modal Window except the rich panel I am using. In other
 words, is
   there a way I can remove modal window`s title bar with close link and
   borders(left, right and bottom) keeping only body active that houses
 my
   login panel?
  
   Thanks
   Nikhil
   --
   View this message in context:
 
 http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10676785
   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/
   ___
   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/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 
 -- 
 Scott Swank
 reformed mathematician
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10768003
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to pass values to applet tags and display

2007-05-23 Thread James McLaughlin
Hi Edi,
I'm not entirely sure what you want, so maybe I am oversimplifying. I
did this using the object tag instead of the applet tag, but the logic
should be similar. The object tag takes a certain number of
Attributes. I created a WebMarkupContainer for object, and inside of
onComponentTag, used tag.put(name, value) to provide those attributes.
Inside the object tag, there should be a list of one or more param
tags. You can fill these in with a simple Loop. Markup looks like
this:

   object wicket:id=object
param wicket:id=param name=param name here 
value=param value here/  
   /object

code looks like so:

WebMarkupContainer object = new WebMarkupContainer(object) {
@Override
protected void onComponentTag(ComponentTag tag)
{
tag.putAll(attrMap);

}
}

Loop paramLoop = new Loop (param, parameters.size ()) {

@Override
protected void populateItem(LoopItem item) {
AppletParameter param = 
parameters.get(item.getIteration());
item.add(new SimpleAttributeModifier (name, 
param.getName()));
item.add(new SimpleAttributeModifier (value, 
param.getValue()));
}

};

object.add(paramLoop);

hope this helps.

best,
jim

On 5/23/07, Edi [EMAIL PROTECTED] wrote:

 Hi !

 I have declared one applet file in display.html

 display.html looks like

 applet codebase=http://localhost:8080/project1; CODE=classname WIDTH=700
 HEIGHT=350

 /applet

 Using this hard coded values, I can view the person name Martin in applet.

 Consider I have one wicket button with text box with Label name person name.
 If I enter some name and click button, it should pass the applet tag.

 How can I pass the person name here.

 Please explain with details

 I am newbie of Wicket.

 Thank you for answering


 --
 View this message in context: 
 http://www.nabble.com/how-to-pass-values-to-applet-tags-and-display-tf3803180.html#a10761263
 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/
 ___
 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


Re: [Wicket-user] how to customize Modal Window`s appearance

2007-05-23 Thread Scott Swank
1. subclass ModalWindow, with following in the constructor.

public YourModalWindow(String id)
{
super(id);
add(HeaderContributor.forCss(/style/cart_global.css));
super.setCssClassName(w_vegas);
}

2. have someone who understands css (i.e. not me) put lots of thingies
in the above css file to override details of the css that ships with
ModalWindow.  E.g.

div.wicket-modal div.w_vegas div.w_left,
div.wicket-modal div.w_vegas div.w_right {
background-image: url();
_background-image: url();
}

div.wicket-modal div.w_vegas div.w_top,
div.wicket-modal div.w_vegas div.w_bottom,
/*div.wicket-modal div.w_vegas div.w_topLeft,*/
div.wicket-modal div.w_vegas div.w_topRight,
div.wicket-modal div.w_vegas div.w_bottomRight,
div.wicket-modal div.w_vegas div.w_bottomLeft
{
background-image: url();
_background-image: url();
}

div.wicket-modal div.w_vegas div.w_close{
background: url(/mytrip/images/close_x.gif) no-repeat;
}

Scott


On 5/23/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 yeah, i'd be interested in this result too.


 Scott Swank wrote:
 
  Agreed.  We've gone the complicated CSS magic route and it is a bit
  involved, but I can vouch for the fact that it's an option.  :)
 
  On 5/18/07, Matej Knopp [EMAIL PROTECTED] wrote:
  It is customizable, but you need a rather complicated CSS magic to do
  it. Or, you can just override the images. Look at the images in the
  modal window package to see how it works.
 
  -Matej
 
  On 5/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   you can try applying your own css, but i doubt it. the window is not
  made to
   be too customizable atm.probably next major ver of wicket will include
  a
   rework of it. for now, you can integrate any of the zillion of
  javascript
   libs out there that produce a simple modal pane.
  
   -igor
  
  
  
   On 5/17/07, Nikhil Gahlot [EMAIL PROTECTED] wrote:
   
Hi,
   
I am using ModalWindow for my login screen. In that I have used panel
  as
   its
content. Now I want to hide everything (including title bar, close
  link,
etc) on Modal Window except the rich panel I am using. In other
  words, is
there a way I can remove modal window`s title bar with close link and
borders(left, right and bottom) keeping only body active that houses
  my
login panel?
   
Thanks
Nikhil
--
View this message in context:
  
  http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10676785
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/
___
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/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  --
  Scott Swank
  reformed mathematician
 
  -
  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
 
 

 --
 View this message in context: 
 http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10768003
 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 

Re: [Wicket-user] how to customize Modal Window`s appearance

2007-05-23 Thread Jonathan Locke


okay.  i don't understand CSS either.  ;-)  but thanks!


Scott Swank wrote:
 
 1. subclass ModalWindow, with following in the constructor.
 
   public YourModalWindow(String id)
   {
   super(id);
   add(HeaderContributor.forCss(/style/cart_global.css));
   super.setCssClassName(w_vegas);
   }
 
 2. have someone who understands css (i.e. not me) put lots of thingies
 in the above css file to override details of the css that ships with
 ModalWindow.  E.g.
 
 div.wicket-modal div.w_vegas div.w_left,
 div.wicket-modal div.w_vegas div.w_right {
   background-image: url();
   _background-image: url();
 }
 
 div.wicket-modal div.w_vegas div.w_top,
 div.wicket-modal div.w_vegas div.w_bottom,
 /*div.wicket-modal div.w_vegas div.w_topLeft,*/
 div.wicket-modal div.w_vegas div.w_topRight,
 div.wicket-modal div.w_vegas div.w_bottomRight,
 div.wicket-modal div.w_vegas div.w_bottomLeft
 {
   background-image: url();
   _background-image: url();
 }
 
 div.wicket-modal div.w_vegas div.w_close  {
   background: url(/mytrip/images/close_x.gif) no-repeat;
 }
 
 Scott
 
 
 On 5/23/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 yeah, i'd be interested in this result too.


 Scott Swank wrote:
 
  Agreed.  We've gone the complicated CSS magic route and it is a bit
  involved, but I can vouch for the fact that it's an option.  :)
 
  On 5/18/07, Matej Knopp [EMAIL PROTECTED] wrote:
  It is customizable, but you need a rather complicated CSS magic to do
  it. Or, you can just override the images. Look at the images in the
  modal window package to see how it works.
 
  -Matej
 
  On 5/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   you can try applying your own css, but i doubt it. the window is not
  made to
   be too customizable atm.probably next major ver of wicket will
 include
  a
   rework of it. for now, you can integrate any of the zillion of
  javascript
   libs out there that produce a simple modal pane.
  
   -igor
  
  
  
   On 5/17/07, Nikhil Gahlot [EMAIL PROTECTED] wrote:
   
Hi,
   
I am using ModalWindow for my login screen. In that I have used
 panel
  as
   its
content. Now I want to hide everything (including title bar, close
  link,
etc) on Modal Window except the rich panel I am using. In other
  words, is
there a way I can remove modal window`s title bar with close link
 and
borders(left, right and bottom) keeping only body active that
 houses
  my
login panel?
   
Thanks
Nikhil
--
View this message in context:
  
 
 http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10676785
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/
___
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/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  --
  Scott Swank
  reformed mathematician
 
 
 -
  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
 
 

 --
 View this message in context:
 http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10768003
 Sent from the Wicket - User mailing list archive at Nabble.com.


 

[Wicket-user] Problem loading dynamic image using ajax

2007-05-23 Thread Michael K
Hi,

I have problem displaying dynamic image using ajax. The problem is that the 
image url became expired after the page has rendered. The page was loaded fine 
it didn't triggered page expired.   


Please check out my sample code below:

public class AjaxPage extends WebPage {

public AjaxPage() {

Component comp = new PanelA(panelA);

comp.setVisible(true);
ComponentRequestTarget target = new ComponentRequestTarget(comp);
RequestCycle cycle = RequestCycle.get();

cycle.setRequestTarget(target);
}
}

public class PanelA extends Panel {


public PanelA(String string) {
super(string);

add(new Label(title,Circle));

Image image1 = new Image(logo,new 
RenderedDynamicImageResource(100,100){
protected boolean render(Graphics2D graphics2D) {
drawCircle(graphics2D);
return true;
}

});
add(image1);  // image1 will expired.

}
}

I 'm currently using Wicket 1.2.6.

Thanks and regards,
Michael




 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL-
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] XML and Wicket?

2007-05-23 Thread Ajanta Phatak
I have a need where a part of the page - say a panel contains 
dynamically generated XML. I could provide a XSL to convert that to 
html. How can I do this in Wicket?


-
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] form silently failing to load data when template and pojo are different

2007-05-23 Thread Florian Hehlen

hi,

I have just found that if a form contains an input type=text/ and 
the corresponding pojo contains myForm.add(new TextAre(...)) then wicket 
fails to load data into the form but it will correctly read the data 
onSubmit.


is this a known bug it sure took me a long time to resolve it.

regards,
Florian.

-
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] XML and Wicket?

2007-05-23 Thread James McLaughlin
see XsltTransformerBehavior or XsltOutputTransformerContainer.

best,
jim

On 5/23/07, Ajanta Phatak [EMAIL PROTECTED] wrote:
 I have a need where a part of the page - say a panel contains
 dynamically generated XML. I could provide a XSL to convert that to
 html. How can I do this in Wicket?


 -
 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


Re: [Wicket-user] XML and Wicket?

2007-05-23 Thread Ajanta Phatak
Are there any examples to help me with this?

Thanks!

James McLaughlin wrote:
 see XsltTransformerBehavior or XsltOutputTransformerContainer.

 best,
 jim

 On 5/23/07, Ajanta Phatak [EMAIL PROTECTED] wrote:
   
 I have a need where a part of the page - say a panel contains
 dynamically generated XML. I could provide a XSL to convert that to
 html. How can I do this in Wicket?


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


Re: [Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-23 Thread Flavius

The fragment contents appear fine.
When I change the value on the dropdown, I expect the
AjaxFormComponentUpdatingBehavior.onUpdate() to set
the visibility to false.


My dropdown has this added:

dropDown.add(new
AjaxFormComponentUpdatingBehavior(onchange)
{
protected void onUpdate(AjaxRequestTarget 
target)
{   
target.addComponent(container); 

text2Fragment.setVisible(false);
}
});

Now if I substitute a TextField instead of a fragment (or panel), it
correctly
sets the visibility to false.  But with the fragment, it stays visible when
the 
onchange event fires.   

I put up a couple of test pages, if you want to see:
http://24.248.103.44/pages/Test (this is just the component, which works)
http://24.248.103.44/pages/Test2 (this is with the fragment, which does not)

I included the java source on each page.


Johan Compagner wrote:
 
 so whats in the fragment doesnt disappear? looking at the ajax code we
 see an empty component comming up. I guess the ajax console is saying
 exatly the same stuff when you do it for the textfield?
 
 On 5/23/07, Flavius [EMAIL PROTECTED] wrote:


 There are no errors.  I did try setting the outputMarkupId to
 true for the fragment.  In the examples (and in my own code
 with just the TextField), setting the container was sufficient.
 Adding this to the Fragment had no effect.

 Here is the Ajax output from the console:

 INFO:
 INFO: Initiating Ajax POST request on
 /;jsessionid=32444A7415B3D15E1792F255AFB8C5BE?wicket:interface=:0:inputForm:dropDown:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.8983050159419032
 INFO: Invoking pre-call handler(s)...
 INFO: Received ajax response (181 characters)
 INFO:
 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=inputForm_container ![CDATA[

 ]]/component/ajax-response
 INFO: Response parsed. Now invoking steps...
 INFO: Response processed successfully.
 INFO: Invoking post-call handler(s)...

 Like I mentioned, if I just add a TextField (or any other form component)
 it works great.  But my pages need to remove the control
 and label.  In a couple of places, it needs to remove several controls,
 a prime candidate for a fragment or panel, imho.

 I've read other threads discussing setting the visibility like this:
 http://www.nabble.com/Changing-visibility-via-ajax-tf1974532.html#a5418508

 So I must conclude I'm doing something wrong.




 Timo Rantalaiho wrote:
 
  On Tue, 22 May 2007, Flavius wrote:
  I am trying to setVisible on a Fragment using the
  AjaxFormComponentUpdatingBehavior object.
  It doesn't seem to work.  I've also tried this with a Panel and that's
  not
  working either.
 
  How does it not work? What does the Ajax debug console say?
  What is the error message / stack trace, if any?
 
  Looking quickly it occurs to me that maybe you should set
  outputMarkupId(true) to the Fragment. If this is the case,
  it should be obvious from the error message on Ajax debug
  console.
 
  - Timo
 
  --
  Timo Rantalaiho   +358-45-6709709
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 
 -
  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
 
 

 --
 View this message in context:
 http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10764129
 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/
 ___
 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
 

Re: [Wicket-user] XML and Wicket?

2007-05-23 Thread James McLaughlin
Unfortunately no, but the javadoc is strong and the unit tests are clear :)

On 5/23/07, Ajanta Phatak [EMAIL PROTECTED] wrote:
 Are there any examples to help me with this?

 Thanks!

 James McLaughlin wrote:
  see XsltTransformerBehavior or XsltOutputTransformerContainer.
 
  best,
  jim
 
  On 5/23/07, Ajanta Phatak [EMAIL PROTECTED] wrote:
 
  I have a need where a part of the page - say a panel contains
  dynamically generated XML. I could provide a XSL to convert that to
  html. How can I do this in Wicket?
 
 
  -
  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/
 ___
 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


Re: [Wicket-user] Creating Panels inside of Loop (Wicket 2)

2007-05-23 Thread Remco Bos

I tried to make the Menubar (from extensions 2.0) work for wicket 1.3. 

I ran into trouble... 

When searching for LoopItem and Loop I ran into this post, I thought may be
related to the same problem I have now..


The java component markup hierarchy doesn't match the template hierarchy:

It should be:
[Component id = menuTitle, page = view.menubar.MenuBarPage, path =
1:menuBar:menubar:menus:0:menuTitle.Label, isVisible = true, isVersioned =
false]

But it says:
[Component id = -relative_path_prefix4, page = view.menubar.MenuBarPage,
path = 1:menuBar:menubar:menus:0:-relative_path_prefix4.WebMarkupContainer,
isVisible = true, isVersioned = true]
 
Code for the menubar panel:

wicket:panel
ul wicket:id=menubar
li wicket:id=menus
[[Menu title]]
Place menus here
/li
/ul
/wicket:panel

Java code (only the relevant part, I think):
public MenuBarPanel(final String id, final ListMenu menus, final String
name) {
super(id);
this.menus = menus;
this.name = name;
init();
WebMarkupContainer menuBar = new WebMarkupContainer(menubar);
menuBar.add(new AttributeModifier(id, true, new Model(name)));

// add the loop used to generate each single menu
menuBar.add(new Loop(menus, menus.size()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(LoopItem item) {
final int index = item.getIteration();
final Menu menu = MenuBarPanel.this.menus.get(index);
if (menu.isVisible()) {
item.add(new Label(menuTitle,
menu.getModel()).setRenderBodyOnly(true));
MenuPanel mp = new MenuPanel(menu, menu.getMenuItems());
item.add(mp);
mp.setRenderBodyOnly(true);
}
});
add(menuBar);
}
}

I looked for relative_path_prefix, and it's for components with no id ??? 
I'm a bit lost... 



Johan Compagner wrote:
 
 the LoopItem is the parent of the panel
 
 new MenuPanel(item, menu, menu.getModel(), menu.getMenuItems());
 
 On 9/29/06, Stefan Lindner [EMAIL PROTECTED] wrote:

 I have a Panel that looks like this (html)

 hr /
 ul id=nav wicket:id=menus
  !--  Place menus here--
  Place menus here

 /ul
 hr /

 Now I want to generate Panels for wicket id menu like this

   new Loop(this, menus, menus.size()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(LoopItem item) {
 final int index = item.getIteration();
 final Menu menu = MenuBarPanel.this.menus.get(index);

 new MenuPanel(?, menu, menu.getModel(), menu.getMenuItems());

 I can't use the item for ? because it's not a markupContainer. So,
 what is the correct MarkupContainer for the panels?

 Stefan Lindner

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



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

-- 
View this message in context: 
http://www.nabble.com/Creating-Panels-inside-of-Loop-%28Wicket-2%29-tf2355282.html#a10772100
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to auto-eliminate component from RepeatingView

2007-05-23 Thread Korbinian Bachl
Well, if I understood it right, then its quite easy:
 
you have a personalList where you add(Component c) to - you can replace
that by
addOrReplace(Component c) and if there is a Component with Tag foo there
then it will be replaced, else it will be put to it. 
 
You can also use .remove(Component C) or .remove(String id) to remove a
component whose given IDs match - so, the .remove would be the answer to
your question.
 
Be sure to checkout the examples at:
 
http://wicketstuff.org/wicket13/
and especially:
http://wicketstuff.org/wicket13/repeater/
 
and how AJAX should work, as your AJAX code looks quite odd to me
http://wicketstuff.org/wicket13/ajax/
(to use AJAX you need to manipulate the markupcontaier wich doesnt work with
a repeater like ListView or RepeatingView unless you span a
WebMarkupContainer around it - explained in wiki:
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html )
 
However, i suggest you to get it working with a usual Link first, and then
try to AJAXify it,
 
Regards
 


  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Felipe
Piccolini
Gesendet: Mittwoch, 23. Mai 2007 22:13
An: wicket-user@lists.sourceforge.net
Betreff: [Wicket-user] How to auto-eliminate component from RepeatingView



Hi, I'm new to wicket and I'm trying to do a sort of nested list of
components, but each
list's item (component) has not just info about the model, but also has
links to delete/modify
itself from the list...

so I have this html code...

Group.html:
div
dl wicket:id=personalList




/dl
/div

and Person.html:
dt sub-./sub /dt
dda wicket:id=delPerson href=#img wicket:id=btn_del
src=res/btn_del.jpg//a/dd
dda wicket:id=modPerson href=#img wicket:id=btn_mod
src=res/btn_mod.jpg//a/dd
ddlabel wicket:id=idPerson01/label/dd


So the Group.java gets the PersonModel and adds a new Person component to
the RepeatingView...

RepeatingView personalList = new RepeatingView(personalList);
for (Iterator iter = personalModelList.iterator(); iter.hasNext();)
{
PersonModel personModel = (PersonModel) iter.next();
final Person oPerson = new Person(person, personModel);
personalList.add(oPerson);
}
add(personalList);

My question is this:

How can I do to make the delete this person works in order to get it
removed from the RepeatingView?

I was trying this code inside the Person.java so the component (item from
the list) can activate the auto-remove
from the list, but doesn't work:

final AjaxLink delPersonaRel = new AjaxLink(delPersonLink){
public void onClick(final AjaxRequestTarget target)
{
getParent().remove(this);
System.out.println(person deleted);
target.addComponent(getParent());
}
};

Any suggestion appreciated.




Felipe Piccolini M.
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]





-
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] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-23 Thread Johan Compagner

can a span have other block elements?
try to make the span a div

johan


On 5/23/07, Flavius [EMAIL PROTECTED] wrote:



The fragment contents appear fine.
When I change the value on the dropdown, I expect the
AjaxFormComponentUpdatingBehavior.onUpdate() to set
the visibility to false.


My dropdown has this added:

dropDown.add(new
AjaxFormComponentUpdatingBehavior(onchange)
{
protected void onUpdate(AjaxRequestTarget
target)
{
target.addComponent(container);
text2Fragment.setVisible(false);
}
});

Now if I substitute a TextField instead of a fragment (or panel), it
correctly
sets the visibility to false.  But with the fragment, it stays visible
when
the
onchange event fires.

I put up a couple of test pages, if you want to see:
http://24.248.103.44/pages/Test (this is just the component, which works)
http://24.248.103.44/pages/Test2 (this is with the fragment, which does
not)

I included the java source on each page.


Johan Compagner wrote:

 so whats in the fragment doesnt disappear? looking at the ajax code we
 see an empty component comming up. I guess the ajax console is saying
 exatly the same stuff when you do it for the textfield?

 On 5/23/07, Flavius [EMAIL PROTECTED] wrote:


 There are no errors.  I did try setting the outputMarkupId to
 true for the fragment.  In the examples (and in my own code
 with just the TextField), setting the container was sufficient.
 Adding this to the Fragment had no effect.

 Here is the Ajax output from the console:

 INFO:
 INFO: Initiating Ajax POST request on

/;jsessionid=32444A7415B3D15E1792F255AFB8C5BE?wicket:interface=:0:inputForm:dropDown:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=
0.8983050159419032
 INFO: Invoking pre-call handler(s)...
 INFO: Received ajax response (181 characters)
 INFO:
 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=inputForm_container ![CDATA[

 ]]/component/ajax-response
 INFO: Response parsed. Now invoking steps...
 INFO: Response processed successfully.
 INFO: Invoking post-call handler(s)...

 Like I mentioned, if I just add a TextField (or any other form
component)
 it works great.  But my pages need to remove the control
 and label.  In a couple of places, it needs to remove several controls,
 a prime candidate for a fragment or panel, imho.

 I've read other threads discussing setting the visibility like this:

http://www.nabble.com/Changing-visibility-via-ajax-tf1974532.html#a5418508

 So I must conclude I'm doing something wrong.




 Timo Rantalaiho wrote:
 
  On Tue, 22 May 2007, Flavius wrote:
  I am trying to setVisible on a Fragment using the
  AjaxFormComponentUpdatingBehavior object.
  It doesn't seem to work.  I've also tried this with a Panel and
that's
  not
  working either.
 
  How does it not work? What does the Ajax debug console say?
  What is the error message / stack trace, if any?
 
  Looking quickly it occurs to me that maybe you should set
  outputMarkupId(true) to the Fragment. If this is the case,
  it should be obvious from the error message on Ajax debug
  console.
 
  - Timo
 
  --
  Timo Rantalaiho   +358-45-6709709
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 

-
  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
 
 

 --
 View this message in context:

http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10764129
 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/
 ___
 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
 

Re: [Wicket-user] Creating Panels inside of Loop (Wicket 2)

2007-05-23 Thread Johan Compagner

i dont know from top of my head where this comes from:-relative_path_prefix4

but what i don't get is the
 protected void populateItem(LoopItem item) {

method.

if something is visible you add components and if they are not you dont
that can't be fi the tags are in the markup they have to be in the component
hierachy
then you should add them and set them visible or not.

johan


On 5/23/07, Remco Bos [EMAIL PROTECTED] wrote:



I tried to make the Menubar (from extensions 2.0) work for wicket 1.3.

I ran into trouble...

When searching for LoopItem and Loop I ran into this post, I thought may
be
related to the same problem I have now..


The java component markup hierarchy doesn't match the template hierarchy:

It should be:
[Component id = menuTitle, page = view.menubar.MenuBarPage, path =
1:menuBar:menubar:menus:0:menuTitle.Label, isVisible = true, isVersioned =
false]

But it says:
[Component id = -relative_path_prefix4, page = view.menubar.MenuBarPage,
path =
1:menuBar:menubar:menus:0:-relative_path_prefix4.WebMarkupContainer,
isVisible = true, isVersioned = true]

Code for the menubar panel:

wicket:panel
ul wicket:id=menubar
li wicket:id=menus
[[Menu title]]
Place menus here
/li
/ul
/wicket:panel

Java code (only the relevant part, I think):
public MenuBarPanel(final String id, final ListMenu menus, final String
name) {
super(id);
this.menus = menus;
this.name = name;
init();
WebMarkupContainer menuBar = new WebMarkupContainer(menubar);
menuBar.add(new AttributeModifier(id, true, new Model(name)));

// add the loop used to generate each single menu
menuBar.add(new Loop(menus, menus.size()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(LoopItem item) {
final int index = item.getIteration();
final Menu menu = MenuBarPanel.this.menus.get(index);
if (menu.isVisible()) {
item.add(new Label(menuTitle,
menu.getModel()).setRenderBodyOnly(true));
MenuPanel mp = new MenuPanel(menu, menu.getMenuItems());
item.add(mp);
mp.setRenderBodyOnly(true);
}
});
add(menuBar);
}
}

I looked for relative_path_prefix, and it's for components with no id
???
I'm a bit lost...



Johan Compagner wrote:

 the LoopItem is the parent of the panel

 new MenuPanel(item, menu, menu.getModel(), menu.getMenuItems());

 On 9/29/06, Stefan Lindner [EMAIL PROTECTED] wrote:

 I have a Panel that looks like this (html)

 hr /
 ul id=nav wicket:id=menus
  !--  Place menus here--
  Place menus here

 /ul
 hr /

 Now I want to generate Panels for wicket id menu like this

   new Loop(this, menus, menus.size()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(LoopItem item) {
 final int index = item.getIteration();
 final Menu menu = MenuBarPanel.this.menus.get(index);

 new MenuPanel(?, menu, menu.getModel(), menu.getMenuItems());

 I can't use the item for ? because it's not a markupContainer. So,
 what is the correct MarkupContainer for the panels?

 Stefan Lindner


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/Creating-Panels-inside-of-Loop-%28Wicket-2%29-tf2355282.html#a10772100
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [STDERR] SERIALIZING SessionPageKey

2007-05-23 Thread Herman Bovens


Johan Compagner wrote:
 
 which version do you use?
 at my place there are all commented out in the code
 

I use wicket-1.3.0-incubating-SNAPSHOT.jar.
It was a few weeks old.  I have downloaded the latest snapshot, and they're
gone.

-- 
View this message in context: 
http://www.nabble.com/-STDERR--SERIALIZING-SessionPageKey-tf3800720.html#a10773105
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Updating item range for ajax pager

2007-05-23 Thread Tremelune

After a bit of mucking around, I essentially did just that--copy
NavigatorLabel's behavior, but with a PageableListView instead of a
DataTable. To do so I abandoned my separate first/last/total components in
favor of a simple constructed String: 1-10 of 100. The code looks
something like this:

  MyPagerPanel(final String id, final PageableListView view) {
super(id);

add(new PagerCountsLabel(pagerCounts, view));
add(new MyPagingNavigator(pager, view));
  }



PagerCountsLabel(final String id, final PageableListView view) {
  super(id, new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;

public Object getObject(Component component) {
  final int first = view.getStartIndex() + 1; //Start at 1, not
zero.
  final int total = view.getList().size();
  final int last = Math.min(total, first + view.getRowsPerPage());

  return first + - + last +  of  + total;
}
  });
}

Panel looks something like this:

[1-10 of 100]
div wicket:id=pager/




what i meant was see how it constructs the message. it overrides
model.getobject(), which is called everytime the component needs to render.
you should read the models page on the wiki.

-igor


-- 
View this message in context: 
http://www.nabble.com/Updating-item-range-for-ajax-pager-tf3797101.html#a10773119
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Pattern for seperation of Java and Html - Comments Welcome

2007-05-23 Thread mchack

Thanks for the input. I am just getting my feet wet with the platform and am
amazed at the underlying capabilities. My main concern is to make sure that
I come up to speed regarding best practices, etc. I will ping you again once
I have had a chance to digest your comments. I think I understand what you
were doing, but I want to dig deeper into the API to try and understand what
you have implemented. In general iit appears that you have a small number of
page classes, use the request URL to dynamically associate the appropriate
html markup file, and then the wicket:id's are handled in an automatic
manner so you don't need to create explicit code to handle these references,
but do it on an id by id basis. I am also assuming that your markup is
probably not jar'd.

Once again thanks.



Kadir Sener GUMUS wrote:
 
 Hi, i would like to share our experiences of our wicket project. Our
 project
 is a turism portal which has booking functionalities with different
 products
 and tourism guides,contents etc.  I want to draw your attention that
 tourism guides,contents part!  That would mean lots of wicket pages
 because of thousands of different touristic places, pictures, texts,
 different layouts and so on. But it have been successfully separated as
 html development and java development in the project.
 There is a wicket page that responsible for showing those static contents
 inside. Every static site page has resourceId parameter and this
 parameter
 is processed and returned in getVariation() overriden method. How wicket
 knows panels and components inside a contentPage on runtime. The answer is
 behind autoAdd() method. Implement IComponentResolver interface and
 its
 resolve(MarkupContainer container, MarkupStream markupStream,
 ComponentTag
 tag) method in your content page. Inside that implemented method, a
 content
 service finds and returns the component with tag.getId(). Then component
 is added by autoAdd(component). This is java part of dynamically
 component
 resolving and adding to markup render. (also have a look in
 AutoComponentResolver
 class)
 In html content part, a commercial CMS application is used to manage
 static
 contents such as guides, tourism contents, any layout with wicket:id
 attributes for components which will be loaded dynamically.
 I am grateful to wicket-guys for that they created a framework like this.
 Because, at once and ever first time in my programing life, i didnt care
 about html part of the application :) Since all you know, html developers
 create web site and html layouts, and then we -as developers- had put our
 dynamic code blocks, expressions, custom jsp tags etc. at past!
 here are the urls of our application for example to a wicket application
 in
 such a heavy-loaded ecommerce:
 www.avigo.de , www.dertour.de, www.atlasreisen.de, www.der.de,
 www.meiers-weltreisen.de, www.adacreisen.de
 these sites can be completely success-stories of Wicket-Hibernate-Spring
 triology.
 Regards,
 
 Kadir Sener GUMUS
 
 
 On 5/22/07, mchack [EMAIL PROTECTED] wrote:


 Thanks for the reply. Not suggesting it should be part of the main
 distribution. I am new to the framework and was trying to see if what I
 proposed made sense. I want to make sure that I don't hinder or create
 barriers to content creation on our portal and wanted to do it in a
 manner
 that made sense. Maybe there are other ways to manage separation of
 concerns.

 In general are their recommended best practices regarding coordination
 and
 workflow between the pure HTML designers and Java coders? In the
 component
 model, seems like an HTML designer will come up with basic look and feel,
 CSS, etc. and then the people on the framework side will
 refactor/componentize the markup. At this point the original markup may
 now be generated by an OO refactoring involving a number of new
 pages/components to insert dynamic content/behavior. The original design
 is
 now split into a variety of new pages and will no longer be readily
 accessible to the original designer as they now have to work on a variety
 of
 fragments. Any references to how to keep the HTML development happy would
 be
 appreciated.

 Thanks


 Eelco Hillenius wrote:
 
  Well, it's something you can quite easily do yourself. See
  org.apache.wicket.examples.customresourceloading. Unless I don't
  understand what you mean, it doesn't sound like something that should
  be a generic facility in Wicket to me.
 
  Eelco
 
 
  On 5/22/07, mchack [EMAIL PROTECTED] wrote:
 
  I know this is topic has been discussed frequently and I fully agree
 with
  the
  current packaging methodology. There are many case where it would be
 nice
  to
  have content easily included that was produced by the HTML designer
  without
  having to associate a corresponding java class. I think I have a
 solution
  that is workable and doesn't violate the current best practices. Let
 me
  know
  if I am missing something.
 
  In certain cases for content such as press releases or 

Re: [Wicket-user] Append custom req paramaters to AjaxLink

2007-05-23 Thread Martijn Dashorst
On 5/18/07, mchack [EMAIL PROTECTED] wrote:
 Thanks for the help. Makes sense. I am trying to come to grips with using
 Wicket for a fairly large project and am trying to come up to speed as quick
 as possible and at the same time try and figure out where I may get burned.

It is always good to hear people trying out Wicket and take it in new
directions. I would like to extend just one word of advise: don't try
to (sub) optimize immediately in the way you are currently thinking.

The most savings can be achieved when you profile your application,
not in thinking upfront. Optimizations are like keys: you know they
are there, but only with thorough searching you find them, and when
you do, it usually is a big Aha! moment. And it doesn't help to start
searching in your last pocket :)

Martijn

-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] How to display applet in wicket?

2007-05-23 Thread Ayodeji Aladejebi

can applets read attributes from HTML DOM? if applets can read HTML DOM Tree
then Wicket and Applets should be able to communicate via AJAX. Wicket
updates DOM tree variables via AJAX and then Applets pick up the values for
internal use?

can this work

any?

On 5/23/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


ahh, so you wish to use wicket to generate dynamic content for the applet?

Look at the howto include javascript thread, theres an example on howto
create a attribute modifier, im not sure howto communicate with your
applet though?


edward durai wrote:
 Finally, It's working.

 My applet looks lik

 APPLET codebase=http://localhost:8080/projectName; CODE=ClassName
 WIDTH=400 HEIGHT=450


 /APPLET

 Here Hardcoded values x_axis_value and y_axis_value is working fine.
 Consider I have one text box with label Dates and
 Consider I have one text box with label values(y).
 How to get both values and apply the above applet tags? I am the newbie
of
 wicket. Please tell your suggestions.




 Robert Novotny wrote:

 One problem, which could arise, is the URL from which is the
graph.class
 loaded. When you've got your applet page on
 http://server.com/page/applet.html, browser JVM willl try to load
 graph.class from http://server.com/page/graph.class URL. Also make sure
 that you have a correct case (Java classes should start with an
uppercase
 letter, therefore I think it is better to have applect
 code=Graph.class.. and class called Graph).

 However, if you specify the JAR files in the archive attribute, your
 classes will be loaded from the specified JARs.

 There can be another hiccup dealing with URL mounting. In our project
we
 have mounted the Wicket webapplication on the
 url-pattern/app/*/url-pattern. Therefore our applet page has URL
 http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:
uinf.wid.tools.UserProfileApplet,
 which means that the JAR files are loaded from the
 http://[servername]:8080/[appname] directory, i. e. from JAR files
which
 are located in the directory just above the WEB-INF.

 If your webpage is mounted (for example to
 http://[servername]:8080/[appname]/app/userprofile), you could come
across
 JAR loading problems, because JVM will try to load JAR/CLASS file from
 that http://[servername]:8080/[appname]/app/userprofile, which does not
 correspond to any server directory, therefore it will not find your
 JARs/CLASSes.


 edward durai wrote:

 Hi to all,

 I have one graph.java file. In HTML I can display like

 APPLET CODE=graph.class WIDTH=900 HEIGHT=400



  !-- Dynamic --
 !-- Dynamic --

 /APPLET


 In Wicket, how can I display this applet file? Please explain me.

 Thank you for answering








-
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





--
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/
-
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] CSS Branding

2007-05-23 Thread craigdd

I'm looking for the best way to provide CSS branding for a logged in Client. 
In other words a css will be added as a header contrib to a page based on
the Client object found in the session and search for a name like;
layout_[clientname].css.

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/CSS-Branding-tf3807302.html#a10775395
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple item actions in table.

2007-05-23 Thread Oliver Henlich
Hi igor,

Thanks for posting that snippet. Took be some time to figure out the 
matching html but it works and i've learnt some more about wicket and 
models.

Note:  in your example you use the js function  
tsGetElementsByClassName. I was just wondering if that actually 
exists, does wicket supply its own implementation of 
GetElementsByClassName somewhere? I ended up using this one 
http://muffinresearch.co.uk/archives/2006/04/29/getelementsbyclassname-deluxe-edition/

Cheers
Oliver


Igor Vaynberg wrote:
 here is a start:

 http://papernapkin.org/pastebin/view/67

 -igor


 On 5/21/07, *Ravindra Wankar * [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:


 When we show a list of items in a table, the first column is a
 checkbox
 which allows you to check more than 1 item and then select an
 action to
 be performed on them. There is also a check all/uncheck all. How
 would I
 do this in Wicket?

 Thanks
 Ravi

 -

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


Re: [Wicket-user] how to customize Modal Window`s appearance

2007-05-23 Thread Al Maw
Scott Swank wrote:
 2. have someone who understands css (i.e. not me) put lots of thingies
 in the above css file to override details of the css that ships with
 ModalWindow.  E.g.
 
   background-image: url();

Now, I know you claim not to understand CSS, but I feel compelled to 
point out that that should be:

 background-image: none;

HTH,

Al


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

2007-05-23 Thread Al Maw
craigdd wrote:
 I'm looking for the best way to provide CSS branding for a logged in Client. 
 In other words a css will be added as a header contrib to a page based on
 the Client object found in the session and search for a name like;
 layout_[clientname].css.

Errr, you just said what to do right there. ;-)

   add(HeaderContributor.forCss(
   css/branding/ + YourSession.get().getClientName() + .css
   ));

That's for context-relative stuff (if you're using 1.3.0-SNAPSHOT you'll 
need a fairly up-to-date version).

I.e. put your CSS files in:
   src/main/webapp/css/branding/WidgetsIncorporated.css
   src/main/webapp/css/branding/SproketsCorp.css

Or you can use package resources, obviously.

It's that simple, unless I'm missing your intent.

Al

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

2007-05-23 Thread craigdd

Thanks Al,

I figured it was that easy, I guess sometimes you make something more
complicated that it really is.

-Craig


Al Maw wrote:
 
 craigdd wrote:
 I'm looking for the best way to provide CSS branding for a logged in
 Client. 
 In other words a css will be added as a header contrib to a page based on
 the Client object found in the session and search for a name like;
 layout_[clientname].css.
 
 Errr, you just said what to do right there. ;-)
 
add(HeaderContributor.forCss(
css/branding/ + YourSession.get().getClientName() + .css
));
 
 That's for context-relative stuff (if you're using 1.3.0-SNAPSHOT you'll 
 need a fairly up-to-date version).
 
 I.e. put your CSS files in:
src/main/webapp/css/branding/WidgetsIncorporated.css
src/main/webapp/css/branding/SproketsCorp.css
 
 Or you can use package resources, obviously.
 
 It's that simple, unless I'm missing your intent.
 
 Al
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/CSS-Branding-tf3807302.html#a10775881
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-23 Thread Flavius

I didn't think about that.
However, I changed the spans to divs and
still the same result.  :-(  

I put a new build out at the same urls.




Johan Compagner wrote:
 
 can a span have other block elements?
 try to make the span a div
 
 johan
 
 
 On 5/23/07, Flavius [EMAIL PROTECTED] wrote:


 The fragment contents appear fine.
 When I change the value on the dropdown, I expect the
 AjaxFormComponentUpdatingBehavior.onUpdate() to set
 the visibility to false.


 My dropdown has this added:

 dropDown.add(new
 AjaxFormComponentUpdatingBehavior(onchange)
 {
 protected void onUpdate(AjaxRequestTarget
 target)
 {
 target.addComponent(container);
 text2Fragment.setVisible(false);
 }
 });

 Now if I substitute a TextField instead of a fragment (or panel), it
 correctly
 sets the visibility to false.  But with the fragment, it stays visible
 when
 the
 onchange event fires.

 I put up a couple of test pages, if you want to see:
 http://24.248.103.44/pages/Test (this is just the component, which works)
 http://24.248.103.44/pages/Test2 (this is with the fragment, which does
 not)

 I included the java source on each page.


 Johan Compagner wrote:
 
  so whats in the fragment doesnt disappear? looking at the ajax code we
  see an empty component comming up. I guess the ajax console is saying
  exatly the same stuff when you do it for the textfield?
 
  On 5/23/07, Flavius [EMAIL PROTECTED] wrote:
 
 
  There are no errors.  I did try setting the outputMarkupId to
  true for the fragment.  In the examples (and in my own code
  with just the TextField), setting the container was sufficient.
  Adding this to the Fragment had no effect.
 
  Here is the Ajax output from the console:
 
  INFO:
  INFO: Initiating Ajax POST request on
 
 /;jsessionid=32444A7415B3D15E1792F255AFB8C5BE?wicket:interface=:0:inputForm:dropDown:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=
 0.8983050159419032
  INFO: Invoking pre-call handler(s)...
  INFO: Received ajax response (181 characters)
  INFO:
  ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
  id=inputForm_container ![CDATA[
 
  ]]/component/ajax-response
  INFO: Response parsed. Now invoking steps...
  INFO: Response processed successfully.
  INFO: Invoking post-call handler(s)...
 
  Like I mentioned, if I just add a TextField (or any other form
 component)
  it works great.  But my pages need to remove the control
  and label.  In a couple of places, it needs to remove several
 controls,
  a prime candidate for a fragment or panel, imho.
 
  I've read other threads discussing setting the visibility like this:
 
 http://www.nabble.com/Changing-visibility-via-ajax-tf1974532.html#a5418508
 
  So I must conclude I'm doing something wrong.
 
 
 
 
  Timo Rantalaiho wrote:
  
   On Tue, 22 May 2007, Flavius wrote:
   I am trying to setVisible on a Fragment using the
   AjaxFormComponentUpdatingBehavior object.
   It doesn't seem to work.  I've also tried this with a Panel and
 that's
   not
   working either.
  
   How does it not work? What does the Ajax debug console say?
   What is the error message / stack trace, if any?
  
   Looking quickly it occurs to me that maybe you should set
   outputMarkupId(true) to the Fragment. If this is the case,
   it should be obvious from the error message on Ajax debug
   console.
  
   - Timo
  
   --
   Timo Rantalaiho   +358-45-6709709
   Reaktor Innovations OyURL: http://www.ri.fi/ 
  
  
 
 -
   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
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10764129
  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/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  

Re: [Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-23 Thread Flavius


Btw, I am running wicket 1.2.6 on Tomcat 6.


Johan Compagner wrote:
 
 can a span have other block elements?
 try to make the span a div
 
 johan
 
 
 On 5/23/07, Flavius [EMAIL PROTECTED] wrote:


 The fragment contents appear fine.
 When I change the value on the dropdown, I expect the
 AjaxFormComponentUpdatingBehavior.onUpdate() to set
 the visibility to false.


 My dropdown has this added:

 dropDown.add(new
 AjaxFormComponentUpdatingBehavior(onchange)
 {
 protected void onUpdate(AjaxRequestTarget
 target)
 {
 target.addComponent(container);
 text2Fragment.setVisible(false);
 }
 });

 Now if I substitute a TextField instead of a fragment (or panel), it
 correctly
 sets the visibility to false.  But with the fragment, it stays visible
 when
 the
 onchange event fires.

 I put up a couple of test pages, if you want to see:
 http://24.248.103.44/pages/Test (this is just the component, which works)
 http://24.248.103.44/pages/Test2 (this is with the fragment, which does
 not)

 I included the java source on each page.


 Johan Compagner wrote:
 
  so whats in the fragment doesnt disappear? looking at the ajax code we
  see an empty component comming up. I guess the ajax console is saying
  exatly the same stuff when you do it for the textfield?
 
  On 5/23/07, Flavius [EMAIL PROTECTED] wrote:
 
 
  There are no errors.  I did try setting the outputMarkupId to
  true for the fragment.  In the examples (and in my own code
  with just the TextField), setting the container was sufficient.
  Adding this to the Fragment had no effect.
 
  Here is the Ajax output from the console:
 
  INFO:
  INFO: Initiating Ajax POST request on
 
 /;jsessionid=32444A7415B3D15E1792F255AFB8C5BE?wicket:interface=:0:inputForm:dropDown:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=
 0.8983050159419032
  INFO: Invoking pre-call handler(s)...
  INFO: Received ajax response (181 characters)
  INFO:
  ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
  id=inputForm_container ![CDATA[
 
  ]]/component/ajax-response
  INFO: Response parsed. Now invoking steps...
  INFO: Response processed successfully.
  INFO: Invoking post-call handler(s)...
 
  Like I mentioned, if I just add a TextField (or any other form
 component)
  it works great.  But my pages need to remove the control
  and label.  In a couple of places, it needs to remove several
 controls,
  a prime candidate for a fragment or panel, imho.
 
  I've read other threads discussing setting the visibility like this:
 
 http://www.nabble.com/Changing-visibility-via-ajax-tf1974532.html#a5418508
 
  So I must conclude I'm doing something wrong.
 
 
 
 
  Timo Rantalaiho wrote:
  
   On Tue, 22 May 2007, Flavius wrote:
   I am trying to setVisible on a Fragment using the
   AjaxFormComponentUpdatingBehavior object.
   It doesn't seem to work.  I've also tried this with a Panel and
 that's
   not
   working either.
  
   How does it not work? What does the Ajax debug console say?
   What is the error message / stack trace, if any?
  
   Looking quickly it occurs to me that maybe you should set
   outputMarkupId(true) to the Fragment. If this is the case,
   it should be obvious from the error message on Ajax debug
   console.
  
   - Timo
  
   --
   Timo Rantalaiho   +358-45-6709709
   Reaktor Innovations OyURL: http://www.ri.fi/ 
  
  
 
 -
   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
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10764129
  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/
  ___
  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 

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-23 Thread Timo Rantalaiho
On Wed, 23 May 2007, Lec wrote:
 I don't think you can do that with onClick(). i verified it by
 writing that in wicket code. It hit error
 
 -/form]]/componentevaluate![CDATA[document.getElementById('paragraph').onClick();]]/evaluate/ajax-response

We're using onclick() like that without problems. Could it
be that the capital C is a problem?

Otherwise I suggest that you ensure that that your
getElementById returns something clickable also in Firefox.

- Timo


-
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] ListView class cast exception

2007-05-23 Thread eddmosphere

Hi there! I'm realll getting confused..

I'm trying to create a table with the resultSet from a mysql database (I
tried DataView but gave up..too much for me) by using a ListView. The
problem is that I keep getting an ClassCastException: java.lang.String. 
Wicket tells me this happens in the populateItem() method when I try to cast
the ListItem to User (of course..). I have a simple User class with getters
to retrieve: int userid, String name, String phone, etc...I don't know why
this is happening so..could someone please help? 

Thanks in advance,
Edd


[CODE]



/* create connection do mysql db and retrive a ResultSet */
NewConnection myconn = new NewConnection();
final ResultSet userTableData = myconn.queryTable(SELECT * FROM
user);

/* calling method that transforms my ResultSet (usersList) to a List
*/
List usersList = getUsers(userTableData);

ListView listView = new ListView(pageable, usersList)
{
protected void populateItem(ListItem listItem)
{
User user = (User)listItem.getModelObject();  //
CLASSCASTEXCEPTION HEREEE
listItem.add(new Label(userid,
Integer.toString(user.getUserId(;
listItem.add(new Label(name, user.getName()));
listItem.add(new Label(phone, user.getPhone()));
listItem.add(new Label(email, user.getEmail()));
listItem.add(new Label(type, user.getType()));
}

};
add(listView);


.

/* method to convert ResultSet to List */
public List getUsers(ResultSet rs) {
 List retval = new ArrayList();
 try {
while(rs.next()) {
retval.add(rs.getString(1));
}
 } catch (SQLException ex) {
 ex.printStackTrace();
}
return retval;
}

-- 
View this message in context: 
http://www.nabble.com/ListView-class-cast-exception-tf3807874.html#a10777112
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/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user