Re: home page with parameters

2008-01-22 Thread Newgro

Did you get a solution for this?
I have the same problem and i would be glad to solve this.

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/home-page-with-parameters-tp11935608p15014223.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Override tag name in html fragment?

2008-01-22 Thread Sam Hough

I was thinking more that I would just extend standard TextArea and TextField
components but override onComponentTag to replace whatever tagName was
supplied by the HTML monkey. So Wicket would continue doing its good stuff
but I wouldn't need two different HTML fragments or placeholder elements...

Do you think onComponentTag is a safe extension point for this? ListChoice
and PasswordTextBox onComponentTag are final :( 

Thanks

Sam


igor.vaynberg wrote:
 
 its not that simple
 
 input tag has no body input/ why textarea does textarea/textarea
 also input stores its value in the value attr, textarea does it in its
 body
 
 that is why we have two separate components for this. you can of
 course write your own that handles both cases properly...
 
 -igor
 
 
 On Jan 21, 2008 7:03 AM, Sam Hough [EMAIL PROTECTED] wrote:

 @Override
 protected final void onComponentTag(final ComponentTag tag) {
 tag.setName(input);
 tag.put(type, text);

 super.onComponentTag(tag);
 }

 Seems to do what I want but is this a valid extension point? In
 PasswordTextBox and ListChoice it is marked final...? I don't want to
 stitch
 my client up with something that is going to break with the next version
 of
 Wicket.  So although means extra dom elements on the browser and more
 component instances on the server am I better off wrapping the raw
 components?

 Cheers

 Sam



 Sam Hough wrote:
 
  We want to switch an input field between input type=text and
 textarea
  depending on how large the existing data is. Is there any way to do
 this
  without needing a spurious placeholder element? ie We would rather not
  have a  span wicket:id=textInput but rather just get the text or
  textarea element in the final HTML .
 
  So anything I can do in onComponentTag etc to change the tag name in
 the
  HTML file?
 
  Cheers
 
  Sam
 

 --
 View this message in context:
 http://www.nabble.com/Override-tag-name-in-html-fragment--tp14995403p14999180.html

 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Override-tag-name-in-html-fragment--tp14995403p15014978.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Jira WICKET-1184 (PageSavingThread not stopped)

2008-01-22 Thread Ari Suutari

Hi,

This seems to occur at us and I have been able to reproduce it
with standard tomcat 6.0 installation. 


I added some comments to:

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

   Ari S.



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



someone please restart tomcat

2008-01-22 Thread Marcio Barbosa
http://wicketstuff.org/wicket13/forminput/

HTTP Status 500 - 


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception javax.servlet.ServletException: Filter execution threw an exception



root cause java.lang.OutOfMemoryError: PermGen space



note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.20 logs.

Apache Tomcat/5.5.20

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



getPageParameters() NullPointer

2008-01-22 Thread Stephan Koch
Hi all,

I'm experiencing a problem using getPageParameters().

The parameter id is passed to MyPage:
setResponsePage(MyPage.class, new PageParameters(id=+evalId));

In the constructor of MyPage I try to access the parameter id:
Integer evalId = Integer.parseInt(getPageParameters().getKey(id));

This fails with a NullPointerException. I thought the usage of
PageParameters was pretty straightforward- did I miss something here?

I'm using Wicket 1.3.

Regards,
Stephan




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



Re: getPageParameters() NullPointer

2008-01-22 Thread Martijn Dashorst
Stating the obvious, but did you check if the parameter was actually present
in the URL?
Martijn

On 1/22/08, Stephan Koch [EMAIL PROTECTED] wrote:

 Hi all,

 I'm experiencing a problem using getPageParameters().

 The parameter id is passed to MyPage:
 setResponsePage(MyPage.class, new PageParameters(id=+evalId));

 In the constructor of MyPage I try to access the parameter id:
 Integer evalId = Integer.parseInt(getPageParameters().getKey(id));

 This fails with a NullPointerException. I thought the usage of
 PageParameters was pretty straightforward- did I miss something here?

 I'm using Wicket 1.3.

 Regards,
 Stephan




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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


Re: getPageParameters() NullPointer

2008-01-22 Thread Martijn Dashorst
OK,
hangon...

You need to define a constructor *taking* a pageparameters object.

In that object you can find the parameters.

Martijn

On 1/22/08, Martijn Dashorst [EMAIL PROTECTED] wrote:

 Stating the obvious, but did you check if the parameter was actually
 present in the URL?

 Martijn

 On 1/22/08, Stephan Koch [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I'm experiencing a problem using getPageParameters().
 
  The parameter id is passed to MyPage:
  setResponsePage(MyPage.class, new PageParameters(id=+evalId));
 
  In the constructor of MyPage I try to access the parameter id:
  Integer evalId = Integer.parseInt(getPageParameters().getKey(id));
 
  This fails with a NullPointerException. I thought the usage of
  PageParameters was pretty straightforward- did I miss something here?
 
  I'm using Wicket 1.3.
 
  Regards,
  Stephan
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


AW: getPageParameters() NullPointer

2008-01-22 Thread Stephan Koch
Yes, the parameter is present. The URL looks like

http://localhost:9080/myapp/app/?wicket:bookmarkablePage=%3Axxx.xxx.xxx.wick
et.MyPageid=135

-Ursprüngliche Nachricht-
Von: Martijn Dashorst [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Januar 2008 12:13
An: users@wicket.apache.org
Betreff: Re: getPageParameters() NullPointer

Stating the obvious, but did you check if the parameter was actually present
in the URL?
Martijn

On 1/22/08, Stephan Koch [EMAIL PROTECTED] wrote:

 Hi all,

 I'm experiencing a problem using getPageParameters().

 The parameter id is passed to MyPage:
 setResponsePage(MyPage.class, new PageParameters(id=+evalId));

 In the constructor of MyPage I try to access the parameter id:
 Integer evalId = Integer.parseInt(getPageParameters().getKey(id));

 This fails with a NullPointerException. I thought the usage of
 PageParameters was pretty straightforward- did I miss something here?

 I'm using Wicket 1.3.

 Regards,
 Stephan




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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


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



Feedback AjaxButton

2008-01-22 Thread Jean-Baptiste Bellet

Hello all,
This is my first wicket message, so first of all, I would like to 
gongrats the whole team for the great job !

Now, my problem :
I have created a NewFeedbackPanel which extends FeedbackPanel and 
override OnBeforeRender(). This NewFeedbackPanel is created into a class 
and added to a target :


final NewFeedbackPanel indicator = new NewFeedbackPanel(indicator, 
3, true);
final NewAjaxButton link = new NewAjaxButton(DOWNLOAD_NEW, new 
ResourceModel(preferences.downloadNew))

{
@Override
public void onClick(AjaxRequestTarget target)
{
..
// log successful message and refresh target feedback

this.info(getLocalizer().getString(preferences.downloadSuccess, this));
target.addComponent(indicator);
target.addComponent(PhoneDetails.this);
}
};
add(link);
add(indicator);


When I test, i can't see any feedback, and the method OnBeforeRender() 
of the class NewFeedbackPanel is never called.

Any idea ?
Thanks,
jb


Code for NewFeedbackPanel.java :
public class NewFeedbackPanel extends FeedbackPanel
{

private static final int DEFAULT_TIME = 1000;

private boolean _blocker;

private int _displayTime;

public NewFeedbackPanel(String id)
{
this(id, DEFAULT_TIME, false);
}

public NewFeedbackPanel(String id, int displayTime)
{
this(id, displayTime, false);
}

public NewFeedbackPanel(String id, int displayTime, boolean blocker)
{
super(id);
_blocker = blocker;
setOutputMarkupPlaceholderTag(true);
add(HeaderContributor.forCss(NewFeedbackPanel.class, 
feedback.css));

setVisible(false);
_displayTime = displayTime  0 ? displayTime : DEFAULT_TIME;
if (_blocker)
{
add(new AttributeAppender(class, new Model(hidder),  ));
}
}

@Override
protected void onBeforeRender()
{
super.onBeforeRender();
IRequestTarget target = RequestCycle.get().getRequestTarget();
if (anyMessage())
{
if (target instanceof AjaxRequestTarget)
{
String javascript = 
window.setTimeout(function(){window.document.getElementById(' + 
getMarkupId()
+ ').style.display = 'none'},  + _displayTime 
+ );;

((AjaxRequestTarget) target).appendJavascript(javascript);

}
}
else
{
setVisible(false);
}
}


}

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



Reloading component on each request.

2008-01-22 Thread Ned Collyer

I have the circumstance where I have a sidebar panel on the left hand side
of my site that I want to reflect the current state of the system -
regardless of the state of the components in the middle.

It will do a data lookup based on an id given to the component in its
constructor, and should perform this lookup on each request - in effect it
is readonly, and stateless, but does require an id to perform the lookup.

I'm confused as to how to do this (and appologise for quite possibly being
stupid).

From reading the docs - it looks like I could achieve this if I wrapped the
adding of the panel in a ListView from the page, but this feels a bit dirty,
as I'd like the logic isolated to the panel itself.
-- 
View this message in context: 
http://www.nabble.com/Reloading-component-on-each-request.-tp15017178p15017178.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: someone please restart tomcat

2008-01-22 Thread Gerolf Seitz
same thing happened recently with the repeater examples.
most of them worked, but one or two threw the OOME.

  gerolf

On Jan 22, 2008 12:37 PM, Johan Compagner [EMAIL PROTECTED] wrote:

 thats odd
 the server works just fine except that forminput example

 johan



 On Jan 22, 2008 12:05 PM, Marcio Barbosa [EMAIL PROTECTED]
 wrote:

  http://wicketstuff.org/wicket13/forminput/
 
  HTTP Status 500 - 
 
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented
  it from fulfilling this request.
 
  exception javax.servlet.ServletException: Filter execution threw an
  exception
 
 
 
  root cause java.lang.OutOfMemoryError: PermGen space
 
 
 
  note The full stack trace of the root cause is available in the Apache
  Tomcat/5.5.20 logs.
 
  Apache Tomcat/5.5.20
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Feedback AjaxButton

2008-01-22 Thread Gerolf Seitz
you need to add the feedbackpanel to the ajaxrequesttarget like:

target.addComponent(indicator);

  gerolf

On Jan 22, 2008 12:20 PM, Jean-Baptiste Bellet [EMAIL PROTECTED] wrote:

 Hello all,
 This is my first wicket message, so first of all, I would like to
 gongrats the whole team for the great job !
 Now, my problem :
 I have created a NewFeedbackPanel which extends FeedbackPanel and
 override OnBeforeRender(). This NewFeedbackPanel is created into a class
 and added to a target :

 final NewFeedbackPanel indicator = new NewFeedbackPanel(indicator,
 3, true);
 final NewAjaxButton link = new NewAjaxButton(DOWNLOAD_NEW, new
 ResourceModel(preferences.downloadNew))
{
@Override
public void onClick(AjaxRequestTarget target)
{
..
// log successful message and refresh target
 feedback
this.info(getLocalizer().getString(
 preferences.downloadSuccess, this));
target.addComponent(indicator);
target.addComponent(PhoneDetails.this);
}
};
 add(link);
 add(indicator);


 When I test, i can't see any feedback, and the method OnBeforeRender()
 of the class NewFeedbackPanel is never called.
 Any idea ?
 Thanks,
 jb


 Code for NewFeedbackPanel.java :
 public class NewFeedbackPanel extends FeedbackPanel
 {

 private static final int DEFAULT_TIME = 1000;

 private boolean _blocker;

 private int _displayTime;

 public NewFeedbackPanel(String id)
 {
 this(id, DEFAULT_TIME, false);
 }

 public NewFeedbackPanel(String id, int displayTime)
 {
 this(id, displayTime, false);
 }

 public NewFeedbackPanel(String id, int displayTime, boolean blocker)
 {
 super(id);
 _blocker = blocker;
 setOutputMarkupPlaceholderTag(true);
 add(HeaderContributor.forCss(NewFeedbackPanel.class,
 feedback.css));
 setVisible(false);
 _displayTime = displayTime  0 ? displayTime : DEFAULT_TIME;
 if (_blocker)
 {
 add(new AttributeAppender(class, new Model(hidder),  ));
 }
 }

 @Override
 protected void onBeforeRender()
 {
 super.onBeforeRender();
 IRequestTarget target = RequestCycle.get().getRequestTarget();
 if (anyMessage())
 {
 if (target instanceof AjaxRequestTarget)
 {
 String javascript =
 window.setTimeout(function(){window.document.getElementById(' +
 getMarkupId()
 + ').style.display = 'none'},  + _displayTime
 + );;
 ((AjaxRequestTarget) target).appendJavascript(javascript);

 }
 }
 else
 {
 setVisible(false);
 }
 }


 }

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




Re: someone please restart tomcat

2008-01-22 Thread Johan Compagner
thats odd
the server works just fine except that forminput example

johan



On Jan 22, 2008 12:05 PM, Marcio Barbosa [EMAIL PROTECTED]
wrote:

 http://wicketstuff.org/wicket13/forminput/

 HTTP Status 500 - 


 type Exception report

 message

 description The server encountered an internal error () that prevented
 it from fulfilling this request.

 exception javax.servlet.ServletException: Filter execution threw an
 exception



 root cause java.lang.OutOfMemoryError: PermGen space



 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.20 logs.

 Apache Tomcat/5.5.20

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




Re: Tip:ServletContext from WicketFilter

2008-01-22 Thread Ayodeji Aladejebi
thanks, works great!

On 1/21/08, Igor Vaynberg [EMAIL PROTECTED] wrote:

 there is a webapplication.getservletcontext().

 -igor


 On Jan 21, 2008 7:42 AM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  Well, I have started migrating some code to 1.3, however i had some
  STOP-AND-CONFIRM situation
 
  In 1.2.x
 
  ServletContext context = Application.getWicketServlet
 ().getServletContext()
  ?
 
  doSomethingWithContext(context);
 
  Migrating to 1.3.x
 
  ServletContext context =
  Application.getWicketFilter().getFilterConfig().getServletContext()
  ?
 
  doSomethingWithContext(context);
 
 
  I guess by doing this, my previous code wont break, even though there is
 no
  WicketServlet configured in my web.xml?
 
  Or must I configure a WicketServlet to be able to do this
 
  thanks
 

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




Re: someone please restart tomcat

2008-01-22 Thread Marcio Barbosa
I'm glad that Wicket is well document and I've just found what I need
in 
http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.DropDownChoicePage

On 1/22/08, Gerolf Seitz [EMAIL PROTECTED] wrote:
 same thing happened recently with the repeater examples.
 most of them worked, but one or two threw the OOME.

   gerolf

 On Jan 22, 2008 12:37 PM, Johan Compagner [EMAIL PROTECTED] wrote:

  thats odd
  the server works just fine except that forminput example
 
  johan
 
 
 
  On Jan 22, 2008 12:05 PM, Marcio Barbosa [EMAIL PROTECTED]
  wrote:
 
   http://wicketstuff.org/wicket13/forminput/
  
   HTTP Status 500 - 
  
  
   type Exception report
  
   message
  
   description The server encountered an internal error () that prevented
   it from fulfilling this request.
  
   exception javax.servlet.ServletException: Filter execution threw an
   exception
  
  
  
   root cause java.lang.OutOfMemoryError: PermGen space
  
  
  
   note The full stack trace of the root cause is available in the Apache
   Tomcat/5.5.20 logs.
  
   Apache Tomcat/5.5.20
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 



-- 
Marcio Alexandre Barbosa
Kaffa Software Consulting
+55 (19) 3296-3505
www.kaffa.com.br

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



Re: Feedback AjaxButton

2008-01-22 Thread Jean-Baptiste Bellet

I've done this, isn't it ?
just below the line 
this.info(getLocalizer().getString(preferences.downloadSuccess, this));

jb

Gerolf Seitz wrote:

you need to add the feedbackpanel to the ajaxrequesttarget like:

target.addComponent(indicator);

  gerolf

On Jan 22, 2008 12:20 PM, Jean-Baptiste Bellet [EMAIL PROTECTED] wrote:


Hello all,
This is my first wicket message, so first of all, I would like to
gongrats the whole team for the great job !
Now, my problem :
I have created a NewFeedbackPanel which extends FeedbackPanel and
override OnBeforeRender(). This NewFeedbackPanel is created into a class
and added to a target :

final NewFeedbackPanel indicator = new NewFeedbackPanel(indicator,
3, true);
final NewAjaxButton link = new NewAjaxButton(DOWNLOAD_NEW, new
ResourceModel(preferences.downloadNew))
   {
   @Override
   public void onClick(AjaxRequestTarget target)
   {
   ..
   // log successful message and refresh target
feedback
   this.info(getLocalizer().getString(
preferences.downloadSuccess, this));
   target.addComponent(indicator);
   target.addComponent(PhoneDetails.this);
   }
   };
add(link);
add(indicator);


When I test, i can't see any feedback, and the method OnBeforeRender()
of the class NewFeedbackPanel is never called.
Any idea ?
Thanks,
jb


Code for NewFeedbackPanel.java :
public class NewFeedbackPanel extends FeedbackPanel
{

private static final int DEFAULT_TIME = 1000;

private boolean _blocker;

private int _displayTime;

public NewFeedbackPanel(String id)
{
this(id, DEFAULT_TIME, false);
}

public NewFeedbackPanel(String id, int displayTime)
{
this(id, displayTime, false);
}

public NewFeedbackPanel(String id, int displayTime, boolean blocker)
{
super(id);
_blocker = blocker;
setOutputMarkupPlaceholderTag(true);
add(HeaderContributor.forCss(NewFeedbackPanel.class,
feedback.css));
setVisible(false);
_displayTime = displayTime  0 ? displayTime : DEFAULT_TIME;
if (_blocker)
{
add(new AttributeAppender(class, new Model(hidder),  ));
}
}

@Override
protected void onBeforeRender()
{
super.onBeforeRender();
IRequestTarget target = RequestCycle.get().getRequestTarget();
if (anyMessage())
{
if (target instanceof AjaxRequestTarget)
{
String javascript =
window.setTimeout(function(){window.document.getElementById(' +
getMarkupId()
+ ').style.display = 'none'},  + _displayTime
+ );;
((AjaxRequestTarget) target).appendJavascript(javascript);

}
}
else
{
setVisible(false);
}
}


}

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






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



Re: Maven repo for wicketstuff?

2008-01-22 Thread Frank Bille
On Jan 18, 2008 10:21 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 How does one actually apply to get setup?


Just ask.

Frank


Re: Feedback AjaxButton

2008-01-22 Thread Gerolf Seitz
oops, my bad.
is was looking for a feedback variable ;)

gerolf

On Jan 22, 2008 1:18 PM, Jean-Baptiste Bellet [EMAIL PROTECTED] wrote:

 I've done this, isn't it ?
 just below the line
 this.info(getLocalizer().getString(preferences.downloadSuccess, this));
 jb

 Gerolf Seitz wrote:
  you need to add the feedbackpanel to the ajaxrequesttarget like:
 
  target.addComponent(indicator);
 
gerolf
 
  On Jan 22, 2008 12:20 PM, Jean-Baptiste Bellet [EMAIL PROTECTED]
 wrote:
 
  Hello all,
  This is my first wicket message, so first of all, I would like to
  gongrats the whole team for the great job !
  Now, my problem :
  I have created a NewFeedbackPanel which extends FeedbackPanel and
  override OnBeforeRender(). This NewFeedbackPanel is created into a
 class
  and added to a target :
 
  final NewFeedbackPanel indicator = new NewFeedbackPanel(indicator,
  3, true);
  final NewAjaxButton link = new NewAjaxButton(DOWNLOAD_NEW, new
  ResourceModel(preferences.downloadNew))
 {
 @Override
 public void onClick(AjaxRequestTarget target)
 {
 ..
 // log successful message and refresh target
  feedback
 this.info(getLocalizer().getString(
  preferences.downloadSuccess, this));
 target.addComponent(indicator);
 target.addComponent(PhoneDetails.this);
 }
 };
  add(link);
  add(indicator);
 
 
  When I test, i can't see any feedback, and the method OnBeforeRender()
  of the class NewFeedbackPanel is never called.
  Any idea ?
  Thanks,
  jb
 
 
  Code for NewFeedbackPanel.java :
  public class NewFeedbackPanel extends FeedbackPanel
  {
 
  private static final int DEFAULT_TIME = 1000;
 
  private boolean _blocker;
 
  private int _displayTime;
 
  public NewFeedbackPanel(String id)
  {
  this(id, DEFAULT_TIME, false);
  }
 
  public NewFeedbackPanel(String id, int displayTime)
  {
  this(id, displayTime, false);
  }
 
  public NewFeedbackPanel(String id, int displayTime, boolean
 blocker)
  {
  super(id);
  _blocker = blocker;
  setOutputMarkupPlaceholderTag(true);
  add(HeaderContributor.forCss(NewFeedbackPanel.class,
  feedback.css));
  setVisible(false);
  _displayTime = displayTime  0 ? displayTime : DEFAULT_TIME;
  if (_blocker)
  {
  add(new AttributeAppender(class, new Model(hidder), 
 ));
  }
  }
 
  @Override
  protected void onBeforeRender()
  {
  super.onBeforeRender();
  IRequestTarget target = RequestCycle.get().getRequestTarget();
  if (anyMessage())
  {
  if (target instanceof AjaxRequestTarget)
  {
  String javascript =
  window.setTimeout(function(){window.document.getElementById(' +
  getMarkupId()
  + ').style.display = 'none'},  + _displayTime
  + );;
  ((AjaxRequestTarget)
 target).appendJavascript(javascript);
 
  }
  }
  else
  {
  setVisible(false);
  }
  }
 
 
  }
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




Re: parse directive in velocity template failing

2008-01-22 Thread James McLaughlin
On Jan 21, 2008 11:45 PM, fattymelt [EMAIL PROTECTED] wrote:

 Just to be sure...

 In the Wicket section of web.xml I am going to add the two init-params. One
 of which defines the folder in which to find my properties file, and the
 other is the actual filename. Then I can use that properties file to specify
 what my TEMPLATE_ROOT is.

Yes, that should do it.


 The only I don't get, is that I have working templates now that are in
 WEB-IN/templates. So, it isn't like velocity-contrib isn't finding them. So
 I'm not sure why the parse directive isn't looking there, too?

For some reason, the velocity.properties that comes with
wicket-velocity specifies the root as . . It probably would have
been better left as the default, which behaves as you would expect.
Maybe if you provide the full path to the template you are parsing,
the classpath loader will pick it up. Hope this helps, fattymelt.



 James McLaughlin-3 wrote:
 
  fattymelt,
  It used to work that you could jar up your templates and put them
  under WEB-INF/lib. If that doesn't work, create your own
  velocity.properties file and define the init-params
  velocityPropertiesFolder and velocity.properties in your web.xml. You
  can define there which loaders to use and what root the
  FileResourceLoader should use. Best of luck, fattymelt!
 

 --
 View this message in context: 
 http://www.nabble.com/%22parse%22-directive-in-velocity-template-failing-tp14999823p15013060.html

 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



AW: getPageParameters() NullPointer

2008-01-22 Thread Stephan Koch
That was easy ;)

Thanks for your help.

Stephan

-Ursprüngliche Nachricht-
Von: Martijn Dashorst [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Januar 2008 12:13
An: users@wicket.apache.org
Betreff: Re: getPageParameters() NullPointer

OK,
hangon...

You need to define a constructor *taking* a pageparameters object.

In that object you can find the parameters.

Martijn

On 1/22/08, Martijn Dashorst [EMAIL PROTECTED] wrote:

 Stating the obvious, but did you check if the parameter was actually
 present in the URL?

 Martijn

 On 1/22/08, Stephan Koch [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I'm experiencing a problem using getPageParameters().
 
  The parameter id is passed to MyPage:
  setResponsePage(MyPage.class, new PageParameters(id=+evalId));
 
  In the constructor of MyPage I try to access the parameter id:
  Integer evalId = Integer.parseInt(getPageParameters().getKey(id));
 
  This fails with a NullPointerException. I thought the usage of
  PageParameters was pretty straightforward- did I miss something here?
 
  I'm using Wicket 1.3.
 
  Regards,
  Stephan
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


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



Re: bookmarkable link keep recreate the objects.

2008-01-22 Thread Johan Compagner
If you use a normal bookmarkable page (redirect)  yes this will happen
But if you use a statefull page that does a redirect then if you do a
refresh you get that page back.

Also you still can have a bookmarkble page/link that also results in the
page to be reused, use the:

HybridUrlCodingStrategy
johan



On Jan 22, 2008 3:01 AM, [EMAIL PROTECTED] wrote:

  Would it be possible to turn a bookmarkale/stateless page object
  into a stateful page during a session once user first access it.

 these pages are not created until accessed...so not sure what you mean

  I meant once they are created, accessing it again (say hit refresh
 button on browser) should
 not result in a new page object recreation, instead using a way to
 locate the previous created object and rerender it as in a stateful
 page.

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




Re: Feedback AjaxButton

2008-01-22 Thread Vincent Demay

Hi Jean-Baptiste

Jean-Baptiste Bellet a écrit :

Hello all,
This is my first wicket message, so first of all, I would like to 
gongrats the whole team for the great job !

Now, my problem :
I have created a NewFeedbackPanel which extends FeedbackPanel and 
override OnBeforeRender(). This NewFeedbackPanel is created into a 
class and added to a target :


final NewFeedbackPanel indicator = new NewFeedbackPanel(indicator, 
3, true);
final NewAjaxButton link = new NewAjaxButton(DOWNLOAD_NEW, new 
ResourceModel(preferences.downloadNew))

{
@Override
public void onClick(AjaxRequestTarget target)
{
..
// log successful message and refresh target feedback

this.info(getLocalizer().getString(preferences.downloadSuccess, this));

target.addComponent(indicator);
target.addComponent(PhoneDetails.this);
}
};
add(link);
add(indicator);


When I test, i can't see any feedback, and the method OnBeforeRender() 
of the class NewFeedbackPanel is never called.

Any idea ?
Thanks,
jb


Code for NewFeedbackPanel.java :
public class NewFeedbackPanel extends FeedbackPanel
{

private static final int DEFAULT_TIME = 1000;

private boolean _blocker;

private int _displayTime;

public NewFeedbackPanel(String id)
{
this(id, DEFAULT_TIME, false);
}

public NewFeedbackPanel(String id, int displayTime)
{
this(id, displayTime, false);
}

public NewFeedbackPanel(String id, int displayTime, boolean blocker)
{
super(id);
_blocker = blocker;
setOutputMarkupPlaceholderTag(true);
add(HeaderContributor.forCss(NewFeedbackPanel.class, 
feedback.css));

setVisible(false);
Here, you feedback is set as not visible. If you take a look into 
Component#internalBeforeRender, you can see that a not visible component 
never call onBeforeRender method.


So you need to override Component#callOnBeforeRenderIfNotVisible to 
return true in order to evaluate you code in onBeforeRender

_displayTime = displayTime  0 ? displayTime : DEFAULT_TIME;
if (_blocker)
{
add(new AttributeAppender(class, new Model(hidder),  
));

}
}

@Override
protected void onBeforeRender()
{
super.onBeforeRender();
IRequestTarget target = RequestCycle.get().getRequestTarget();
if (anyMessage())
{
if (target instanceof AjaxRequestTarget)
{
String javascript = 
window.setTimeout(function(){window.document.getElementById(' + 
getMarkupId()
+ ').style.display = 'none'},  + 
_displayTime + );;
((AjaxRequestTarget) 
target).appendJavascript(javascript);


}
}
else
{
setVisible(false);
}
}


}

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



Cheers

--
Vincent Demay


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



Re: parse directive in velocity template failing

2008-01-22 Thread fattymelt

Thanks for the help, James. I tried adding the following to my web.xml (and
putting the velocity.properties file in that location). Does this look right
to you?

servlet
servlet-nameClientApplication/servlet-name
servlet-classwicket.protocol.http.WicketServlet/servlet-class
init-param
  param-nameapplicationClassName/param-name
  param-valuecom.foo.bar.client.ClientApplication/param-value
/init-param
init-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/init-param
init-param
param-namevelocityPropertiesFolder/param-name
param-valueWEB-INF/classes/param-value
/init-param
init-param
param-namevelocity.properties/param-name
param-valuevelocity.properties/param-value
/init-param
load-on-startup2/load-on-startup
/servlet


James McLaughlin-3 wrote:
 
 On Jan 21, 2008 11:45 PM, fattymelt [EMAIL PROTECTED] wrote:

 Just to be sure...

 In the Wicket section of web.xml I am going to add the two init-params.
 One
 of which defines the folder in which to find my properties file, and the
 other is the actual filename. Then I can use that properties file to
 specify
 what my TEMPLATE_ROOT is.
 
 Yes, that should do it.
 

 The only I don't get, is that I have working templates now that are in
 WEB-IN/templates. So, it isn't like velocity-contrib isn't finding them.
 So
 I'm not sure why the parse directive isn't looking there, too?
 
 For some reason, the velocity.properties that comes with
 wicket-velocity specifies the root as . . It probably would have
 been better left as the default, which behaves as you would expect.
 Maybe if you provide the full path to the template you are parsing,
 the classpath loader will pick it up. Hope this helps, fattymelt.
 


 James McLaughlin-3 wrote:
 
  fattymelt,
  It used to work that you could jar up your templates and put them
  under WEB-INF/lib. If that doesn't work, create your own
  velocity.properties file and define the init-params
  velocityPropertiesFolder and velocity.properties in your web.xml. You
  can define there which loaders to use and what root the
  FileResourceLoader should use. Best of luck, fattymelt!
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%22parse%22-directive-in-velocity-template-failing-tp14999823p15019014.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: create new model object of a Form from one of its FormComp values??

2008-01-22 Thread infodoc

Appreciate your help.

I tried to create a bean and use a copy ctor as Eelco suggested.  Expect
that would work well.

I ran into problems with that because of some read-only fields of
superclasses of Account necessitated by my design.   Therefore, a copy ctor
was not possible without breaking encapsulation of those superclasses, which
I didn't want to do.  What worked for me - not necessarily a better or
simpler solution - was to create a protected constructor of Account that
didn't require the email address of the admin.  I create this by Reflection
and set it as model object of the Form, where it acts just like the bean
suggested by Eelco.  It gets updated normally by the FormComponents and
everything seems to work well.  

In sum, instead of creating a new model object from a value of the Form upon
Form submission, I instead created a new protected constructor that creates
an (incomplete but temporary) object which acts like a bean.  Perhaps not
the most elegant solution, but works given other constraints in my overall
design.

RDC


What Igor said:

and it is also more elegant to e.g. create a copy constructor or
utility object for copying so that you don't have your submit method
littered with code to copy properties. That's largely a matter of
taste though.

Eelco

-- 
View this message in context: 
http://www.nabble.com/create-new-model-object-of-a-Form-from-one-of-its-FormComp-values---tp14983110p15019899.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Get from input from a ModalWindow

2008-01-22 Thread Thomas Kappler
Hi,

I have a ModalWindow with a form, having some dropdown choices and
text fields.  It should be simple, but I can't get the user input when
the window is closed.  There is no domain model object behind the
form, I just need a list of Strings from the form, although I could,
of course, make up a wrapper POJO for that.

I found the example on
http://cwiki.apache.org/WICKET/pass-form-input-from-modal-window-back-to-the-caller-page.html,
but I'm not sure I get it.  Is chooserPanel the modal window?  If so,
how and when is yourValue set?  Via the form's onSubmit, I guess, but
when is that triggered?

Thanks,
Thomas

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



Upload files using Flex (php move_uploaded_file equivalent)

2008-01-22 Thread Sébastien Piller




Hi everybody,

I have a problem with my application. 

I need to upload some files on the server using an Adobe Flex
application. Flex doesn't provide much control for the file upload, I
can't get the raw file data that I want to upload (so I can't send them
in the url, or encode them or anything else). 

On the server side, I have a wicket page, with a constructor taking
only one page parameters argument ("public
MyUploadPage(PageParameters params)")

The only thing that doesn't work is when I need to write the data/move
them with wicket (I receive nothing in the page parameters). I saw some
code in PHP like that:

 $file_temp = $_FILES['file']['tmp_name'];
   $file_name = $_FILES['file']['name'];
  move_uploaded_file(...);


What is the direct equivalent in Wicket?

Thanks!



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



RE: Get from input from a ModalWindow

2008-01-22 Thread Stefan Lindner
Hi Thomas,

you have a form inside your ModalWindow. There is no difference between a form 
in a ModalWindow and a form in a normal Window. You have to associate your form 
with a model or each component of your form has it's own model.
How do you submit the form? With a form button? Or do you simply close the 
ModalWindow with the close button?
Generally you can use a Model for your ModalWindow and override the windowclose 
method in your caller window.
E.g. you have window A with a ModalWindow mw. You open your ModalWindow with 
the mw.show() command.
Then cou can override mw.setWindowClosedCallback... and there cou can access 
the Model of the Modalwindow.

Stefan

-Ursprüngliche Nachricht-
Von: Thomas Kappler [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Januar 2008 16:02
An: users@wicket.apache.org
Betreff: Get from input from a ModalWindow

Hi,

I have a ModalWindow with a form, having some dropdown choices and text fields. 
 It should be simple, but I can't get the user input when the window is closed. 
 There is no domain model object behind the form, I just need a list of Strings 
from the form, although I could, of course, make up a wrapper POJO for that.

I found the example on
http://cwiki.apache.org/WICKET/pass-form-input-from-modal-window-back-to-the-caller-page.html,
but I'm not sure I get it.  Is chooserPanel the modal window?  If so, how and 
when is yourValue set?  Via the form's onSubmit, I guess, but when is that 
triggered?

Thanks,
Thomas

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


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



Re: parse directive in velocity template failing

2008-01-22 Thread James McLaughlin
fattymelt,
yes that looks right. This used to work. I will try to get some time
later today to see what is going on. There should be a velocity.log
somewhere that could be helpful. wicket-velocity has an Initializer
that searches for and loads the properties file, so set a breakpoint
in init to see what is going on.

best,
jim

On Jan 22, 2008 7:56 AM, fattymelt [EMAIL PROTECTED] wrote:

 Thanks for the help, James. I tried adding the following to my web.xml (and
 putting the velocity.properties file in that location). Does this look right
 to you?

 servlet
 servlet-nameClientApplication/servlet-name
 servlet-classwicket.protocol.http.WicketServlet/servlet-class
 init-param
   param-nameapplicationClassName/param-name
   param-valuecom.foo.bar.client.ClientApplication/param-value
 /init-param
 init-param
 param-nameconfiguration/param-name
 param-valuedevelopment/param-value
 /init-param
 init-param
 param-namevelocityPropertiesFolder/param-name
 param-valueWEB-INF/classes/param-value
 /init-param
 init-param
 param-namevelocity.properties/param-name
 param-valuevelocity.properties/param-value
 /init-param
 load-on-startup2/load-on-startup
 /servlet



 James McLaughlin-3 wrote:
 
  On Jan 21, 2008 11:45 PM, fattymelt [EMAIL PROTECTED] wrote:
 
  Just to be sure...
 
  In the Wicket section of web.xml I am going to add the two init-params.
  One
  of which defines the folder in which to find my properties file, and the
  other is the actual filename. Then I can use that properties file to
  specify
  what my TEMPLATE_ROOT is.
 
  Yes, that should do it.
 
 
  The only I don't get, is that I have working templates now that are in
  WEB-IN/templates. So, it isn't like velocity-contrib isn't finding them.
  So
  I'm not sure why the parse directive isn't looking there, too?
 
  For some reason, the velocity.properties that comes with
  wicket-velocity specifies the root as . . It probably would have
  been better left as the default, which behaves as you would expect.
  Maybe if you provide the full path to the template you are parsing,
  the classpath loader will pick it up. Hope this helps, fattymelt.
 
 
 
  James McLaughlin-3 wrote:
  
   fattymelt,
   It used to work that you could jar up your templates and put them
   under WEB-INF/lib. If that doesn't work, create your own
   velocity.properties file and define the init-params
   velocityPropertiesFolder and velocity.properties in your web.xml. You
   can define there which loaders to use and what root the
   FileResourceLoader should use. Best of luck, fattymelt!
  
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/%22parse%22-directive-in-velocity-template-failing-tp14999823p15019014.html

 Sent from the Wicket - User mailing list archive at Nabble.com.


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





-- 
Jim McLaughlin
Director, Software Engineering
Stonewater Control Systems
(o) 847.864.1060 x107
(c) 773.416.0994

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



Re: Maven repo for wicketstuff?

2008-01-22 Thread Nino Saturnino Martinez Vazquez Wael

Ok, could I get setup please?:)

Frank Bille wrote:

On Jan 18, 2008 10:21 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

How does one actually apply to get setup?




Just ask.

Frank

  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: someone please restart tomcat

2008-01-22 Thread igor . vaynberg
cause that example need new classes loaded and its out of permgen?

-igor


On 1/22/08, Johan Compagner [EMAIL PROTECTED] wrote:
 thats odd
 the server works just fine except that forminput example

 johan



 On Jan 22, 2008 12:05 PM, Marcio Barbosa [EMAIL PROTECTED]
 wrote:

  http://wicketstuff.org/wicket13/forminput/
 
  HTTP Status 500 - 
 
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented
  it from fulfilling this request.
 
  exception javax.servlet.ServletException: Filter execution threw an
  exception
 
 
 
  root cause java.lang.OutOfMemoryError: PermGen space
 
 
 
  note The full stack trace of the root cause is available in the Apache
  Tomcat/5.5.20 logs.
 
  Apache Tomcat/5.5.20
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Override tag name in html fragment?

2008-01-22 Thread Igor Vaynberg
oncomponenttag() is fine for extension, thats what it is there for. im
sure if someone made a good usecase for opening up passwordtextbox or
listchoice we would remove final.

-igor


On Jan 22, 2008 1:14 AM, Sam Hough [EMAIL PROTECTED] wrote:

 I was thinking more that I would just extend standard TextArea and TextField
 components but override onComponentTag to replace whatever tagName was
 supplied by the HTML monkey. So Wicket would continue doing its good stuff
 but I wouldn't need two different HTML fragments or placeholder elements...

 Do you think onComponentTag is a safe extension point for this? ListChoice
 and PasswordTextBox onComponentTag are final :(

 Thanks

 Sam



 igor.vaynberg wrote:
 
  its not that simple
 
  input tag has no body input/ why textarea does textarea/textarea
  also input stores its value in the value attr, textarea does it in its
  body
 
  that is why we have two separate components for this. you can of
  course write your own that handles both cases properly...
 
  -igor
 
 
  On Jan 21, 2008 7:03 AM, Sam Hough [EMAIL PROTECTED] wrote:
 
  @Override
  protected final void onComponentTag(final ComponentTag tag) {
  tag.setName(input);
  tag.put(type, text);
 
  super.onComponentTag(tag);
  }
 
  Seems to do what I want but is this a valid extension point? In
  PasswordTextBox and ListChoice it is marked final...? I don't want to
  stitch
  my client up with something that is going to break with the next version
  of
  Wicket.  So although means extra dom elements on the browser and more
  component instances on the server am I better off wrapping the raw
  components?
 
  Cheers
 
  Sam
 
 
 
  Sam Hough wrote:
  
   We want to switch an input field between input type=text and
  textarea
   depending on how large the existing data is. Is there any way to do
  this
   without needing a spurious placeholder element? ie We would rather not
   have a  span wicket:id=textInput but rather just get the text or
   textarea element in the final HTML .
  
   So anything I can do in onComponentTag etc to change the tag name in
  the
   HTML file?
  
   Cheers
  
   Sam
  
 
  --
  View this message in context:
  http://www.nabble.com/Override-tag-name-in-html-fragment--tp14995403p14999180.html
 
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Override-tag-name-in-html-fragment--tp14995403p15014978.html

 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-22 Thread Nino Saturnino Martinez Vazquez Wael

Would there be interest for such a template?

It would consist of 3 projects, parent, core and web.

If so, i'll go ahead and create a wicketstuff for it.

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-22 Thread Gerolf Seitz
i thought about something like that a while ago (but got sidetracked).
for 1.3.x it would also be nice to be able to provide a parameter for java5
(like -Dsource=1.5).
this will obviously be obsolete for the next wicket versions

  gerolf

On Jan 22, 2008 7:50 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Would there be interest for such a template?

 It would consist of 3 projects, parent, core and web.

 If so, i'll go ahead and create a wicketstuff for it.

 --
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-22 Thread Konstantin Ignatyev
Add Wicket Web Beans and we have replacement for Ruby on Rails :)
 
Konstantin Ignatyev 
 




- Original Message 
From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, January 22, 2008 10:50:47 AM
Subject: wicket maven archettype, SPRING-HIBERNATE-JPA?


Would there be interest for such a template?

It would consist of 3 projects, parent, core and web.

If so, i'll go ahead and create a wicketstuff for it.

-- 
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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






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



wicket course/training at your location?

2008-01-22 Thread Nino Saturnino Martinez Vazquez Wael

This is sorta spam, sorry for that.

I've talked to my wife about talking a trip to some where warm, this 
summer. And figured a great way to sponsor the trip (and make an 
experience out of it) would be to hold a course in wicket. I would 
prefer the states as I've never been there but it could be any where.


If you think it would be interesting please write to me, and we will 
figure out the economy date etc.


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-22 Thread Nino Saturnino Martinez Vazquez Wael
Eeek, I guees it would be java 5 only, as JPA are annotations. But I 
guess we could start with java 5 and then expand ..


Gerolf Seitz wrote:

i thought about something like that a while ago (but got sidetracked).
for 1.3.x it would also be nice to be able to provide a parameter for java5
(like -Dsource=1.5).
this will obviously be obsolete for the next wicket versions

  gerolf

On Jan 22, 2008 7:50 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Would there be interest for such a template?

It would consist of 3 projects, parent, core and web.

If so, i'll go ahead and create a wicketstuff for it.

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: wicket maven archettype, SPRING-HIBERNATE-JPA?

2008-01-22 Thread Gerolf Seitz
you're right.
maybe extend the default wicket-quickstart archetype with a java5 version.

let's create some kind of archetype vault :)

it might also be important to provide good documentation alongside the
archetypes...
for the noobs :P

  gerolf

On Jan 22, 2008 7:58 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Eeek, I guees it would be java 5 only, as JPA are annotations. But I
 guess we could start with java 5 and then expand ..

 Gerolf Seitz wrote:
  i thought about something like that a while ago (but got sidetracked).
  for 1.3.x it would also be nice to be able to provide a parameter for
 java5
  (like -Dsource=1.5).
  this will obviously be obsolete for the next wicket versions
 
gerolf
 
  On Jan 22, 2008 7:50 PM, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED] wrote:
 
 
  Would there be interest for such a template?
 
  It would consist of 3 projects, parent, core and web.
 
  If so, i'll go ahead and create a wicketstuff for it.
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

 --
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Re: Reloading component on each request.

2008-01-22 Thread Igor Vaynberg
you can try using a repeater like a listview, and also make sure you
are using detachable models. perhaps if you gave more description of
what the component looks like/what it does and a screenshot that could
help us help you more.

-igor


On Jan 22, 2008 3:51 AM, Ned Collyer [EMAIL PROTECTED] wrote:

 I have the circumstance where I have a sidebar panel on the left hand side
 of my site that I want to reflect the current state of the system -
 regardless of the state of the components in the middle.

 It will do a data lookup based on an id given to the component in its
 constructor, and should perform this lookup on each request - in effect it
 is readonly, and stateless, but does require an id to perform the lookup.

 I'm confused as to how to do this (and appologise for quite possibly being
 stupid).

 From reading the docs - it looks like I could achieve this if I wrapped the
 adding of the panel in a ListView from the page, but this feels a bit dirty,
 as I'd like the logic isolated to the panel itself.
 --
 View this message in context: 
 http://www.nabble.com/Reloading-component-on-each-request.-tp15017178p15017178.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



FileUploadField problem

2008-01-22 Thread JulianS

We're having a strange problem with FileUploadField (using Wicket 1.3.0). If
the user enters a bogus string in the text part of the field, the form will
not respond. That is, even if you click a button or hit enter, there is no
response and no exception. How can we get it to respond with an IOException
or a FileNotFoundException, or get it to execute?

I've stripped down my code to the simplest possible test case to make sure
it's not anything in my code:

form wicket:id=addhostform
  fieldset
  input type=file wicket:id=upload /
  input type=submit wicket:id=ok  value=OK /
  input type=submit wicket:id=cancel  value=Cancel /
  /fieldset
/form

Form form = new Form(addhostform);
final FileUploadField fuf = new FileUploadField(upload); 
form.add(fuf );
...buttons added here...

Thanks,
Julian

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


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



Autocomplete Ajax AddReplace IE Issue

2008-01-22 Thread ckuehne

If I put the autocomplete field on a panel that is added and replaced
dynamically via ajax it does not work in 
Internet Explorer (tested with ver. 7) anymore. In Firefox everything is
alright. In IE also if the ac-field is visible when the page is loaded. But
when I add it later on dynamically via ajax
(fragment.this.replaceWith(ac-panel)) the IE onchange event of the ac-field
cannot be found by IE javascript.
-- 
View this message in context: 
http://www.nabble.com/Autocomplete-Ajax-AddReplace-IE-Issue-tp15026219p15026219.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



FeedbackViewPanel with Pagination

2008-01-22 Thread Advanced Technology®
Hi,

I'am implementing an FeedbackViewPanel that's shows FeedBackMessages with
Pagination :

public class FeedbackViewPanel extends Panel implements IFeedback {
private static final int PAGE_SIZE = 20;

public FeedbackViewPanel(final String id) {
super(id);
final MessageListView messageListView = new
MessageListView(messages, new FeedbackMessagesModel(this));
messageListView.setVersioned(false);
add(messageListView);

final AjaxPagingNavigator navigator = new
AjaxPagingNavigator(navigator, messageListView) {
public boolean isVisible() {
return messageListView.getPageCount()  1;
}
};
add(navigator);

}

private final class MessageListView extends PageableListView {

public MessageListView(String id, IModel model) {
super(id, model, PAGE_SIZE);
//setModel();
}

public boolean isVisible() {
final List messages = (List) getModelObject();
return !messages.isEmpty();
}

public void populateItem(ListItem item) {
final FeedbackMessage message = (FeedbackMessage)
item.getModelObject();
message.markRendered();

Label label = new Label(message, new PropertyModel(message,
message));
final Label m = new Label(icon);
item.add(m);
m.setModel(new Model(span class=' + (message.isError() ?
erro : mensagem) + '/));
m.setEscapeModelStrings(false);
m.setRenderBodyOnly(true);
item.add(label);
}
}
}

But I can figure out a way to delete all the messages from the Session as
they get listed on the FeedbackViewPanel .


AT


Re: Different views in wicket

2008-01-22 Thread Mathias P.W Nilsson

Thanks alot all of you!
-- 
View this message in context: 
http://www.nabble.com/Different-views-in-wicket-tp14997475p15027636.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Feedback AjaxButton

2008-01-22 Thread Sergiy Yevtushenko
Jean-Baptiste Bellet wrote:

I guess that you need call indicator.setOutputMarkupId(true) before adding it to
page.

Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

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



Re: Feedback AjaxButton

2008-01-22 Thread Gerolf Seitz
not only setOutputMarkupId(true), but rather
.setOutputMarkupPlaceHolderTag(true)
otherwise an invisible component can't be made visible via ajax updates.

  gerolf

On Jan 22, 2008 9:30 PM, Sergiy Yevtushenko [EMAIL PROTECTED]
wrote:

 Jean-Baptiste Bellet wrote:

 I guess that you need call indicator.setOutputMarkupId(true) before adding
 it to
 page.

 Regards,
Sergiy.
 *-
 [EMAIL PROTECTED] http://es.os2.ru/

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




Re: home page with parameters

2008-01-22 Thread Frank Bille
I normally do something like this:

application.getHomePage() {return HomePage.class}

HomePage.java
public HomePage() {
   // Check the current state of everything
   if (state == WORLD) {
  throw new RestartResponseException(ThePage.class, new
PageParameters());
   }
}

Frank


On Jan 22, 2008 9:03 AM, Newgro [EMAIL PROTECTED] wrote:


 Did you get a solution for this?
 I have the same problem and i would be glad to solve this.

 Cheers
 Per
 --
 View this message in context:
 http://www.nabble.com/home-page-with-parameters-tp11935608p15014223.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Maven repo for wicketstuff?

2008-01-22 Thread Frank Bille
I didn't know you were a project ;)

Create yourself as a user and let me know the username, so I can give you
rights

On Jan 22, 2008 5:34 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Ok, could I get setup please?:)

 Frank Bille wrote:
  On Jan 18, 2008 10:21 AM, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED] wrote:
 
 
  How does one actually apply to get setup?
 
 
 
  Just ask.
 
  Frank
 
 

 --
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




PageParameters mess up my strings

2008-01-22 Thread palun

(I´m sorry if this is the wrong forum for this kind of question. If so,
please direct me.)

Here´s my problem:
I set a page parameter for the page MyPage like this:

PageParameters params = new PageParameters();
params.put(str, åäö);
setResponsePage(MyPage.class, params);

I retrieve the value on MyPage like this:

public BYNPage(PageParameters p) {
add(new Label(test,  + p.getString(str)));
}

div wicket:id=test/

But on MyPage the string is displayed as åäö !!? 

Any idea why? 
(The problem seems to occur only when sending strings via PageParameters.) 

/ulf 


-- 
View this message in context: 
http://www.nabble.com/PageParameters-mess-up-my-strings-tp15030410p15030410.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: PageParameters mess up my strings

2008-01-22 Thread Edvin Syse

params.put(str, åäö);
setResponsePage(MyPage.class, params);
But on MyPage the string is displayed as åäö !!? 


You are sending non-ASCII characters so maybe you could URLEncode the 
characters before sending them?

params.put(str, URLEncoder.encode(åäö, UTF-8));

And then get them on the other page with:

URLDecoder.decode(params.getString(str), UTF-8);

-- Edvin



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



Eclipse Debug Wicket Problem

2008-01-22 Thread Andy Czerwonka
For some reason, when I launch my tests in debug, Eclipse can't seem to attach 
my source properly.  It can't highlight the current line.  Has anyone seen 
this?  I see this post has had a similair if not exact issue but without 
resolve.  Help please?

I'm using Q4E Maven plugin within Eclipse.  Could this be the issue?

-- 
Andy Czerwonka


Re: Eclipse Debug Wicket Problem

2008-01-22 Thread Andy Czerwonka
http://www.nabble.com/Source-not-found-in-debug-window-td14102828s177.html

Andy Czerwonka [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
For some reason, when I launch my tests in debug, Eclipse can't seem to 
attach my source properly.  It can't highlight the current line.  Has anyone 
seen this?  I see this post has had a similair if not exact issue but 
without resolve.  Help please?

I'm using Q4E Maven plugin within Eclipse.  Could this be the issue?

-- 
Andy Czerwonka




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



Re: someone please restart tomcat

2008-01-22 Thread Sergey Podatelev
Hej,

Just tried this and it's still fails with 500 error and OutOfMemory
exception.

-- 
sp


Re: Reloading component on each request.

2008-01-22 Thread Ned Collyer


igor.vaynberg wrote:
 
 you can try using a repeater like a listview, and also make sure you
 are using detachable models. perhaps if you gave more description of
 what the component looks like/what it does and a screenshot that could
 help us help you more.
 -igor
 

Hi Igor, thanks for the reply :)

Here is a basic screenshot of what i'm trying to achieve.  (i'm not a
creative ;) sorry for the colours).

The panel on the left should be able to reload all its internal information
each request based on a single call to the service layer (ie, not doing a
call for each individual item in the list).  This will show things like the
extra child folders, or any attributes that may have changed (these could be
calculated and set from the service call).  It is expected that multiple
users will be using the same models (ill worry about actual concurrent edits
of the data later - i'm not too fussed by it right now).
http://www.nabble.com/file/p15031759/component.png 

The panel in the middle should maintain state.  Both use the same base model
(a folder), so I'm not sure the detached model stuff is appropriate.

There is some text in the attached image which will hopefully shed some
light on what I am trying to achieve.

Sorry if my example is vague - my domain model and its behaviour.. are
pretty sensitive.

Rgds

Ned
-- 
View this message in context: 
http://www.nabble.com/Reloading-component-on-each-request.-tp15017178p15031759.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Reloading component on each request.

2008-01-22 Thread Igor Vaynberg
something like this should work

public class MyPanel extends Panel {
  public MyPanel() {
  }

  protected void onBeforeRender() {
  removeAll();
  populatePanel();
  super.onBeforeRender();
   }

   protected populatePanel() {
   add(new label(foo));
   
   }
}

that way the panel will rebuild its components every request. this is
the most inefficient way of doing it, you can start optimizing it as
you go along by changing the way it works. for example instead of
always removeall()+complete rebuild you can only remove some
components that truelly cannot be updated, while reusing others that
can be updated by utilizing a detachable model.

-igor


On Jan 22, 2008 3:54 PM, Ned Collyer [EMAIL PROTECTED] wrote:


 igor.vaynberg wrote:
 
  you can try using a repeater like a listview, and also make sure you
  are using detachable models. perhaps if you gave more description of
  what the component looks like/what it does and a screenshot that could
  help us help you more.
  -igor
 

 Hi Igor, thanks for the reply :)

 Here is a basic screenshot of what i'm trying to achieve.  (i'm not a
 creative ;) sorry for the colours).

 The panel on the left should be able to reload all its internal information
 each request based on a single call to the service layer (ie, not doing a
 call for each individual item in the list).  This will show things like the
 extra child folders, or any attributes that may have changed (these could be
 calculated and set from the service call).  It is expected that multiple
 users will be using the same models (ill worry about actual concurrent edits
 of the data later - i'm not too fussed by it right now).
 http://www.nabble.com/file/p15031759/component.png

 The panel in the middle should maintain state.  Both use the same base model
 (a folder), so I'm not sure the detached model stuff is appropriate.

 There is some text in the attached image which will hopefully shed some
 light on what I am trying to achieve.

 Sorry if my example is vague - my domain model and its behaviour.. are
 pretty sensitive.

 Rgds

 Ned
 --
 View this message in context: 
 http://www.nabble.com/Reloading-component-on-each-request.-tp15017178p15031759.html

 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



About NiceUrl(s)/Mounting ?

2008-01-22 Thread mfs

Guys,

Was just reading about having nice-urls for pages through the use mounting,
and was wondering if having nice-urls is just restricted to bookmarkable
pages, what about non-bookmarkable pages ?

-- 
View this message in context: 
http://www.nabble.com/About-NiceUrl%28s%29-Mounting---tp15033072p15033072.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Reloading component on each request.

2008-01-22 Thread Ned Collyer

Thank you  :)

I'll give it a try. - pretty busy on other things, but will try it out asap!
-- 
View this message in context: 
http://www.nabble.com/Reloading-component-on-each-request.-tp15017178p15033866.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: bookmarkable link keep recreate the objects.

2008-01-22 Thread Igor Vaynberg
On Jan 22, 2008 7:09 PM,  [EMAIL PROTECTED] wrote:

 The point is the model should be first absorbed/consumed by listview,
 and later provided to listitem.

according to whom is this the point?

-igor

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



Re: WicketNotSerializableException

2008-01-22 Thread Joshua Jackson
Hi All,

I have take a loot at this. But is there any solution to fix this
without using @SpringBean since I am still on JDK1.4.

Thanks in advance

On Dec 17, 2007 7:50 PM, Evan Chooly [EMAIL PROTECTED] wrote:
 it's the ApplicationContextFacade that can't be serialized.  you'll need to
 mark this field as transient most likely.  Now, if this is, as I suspect, a
 spring class for getting your dependencies, you'll have to refetch/recreate
 this context after deserialization.  But  if you're using spring you  should
 really look at wicket-spring and use @SpringBean to get your deps handed to
 you.


-- 
It's not going to be like this forever

Blog: http://joshuajava.wordpress.com/

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



Re: WicketNotSerializableException

2008-01-22 Thread Igor Vaynberg
see SpringWebApplcation, it has methods to create same proxies @SpringBean does.

-igor


On Jan 22, 2008 8:27 PM, Joshua Jackson [EMAIL PROTECTED] wrote:
 Hi All,

 I have take a loot at this. But is there any solution to fix this
 without using @SpringBean since I am still on JDK1.4.

 Thanks in advance

 On Dec 17, 2007 7:50 PM, Evan Chooly [EMAIL PROTECTED] wrote:
  it's the ApplicationContextFacade that can't be serialized.  you'll need to
  mark this field as transient most likely.  Now, if this is, as I suspect, a
  spring class for getting your dependencies, you'll have to refetch/recreate
  this context after deserialization.  But  if you're using spring you  should
  really look at wicket-spring and use @SpringBean to get your deps handed to
  you.


 --
 It's not going to be like this forever


 Blog: http://joshuajava.wordpress.com/

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



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



Re: FileUploadField problem

2008-01-22 Thread Igor Vaynberg
seems to be working fine at http://wicketstuff.org/wicket13/upload/single

-igor


On Jan 22, 2008 10:40 AM, JulianS [EMAIL PROTECTED] wrote:

 We're having a strange problem with FileUploadField (using Wicket 1.3.0). If
 the user enters a bogus string in the text part of the field, the form will
 not respond. That is, even if you click a button or hit enter, there is no
 response and no exception. How can we get it to respond with an IOException
 or a FileNotFoundException, or get it to execute?

 I've stripped down my code to the simplest possible test case to make sure
 it's not anything in my code:

 form wicket:id=addhostform
   fieldset
   input type=file wicket:id=upload /
   input type=submit wicket:id=ok  value=OK /
   input type=submit wicket:id=cancel  value=Cancel /
   /fieldset
 /form

 Form form = new Form(addhostform);
 final FileUploadField fuf = new FileUploadField(upload);
 form.add(fuf );
 ...buttons added here...

 Thanks,
 Julian

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


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



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



Re: About NiceUrl(s)/Mounting ?

2008-01-22 Thread Gerolf Seitz
you might find HybridUrlCodingStrategy useful.

  gerolf

On Jan 23, 2008 2:32 AM, mfs [EMAIL PROTECTED] wrote:


 Guys,

 Was just reading about having nice-urls for pages through the use
 mounting,
 and was wondering if having nice-urls is just restricted to bookmarkable
 pages, what about non-bookmarkable pages ?

 --
 View this message in context:
 http://www.nabble.com/About-NiceUrl%28s%29-Mounting---tp15033072p15033072.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Localization

2008-01-22 Thread tbt

Hi

I have a html page called HomePage.html

html
head
link href=Resources/css/style.css rel=stylesheet type=text/css /
/head
body
English 
Taiwanese 

wicket:message key=option_id /


/body
/html

and two property files called HomePage.properties and
HomePage_ta.properties.

These files hold the values which should be replaced inside the
wicket:message tag.
How can I switch between these property files once the user selects a
particular language inside my HomePage .java class. I also need to change
the css file according to each language.

eg:- If Taiwanese is selected it should look like link
href=Resources/css/style_ta.css rel=stylesheet type=text/css /

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


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



Re: Maven repo for wicketstuff?

2008-01-22 Thread Nino Saturnino Martinez Vazquez Wael

Here are a few im involved in.

http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-bbcodecomponent

And the one I've done most on:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events

You want my sourceforge id? *nmwael ...
*
regards Nino*
*
Frank Bille wrote:

I didn't know you were a project ;)

Create yourself as a user and let me know the username, so I can give you
rights

On Jan 22, 2008 5:34 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Ok, could I get setup please?:)

Frank Bille wrote:


On Jan 18, 2008 10:21 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:


  

How does one actually apply to get setup?




Just ask.

Frank


  

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Reusable component and customization

2008-01-22 Thread Igor Vaynberg
whats wrong with subclassing and providing your own markup?

-igor

On Jan 22, 2008 11:22 PM, Martijn Lindhout [EMAIL PROTECTED] wrote:
 Hi,

 I just build a simple reusable shoppingcart component with a reasonable
 default CSS style. The markup, css and images are all packaged resources.

 How do I enable users of my component to override the default styling? What
 is the wicket way besides subclassing the CartPanel component and providing
 a custom markup?

 Regards,

 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29


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



Re: Reusable component and customization

2008-01-22 Thread Martijn Lindhout
well, then the users of my the component need to know the internals of the
component. That's not what I want, or at least reduce it to the minimum.

2008/1/23, Igor Vaynberg [EMAIL PROTECTED]:

 whats wrong with subclassing and providing your own markup?

 -igor

 On Jan 22, 2008 11:22 PM, Martijn Lindhout [EMAIL PROTECTED]
 wrote:
  Hi,
 
  I just build a simple reusable shoppingcart component with a reasonable
  default CSS style. The markup, css and images are all packaged
 resources.
 
  How do I enable users of my component to override the default styling?
 What
  is the wicket way besides subclassing the CartPanel component and
 providing
  a custom markup?
 
  Regards,
 
  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29
 

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




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re: Reusable component and customization

2008-01-22 Thread Igor Vaynberg
what internals do they need to know to create a subclsas?

-igor

On Jan 22, 2008 11:40 PM, Martijn Lindhout [EMAIL PROTECTED] wrote:
 well, then the users of my the component need to know the internals of the
 component. That's not what I want, or at least reduce it to the minimum.

 2008/1/23, Igor Vaynberg [EMAIL PROTECTED]:

 
  whats wrong with subclassing and providing your own markup?
 
  -igor
 
  On Jan 22, 2008 11:22 PM, Martijn Lindhout [EMAIL PROTECTED]
  wrote:
   Hi,
  
   I just build a simple reusable shoppingcart component with a reasonable
   default CSS style. The markup, css and images are all packaged
  resources.
  
   How do I enable users of my component to override the default styling?
  What
   is the wicket way besides subclassing the CartPanel component and
  providing
   a custom markup?
  
   Regards,
  
   --
   Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --

 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29


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



Re: Reusable component and customization

2008-01-22 Thread Martijn Lindhout
users need to open the jar, pick the right markup file, copy it, changes css
attributes, etc. That's not what I expect from component reuse, right? Or do
I miss something?



2008/1/23, Igor Vaynberg [EMAIL PROTECTED]:

 what internals do they need to know to create a subclsas?

 -igor

 On Jan 22, 2008 11:40 PM, Martijn Lindhout [EMAIL PROTECTED]
 wrote:
  well, then the users of my the component need to know the internals of
 the
  component. That's not what I want, or at least reduce it to the minimum.
 
  2008/1/23, Igor Vaynberg [EMAIL PROTECTED]:
 
  
   whats wrong with subclassing and providing your own markup?
  
   -igor
  
   On Jan 22, 2008 11:22 PM, Martijn Lindhout [EMAIL PROTECTED]
   wrote:
Hi,
   
I just build a simple reusable shoppingcart component with a
 reasonable
default CSS style. The markup, css and images are all packaged
   resources.
   
How do I enable users of my component to override the default
 styling?
   What
is the wicket way besides subclassing the CartPanel component and
   providing
a custom markup?
   
Regards,
   
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
 
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29
 

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




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re: Reusable component and customization

2008-01-22 Thread Igor Vaynberg
a) read javadoc
b) create subclass (1 min)
c) paste example markup from javadoc into subclass.html file (1 min)
c) edit subclass.html

the only overhead is two minutes, or am i missing something?

-igor


On Jan 22, 2008 11:47 PM, Martijn Lindhout [EMAIL PROTECTED] wrote:
 users need to open the jar, pick the right markup file, copy it, changes css
 attributes, etc. That's not what I expect from component reuse, right? Or do
 I miss something?




 2008/1/23, Igor Vaynberg [EMAIL PROTECTED]:
 
  what internals do they need to know to create a subclsas?
 
  -igor
 
  On Jan 22, 2008 11:40 PM, Martijn Lindhout [EMAIL PROTECTED]
  wrote:
   well, then the users of my the component need to know the internals of
  the
   component. That's not what I want, or at least reduce it to the minimum.
  
   2008/1/23, Igor Vaynberg [EMAIL PROTECTED]:
  
   
whats wrong with subclassing and providing your own markup?
   
-igor
   
On Jan 22, 2008 11:22 PM, Martijn Lindhout [EMAIL PROTECTED]
wrote:
 Hi,

 I just build a simple reusable shoppingcart component with a
  reasonable
 default CSS style. The markup, css and images are all packaged
resources.

 How do I enable users of my component to override the default
  styling?
What
 is the wicket way besides subclassing the CartPanel component and
providing
 a custom markup?

 Regards,

 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29

   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
  
   Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29


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