Re: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Ryan Gravener
set the choicerenderer

setChoiceRenderer(new IChoiceRenderer() {
public Object getDisplayValue(Object object) {
return ((MyEnum) object).getTime();
}

public String getIdValue(Object object, int index) {
return String.valueOf(((MyEnum) object).ordinal());
}
});

On Tue, Apr 1, 2008 at 1:53 PM, Andrew Broderick <[EMAIL PROTECTED]> wrote:
> Wicket 1.3 does not have a class called SelectOption. I downloade Wicket 
> Extension to obtain it, but found it to be incompatible with Wicket 1.3.
>
>  -Andrew
>
>
>  -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Levy
>
>
> Sent: Tuesday, April 01, 2008 12:26 PM
>  To: users@wicket.apache.org
>  Subject: Re: Simplest way to do name-value pairs in DropDownChoice
>
>  Its just a class with a get/set Value and Id
>
>  j
>
>  On Tue, Apr 1, 2008 at 12:50 PM, Andrew Broderick <[EMAIL PROTECTED]>
>  wrote:
>
>  > I am using Wicket 1.3. Has Wicket Extensions been updated to 1.3? I got
>  > the latest Extensions, but seem to be getting errors.
>  >
>  > Thanks
>  >
>  > -Original Message-
>  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Levy
>  > Sent: Tuesday, April 01, 2008 11:17 AM
>  > To: users@wicket.apache.org
>  > Subject: Re: Simplest way to do name-value pairs in DropDownChoice
>  >
>  > I think you are going to have to use a ChoiceRenderer. It's really not
>  > that
>  > complicated. Check out
>  >
>  >
>  > 
> http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/extensions/markup/html/form/select/SelectOption.html<http://people.apache.org/%7Etobrien/wicket/apidocs/org/apache/wicket/extensions/markup/html/form/select/SelectOption.html>
>  >
>  > Jeremy
>  >
>  > On Tue, Apr 1, 2008 at 12:02 PM, Andrew Broderick <[EMAIL PROTECTED]>
>  > wrote:
>  >
>  > > Hi,
>  > >
>  > > I have looked around at several examples of using DropDownChoice. I see
>  > it
>  > > is a very flexible component, with models, IChoiceRenderers and so on.
>  > But,
>  > > I just want to pass it simple name/value pairs to use, with a minimum of
>  > > fuss. Surely there must be an easy way to do this, since this is
>  > probably
>  > > the main use case for this component. My pairs are just:
>  > >
>  > >  All Day
>  > >  7:00AM
>  > >  8:00AM
>  > >  9:00AM
>  > >  10:00AM
>  > >  11:00AM
>  > >  12:00PM
>  > >  1:00PM
>  > >  2:00PM
>  > >  3:00PM
>  > >  4:00PM
>  > >  5:00PM
>  > >  6:00PM
>  > >
>  > > In HTML. What is the simplest possible way to use these with
>  > > DropDownChoice?
>  > >
>  > > Thanks.
>  > >
>  > >
>  > > ___
>  > >
>  > > The  information in this email or in any file attached
>  > > hereto is intended only for the personal and confiden-
>  > > tial  use  of  the individual or entity to which it is
>  > > addressed and may contain information that is  propri-
>  > > etary  and  confidential.  If you are not the intended
>  > > recipient of this message you are hereby notified that
>  > > any  review, dissemination, distribution or copying of
>  > > this message is strictly prohibited.  This  communica-
>  > > tion  is  for information purposes only and should not
>  > > be regarded as an offer to sell or as  a  solicitation
>  > > of an offer to buy any financial product. Email trans-
>  > > mission cannot be guaranteed to be  secure  or  error-
>  > > free. P6070214
>  > >
>  >
>  > -
>  > 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]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread Ryan Gravener
decorateScript(java.lang.CharSequence script) {

return "if(confirm('Are you sure?')) {" + script " + "}";

}

On Tue, Apr 1, 2008 at 10:03 PM, Pinger <[EMAIL PROTECTED]> wrote:
>
>  Opps I think I deleted my reply somehow.. Anyway I said if you could post
a
>
>
> code example of the behavior you made, you would be my hero :)
>
>  djo.mos wrote:
>  >
>  > Hi,
>  >
>  > Pinger wrote:
>  >>
>  >> I want to get a Yes/No confirm dialog, so I only "Do Stuff" if they
say
>  >> yes..
>  >>
>  >
>  > What kind of confirmation ? Javascript ? Html ?
>  > for the first, you could use this
>  >
>  > ajaxButton.add(new SimpleAttributeModifier("onclick", "return
>  > confirm('Delete ?');"));
>  >
>  > Cheers
>  >
>
>  --
>  View this message in context:
http://www.nabble.com/Make-a-Ajax-button-have-a-confirm-dialog-tp16425091p16436264.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]
>
>



-- 
Ryan Gravener
http://ryangravener.com


Re: Setting wicket field component model via JavaScript

2008-04-02 Thread Ryan Gravener
new PropertyModel(this, "photoId")

On 4/2/08, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> Okay, here's the code - I changed the hidden field to a textfield, for
> debugging...
>
> private final class SubmitForm extends MyForm {
> String photoId;
>
> public SubmitForm(String id, IModel model) {
> super(id, model);
>
> // This is actually being set by a JavaScript (jQuery based)
> function after a
> // successful file upload inside the modal.
> final TextField hidden;
> add(hidden = new TextField("hiddenPhotoId", new
> Model(photoId)));
> hidden.setOutputMarkupId(true);
>
> add(new AjaxButton("save", SubmitForm.this) {
> @Override
> protected void onSubmit(AjaxRequestTarget target, Form
> form) {
> modalWindow.setWindowClosedCallback(new
> ModalWindow.WindowClosedCallback() {
> public void onClose(AjaxRequestTarget target) {
> LOG.debug("Photo ID: {}",
> hidden.getModelObjectAsString());
> }
> });
> target.addComponent(hidden);
> modalWindow.close(target);
> }
> });
> }
> }
> }
>
> -Original Message-
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2008 3:05 PM
> To: users@wicket.apache.org
> Subject: Re: Setting wicket field component model via JavaScript
>
> Could you show us the rest of the relevant code?
>
> Maurice
>
> On Thu, Apr 3, 2008 at 12:02 AM, Michael Mehrle <[EMAIL PROTECTED]>
> wrote:
> > Right, I did try that but it's always null. I'm pretty sure I have the
> >  model set properly:
> >
> >  String id;
> >
> >  add(new HiddenField("hidden", new Model(id)));
> >
> >  then  there's the AjaxButton etc.
> >
> >  Not sure what's going on there, it seems very simple but something's
> >  broken.
> >
> >
> >  -Original Message-
> >  From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 02, 2008 2:50 PM
> >  To: users@wicket.apache.org
> >
> >
> > Subject: Re: Setting wicket field component model via JavaScript
> >
> >  I assume you have a form inside your modalwindow and update the value
> >  serverside with an AjaxSubmit- Link or Button ?
> >
> >  Then you should be able to get the field's value using
> >  field.getModelObject().
> >
> >  Maurice
> >
> >  On Wed, Apr 2, 2008 at 11:22 PM, Michael Mehrle
> <[EMAIL PROTECTED]>
> >  wrote:
> >  > Anyone? Could use a pointer...
> >  >
> >  >
> >  >
> >  >  -Original Message-
> >  >  From: Michael Mehrle [mailto:[EMAIL PROTECTED]
> >  >  Sent: Wednesday, April 02, 2008 11:42 AM
> >  >  To: users@wicket.apache.org
> >  >  Subject: Setting wicket field component model via JavaScript
> >  >
> >  >  Simple scenario: I've got a hidden wicket field which I'm setting
> >  with
> >  >  JavaScript to a value like this:
> >  >
> >  >  hiddenField.value = data.msg;
> >  >
> >  >  When I pop up a JS alert it seems the value is set.
> >  >
> >  >  However, back on the Java side I'm trying to log the field's value
> in
> >  my
> >  >  onClose() method as part of a SetWindowClosedCallback, but the
> model
> >  of
> >  >  the wicket component still is null:
> >  >
> >  >  LOG.debug("Value: {}", hiddenField.getRawInput));
> >  >
> >  >  Obviously I'm missing something in terms of the flow here. How can
> I
> >  get
> >  >  the field's component to be updated?
> >  >
> >  >  Any help would be appreciated.
> >  >
> >  >  Thanks,
> >  >
> >  >  Michael
> >  >
> >  >
> -
> >  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  >  For additional commands, e-mail: [EMAIL PROTECTED]
> >  >
> >  >
> >  >
> -----
> >  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  >  For additional commands, e-mail: [EMAIL PROTECTED]
> >  >
> >  >
> >
> >  -
> >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  -
> >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://ryangravener.com

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



Re: Removing the jsessionid for SEO

2008-04-02 Thread Ryan Gravener
I have noticed something like this with http_check on nagios.  Is
there a proper way to get rid of these temporary sessions?

On Wed, Apr 2, 2008 at 10:45 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> also by doing what you have done users with cookies disabled wont be
>  able to use your site...
>
>  -igor
>
>
>
>
>  On Wed, Apr 2, 2008 at 7:44 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>  > you would think that the crawl bots are smart enough to ignore
>  >  jsessionid tokens...
>  >
>  >  -igor
>  >
>  >
>  >
>  >
>  >  On Wed, Apr 2, 2008 at 5:20 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
>  >  > victori_ provided this information on IRC and I just wanted to share it 
> with
>  >  >  everyone else.  Googlebot and others don't use cookies.  This means 
> when
>  >  >  they visit your site it adds ;jsessionid=code to the end of all your 
> urls
>  >  >  they visit.  When they re-visit it, they get a different code, 
> consider that
>  >  >  a different url with the same content and punish you.  So, for the web
>  >  >  crawling bots, it's very important to get rid of this (Perhaps it's
>  >  >  worthwhile to check this code in to the code base).
>  >  >
>  >  >  Here's what you do in your Application:
>  >  >
>  >  >   @Override
>  >  >  protected WebResponse newWebResponse(final HttpServletResponse 
> servletRe
>  >  >  sponse) {
>  >  >   return CleanWebResponse.getNew(this, servletResponse);
>  >  >   }
>  >  >
>  >  >  Here's the CleanWebResponse class:
>  >  >  public class CleanWebResponse {
>  >  > public static WebResponse getNew(final Application app, final
>  >  >  HttpServletResponse servletResponse) {
>  >  > return app.getRequestCycleSettings().getBufferResponse() ? new
>  >  >  Buffered(servletResponse) : new Unbuffered(
>  >  > servletResponse);
>  >  > }
>  >  >
>  >  > static class Buffered extends BufferedWebResponse {
>  >  > public Buffered(final HttpServletResponse httpServletResponse) {
>  >  > super(httpServletResponse);
>  >  > }
>  >  >
>  >  > @Override
>  >  > public CharSequence encodeURL(final CharSequence url) {
>  >  > return url;
>  >  > }
>  >  > }
>  >  >
>  >  > static class Unbuffered extends WebResponse {
>  >  > public Unbuffered(final HttpServletResponse 
> httpServletResponse) {
>  >  > super(httpServletResponse);
>  >  > }
>  >  >
>  >  > @Override
>  >  > public CharSequence encodeURL(final CharSequence url) {
>  >  > return url;
>  >  > }
>  >  >     }
>  >  >  }
>  >  >
>  >  >  Note, I haven't tested this myself yet but I plan to tonight.  Hope 
> this was
>  >  >  helpful.
>  >  >
>  >  >
>  >  >  -
>  >  >  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]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: Render body only

2008-04-03 Thread Ryan Gravener
You can try wicket:container

...


http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags

On Thu, Apr 3, 2008 at 10:28 AM, Scott Sauyet <[EMAIL PROTECTED]> wrote:
> Hi, I'm looking to do exactly what was discussed in a thread a few years ago
> (http://tinyurl.com/3yo43s), namely to dynamically include or exclude a
> group of  tags.
>
>  I can wrap them in a  with a WebMarkupContainer, but I like to have
> valid HTML and really don't want the  tag in the final output.  The
> thread mentioned seems to imply that this was already committed in 2005, but
> I can't find it in the API.  Component has
>
> public final boolean getRenderBodyOnly()
>
>  which looks perfect except that it's final.  Am I missing something else
> that allows for this?
>
>  Thanks,
>
>   -- Scott
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: ModalWindow and Ajax?

2008-04-03 Thread Ryan Gravener
Yes,

append this javascript in your ajax call:
Wicket.Window.unloadConfirmation = false;

On Thu, Apr 3, 2008 at 10:33 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Hi
>
>  I have a modalwindow which contains a dropdown. I've attached an
> ajaxbehavior to the dropdown but when it fires I get a confirmation box "are
> you sure you want to navigate away from this page"...
>
>  Is it supposed to work this way?
>
>  --
>  -Wicket for love
>
>  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]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: ModalWindow and Ajax?

2008-04-03 Thread Ryan Gravener
You can set it as soon as the Wicket js object has been created.  You
need to be using wicket 1.3.x for this to work and yes, you will need
to have it set before the onchange.


On Thu, Apr 3, 2008 at 11:00 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> this did not do the trick in my onchange:
>
>target.appendJavascript("Wicket.Window.unloadConfirmation =
> false;");
>  should it be prepended or when should it be append before the onchange
> event in my dropdown? As a kind of setup, I guess?
>
>
>
>  Ryan Gravener wrote:
>
> > Yes,
> >
> > append this javascript in your ajax call:
> > Wicket.Window.unloadConfirmation = false;
> >
> > On Thu, Apr 3, 2008 at 10:33 AM, Nino Saturnino Martinez Vazquez Wael
> > <[EMAIL PROTECTED]> wrote:
> >
> >
> > > Hi
> > >
> > >  I have a modalwindow which contains a dropdown. I've attached an
> > > ajaxbehavior to the dropdown but when it fires I get a confirmation box
> "are
> > > you sure you want to navigate away from this page"...
> > >
> > >  Is it supposed to work this way?
> > >
> > >  --
> > >  -Wicket for love
> > >
> > >  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]
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>  --
>  -Wicket for love
>
>  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]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: Request based DataProvider

2008-04-07 Thread Ryan Gravener
perhaps what you need is RequestCycle.get()?

On 4/7/08, Ritz123 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am using SortableDataProvider and have a need to access request attributes
> to get the next set of "items".  IDataProvider and none of the pre-canned
> implementation classes seem to use HttpServletRequest to fetch the next set
> of items. Was wondering if someone had similar requirement and if there is
> an easier way to get access to request object from within the IDataProvider.
>
> Thanks in advance.
> --
> View this message in context:
> http://www.nabble.com/Request-based-DataProvider-tp16542297p16542297.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]
>
>


-- 
Ryan Gravener
http://ryangravener.com

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



Re: Page loads too slow

2008-04-08 Thread Ryan Gravener
http://recaptcha.net/

On Tue, Apr 8, 2008 at 1:21 PM, Sergey Podatelev
<[EMAIL PROTECTED]> wrote:
> On Tue, Apr 8, 2008 at 9:05 PM, Matthew Young <[EMAIL PROTECTED]> wrote:
>
>  > >this page takes about 2-5 seconds to load, but this
>  > >only happens when it's loaded for the first time
>  >
>  > I observe the same thing and this has to do with Captcha.  I think it's
>  > because it uses Java graphic stuff and it take time to load and
>  > initialize.
>  >
>  >
>  Looks like you're right. I've just removed the captcha image and the page
>  seems to load fast enough.
>  The question is however, whether this "first run" rule is correct or this
>  issue will occur periodically.
>  I don't have the opportunity to test this to be sure.
>
>
>  --
>  sp
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: BookmarkablePageLink Parameter order

2008-04-09 Thread Ryan Gravener
indexedparamurlcodingstrategy

On 4/9/08, Takeshi Matsuba <[EMAIL PROTECTED]> wrote:
> Hi all
>
> Can I control parameter order?
> I have been creating Blog software and using it.
> I noticed parameter order changed. (sorry I don't know what change is
> trigger)
>
> At Application class ,WebPage class is mounted.
>
> mountBookmarkablePage("/page", Hoo.class);
>
> At WebPage class, BookmarkablePageLink created.
>
> PageParameters param = new PageParameters();
> param.put("param1", "string1");
> param.put("param2", "string2");
> BookmarkablePageLink link = new BookmarkablePageLink("link", Hoo.class,
> param);
>
> I expect that URL like this.
> /page/param1/string1/param2/string2
>
> But actual like this.
> /page/param2/string2/param1/string1
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://ryangravener.com

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



Re: wicket login problem

2008-04-10 Thread Ryan Gravener
Take a look at http://wicketstuff.org/wicket13/forminput/ and
http://cwiki.apache.org/WICKET/working-with-wicket-models.html

In your login form I would have private member variables userId and password

public class LoginForm extends Form {

private String userId;

private String password;

public LoginForm(String id) {
super(id);
setModel(new CompoundPropertyModel(this));
add(new TextField("userId"));
add(new PasswordTextField("password"));
}

public void onSubmit() {
System.out.println(userId);
}

//Make sure to add getters and setters
}



On 10/04/2008, Neo Anderson <[EMAIL PROTECTED]> wrote:
> I follow the tutorial
http://www.developer.com/java/web/article.php/10935_3673576_1 to learn how
to use wicket. And I want to practise not to embed the Form inside another
class. So I create a class called LoginForm.java and move the code to there
(as follow).
>  public class LoginForm extends Form {
>   public LoginForm(String id) {
> super(id);
>   }
>   @Override
>   public void onSubmit() {
> Object o = get("packageName.to.Login");
> System.out.println("object:"+o.getClass().getSimpleName());
> (Login (o)).getUserId();
> (Login (o)).getPassword();
>
>   }
>  }
>  However, after submit the form, I get the a NullPointerException error
because the object o is null. How can I obtain the component of Login? Or
how can I use the method of Login?
>
>  Thanks in advice,
>
>
>
>
>   ___
>  Yahoo! For Good helps you make a difference
>
>  http://uk.promotions.yahoo.com/forgood/
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://ryangravener.com


Re: How to get wicket-SNAPSHOT?

2008-04-10 Thread Ryan Gravener
1.4-SNAPSHOT



On 10/04/2008, Matthew Young <[EMAIL PROTECTED]> wrote:
>
> I want to use wicket-SNAPSHOT to give 1.4 a try.  But I get mvn error:
>
> [INFO] snapshot org.apache.wicket:wicket:SNAPSHOT: checking for updates
> from
> wicket-snapshots
> Downloading:
>
> http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.pom
> Downloading:
>
> http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.jar
> [WARNING] An error occurred during dependency resolution.Failed to
> retrieve org.apache.wicket:wicket-SNAPSHOT
> Caused by: Unable to download the artifact from any repository
>
>
> Here is my pom.xml
>
> ...
>   
> 
>   wicket-snapshots
>   Wicket snapshot repository
>   http://wicketstuff.org/maven/repository/
> 
>   
>
>
>
> 
> SNAPSHOT
> 6.1.7
> 
>
>
> What am I doing wrong?
>



-- 
Ryan Gravener
http://ryangravener.com


Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Ryan Gravener
; >   errors - they all just suddenly stop at the time of the crash.
>  > >
>  > > My money is that it is an OOM error caused by somewhere that I am doing
>  > > something I shouldn't be with Wicket.  There's no logs that even say it
>  > is
>  > > an OOM, but the memory continues to increase linearly over time as the
>  > app
>  > > runs now (it didn't do that before).  My first guess is my previous
>  > > proliferate use of anonymous inner classes.  I have seen in the email
>  > > threads that this shouldn't be done in 1.3.
>  > >
>  > > Of course, the real answer is that I'm going to be digging through
>  > > profilers
>  > > and lines of code until I get this fixed.
>  > >
>  > > My question, though, is from the Wicket devs / experienced users - where
>  > > should I look first?  Is there something that changed between 1.2.6 and
>  > > 1.3
>  > > that might have caused me problems where 1.2.6 was more forgiving?
>  > >
>  > > I'm running the app with JProbe right now so that I can get a snapshot
>  > of
>  > > memory when it gets really high.
>  > >
>  > > Thank you,
>  > > Jeremy Thomerson
>  > >
>  >
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Ryan Gravener
gt;  > >  On Fri, Apr 11, 2008 at 3:33 AM, Johan Compagner <[EMAIL PROTECTED]>
>  >  > >  wrote:
>  >  > >
>  >  > >
>  >  > >
>  >  > >  > by the way it is all your own fault that you get so many session.
>  >  > >  > I just searched for your other mails and i did came across: 
> "Removing
>  >  > the
>  >  > >  > jsessionid for SEO"
>  >  > >  >
>  >  > >  > where you where explaining that you remove the jsessionids from the
>  >  > urls..
>  >  > >  >
>  >  > >  > johan
>  >  > >  >
>  >  > >  >
>  >  > >  > On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson <
>  >  > >  > [EMAIL PROTECTED]>
>  >  > >  > wrote:
>  >  > >  >
>  >  > >  > > I upgraded my biggest production app from 1.2.6 to 1.3 last week.
>  >  >  I
>  >  > >  > have
>  >  > >  > > had several apps running on 1.3 since it was in beta with no
>  >  > problems -
>  >  > >  > > running for months without restarting.
>  >  > >  > >
>  >  > >  > > This app receives more traffic than any of the rest.  We have a
>  >  > decent
>  >  > >  > > server, and I had always allowed Tomcat 1.5GB of RAM to operate
>  >  > with.
>  >  > >  >  It
>  >  > >  > > never had a problem doing so, and I didn't have OutOfMemory 
> errors.
>  >  > >  >  Now,
>  >  > >  > > after the upgrade to 1.3.2, I am having all sorts of trouble.  It
>  >  > ran
>  >  > >  > for
>  >  > >  > > several days without a problem, but then started dying a couple
>  >  > times a
>  >  > >  > > day.  Today it has died four times.  Here are a couple odd things
>  >  > about
>  >  > >  > > this:
>  >  > >  > >
>  >  > >  > >   - On 1.2.6, I never had a problem with stability - the app 
> would
>  >  > run
>  >  > >  > >   weeks between restarts (I restart once per deployment, anywhere
>  >  > from
>  >  > >  > > once a
>  >  > >  > >   week to at the longest about two months between deploy /
>  >  > restart).
>  >  > >  > >   - Tomcat DIES instead of hanging when there is a problem.  
> Always
>  >  > >  > >   before, if I had an issue, Tomcat would hang, and there would 
> be
>  >  > OOM
>  >  > >  > in
>  >  > >  > > the
>  >  > >  > >   logs.  Now, when it crashes, and I sign in to the server, 
> Tomcat
>  >  > is
>  >  > >  > not
>  >  > >  > >   running at all.  There is nothing in the Tomcat logs that says
>  >  > >  > anything,
>  >  > >  > > or
>  >  > >  > >   in eventvwr.
>  >  > >  > >   - I do not get OutOfMemory error in any logs, whereas I have
>  >  > always
>  >  > >  > >   seen it in the logs before when I had an issue with other apps.
>  >  >  I am
>  >  > >  > >   running Tomcat as a service on Windows, but it writes stdout /
>  >  > stderr
>  >  > >  > to
>  >  > >  > >   logs, and I write my logging out to logs, and none of these 
> logs
>  >  > >  > include
>  >  > >  > > ANY
>  >  > >  > >   errors - they all just suddenly stop at the time of the crash.
>  >  > >  > >
>  >  > >  > > My money is that it is an OOM error caused by somewhere that I am
>  >  > doing
>  >  > >  > > something I shouldn't be with Wicket.  There's no logs that even
>  >  > say it
>  >  > >  > is
>  >  > >  > > an OOM, but the memory continues to increase linearly over time 
> as
>  >  > the
>  >  > >  > app
>  >  > >  > > runs now (it didn't do that before).  My first guess is my 
> previous
>  >  > >  > > proliferate use of anonymous inner classes.  I have seen in the
>  >  > email
>  >  > >  > > threads that this shouldn't be done in 1.3.
>  >  > >  > >
>  >  > >  > > Of course, the real answer is that I'm going to be digging 
> through
>  >  > >  > > profilers
>  >  > >  > > and lines of code until I get this fixed.
>  >  > >  > >
>  >  > >  > > My question, though, is from the Wicket devs / experienced users 
> -
>  >  > where
>  >  > >  > > should I look first?  Is there something that changed between 
> 1.2.6
>  >  > and
>  >  > >  > > 1.3
>  >  > >  > > that might have caused me problems where 1.2.6 was more 
> forgiving?
>  >  > >  > >
>  >  > >  > > I'm running the app with JProbe right now so that I can get a
>  >  > snapshot
>  >  > >  > of
>  >  > >  > > memory when it gets really high.
>  >  > >  > >
>  >  > >  > > Thank you,
>  >  > >  > > Jeremy Thomerson
>  >  > >  > >
>  >  > >  >
>  >  > >
>  >  >
>  >
>  >
>  > > -
>  >  > 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]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: Good example for FormComponentPanel?

2008-04-14 Thread Ryan Gravener
DateTimeField extends FormComponentPanel

On Fri, Apr 11, 2008 at 7:37 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> I need to build a TabbedPanel with three tabs which are part of one form
>  - the selected tab will contain form components which need to be
>  submitted by that one form. It seems FormComponentPanel is the way to
>  go: are there any good examples of this?
>
>
>
>  Also, would this be the recommended approach?
>
>
>
>  Thanks,
>
>
>
>  Michael
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: help wanted for wicket autocomplete component

2008-04-15 Thread Ryan Gravener
/**
>
>* [EMAIL PROTECTED]
>
>*/
>
>   @Override
>
>   protected final void onSubmit(final AjaxRequestTarget 
> target) {
>
> System.out.println(" onSubmit( ) for 
> AjaxFormSubmitBehavior called ");
>
> // set the Model for the panel (with model object 
> actor)
>
>  AbstractActorInformationPanel.this.setModelObject((Actor)
>
>  
> AbstractActorInformationPanel.this.setReviewPlan(getReviewPlanForActor((Actor)
>  actorInformationAutoCompleteTextField .getModelObject())); 
> < When I try to do getModelObject( ) here it gives me 
> Class Cast Exception! (Cannot convert from String to Actor)
>
>   }
>
>
>
>   /**
>
>* [EMAIL PROTECTED]
>
>*/
>
>   @Override
>
>   protected final void onError(final AjaxRequestTarget 
> target) {
>
> System.out.println(" onError( ) for 
> AjaxFormSubmitBehavior called ");
>
>   }
>
> });
>
>
>
>
>
>  Can someone tell me what's wrong?
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: DropDownChoice problem

2008-04-17 Thread Ryan Gravener
Use Long instead of long

On Thu, Apr 17, 2008 at 5:05 PM, Andrew Broderick
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I have a DropDownChoice in a form, with markup:
>
>  
>
>  In my Form class, I add it like this:
>
>   add(new DropDownChoice("authors", new 
> PropertyModel(this.article, "articleAuthorId"),
>   acService.getAuthors(), new 
> ChoiceRenderer("authorDisplayName", "articleAuthorId")));
>
>  this.article refers to a class that has a property of articleAuthorId:
>
>   public long getArticleAuthorId() {
> return articleAuthorId;
>   }
>
>   public void setArticleAuthorId(long articleAuthorId) {
> this.articleAuthorId = articleAuthorId;
>   }
>
>  The acService.getAuthors() call gets a list of Author objects:
>
>  public class Author implements Serializable {
>
>   private long articleAuthorId;
>   private String authorFirstName;
>   private String authorMiddleName;
>   private String authorLastName;
>   private String authorDisplayName;
>
>
>   public String getAuthorFirstName() {
> return authorFirstName;
>   }
>   public void setAuthorFirstName(String authorFirstName) {
> this.authorFirstName = authorFirstName;
>   }
>   public String getAuthorMiddleName() {
> return authorMiddleName;
>   }
>   public void setAuthorMiddleName(String authorMiddleName) {
> this.authorMiddleName = authorMiddleName;
>   }
>   public String getAuthorLastName() {
> return authorLastName;
>   }
>   public void setAuthorLastName(String authorLastName) {
> this.authorLastName = authorLastName;
>   }
>   public String getAuthorDisplayName() {
> return authorDisplayName;
>   }
>   public void setAuthorDisplayName(String authorDisplayName) {
> this.authorDisplayName = authorDisplayName;
>   }
>   public Long getId()
>   {
> return new Long(getArticleAuthorId());
>   }
>   public long getArticleAuthorId() {
> return articleAuthorId;
>   }
>   public void setArticleAuthorId(long articleAuthorId) {
> this.articleAuthorId = articleAuthorId;
>   }
>  }
>
>  The error I get when I try to render the page is:
>
>  WicketMessage: No get method defined for class: class java.lang.Long 
> expression: articleAuthorId
>
>  I don't understand this, as the class used for the choices is Author, not 
> java.lang.Long 
>
>  Any help appreciated!
>
>  Thanks
>
>
>
>
>  ___
>
>  The  information in this email or in any file attached
>  hereto is intended only for the personal and confiden-
>  tial  use  of  the individual or entity to which it is
>  addressed and may contain information that is  propri-
>  etary  and  confidential.  If you are not the intended
>  recipient of this message you are hereby notified that
>  any  review, dissemination, distribution or copying of
>  this message is strictly prohibited.  This  communica-
>  tion  is  for information purposes only and should not
>  be regarded as an offer to sell or as  a  solicitation
>  of an offer to buy any financial product. Email trans-
>  mission cannot be guaranteed to be  secure  or  error-
>  free. P6070214
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: Internationalized error() from Page constructor

2008-04-21 Thread Ryan Gravener
I think you can do error((String)(new ResourceModel("page.error").getObject()))

On Mon, Apr 21, 2008 at 3:11 PM, Edvin Syse <[EMAIL PROTECTED]> wrote:
> Sometimes, I want to redirect to another page with an error message because
> of something I discover when the constructor runs. I would like to do:
>
>  if(some_condition) {
> Session.get().error("errmsg");
> setResponsePage(PageClass.class);
> return;
>  }
>
>  The problem is that Session#error() doesn't take a resource-key, only the
> final text. In the constructor it might be too early to determine the
> language etc. What's the Wicket way around this one? :)
>
>  -- Edvin
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: Strange redirect page before actual page loads

2008-04-23 Thread Ryan Gravener
it reads like the browser snoop page, which auto submits a form with
values about the client's browser and timezone.  i dont know if any
components send a redirect here, but you may want to check your code
for references to
browserinfopage.

On 4/23/08, Richard Wilkinson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a page mounted like this: mount(new
> IndexedParamUrlCodingStrategy("/mapl", someclass.class, null));  the
> first time I go to this page (localhost:8080/map) I see another page
> which says 'If you see this, it means that both javascript and
> meta-refresh are not supported by your browser configuration.  Please
> click this link to continue to original destination".
>
> I see this is all browsers and it only happens the first time I visit the
> page.
>
> We are using jetty 6.
>
> Any ideas why this shows up and how to make it stop.  I dont see this
> for any other pages (even ones which are mounted the same way).
>
> Thanks,
>
> Richard
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://wmwm.us/wmwm-date

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



Re: append HTML to a page ONE time

2008-04-25 Thread Ryan Gravener
Just add it to the bottom of your highest level page and have all other
pages extend that page.   Then have its visibility be determined by
iterating over all the components on the page and if one matches your
component return true.

On Fri, Apr 25, 2008 at 12:06 PM, Clay Lehman <[EMAIL PROTECTED]> wrote:

> I am making a component that has to have a DIV appended to the page to
> work properly, but the problem is, this DIV has to be appended exactly
> once, even if multiple objects of the component are added to the page.
> It actually needs to be added at the end of the page too, sort of like
> the opposite of IHeaderContributor.
>
>
>
> Does anyone know of a way to handle this type of thing for a custom
> wicket component?  Adding HTML to the bottom of the page one time even
> if the component is added to the page several times?
>
>
>
> Thanks for any help!
>
> -Clay
>
>
>
>


-- 
Ryan Gravener
http://wmwm.us/wmwm-date


Re: Wicket Auto complete text Issue

2008-04-25 Thread Ryan Gravener
Take a look at
http://www.nabble.com/1.3%2C-resource-locator-and-properties-to16707905.html#a16708440

control+f to help wanted for autocomplete

On Fri, Apr 25, 2008 at 12:29 PM, Ricky <[EMAIL PROTECTED]> wrote:

> Hi,
> I am trying to  get a model object when an autocomplete selection is made;
> but model object comes back as a string rather than the model that was
> selected. Is there a way to get the selected Model (Actor) in the example
> below ?
>
>  final AutoCompleteTextField actorAutoComplete = new
> AutoCompleteTextField("input-auto-complete-actor-search", new Model((Actor)
>  getModelObject()), new AbstractAutoCompleteRenderer() {
>protected final String getTextValue(final Object object) {
>return object.toString();
>}
>protected final void renderChoice(final Object object, final
> Response response, final String criteria) {
>response.write(object.toString());
>}
>}) {
>protected final Iterator getChoices(final String
> searchTextInput) {
>return getCollection().iterator();
>}
>};
>actorAutoComplete.add(new AjaxFormSubmitBehavior("onchange") {
>protected final void onSubmit(final AjaxRequestTarget
> target) {
>// MODEL OBJECT RETURNS STRING RATHER THAN AN ACTOR!!
>this.getComponent().getModelObject();
>}
>});
>}
>add(actorAutoComplete);
>
> Rick
>



-- 
Ryan Gravener
http://wmwm.us/wmwm-date


Re: Is it possible to hide /?wicket:.. from the URLs

2008-04-30 Thread Ryan Gravener
Are you worried about what is in the html as well?  IE:

resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js


On Wed, Apr 30, 2008 at 3:52 AM, Peter Ertl <[EMAIL PROTECTED]> wrote:

> A "poor man's solution" could be:
>
> You could rewrite your URL through e.g. a front-end apache and
> mod_rewrite.
>
> response: convert any occurrence of '?wicket' to '?foobar' in url
> request: convert '?foobar' to '?wicket'
>
>
>
> Am 30.04.2008 um 03:57 schrieb Johan Compagner:
>
>
>  Currently it is not easy to get wicket out of all the urls. This
> > prefix is a static final that is used on many places, i want to make
> > that configurable in a next release.
> >
> > By default wicket will generate  relative paths. You can get a
> > absolute one with i believe RequestUtils. But this is still without
> > host/port i think, why do you want that? For generating emails or
> > something like that?
> >
> > On 4/30/08, Ritz123 <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Hi,
> > >
> > > Was wondering if its possible to hide "wicket" name from the URLs
> > > (stateless
> > > and stateful). One might not want to show their end users that wicket
> > > is
> > > being used behind the scenes.
> > >
> > > Also I noticed even if page has bookmarkable links - the links show
> > > relative
> > > ../../../../mount/params!! Is there anyway to have complete(absolute
> > > urls)
> > > with the hostname?
> > > --
> > > View this message in context:
> > >
> > > http://www.nabble.com/Is-it-possible-to-hide---wicket%3A..-from-the-URLs-tp16972147p16972147.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]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://wmwm.us/wmwm-date


Re: WicketStuff.org Is Down

2008-05-02 Thread Ryan Gravener
I have the examples running on http://wmwm.us/wicket-examples .  The session
doesn't expire for 55 minutes also.  Enjoy.

On Fri, May 2, 2008 at 3:34 PM, Hoover, William <[EMAIL PROTECTED]> wrote:

> okay... thanks for the info
>
> -Original Message-
> From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 02, 2008 3:31 PM
> To: users@wicket.apache.org
> Subject: Re: WicketStuff.org Is Down
>
> No. bamboo is doing its upgrade stuff. and has been doing that for about
> 3 hours.
>
> If you are looking for the examples, install them on your own box.
> They're only a download away.
>
> Martijn
>
> On 5/2/08, Hoover, William <[EMAIL PROTECTED]> wrote:
> > Does anyone have an ETA when wicketstuff.org will be back up?
> >
> >
> >  -
> >  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.3 is
> released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3
>
> -
> 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]
>
>


-- 
Ryan Gravener
http://wmwm.us/wmwm-date


Re: Reloading a Page in Wicket

2008-05-09 Thread Ryan Gravener
You can use loadable detachable models or you can call
setResponsePage(Page.class) in the link.  I recommend the former.

On Fri, May 9, 2008 at 2:49 PM, Deb2002 <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I need help on wicket.
>
> I am trying to reaload my entire page on a click of a button in that page.
>
>
> In the page constructor I fetch data from the DB and create some tables.  I
> have a button, on click of which the data has to be re-fetched and updated
> in the table.
>
>
> Could anyone please help me on this.
>
> Thanks.
>
>
> --
> View this message in context:
> http://www.nabble.com/Reloading-a-Page-in-Wicket-tp17154374p17154374.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Javascript adding input

2008-05-09 Thread Ryan Gravener
Get the hidden data from the request:
getRequest().getParameter("hidden_token");

On Fri, May 9, 2008 at 2:13 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote:

> That's not the point, but if you need a good reason how about this: I'm
> using recaptcha (it generates a captcha on the page).  It works by
> putting a script tag where you want it to show up.  When the page loads,
> it puts a text input field and a bunch of hidden fields there.  You need
> these hidden fields to tell the recaptcha server what it gave you so it
> can compare it to what the user typed in.  Without them, it can't tell
> you if the user entered things in correctly or not.
>
> > -Original Message-
> > From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 09, 2008 12:24 AM
> > To: users@wicket.apache.org
> > Subject: Re: Javascript adding input
> >
> > Why would you want to do that?
> > If it happens at form load you must know about this inputfield when
> > you create the page so why not add a wicket component for it too?
> >
> > Maurice
> >
> > On Fri, May 9, 2008 at 1:02 AM, Dan Kaplan <[EMAIL PROTECTED]>
> > wrote:
> > > Let's say that hypothetically I used javascript to add an  to
> a
> > > form in its onload method.  How can I get wicket to become aware of
> that
> > > input so I can do things like validate it, etc.?
> > >
> > >
> >
> > -
> > 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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: How to use AjaxFormChoiceComponentUpdatingBehavior in Check/CheckGroup

2008-05-12 Thread Ryan Gravener
Is void onError(AjaxRequestTarget target, RuntimeException e) being called?

On Mon, May 12, 2008 at 11:42 AM, Johan Compagner <[EMAIL PROTECTED]>
wrote:

> Code seems fine. What is the hrml output?
>
> On 5/12/08, freak182 <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> > I having problem integrating AjaxFormChoiceComponentUpdatingBehavior. my
> > code snippet:
> >
> > final WebMarkupContainer container = new WebMarkupContainer("wmc");
> > final CheckGroup chkGrp = new CheckGroup("chkGrp",new ArrayList());
> >
> > final ListView list = new ListView("listBcs",listChk){
> >   @Override
> >   protected void populateItem(ListItem item) {
> >   item.add(new
> Check("fltId",item.getModel()));
> >   ...
> >   }
> >   };
> >
> > chkGrp.add(new AjaxFormChoiceComponentUpdatingBehavior(){
> >   @Override
> >   protected void onUpdate(AjaxRequestTarget target)
> {
> >   System.out.println("here
> AjaxFormChoiceComponentUpdatingBehavior");
> >
> >   target.addComponent(amtChk);
> >   target.addComponent(cntChk);
> >   }
> >   });
> >
> > ...it not getting hit inside the onUpdate method..any idea..
> > Thanks a lot..Cheers
> >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/How-to-use-AjaxFormChoiceComponentUpdatingBehavior-in-Check-CheckGroup-tp17184651p17184651.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: using wicket to create dynamic chart

2008-05-15 Thread Ryan Gravener
These look pretty nice for free:

http://teethgrinder.co.uk/open-flash-chart/

On Thu, May 15, 2008 at 11:29 AM, Jonathan Locke <[EMAIL PROTECTED]>
wrote:

>
>
> if you mean it changes in the browser after the page is finished loading,
> you are probably talking client-side technologies: JS, flash, applets,
> something like that.
>
>
> emee wrote:
> >
> > Hello ,
> >
> > I would like to use wicket to create a dynamic chart, I mean the values
> of
> > my chart change in the time. I use googleChart to create my chart but it
> > is a static chart and  all the example I have with wicket to create
> static
> > chart any idea how I can create a dynamic chart by using wicket ?
> >
> > Thank you
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/using-wicket-to-create-dynamic-chart-tp17251826p17255946.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Account Activation Email generation and response processing: any design example?

2008-05-15 Thread Ryan Gravener
You may also want to have a enum/int to represent what kind of token it is.
New user, new email, forgot password, etc..

On Thu, May 15, 2008 at 7:01 PM, James Carman <[EMAIL PROTECTED]>
wrote:

> java.util.UUID.randomUUID().toString()
>
> On Thu, May 15, 2008 at 6:57 PM, Matthew Young <[EMAIL PROTECTED]> wrote:
> > I need to implement the usual account activation via email function.  Can
> > anyone point me to some example of how this is implemented? If in Wicket
> > even better but anything would help me a lot.
> >
> > One question I have is how to generate hard to guess unique keys in the
> > email link? I use Hibernate & MySql, does this give me some easy way to
> > generate these keys? Use Jakarta common-id to generate uuid?
> >
> > I plan to have an activation field in the user table to store the
> activation
> > key, once the user respond to the activation email link, clear the field
> to
> > indicate the account is activated. Is this how it's done?
> >
> > Thanks for any help!
> >
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: access input-value of textfield via ajax before form-submit

2008-05-16 Thread Ryan Gravener
see AjaxFormComponentUpdatingBehavior.

2008/5/16 Oliver Mahnke <[EMAIL PROTECTED]>:

> Hi, i am new to wicket and have a question:
>
> is it possible to access the input-value of a textfield embedded in a form
> via ajax before the form is submitted?
>
> I have a second textfield which should display the input-value of the first
> when the focus leaves tf one.
>
> Therefore i connected the model of tf 2 to the model of tf 1 and have
> registered an "onblur" AjaxEventBehavior for
>
> tf 1, which adds the tf 2 to the ajax response.
>
> It seems that the value of tf 1 is written to the model only when the whole
> form is correct and submitted, the
>
> the output of tf 2 is only updated on form submit :(
>
> Thanks!!
>
>
> --
> Dipl.-Inf. Oliver Mahnke
> b+m Informatik GmbH Berlin
> Schumannstr. 5, 10117 Berlin
> Tel: +49 30 288788-132, Fax: +49 30 288788-111
> http://www.bmiag.de, [EMAIL PROTECTED]
>
> Weitere Angaben zur b+m Informatik GmbH Berlin:
> - Handelsregister des Amtsgerichts Charlottenburg, HRB 75036
> - Geschäftsführer: Dipl.-Inform. Jost Becker
> - Geschäftsführer: Dr. Carsten Jacobsen
>
> Aktuelle b+m Infos unter www.bmiag.de
>
> Diese E-Mail enthält vertrauliche und rechtlich geschützte
> Informationen, die ausschließlich für den vorgesehenen Adressaten
> bestimmt sind. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail
> oder dessen Vertreter sein, so beachten Sie bitte, dass jede Form der
> Kenntnisnahme, Speicherung oder Weitergabe des Inhalts dieser E-Mail
> unzulässig ist. Wir bitten Sie, in diesem Fall den Absender zu
> informieren und die E-Mail mit sämtlichen Anlagen dauerhaft zu löschen.
>
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Not rendering DataGrid if empty

2008-05-16 Thread Ryan Gravener
Override the isVisible method of your component for which you do not want to
render.

@Override
boolean isVisible() {
   return dp.size()!=0;
}

On Fri, May 16, 2008 at 12:44 PM, nitinkc <[EMAIL PROTECTED]> wrote:

>
> Currently the DataGrid outputs a datatable with column headers and a
> message
> 'No Records Found' if the datalist is empty. Does anyone know if it is
> possible to render the datatable only if the list is not empty? Setting the
> visibility to 'false' is not an option as the markup is not rendered in
> this
> case and I need to be able to rerender the datatable if records are found
> after an Ajax submit...
> --
> View this message in context:
> http://www.nabble.com/Not-rendering-DataGrid-if-empty-tp17279244p17279244.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Wicket tags and IE6

2008-05-16 Thread Ryan Gravener
You can place
getMarkupSettings().setStripWicketTags(true); into your Application.init().
I believe these are automatically stripped when you are in deployment mode.

On Fri, May 16, 2008 at 1:33 PM, John Krasnay <[EMAIL PROTECTED]> wrote:

> I've just noticed a specific problem with Wicket tags interfering with
> IE6. I have a page that uses the jqModal plugin for jQuery to display a
> popup div. It works fine on FF, but on IE6 the overlay (the
> semi-transparent div that blocks out the rest of the page while the
> popup is active) pushes the rest of the content down instead of floating
> above it, and the popup div itself is not visible.
>
> After quite a bit of debugging I narrowed it down to a Border I was
> using on the page, and I suspect it was the  tag that was
> giving IE fits.
>
> Of course, this is easily fixed by suppressing Wicket tags from the
> output, but I was wondering if (a) anyone else had seen this and can
> think of another workaround, and (b) if there's some way of fixing this
> in Wicket itself short of renaming .
>
> jk
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Form validation and .properties

2008-05-16 Thread Ryan Gravener
The page does a pretty good job explaining how the .properties work.

If you have global properties, you want them to go in your
MyApplication.properties file which sits right along MyApplication.java.
For cases where you only need specific properties for a component, place the
properties file with the components name right alongside it.  Wicket will
start at the bottom and work its way up looking for the property key.  If
you look at the source (don't be scared)
http://svn.apache.org/repos/asf/wicket/trunk/wicket/src/main/java/org/apache/wicket/
there are a whole bunch of Application*.(properties|xml).

On Fri, May 16, 2008 at 12:30 PM, Blackbird <[EMAIL PROTECTED]> wrote:

>
> Hi, I am very interested in form validation as shown in the FormInput
> example
> at wicketstuff (http://wicketstuff.org/wicket13/forminput/)
> I also came upon this page
> (http://cwiki.apache.org/WICKET/form-validation-messages.html) in the
> wicket
> reference website.
>
> - This last web page reads "Some knowledge of wicket property-resource
> loading is required". Where can I get this knowledge ? A URL would have
> been
> convenient.
>
> - About the FormInput example, we can see that property values are
> retrieved
> from their key in FormInput.html, with this mechanism: "  key="value.between.0.and.100" /> "
> => How does Wicket know that this key is located in a file called
> FormInput.properties? Where is FormInput.properties located in the project?
> Does it have to be in the classpath? Does it have to be the same name (save
> extension) as the html file (in this case FormInput.html)?
>
> --
> View this message in context:
> http://www.nabble.com/Form-validation-and-.properties-tp17278934p17278934.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: External Form target

2008-05-21 Thread Ryan Gravener
Perhaps you can extend Form and do

onComponentTag(final ComponentTag tag) {
super.onComponentTag(tag);
tag.put("method","post");
tag.put("action",MyApplication.get().getExternalUrl());
}

On Wed, May 21, 2008 at 2:30 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]>
wrote:

>
> Hummm... this is an interesting question. Currently in have solved it like
> this.
>
> Add a javacript to the page that changes the forms target.
>
> function makeCallBack( URL ){
>  document.forms[ "orderForm" ].action = URL;
>  document.forms[ "orderForm" ].submit();
> }
>
> In my wicket page
> target.appendJavascript( "makeCallBack( '"+
> getOrder().getPaymentSetting().getHost() +"' )");
>
> I'm using a ajax submit. Does anyone else have a better solution?
>
>
> --
> View this message in context:
> http://www.nabble.com/External-Form-target-tp17364277p17367657.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Password field to textField and back

2008-05-21 Thread Ryan Gravener
If I read a password field asking me to type my password, where plain text
already exists, I would have 2nd thoughts on entering it.

On Wed, May 21, 2008 at 3:00 PM, Jeremy Thomerson <[EMAIL PROTECTED]>
wrote:

> Just an off-the-cuff guess, but have you tried adding both a textfield and
> a
> password field, and then when the textfield (with the hint) is in focus,
> hiding that and showing / focusing on the password field?
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Wed, May 21, 2008 at 1:46 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]
> >
> wrote:
>
> >
> > Hi!
> >
> > In my website I have an textField for email and a password field for the
> > password.
> > The problem is that I need to print "Email here" , "Password here" in the
> > field so that the user can type in the fields. There are no room for
> > labels.
> >
> > I need some way of changing the password field to textfield and onfocus
> to
> > password. Is this possible in wicket? Anyone done this before?
> >
> > Problem as I see it is that IE don't support this.type = newType. It
> needs
> > to be replaced. Any pointers?
> > --
> > View this message in context:
> >
> http://www.nabble.com/Password-field-to-textField-and-back-tp17367668p17367668.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]
> >
> >
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: ClassCastException with ListView()

2008-05-30 Thread Ryan Gravener
How about changing PropertyListView to just ListView.

On Fri, May 30, 2008 at 11:41 AM, James Carman <[EMAIL PROTECTED]>
wrote:

> On Fri, May 30, 2008 at 11:38 AM, David Nedrow <[EMAIL PROTECTED]> wrote:
> >
> > On May 30, 2008, at 11:20 AM, James Carman wrote:
> >
> >> What is the type of item.getModelObject().  Have you run it through a
> >> debugger (or just simply put in a println)?
> >
> > Yes, I had done that first, thinking maybe I didn't understand how
> ListView
> > worked via the Model.
> >
> > The object returned by item.getModelObject().toString() is...
>
> Try doing, item.getModelObject().getClass().toString() (unless that's
> what you meant to type).  Can we see an example method from your DAO?
> What persistence library are you using (hibernate, jpa, jdo, etc.)?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Wicket Session and non-Wicket Servlet

2008-06-03 Thread Ryan Gravener
Check out the api for WicketSessionFilter, it will tell you how to make the
session available for non wicket servlets.

http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.html

On Tue, Jun 3, 2008 at 4:30 PM, Martijn Dashorst <[EMAIL PROTECTED]>
wrote:

> You can't access the Wicket Session from outside a Wicket request
> using Session.get(). It is a thread local that is maintained by the
> request cycle. If it was possible in 2.0, then that was a bug and most
> certainly a security risk.
>
> You should try to look up the Wicket session in the HttpSession of
> your servlet using the session id and wicket key.
>
> Or just store the report in the http session instead.
>
> Martijn
>
> On Tue, Jun 3, 2008 at 10:21 PM, Matthew R Hanlon <[EMAIL PROTECTED]>
> wrote:
> > Okay, I may have this all wrong, and then that's my problem.  I have an
> > application that was developed under the 2.0 branch that I recently
> migrated
> > to 1.4.  This application uses a servlet to handle requests for Jasper
> > Reports, and under 2.0 everything worked great.  I store the report
> request
> > in the user's Session, and retrieve it in the JasperReportServlet to look
> up
> > the request.  In my JasperReportServlet I was doing:
> >
> >
> >
> > public final void doGet(final HttpServletRequest servletRequest, final
> > HttpServletResponse servletResponse) throws ServletException, IOException
> >
> > {
> >
> >  String requestId =
> >
> servletRequest.getParameter(ReportingConstants.PARAMETER_NAME_REPORT_REQUEST
> > );
> >
> >  ReportRequest reportReq = null;
> >
> >  MySession session = (MySession)Session.get();
> >
> >  reportReq = session.getReportRequest(requestId);
> >
> >
> >
> >  // handle report request, etc.
> >
> > }
> >
> >
> >
> > However, in 1.4 when I do Session.get() from my JasperReportServlet I am
> > getting the error java.lang.IllegalStateException: you can only locate or
> > create sessions in the context of a request cycle.
> >
> >
> >
> > So, can I no longer get an object from my wicket Session from a
> non-wicket
> > Servlet?  I've been looking all over, and can't seem to find the right
> > answer.  Thanks for any help.
> >
> >
> >
> > Regards,
> >
> > Matthew.
> >
> >
> >
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.3 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: how to pass parameters while setting page expired error page

2008-06-04 Thread Ryan Gravener
I haven't had to deal with this issue yet, but perhaps you can put this
information in a cookie and read it when necessary?

On Wed, Jun 4, 2008 at 9:04 AM, Patel, Sanjay <[EMAIL PROTECTED]> wrote:

> I want to redirect to LoginPage if session expires and want to show
> message that "your session expired, please login again."
> Is there any way that I can pass parameters to LoginPage ??
>
> getApplicationSettings().setPageExpiredErrorPage(LoginPage.class);
>
> Thanks,
> Sanjay.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Getting Wicket Session from outside Wicket context

2008-06-13 Thread Ryan Gravener
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.html


On Fri, Jun 13, 2008 at 3:35 PM, Scott Sauyet <[EMAIL PROTECTED]> wrote:

> I have several Servlets and ServletFilters that run inside the same web
> application as my Wicket app.  They've happily co-existed with Wicket until
> now, but now there is a requirement that several of them, which can show
> sensitive data, must be protected with the same login security as the Wicket
> application.
>
> What is to me the simplest approach would be to grab hold of the instance
> of my WebSession subclass and use it to check the user's login status.  But
> I'm not quite sure how this is stored in Wicket.  Is there a simple
> invocation to get my WebSession out of the HttpSession?
>
> Thanks,
>
>  -- Scott
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: BookMarkable Home Page?

2008-06-13 Thread Ryan Gravener
Maybe override onError and redirect to the bookmarkable page w/ params?

On Fri, Jun 13, 2008 at 3:46 PM, nanotech <[EMAIL PROTECTED]> wrote:

>
> Hi All,
>
> In my application the Home Page of the class has the url that looks like
> this
>
> http://localhost:8080/app/?id=ABCXYZ
>
> This form has a textfield that I am pre-filling with value of "id" from
> query param (in this case ABCYXZ).
> It also has JCaptcha component and a text field component to validate that
> captcha.
> And there is Submit button.
>
> Now, The problem is:
> When I Submit the form and if any of the required fields is not filled up
> then it shows validation errors which is all good. But, the  page refreshes
> and url of the page changes to
> http://localhost:8080/app/?wicket:interface=:0  .
>
>  - How can I prevent query param from disappearing?
>  - How can I prevent from ?wicket:interface=:0 from appearing so that
> it
> does not expire after server re-boot (Note: this is the home page of the
> application)
>
>
> Thanks for the help,
> RG
>
> --
> View this message in context:
> http://www.nabble.com/BookMarkable-Home-Page--tp17830736p17830736.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: What is DateTextFields Max and Min date or range?

2008-06-23 Thread Ryan Gravener
It is ultimately backed by java.util.Date.

On Mon, Jun 23, 2008 at 3:14 PM, taygolf <[EMAIL PROTECTED]> wrote:

>
> Hey guys I have been looking and I wanted to know what the DateTextField
> max
> and min dates were. so if my user wanted to click back to say December 1950
> could they? I know it is not very practical and I do not think this will
> happen but I wanted to see how far back they could go and how far ahead
> they
> could go.
>
> Thanks
>
> T
> --
> View this message in context:
> http://www.nabble.com/What-is-DateTextFields-Max-and-Min-date-or-range--tp18076245p18076245.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: IDataProvider and Hibernate Search

2008-02-18 Thread Ryan Gravener
You could keep an instance of the search results in the dataprovider.
Then on size() and iterator() check to see if results is null.  If it
is perform the query and store the results

ie:

add this to your searchdataprovider

private transient SearchResults results;

private void searchIfNecessary() {

 //if(results!=null) return;

 //get results

}

public int size() {
  searchIfNecessary();
  return results.getTotal();
}



On 18/02/2008, Java Programmer <[EMAIL PROTECTED]> wrote:
> Hello,
> I want to use DataView to present Search Results from Hibernate
> Search, but I got stuck with implementation of DataProvider - maybe
> first I show you classes:
> private class SearchDataProvider implements IDataProvider {
>
> private String query;
>
> public SearchDataProvider(String query) {
> this.query = query;
> }
>
> @Override
> public Iterator iterator(int first, int count) {
> SearchDAO.SearchResults searchedAdverts =
> searchDAO.getSearchedAdverts(this.query, first, count);
> return searchedAdverts.getResults().iterator();
> }
>
> @Override
> public IModel model(Object object) {
> return new Model((Advertisement) object);
> }
>
> @Override
> public int size() {
> SearchDAO.SearchResults searchedAdverts =
> searchDAO.getSearchedAdverts(this.query, 0, 0);
> return searchedAdverts.getCount();
> }
>
> @Override
> public void detach() {
>
> }
> }
>
> in SearchDAO I have:
> public class SearchDAO extends HibernateDaoSupport {
> public SearchResults getSearchedAdverts(final String queryString, int
> first, int count) {
> Session session = getSession(true);
> FullTextSession fullTextSession = 
> Search.createFullTextSession(session);
> SearchResults results = null;
> Transaction tx = fullTextSession.beginTransaction();
> MultiFieldQueryParser parser = new MultiFieldQueryParser( new
> String[]{"title", "rawBody"},
>   new StandardAnalyzer());
> Query query;
> try {
> query = parser.parse(queryString);
> FullTextQuery hibQuery = 
> fullTextSession.createFullTextQuery(query,
> Advertisement.class)
> .setFirstResult(first)
> .setMaxResults(count);
> results = new SearchResults(hibQuery.list(), 
> hibQuery.getResultSize());
> } catch (ParseException e) {
> e.printStackTrace();
> } finally {
> tx.commit();
> session.close();
> }
> }
> SearchResults is a wrapper for sublist of results and number of all:
> public class SearchResults {
>
> private List results = null;
>
> private int count = 0;
>
> public SearchResults(List results, int count) {
> super();
> this.results = results;
> this.count = count;
> }
>   //getters/setters
> }
>
> As you see I have to repeat searching in size() and iterator()
> (SearchDAO.SearchResults searchedAdverts =
> searchDAO.getSearchedAdverts(this.query, 0, 0); and
> SearchDAO.SearchResults searchedAdverts =
> searchDAO.getSearchedAdverts(this.query, first, count);) in size I do
> not get collection, but searching happens because this method is
> launched before iterator() which could answer with number of all
> results as hibQuery.getResultSize();
> It's very inefficient, and I don't know how can I repair that, without
> writing my own DataView implementation. DataProvider is good for
> databases which need to make additional select count(*), but Lucene
> Hibernate Search make it in one pass.
>
> Anybody has a suggestion on this topic?
>
> Best regards,
> Adr
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: ant-based example project?

2008-02-22 Thread Ryan Gravener
http://qwicket.sf.net

On 22/02/2008, palun <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I just downloaded Wicket 1.3.1 and now I want to use Ant for building my app
> and deploying it to Tomcat.  I thought it would be easy to find a good
> example of an Ant-based project. But no. Everything seems to be all Maven...
>
>
> My question is: Is there a good example of an ant-based wicket project for
> wicket-newbies? (If someone has such a project lying around, would you
> consider making it available?)
>
> Many thanks!
> /ulf
>
> PS. I love Wicket, it's excellent! But I am afraid many potential users are
> probably lost simply due to its tight connection to Maven, and that is a
> shame... The point is: Wicket is so easy to use that it is "within reach"
> also for less experienced programmers. -- Why ruin that with Maven? (Just
> look at all the threads about Maven-related problems. We should be talking
> Wicket here, not Maven. (Ohh, I know I'm in deep now...))
>
>
> --
> View this message in context:
> http://www.nabble.com/ant-based-example-project--tp15632894p15632894.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]
>
>


-- 
Ryan Gravener
http://ryangravener.com

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



Re: gmap vs gmap2?

2008-02-23 Thread Ryan Gravener
I would recommend gmap2 as well.


On Sat, Feb 23, 2008 at 12:38 PM, Martin Funk <[EMAIL PROTECTED]>
wrote:

> gmap was there first and gmap2 was inspired by it and
> both try to deliver the same service.
>
> I personally think that gmap2 has the more efficient approach.
> But as I'm quite involved in developing it, this opinion of mine might not
> be objective.
>
> If you are looking for objectivity you might have to look into the code or
> wait for other opinions.
>
> mf
> ps.: gmap2 has the nicer powerpoint slides :-)
> http://www.slideshare.net/mfunk/wicket-contrib-gmap2/
>
>
> 2008/2/23, Erik van Oosten <[EMAIL PROTECTED]>:
> >
> > Hello,
> >
> > What are the differences between the wicket-stuff projects gmap and
> gmap2?
> >
> > Regards,
> > Erik.
> >
> >
> >
> > --
> > Erik van Oosten
> > http://www.day-to-day-stuff.blogspot.com/
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>



-- 
Ryan Gravener
http://ryangravener.com


Re: my domain model and Joda-Time

2008-02-23 Thread Ryan Gravener
Use Date instead of DateTime.

On Sat, Feb 23, 2008 at 11:56 PM, Fernando Wermus <[EMAIL PROTECTED]>
wrote:

> Hi all,
> I got a parser error using DateTextField.
> I am working with Joda-Time in my domain model. Thus I have some
> DateTime attributes. According to this code which I found,
>
> ...
>form.add(DateTextField.forDatePattern("datetime", new
> PropertyModel(this, "datetime"), "MM/dd/"));
>form.add(new DateTextField("date", new PropertyModel(this, "date"),
> Date.class, new PatternDateConverter("MM/dd/", true)));
> //form.add(DateTextField.forDatePattern("date", new
> PropertyModel(this, "date"), "MM/dd/"));  // will fail
> ...
>
> I can use it perfectly; on the other hand, I found  this comments in
> DateTextField.class too,
>
>  * A TextField that is mapped to a java.util.Date object and
> that uses Joda time to
>  * parse and format values.
>
> I think I am misunderstanding something. Should I use always Date
> attributes
> instead DateTime ones, and wicket-datetime use it just for conversion, or
> can I use in my wicket-models?
>
> --
> Fernando Wermus.
>



-- 
Ryan Gravener
http://ryangravener.com


Re: AutoCompleteTextField user selection

2008-02-28 Thread Ryan Gravener
the onChange event is fired, I get the input.  The
>  > second time the event is fired I get the selected text.
>  >
>  > Thanks
>  > Mike
>  >
>  >
>  >
>  > Martin Funk-3 wrote:
>  > >
>  > > Hi Michal,
>  > >
>  > > could you come up with some code?
>  > >
>  > > mf
>  > >
>  > > 2008/2/22, Bushby <[EMAIL PROTECTED]>:
>  > >>
>  > >>
>  > >> I have an AutoCompleteTextField which searches for a person
>  > object.  When
>  > >> a
>  > >> person is selected from the auto complete, I want to update the panel
>  > and
>  > >> the model with the person's information.  I have tried adding an
>  > >> AjaxFormComponentUpdatingBehavior, but it gets called twice.  Once with
>  > >> the
>  > >> text entered by the user, and the second with the text from the auto
>  > >> complete.  How do I capture just the selection event?
>  > >>
>  > >> Thanks
>  > >>
>  > >>
>  > >> --
>  > >> View this message in context:
>  > >>
>  > 
> http://www.nabble.com/AutoCompleteTextField-user-selection-tp15634452p15634452.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]
>  > >>
>  > >>
>  > >
>  > >
>  >
>  >
>  > --
>  > View this message in context:
>  > 
> http://www.nabble.com/AutoCompleteTextField-user-selection-tp15634452p15676689.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]
>  >
>  >
>


-- 
Ryan Gravener
http://ryangravener.com

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



Re: Hide "Wicket AJAX Debug" window

2008-03-12 Thread Ryan Gravener
You can also do:

getDebugSettings().setAjaxDebugModeEnabled(false);

in your Application.init() method.

On Wed, Mar 12, 2008 at 6:21 PM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> this window only shows up when you start your wicket application
>  in development mode.
>  it won't show up in production mode.
>
>   Gerolf
>
>
>
>  On Wed, Mar 12, 2008 at 11:14 PM, hjuturu <[EMAIL PROTECTED]> wrote:
>
>  >
>  > Hi All
>  > i have a label on my webpage on which i do a in line edit using
>  > AjaxEditableLabel.
>  > I have included wicket-event.js and wicket-ajax.js javascripts in my page.
>  > When i start editing the label the "wicket ajax debug" window appears on
>  > the
>  > lower right corner.
>  > how can i hide that window.
>  > Thanks
>  > Haritha
>  >
>  > --
>  > View this message in context:
>  > 
> http://www.nabble.com/Hide-%22Wicket-AJAX-Debug%22-window-tp16013820p16013820.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]
>  >
>  >
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: DateTimeField question

2008-03-29 Thread Ryan Gravener
Do you want the component or whether or not its a am or pm?

MutableDateTime mdt = new MutableDateTime(startField.getModelObject());

mdt.set(DateTimeFieldType type, int value);

startField.setModelObject(mdt.toDate());

http://joda-time.sourceforge.net/api-release/org/joda/time/MutableDateTime.html

On Sat, Mar 29, 2008 at 12:47 AM, Martin Makundi
<[EMAIL PROTECTED]> wrote:
> Sorry, got confused with DateTextField.. DateTimeField indeed has this
>  AM_PM stuff.
>
>  2008/3/29, Martin Makundi <[EMAIL PROTECTED]>:
>
>
> > What is AM_PM? At least 1.3.1 does not have such feature. I would
>  >  rather use java.util.Calendar to figure out internals of the
>  >  startField.getModelObject() which should be a date.
>  >
>  >  **
>  >  Martin
>  >
>  >  2008/3/28, Pinger <[EMAIL PROTECTED]>:
>  >
>  > >
>  >  >  So I am a noob with Wicket.. so I have a dumb question..
>  >  >
>  >  >
>  >  >  I have a DateTimeField
>  >  >
>  >  >  I do this
>  >  >
>  >  >  DateTimeField  startField = new DateTimeField("starttime", new
>  >  >  PropertyModel(properties, "starttime"));
>  >  >  form.add(startField);
>  >  >
>  >  >  Ok I want to be able to set and get this field.. I can do that with
>  >  >  everything.. but AM_PM
>  >  >
>  >  >  this does not work
>  >  >
>  >  >  AM_PM amOrPm = startField .getAmOrPm();
>  >  >
>  >  >  Please help.. pulling my hair out.
>  >  >
>  >  >  Thanks
>  >  >
>  >  > --
>  >  >  View this message in context: 
> http://www.nabble.com/DateTimeField-question-tp16359499p16359499.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]
>
>



-- 
Ryan Gravener
http://ryangravener.com

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



Re: DateTextField "bug" : no validation and giving null to Hibernate

2008-07-10 Thread Ryan Gravener
If you are accessing any extended browser information, be sure to access
that information in your constructor.  That way you will not be redirect
while submitting your form.

On Thu, Jul 10, 2008 at 9:55 AM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:

> try wicket 1.3.4 first.
>
> -igor
>
> On Thu, Jul 10, 2008 at 2:49 AM, Joseph P. <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi
> >
> > We have found it : it's the
> > getRequestCycleSettings().setGatherExtendedBrowserInfo(true); setting in
> the
> > application initSettings() which was causing all this fuss. Since we
> > commented it out it works fine...
> >
> > shall I open a bug ?
> >
> > bye
> > joseph
> > --
> > View this message in context:
> http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Does Session.getClientInfo() Always Return An Instance?

2008-07-11 Thread Ryan Gravener
Yes, it should always return an instance.

On Fri, Jul 11, 2008 at 12:34 PM, TH Lim <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Does Session.getClientInfo() always return a client info instance? Is it
> possible that this method will return null? If so, what is the cause to it?
>
> Thanks.
>
> --
> View this message in context:
> http://www.nabble.com/Does-Session.getClientInfo%28%29-Always-Return-An-Instance--tp18407471p18407471.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Hiding table columns in DataViews?

2008-07-14 Thread Ryan Gravener
http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.DataTablePage

via

http://www.google.com/search?q=wicket+datatable+example


On Mon, Jul 14, 2008 at 1:26 PM, Michael Mehrle <[EMAIL PROTECTED]>
wrote:

> Okay, and look at exactly what? A simple example or URL to an example
> would have helped...
>
> -Original Message-
> From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> Sent: Saturday, July 12, 2008 12:04 AM
> To: users@wicket.apache.org
> Subject: Re: Hiding table columns in DataViews?
>
> See DataTable and friends.
>
> Martijn
>
> On Sat, Jul 12, 2008 at 4:19 AM, Michael Mehrle <[EMAIL PROTECTED]>
> wrote:
> > I build a table like this:
> >
> >
> >
> > 
> >
> > 
> >
> > > key="dateTitle"/>
> >
> > > key="timeTitle"/>
> >
> > > key="statusTitle"/>
> >
> > 
> >
> >
> >
> >
> >
> >[Date]
> >
> > > class="grytop">[Time]
> >
> > > class="grytop">[Status]
> >
> > > class="guestlink"> 
> >
> >
> >
> > 
> >
> >
> >
> > Now, there are certain columns I need to hide in certain
> circumstances.
> > I have no problem hiding the 'content' of certain columns by setting
> the
> > particular value to empty in my dataprovider. However, I would like to
> > hide the entire column including the header  - how can that be done?
> >
> >
> >
> > Thanks!
> >
> >
> >
> > Michael
> >
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Hiding table columns in DataViews?

2008-07-14 Thread Ryan Gravener
Here is the source for adding columns to a table:

   List columns = new ArrayList();

columns.add(new AbstractColumn(new Model("Actions"))
{
public void populateItem(Item cellItem, String componentId,
IModel model)
{
cellItem.add(new ActionPanel(componentId, model));
}
});

columns.add(new PropertyColumn(new Model("ID"), "id")
{
@Override
public String getCssClass()
{
return "numeric";
}
});

columns.add(new PropertyColumn(new Model("First Name"), "firstName",
 "firstName"));

columns.add(new PropertyColumn(new Model("Last Name"), "lastName",
"lastName")
{
@Override
public String getCssClass()
{
return "last-name";
}
});

columns.add(new PropertyColumn(new Model("Home Phone"), "homePhone"
));
columns.add(new PropertyColumn(new Model("Cell Phone"), "cellPhone"
));


You can see that in order to add a column or hide one you would just add it
or omit adding it to the list.  So if I did not want to show Cell Phone, I
would simply not add the PropertyColum(new Model("Cell Phone"), "cellPhone")
to columns.


On Mon, Jul 14, 2008 at 2:31 PM, Michael Mehrle <[EMAIL PROTECTED]>
wrote:

> Not to be thick, but where does this show me how to hide table headers? All
> I see is a regular DataTable example.
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan
> Gravener
> Sent: Monday, July 14, 2008 11:28 AM
> To: users@wicket.apache.org
> Subject: Re: Hiding table columns in DataViews?
>
>
> http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.DataTablePage
>
> via
>
> http://www.google.com/search?q=wicket+datatable+example
>
>
> On Mon, Jul 14, 2008 at 1:26 PM, Michael Mehrle <[EMAIL PROTECTED]>
> wrote:
>
> > Okay, and look at exactly what? A simple example or URL to an example
> > would have helped...
> >
> > -Original Message-
> > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, July 12, 2008 12:04 AM
> > To: users@wicket.apache.org
> > Subject: Re: Hiding table columns in DataViews?
> >
> > See DataTable and friends.
> >
> > Martijn
> >
> > On Sat, Jul 12, 2008 at 4:19 AM, Michael Mehrle <[EMAIL PROTECTED]>
> > wrote:
> > > I build a table like this:
> > >
> > >
> > >
> > > 
> > >
> > > 
> > >
> > > > > key="dateTitle"/>
> > >
> > > > > key="timeTitle"/>
> > >
> > > > > key="statusTitle"/>
> > >
> > > 
> > >
> > >
> > >
> > >
> > >
> > >[Date]
> > >
> > > > > class="grytop">[Time]
> > >
> > > > > class="grytop">[Status]
> > >
> > > > > class="guestlink"> 
> > >
> > >
> > >
> > > 
> > >
> > >
> > >
> > > Now, there are certain columns I need to hide in certain
> > circumstances.
> > > I have no problem hiding the 'content' of certain columns by setting
> > the
> > > particular value to empty in my dataprovider. However, I would like to
> > > hide the entire column including the header  - how can that be done?
> > >
> > >
> > >
> > > Thanks!
> > >
> > >
> > >
> > > Michael
> > >
> > >
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> > Apache Wicket 1.3.4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Ryan Gravener
> http://twitter.com/ryangravener
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: wicket-library source code

2008-07-14 Thread Ryan Gravener
http://wicket.apache.org then choose 'Getting Wicket'

http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.4/

On Mon, Jul 14, 2008 at 5:34 PM, sjtirtha <[EMAIL PROTECTED]> wrote:

> Hi,
>
> where can I get the source code of the example in wicket-library?
> The "source code" link does not show the complete source code.
>
> Regards,
>
> Steve
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: wicket-library source code

2008-07-14 Thread Ryan Gravener
http://wicketstuff.org/wicket13/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.tree.SimpleTreePage
http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.4/jdk-1.5/wicket-examples/

On Mon, Jul 14, 2008 at 6:06 PM, sjtirtha <[EMAIL PROTECTED]> wrote:

> I don't mean the wicket source code, but the wicket-library souce code.
> For example
> http://www.wicket-library.com/wicket-examples/ajax/tree/simple.2does
> not
> contain the complete source code of the example.
>
>
> On Mon, Jul 14, 2008 at 11:43 PM, Ryan Gravener <[EMAIL PROTECTED]>
> wrote:
>
> > http://wicket.apache.org then choose 'Getting Wicket'
> >
> > http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.4/
> >
> > On Mon, Jul 14, 2008 at 5:34 PM, sjtirtha <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > where can I get the source code of the example in wicket-library?
> > > The "source code" link does not show the complete source code.
> > >
> > > Regards,
> > >
> > > Steve
> > >
> >
> >
> >
> > --
> > Ryan Gravener
> > http://twitter.com/ryangravener
> >
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: DateTextField question

2008-07-15 Thread Ryan Gravener
Are you guys using safari?  If so I think this problem is patched in 1.3.4.

On 7/15/08, Serkan Camurcuoglu <[EMAIL PROTECTED]> wrote:
> I'm not sure about the reason, but in my portlet application, only one
> of the date pickers is initialized if I add two portlets on the same
> page containing date pickers, so only one of them works.. also it seems
> like the date picker doesn't work if there is any other wicket ajax
> component loaded on the page.. I think it's a problem with the
> wicketCalendarInits array object which is used for initializing these
> date pickers, but I haven't found the exact cause yet, I'd like to hear
> if you find a solution..
>
>
> Cristi Manole wrote:
>> Hello,
>>
>> Any ideas why the calendar does not show on my modal window?
>>
>> ->I've seen the examples and I know it's working.
>> ->It is not a problem related to z-index
>>
>> *It seems the yui class does not get appended to the tag so clicking the
>> calendar icon does nothing (i presume that's the reason).
>>
>> *Has anyone by any chance experienced this or something similar? Any
>> suggestion is highly appreciated :).
>>
>> Tks a bunch,
>> Cristi Manole
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener

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



Re: AutocompleteTextField

2008-07-18 Thread Ryan Gravener
This is a common question, search the mailing list and you will find a few
different ways of doing this.


On Fri, Jul 18, 2008 at 3:09 AM, ulrik <[EMAIL PROTECTED]> wrote:

>
> Hello!
>
> I have a question that I hope someone can help me with.
>
> Lets say I have two classes like the ones here:
> http://papernapkin.org/pastebin/view/1760/ .
> Lets say I want a page with a AutoCompleteTextField where I can search
> students by entering their name in the search field. Because there can be
> several students with the same name I want to be able to separate one from
> the other when I choose one of them from the list of choices. So, what I
> want to happen is that when I for example enter "Ad" into the search field,
> I want the search field to show A list with all students whos name is Adam,
> when I select one of them I want the ID for that specific adam to be stored
> in the Model associated with the search field. How do I do that? Anyone
> that
> has an idea?
> --
> View this message in context:
> http://www.nabble.com/AutocompleteTextField-tp18523765p18523765.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Another question on client IP address and HttpRequest

2008-07-24 Thread Ryan Gravener
I think (webclientinfo)session.get().getclientinfo()) will have the ip
address somewhere.

On 7/24/08, Edbay <[EMAIL PROTECTED]> wrote:
>
> I know that the client IP address can be obtained from the raw HttpRequest,
> but only if you are in a WebPage, but is there a way to get to it from the
> session?
>
> Reason I'm asking is upon the creation of a user session, I'd like to be
> able to get the IP address of the user and log it for audit purposes.
>
>
> --
> View this message in context:
> http://www.nabble.com/Another-question-on-client-IP-address-and-HttpRequest-tp18642444p18642444.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener

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



Re: Best way to implement DataTable updatable via Ajax

2008-07-28 Thread Ryan Gravener
>
>public AddContactDataProvider(ContactInfoPOJO contactPojo)
>{
>this.contactPojo = contactPojo;
>contactManager = new JDBCContactManager();
>}
>
>public Iterator iterator(int first, int count)
>{
>// Save the Contact...
>contactManager.saveContact(contactPojo);
>
>//TODO 2::: HOW? WHERE???
>//If Save FAILED then GET ERROR MESSAGE
>
>
>// Get the saved list back
>List contacts = contactManager.getUsers();
>if (first > 0) {
>contacts = contacts.subList(first, first + count);
>}
>return contacts.iterator();
>}
>
>public IModel model(Object object)
>{
> return new ContactModel((ContactInfoPOJO)object);
>}
>
>public int size()
>{
>return contactManager.getContacts().size();
>}
>
> }
>
>
> Questions:
> 1. Is calling dataprovider again the correct approach for updating the
> datatable? (See TODO 1 above) Can someone please suggest an alternate
> approach?
> 2. How do I pass the Error Object to Page's Panel from DataProvider in case
> of Unsuccessful  save?(see TODo: 2 above)
> 3. Will onError be called if I somehow plugin the error message to feedback
> Panel (See TODO: 3)
>
>
>
> Thanks for reading the post.
> --
> View this message in context:
> http://www.nabble.com/Best-way-to-implement-DataTable-updatable-via-Ajax-tp18698367p18698367.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Best way to implement DataTable updatable via Ajax

2008-07-28 Thread Ryan Gravener
I'm sorry, gmail shortkeys did me in this time :)

On Mon, Jul 28, 2008 at 5:06 PM, nanotech <[EMAIL PROTECTED]> wrote:

>
> Hi Ryan,
>
> Did you answer my post? i am unable to see any answer?
>
> Thanks
> RG
>
>
> Ryan Gravener-3 wrote:
> >
> > On Mon, Jul 28, 2008 at 3:59 PM, nanotech <[EMAIL PROTECTED]>
> wrote:
> >
> >>
> >> Hi All,
> >>
> >> I have a Save Form where user should be able to add/save new records and
> >> should be able
> >> to view feedback if there are any errors.
> >>
> >> In short, When user loads up the page he sees a form and under it a
> >> DataTable
> >> which holds the deafault search results.
> >>
> >> If he tries to add a record and Add is "Successful" then DataTable gets
> >> updated via Ajax.
> >> In case of "Failure" errors are reported on feedback panel.
> >>
> >> Here is how I have implemented it:
> >>
> >> ===
> >> SaveContactPage.html
> >> ===
> >>
> >> [Feedback-error messages etc.]
> >> 
> >>
> >>
> >>First Name:
> >> >> />
> >>
> >>
> >>Last Name:
> >> >> />
> >>
> >>
> >> >> wicket:id="saveContactButton" />
> >>
> >>
> >>
> >> 
> >> 
> >> 
> >>[Results for add/search
> >> Contacts]
> >> 
> >> =
> >> SaveContactPage.java
> >> ==
> >> public class SaveContactPage extends WebPage
> >> {
> >>// Hold reference to provider..
> >>AddContactDataProvider provider;
> >>// Hold refernce to FeedbackPanel...
> >>FeedbackPanel saveUserFeedback;
> >>//Hold refernece to updatable dataTable's container..
> >>WebMarkupContainer resultsContainer;
> >>
> >>public SaveContactPage()
> >>{
> >>add(saveUserFeedback = new
> >> FeedbackPanel("saveUserFeedback"));
> >>saveUserFeedback.setOutputMarkupId(true);
> >>
> >>SaveUserForm userForm = new SaveUserForm("saveUserForm");
> >>add(userForm);
> >>
> >>// Get a new provider.
> >>provider = new AddContactDataProvider((ContactInfoPOJO)
> >> userForm.getModelObject());
> >>
> >>// Get all the columns.
> >>List columns = createColumns();
> >>
> >>resultsContainer = new
> >> WebMarkupContainer("resultsContainer");
> >>resultsContainer.add(new DataTable("addResultsTable",
> >> columns,
> >>provider, 10));
> >>
> >>}
> >>
> >>private List createColumns()
> >>{
> >>List columns = new ArrayList();
> >>columns.add(new PropertyColumn(this.getModel(),
> >> "firstName"));
> >>columns.add(new PropertyColumn(this.getModel(),
> >> "lastName"));
> >>}
> >>
> >> // Begin Save USER Form.
> >> private class SaveUserForm extends StatelessForm
> >> {
> >>public SaveUserForm(String id)
> >>{
> >>super(id);
> >>// Set Form's model
> >>setModel(new CompoundPropertyModel(new
> >> ContactInfoPOJO()));
> >>add(new TextField("firstName"));
> >>add(new TextField("lastName"));
> >>add(new AjaxFallbackButton("saveContactButton", this)
> >>{
> >>@Override
> >>protected void onSubmit(AjaxRequestTarget target,
> >> Form form)
> >>{
> >>// TODO 1: Is this Correct approach
> >>// (i.e. calling the provider
> >&

Re: Best /Correct way to update DataTable via Ajax

2008-07-28 Thread Ryan Gravener
erride
> >> protected void onSubmit(AjaxRequestTarget
> >> target,Form form)
> >> {
> >>
> >> // TODO 1: Is this Correct approach
> >> // (i.e. calling the provider
> >> // again to refresh the container)
> >> // On Submitcall the provider again?
> >>
> >>
> >> provider = new
> >> AddContactDataProvider(form.getModelObject());
> >>
> >> //Refresh the dataTable
> >> target.addComponent(resultsContainer);
> >>
> >>// In case of Failure...Display the error
> >> messages.
> >>
> >> }
> >>
> >> protected void onError(AjaxRequestTarget
> >> target,Form
> >> form)
> >> {
> >> // TODO 3: Show Errors...if any
> >> // But Error happned in DataProvider...
> >> // How do I get hold of Error Object
> >> Here...
> >>
> >> target.addComponent(saveUserFeedback);
> >> }
> >>
> >> });
> >>
> >> }
> >>  }
> >>  }
> >>
> >>
> >>  ==
> >>  AddContactDataProvider.java
> >>  ==
> >>
> >>
> >>  public class AddContactDataProvider extends SortableDataProvider
> >>  {
> >>
> >> private ContactInfoPOJO contactPojo;
> >> private ContactManager contactManager;
> >>
> >> public AddContactDataProvider(ContactInfoPOJO contactPojo)
> >> {
> >> this.contactPojo = contactPojo;
> >> contactManager = new JDBCContactManager();
> >> }
> >>
> >> public Iterator iterator(int first, int count)
> >> {
> >> // Save the Contact...
> >> contactManager.saveContact(contactPojo);
> >>
> >> //TODO 2::: HOW? WHERE???
> >> //If Save FAILED then GET ERROR MESSAGE
> >>
> >>
> >>
> >> // Get the saved list back
> >> List contacts = contactManager.getUsers();
> >> if (first > 0) {
> >> contacts = contacts.subList(first, first + count);
> >> }
> >> return contacts.iterator();
> >> }
> >>
> >> public IModel model(Object object)
> >> {
> >>  return new ContactModel((ContactInfoPOJO)object);
> >> }
> >>
> >> public int size()
> >> {
> >> return contactManager.getContacts().size();
> >> }
> >>
> >>  }
> >>
> >>
> >>
> >>  Questions:
> >>  1. Is calling dataprovider again the correct approach for updating the
> >>  datatable? (See TODO 1 above) Can someone please suggest an alternate
> >> approach?
> >>  2. How do I pass the Error Object to Page's Panel from DataProvider in
> >> case
> >>  of Unsuccessful  save?(see TODo: 2 above)
> >>  3. Will onError be called if I somehow plugin the error message to
> >> feedback
> >>   Panel (See TODO: 3)
> >>
> >>
> >>
> >>
> >>  Thanks for reading the post.
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Best-way-to-implement-DataTable-updatable-via-Ajax-tp18698367p18702905.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: help me please

2008-08-05 Thread Ryan Gravener
Tons of examples with source code:

http://wicketstuff.org/wicket13/



On Tue, Aug 5, 2008 at 3:44 PM, Daniel Freitas <[EMAIL PROTECTED]>wrote:

> Damn that was the worst english email I have ever written. Sry.
>
> 2008/8/5 Daniel Freitas <[EMAIL PROTECTED]>
>
> > I'm sure there are plenty of free materiel on the internet. But my
> personal
> > experience is that to get a hold on a new framework (which you absolutely
> > nothing a about) a good book is the best way to go, as all the
> information
> > is all there concisely in one place only. The internet I reserve for more
> > advanced and/or specific points since the information tends to be spread.
> >
> > That being said, Wicket in Action (book) is doing good for me. You can
> have
> > access to it through manning early access program. Just type in Wicket in
> > Action in google.
> >
> > Cheers,
> > Daniel
> >
> > 2008/8/5 oriana <[EMAIL PROTECTED]>
> >
> >
> >> I am beginning to program with Apache wicket and I need a tutorial the
> >> most
> >> complete possible thing in order to guide me in this new world. If
> >> somebody
> >> could help me. Thank you ahead of time.:confused:
> >> --
> >> View this message in context:
> >> http://www.nabble.com/help-me-please-tp18838183p18838183.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]
> >>
> >>
> >
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: wicket + spring + jpa reference example?

2008-08-06 Thread Ryan Gravener
Have you taken a look at wicket-phonebook?

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/

I have a demo project for wicket+hibernate+spring+flex+blazeds in the works,
but it is far from perfect:
http://code.google.com/p/wicket-flex-blazeds/

On Wed, Aug 6, 2008 at 5:25 PM, francisco treacy <[EMAIL PROTECTED]
> wrote:

> hi,
>
> i need to develop a project with wicket + spring + jpa. i'm not used
> lately to this setup, so i tried to build it up, not without some
> trouble.
>
> so my question here is: do you know a current good wicket + spring +
> jpa reference/example?
>
> earlier today i checked out qwicket, but there's some really odd
> problem that prevents the app to load (no exceptions thrown
> whatsoever). also wicket in action, but it is not built with jpa (just
> plain hibernate) and i cannot figure out the correct
> applicationContext.xml...
>
> thanks!
>
> francisco
>
> ps. argh, i just love my normal setup with wicket + guice + salve +
> warp-persist, no xml, works like a charm :)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Wicket and Flex integration

2008-08-12 Thread Ryan Gravener
Yea, I tested it.  Works great.  But maybe I'm biased :)

On Tue, Aug 12, 2008 at 7:17 PM, Fernando Wermus
<[EMAIL PROTECTED]>wrote:

> Does anyone have tried to test this example?
>
> http://ryangravener.com/wordpress/?p=21
>
>
> On Thu, Jul 31, 2008 at 2:11 PM, Fernando Wermus
> <[EMAIL PROTECTED]>wrote:
>
> > Dear all,
> >   We want to integrate wicket and Flex. The reason for the
> integration
> > is that we would like to keep the wicket wizard with individual swf
> instead
> > of developing all in Flex. I haven't seen any document about this
> > integration. If any, please could you send an example? We also want to
> know
> > if the integration was using blaze ds or the ayax bridge, etc
> >
> > Thanks in advance.
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> > http://mientretiempo.blogspot.com/
> >
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
> http://mientretiempo.blogspot.com/
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: [announce] Wicket in Action e-book has been published!

2008-08-13 Thread Ryan Gravener
Can't wait for the dead tree edition to arrive.  Congrats.
On Wed, Aug 13, 2008 at 5:52 PM, David Leangen <[EMAIL PROTECTED]> wrote:

>
> Congratulations, guys!
>
> Thank you for all your hard work and sacrifice!
>
>
>
> > -Original Message-
> > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > Sent: 14 August 2008 06:32
> > To: Wicket Users
> > Subject: [announce] Wicket in Action e-book has been published!
> >
> >
> > Almost 3 years of hard work, loosing friends, moving abroad, marrying
> > lovely wives, late nights, early mornings, frustrated family, and all
> > other bad (and good) things that cross one's life is now rewarded with
> > the availability of the e-book edition of Wicket in Action. The print
> > edition (also know as dead-tree edition) will be available in just
> > over 2 weeks (estimated at Aug 29th).
> >
> > Eelco and I are *really*, *really* glad that the journey is finally
> > over. We think it was worth it. Now we leave the book in your capable
> > hands to make beautiful applications that make your boss and customers
> > happy and we are sure you'll enjoy creating them.
> >
> > Eelco Hillenius & Martijn Dashorst
> >
> > About Wicket in Action
> >
> > Wicket in Action is a comprehensive guide for Java developers building
> > Wicket-based web applications. It introduces Wicket's structure and
> > components, and moves quickly into examples of Wicket at work. Written
> > by core committers, this book shows you the "how-to" and the "why" of
> > Wicket. You'll learn to use and customize Wicket components, to
> > interact with Spring and Hibernate, and to implement rich Ajax-driven
> > features.
> >
> > Some quotes of early access reviewers:
> >
> > "Finally, the Web Framework of web framework, Apache Wicket, now has a
> > bible of its own." - Per Ejeklint
> >
> > "Without question, Wicket in Action... is the be-all and end-all when
> > it comes to Wicket." - Geertjan Wielenga
> >
> > "Wicket In Action glues the areas of web development with Apache
> > Wicket together and gives a great overview of Apache Wicket...it will
> > make a great compendium." - Nino Martinez Wael
> >
> > You can read full reviews here:
> >  - Nick Heudecker: Wicket In Action Book Review
> >http://www.theserverside.com/news/thread.tss?thread_id=50326
> >
> >  - Geertjan Wielenga: Wicket in Action: Undoubtedly The Wicket Bible
> >http://blogs.sun.com/geertjan/entry/wicket_in_action_undoubtedly_the
> >
> > Free content
> >
> > If you don't think these reviewers are qualified to tell you to buy
> > Wicket in Action, let these free samples convince you:
> >
> >  * Chapter 1: http://www.manning.com/dashorst/ch01_dashorst.pdf
> >  * Chapter 8: http://www.manning.com/dashorst/ch08_dashorst.pdf
> >  * Excerpt: Creating Secure Web Applications with Apache Wicket
> > (http://www.manning.com/free/excerpt_Wicket.html)
> >
> > MEAP readers
> >
> > If you bought the MEAP edition you'll receive a personal download link
> > for the final e-book in your inbox today (or possibly tomorrow). We'd
> > like to extend our gratitude to the MEAP readers - without you and
> > your encouragements we would've given up.
> >
> > Limited summer discount
> >
> > There is a 35% discount when you buy Wicket in Action at the manning
> > website before the end of August. For more details look here:
> > http://manning.com/dashorst
> >
> > -
> > 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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: url controlling

2008-08-14 Thread Ryan Gravener
in your Application.init() do
mountBookmarkablePage("/foo", foo.class);

On Thu, Aug 14, 2008 at 5:33 PM, miro <[EMAIL PROTECTED]> wrote:

>
> my application is showing with different urls  for the same page , how can
> I
> control this ?
>
> the method setResponsepage(foo.class)
>
> sometimes this is the mout url sometimes it is
> http://localhost/pcr/?wicket:interface=:2  and some times it is
> package.classname  , please help me what I need to override to control this
> behaviour.
> --
> View this message in context:
> http://www.nabble.com/url-controlling-tp18990135p18990135.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Wicket merchandise?

2008-08-20 Thread Ryan Gravener
I could also go for a wicket t-shirt.

On Wed, Aug 20, 2008 at 8:32 AM, robert.mcguinness <
[EMAIL PROTECTED]> wrote:

>
> I would dig a t-shirt.  The logo is wicked :) and I would get a couple for
> my
> bosses.
>
> - rob
>
> --
> View this message in context:
> http://www.nabble.com/Wicket-merchandise--tp19066811p19068428.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Wicket merchandise take 2

2008-08-25 Thread Ryan Gravener
I like the idea of a professional shirt, something you can wear in the
office to show your support for wicket.  However, I don't know about you
Europeans but
http://images.cafepress.com/product/297944696v9_240x240_Back.jpg would repel
the girls in the states.  Would it be possible to only have the front logo
on the golf shirt?

On Mon, Aug 25, 2008 at 5:54 PM, Eelco Hillenius
<[EMAIL PROTECTED]>wrote:

> Neato. Hey, would it be possible to have 'fitted' T-shirts as well
> besides 'standard' fit? I like to show off my beer belly when I can.


Same here, except I want the 6pack protruding through

>
>
> Eelco
>
> On Mon, Aug 25, 2008 at 7:42 AM, Nino Saturnino Martinez Vazquez Wael
> <[EMAIL PROTECTED]> wrote:
> > I guess we should link to the merchandise page from the wiki also?
> >
> > James Carman wrote:
> >>
> >> The proceeds should benefit the ASF, not a random charity.
> >>
> >> On Mon, Aug 25, 2008 at 5:48 AM, Nino Saturnino Martinez Vazquez Wael
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >>>
> >>> I haven't heard anything from prc @ apache that we could not do this,
> so
> >>> im
> >>> gonna take this as silent approval.
> >>>
> >>> So any profit from merchandise could be donated following these rules,
> if
> >>> 1's full then 2 etc (providing the people want it):
> >>>
> >>>  1. Provide the core team with merchandise (might be the ordinary
> >>>stuff with a comitter stamp on)
> >>>  2. Provide the wicket stuffers with merchandise (might be the
> >>>ordinary with a stuffer comitter stamp on)
> >>>  3. Merchandise for critical patchers
> >>>  4. Random Charity
> >>>
> >>> So without further restraints, I now declare the shop open:
> >>>
> >>> http://www.cafepress.com/apachewicket
> >>>
> >>> You can now surprise your loved one with a teddy bear, and later with
> the
> >>> wonderful Apache Wicket boxer shorts.
> >>>
> >>> Btw: if you find any problems with some of the merchandise please write
> >>> me.
> >>> Input are welcome.
> >>>
> >>> --
> >>> -Wicket for love
> >>>
> >>> 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 for love
> >
> > 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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Can we have a prefix in the subject line for any emails from this mailing list?

2008-09-10 Thread Ryan Gravener
switch to gmail

On Wed, Sep 10, 2008 at 12:43 PM, Vernon <[EMAIL PROTECTED]> wrote:

> Emails from this mailing list quickly jam up my email account. Since there
> isn't a filter for this email account, I have to move emails to another
> folder by hand. It would be very helpful if the subject line with a prefix
> like [wicket-user] so that I know what the email is about.
>
> Thanks.
>
>
>
>




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: wicket:message in the title

2008-09-14 Thread Ryan Gravener
Label label = new Label("pageTitle", new ResourceModel("pageTitle");
label.setRenderBodyOnly(true);
add(label);

[localized title

On Sun, Sep 14, 2008 at 4:17 PM, Luther Baker <[EMAIL PROTECTED]> wrote:

> Is there a way to put a 
> This keeps rendering:
>
> Placeholder
> Text*
> *
> from this:
>
> *
> *
> Of course, it displays everything nested between the title tags:
> Valid Page Title in the
> browser caption bar.
>
> The substitution happens just fine - but the  in
> the title.
>
> This page talks
>
>
> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html
>
> talks about expanding in the attribute of an input but I don't see syntax
> to
> replace the whole thing. I tried this but not luck:  key="pageTitle"/>.
>
> I read somewhere that I can turn off all the "wicket" syntax from showing
> up
> on the page ... do I need to do that or is there a defined way to use the
> 
> I could also try the Label object in the Java - but hoping to use the
> .properties file.
>
> Thanks,
>
> -Luther
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Add a * (star) to a mandatory field

2008-09-16 Thread Ryan Gravener
There is always shinyforms.

http://code.google.com/p/elephas/source/browse/#svn/trunk/src/main/java/org/elephas/webapp/frontend/component/common/form

On Tue, Sep 16, 2008 at 10:43 AM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:

> we use componentborder to do this, works like a charm. still it is
> interesting that the * is output before, are you sure its not your
> css, can you check the generated source?
>
> -igor
>
> On Tue, Sep 16, 2008 at 6:23 AM, James Perry
> <[EMAIL PROTECTED]> wrote:
> > I too recently had a use case where the customer wanted a '*' to
> > represent a mandatory field. IMO, using a border is more subtle and
> > tidier then your approach.
> >
> > On Tue, Sep 16, 2008 at 12:40 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >> I created this behavior for adding a star BEFORE the component is
> rendered:
> >> public final class MandatoryBehavior extends AbstractBehavior {
> >>private static final long serialVersionUID = 5368825601887534185L;
> >>
> >>@Override
> >>public void beforeRender(Component component) {
> >>component.getResponse().write("* ");
> >>}
> >>
> >> }
> >>
> >> 1. For some reason, the star is added AFTER the label. For example:
> >> Configuration: * instead of * Configuration
> >> 2. I am adding this to labels that displays mandatory fields such as
> >> DropDown and TextField. Is there a nicer way?
> >>
> >> --
> >> Eyal Golan
> >> [EMAIL PROTECTED]
> >>
> >> Visit: http://jvdrums.sourceforge.net/
> >> LinkedIn: http://www.linkedin.com/in/egolan74
> >>
> >> P  Save a tree. Please don't print this e-mail unless it's really
> necessary
> >>
> >
> > -----
> > 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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: PageExpiredException

2008-09-17 Thread Ryan Gravener
Ensure that all the objects you are storing in your page implement
Serializable

On Wed, Sep 17, 2008 at 11:10 AM, Johannes Schneider <[EMAIL PROTECTED]
> wrote:

> Hi,
>
> since I have switched to the latest Wicket version, I get that exception
> a lot of times.
> But I really don't understand what I am doing wrong.
>
> Yes I know that it is not easy to give any hints without knowing any
> details. But maybe that is a common error...
> Any hints are welcome.
>
>
> Thanks,
>
> Johannes
>
>
> 
> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
> rendered page in session
>
> [pagemap=null,componentPath=0:news:news:6:attachments:attachments:0:downloadLink,versionNumber=0]
>at
>
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181)
>at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227)
>at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
>at org.apache.wicket.RequestCycle.request(RequestCycle.java:497)
>at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
>at
> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:125)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at org.apache.catalina.security.SecurityUtil
> $1.run(SecurityUtil.java:243)
>at java.security.AccessController.doPrivileged(Native Method)
>at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>at
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
>at
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
>at org.apache.catalina.core.ApplicationFilterChain.access
> $0(ApplicationFilterChain.java:177)
>at org.apache.catalina.core.ApplicationFilterChain
> $1.run(ApplicationFilterChain.java:156)
>at java.security.AccessController.doPrivileged(Native Method)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
>at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>at
>
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>at
>
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>at
>
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>at
>
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>at
>
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>at
>
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>at
>
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
>at
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>at org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:684)
>at java.lang.Thread.run(Thread.java:619)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: after

2008-09-17 Thread Ryan Gravener
those are some pretty old browsers

On Wed, Sep 17, 2008 at 4:28 PM, Stefan Lindner <[EMAIL PROTECTED]> wrote:

> A microsoft tech tip (http://support.microsoft.com/kb/222064) for IE
> suggests to put a
>
>
>
>
>
>
>
>  tag after the closing  tag. But wicket (1.4M3) deletes the
>  and the served page is
>
>
>
>
> Any way to solve this?
>
> Stefan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Ryan Gravener
If you would like the property model to work with local variables do
new propertymodel(this,"property")

On 10/6/08, walnutmon <[EMAIL PROTECTED]> wrote:
>
> After using property models, it's nice to have automatic binding to
> variables
> in objects... However, I can't seem to get the same thing to work with local
> variables... as an example...
>
> new CheckBox("toggleSomething", new PropertyModel(someObject,
> "toggleableProperty"));
> works beautifully...
>
> However,
> new CheckBox("toggleSomething", new Model(toggleableObject));
> //toggleableObject is a Boolean
>
> doesn't seem to change anything on form submit, that toggleable object only
> dictates the initial state of the checkbox, but doesn't change with it
> What am I missing?
>
> --
> View this message in context:
> http://www.nabble.com/Newbie-Question%2C-Very-Basic-Model-Use-tp19837933p19837933.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener

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



Re: How to expose regular exception message in FeedbackPanel?

2008-10-06 Thread Ryan Gravener
In your catch clause in onsubmit, call error(e.getMessage())


Ryan Gravener
http://twitter.com/ryangravener


On Mon, Oct 6, 2008 at 2:32 PM, Seven Corners <[EMAIL PROTECTED]>wrote:

>
> I have a form whose submission can possibly generate exceptions.  I would
> like to expose the exception text in the FeedbackPanel.  How can I do this?
>
> I've tried getting the FeedbackMessagesModel and doing a setObject() on
> that
> but it's not accepting a String, a FeedbackMessages List, or a new
> FeedbackMessage.  Obviously I'm going about this the wrong way.
>
> Ideas?
>
> Thanking you in advance for your time and trouble.
> --
> View this message in context:
> http://www.nabble.com/How-to-expose-regular-exception-message-in-FeedbackPanel--tp19843597p19843597.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: force page reload

2008-10-07 Thread Ryan Gravener
Just throwing this out there:

http://wicketstuff.org/wicket13doc/org/apache/wicket/Page.html#setStatelessHint(boolean)

Perhaps that may work.


Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 7, 2008 at 12:02 PM, francisco treacy <
[EMAIL PROTECTED]> wrote:

> as it is kind of a workflow and i had all the pages already prepared
> by passing imodels along into constructors, i didn't want to have a
> bookmarkablepage (whatever you pick: panels/pages/variations, you need
> this one to "call the page executing the code"). but this was the
> simpler solution, pass an id to the non wicket server through http
> post, get it back and initialize the a detachablemodel again with the
> id and the dao.
>
> so i changed a bit my code to fit this no-arg constructor page, which
> is responsible of checking the http post params.
>
> imo it is a good idea to use variations. a panel could have also been,
> of course, but i wanted to avoid boilerplate for just a "thank you". i
> finally redirected to the next page. in any case, this is such a small
> case that the approach is not so important here.
>
> thanks all!
>
> francisco
>
> On Tue, Oct 7, 2008 at 1:36 AM, Jeremy Thomerson
> <[EMAIL PROTECTED]> wrote:
> > I'd wholeheartedly agree with the panel solution.  Either one would work,
> > but I think the panel is really good.
> >
> >
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> > On Mon, Oct 6, 2008 at 9:53 PM, John Krasnay <[EMAIL PROTECTED]> wrote:
> >
> >> On Mon, Oct 06, 2008 at 07:36:03PM -0200, francisco treacy wrote:
> >> > thanks for your help, serkan.
> >> >
> >> > cool, this works. as a workaround nevertheless:
> >> >
> >> > -i wouldn't want my app to check every single request the existence of
> >> > a parameter which i am going to use in only *one* page anyway
> >> > -what if i have this param passed to another page that doesn't expect
> >> > it? this could easily introduce new bugs
> >> >
> >> > isn't there another easy way to force reloading / not "caching" a
> >> > page? why isn't setHeaders having any effect? should be
> >> > straightforward - what am i missing here?
> >> >
> >> > thanks again anyone for some pointers!
> >> >
> >> > francisco
> >> >
> >>
> >> It seems to me a bit strange to use markup variant for this. You could
> >> have your callback page forward to the correct page like this:
> >>
> >> public CallbackPage(PageParameters params) {
> >>if (params.getString("DATA").equals("good)) {
> >>setResponsePage(PaymentGoodPage.class);
> >>} else {
> >>setResponsePage(TryAgainPage.class);
> >>}
> >> }
> >>
> >> Alternatively, you could instantiate an appropriate panel in your page:
> >>
> >> public CallbackPage(PageParameters params) {
> >>if (params.getString("DATA").equals("good)) {
> >>add(new PaymentGoodPanel("responsePanel"));
> >>} else {
> >>add(new TryAgainPanel("responsePanel"));
> >>}
> >> }
> >>
> >>
> >> jk
> >>
> >> -
> >> 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: Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread Ryan Gravener
You can search the archives for the answer to this one. Essentially
the model object for autocomplete is just a string.
On 10/13/08, kerim bey <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have problems with using an AutoCompleteText field.
> Loading the choice Objects works fine, but when I select an entry the
> ModelObject (using a CompoundPropertyModel) of the Form is not updated.
> Calling setModelObject() doesn't seem to have any effect.
>
> Using a DropDownChoice the same way works.
>
> What is missing?
> --
> View this message in context:
> http://www.nabble.com/Form-model-update-with-ajax-using-AutoCompleteTextField-tp19954381p19954381.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener

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



Re: A wicket gathering?

2008-10-13 Thread Ryan Gravener
NYC since all the Europeans can probably afford it :)


Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Hehe, always the names, Jonathan. But yeah something like it..
>
>
> Jonathan Locke wrote:
>
>> Are you proposing Wicketstock?
>>
>>
>> Nino.Martinez wrote:
>>
>>
>>> Hi
>>>
>>> I've been pondering as usually. This time about a wicket gathering, and
>>> it should be something where all could meetup, also from international
>>> places. Ideally all comitters would show up. It should be something that
>>> were held once a year and not in conjunction with something else as I think
>>> it would disturb it. Im not sure where it should be held, we are scattered
>>> all over the world?
>>>
>>>
>>>
>>> What do you guys feel about it?
>>>
>>>
>>> --
>>> -Wicket for love
>>>
>>> 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]
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> -Wicket for love
>
> 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: A wicket gathering?

2008-10-13 Thread Ryan Gravener
No, I live closer to Philadelphia and was compromising with New York :)

Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 14, 2008 at 2:31 AM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:

> isnt that where you live? :)
>
> -igor
>
> On Mon, Oct 13, 2008 at 11:18 PM, Ryan Gravener <[EMAIL PROTECTED]>
> wrote:
> > NYC since all the Europeans can probably afford it :)
> >
> >
> > Ryan Gravener
> > http://twitter.com/ryangravener
> >
> >
> > On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael <
> > [EMAIL PROTECTED]> wrote:
> >
> >> Hehe, always the names, Jonathan. But yeah something like it..
> >>
> >>
> >> Jonathan Locke wrote:
> >>
> >>> Are you proposing Wicketstock?
> >>>
> >>>
> >>> Nino.Martinez wrote:
> >>>
> >>>
> >>>> Hi
> >>>>
> >>>> I've been pondering as usually. This time about a wicket gathering,
> and
> >>>> it should be something where all could meetup, also from international
> >>>> places. Ideally all comitters would show up. It should be something
> that
> >>>> were held once a year and not in conjunction with something else as I
> think
> >>>> it would disturb it. Im not sure where it should be held, we are
> scattered
> >>>> all over the world?
> >>>>
> >>>>
> >>>>
> >>>> What do you guys feel about it?
> >>>>
> >>>>
> >>>> --
> >>>> -Wicket for love
> >>>>
> >>>> 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]
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>
> >> --
> >> -Wicket for love
> >>
> >> 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]
>
>


Re: WebPage constructor

2008-10-14 Thread Ryan Gravener
Johan, I don't think a bookmarkable page will always be instantiated because
of the diskpagestore.

Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 14, 2008 at 6:56 PM, Johan Compagner <[EMAIL PROTECTED]>wrote:

> Only when you have a bookmarkable url (or home page) and you press
> refresh in the browser you will get a new page.
>
> The url you refresh points to an existing page instance and that one
> is just rendered again, so no page construction is being done then
>
> On 10/14/08, jensiator <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > I have a page that extends webpage, when I hit the browsers refresh
> button
> > the constuctor wont run. It only runs when I press the PageLink that
> point
> > to it. The constructor has a UUID as input parameter ( MyWebPage(UUID id)
> ).
> > Is it suppossed to be like that (working with onrender instead at a
> > refresh). I've been searching the web for something about what to expect
> of
> > the constuctor invokation but I cant find anything about it.  Please
> point
> > me to an basic article about it if there is on.
> > Jens
> > --
> > View this message in context:
> > http://www.nabble.com/WebPage-constructor-tp19977659p19977659.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: birthday dropdown with month/leap year variances

2008-10-27 Thread Ryan Gravener
A simple way would be to use
http://wicketstuff.org/wicket13/dates/
with the settings used on
http://developer.yahoo.com/yui/examples/calendar/calnavigator.html

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Mon, Oct 27, 2008 at 12:08 PM, Steve Swinsburg <
[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I am creating a set of dropdown choices for a user to enter their birthday
> on a profile. One for day of the month, one for month of the year, and one
> for year. However I want to be able to take into account months that have
> differing numbers of days, (ie some 30, some 31, some 28, every now and the
> 29 etc) which is all dependent on the month and if its a leap year or not.
>
> Does anyone have a component/fragment of code that handles this already to
> save reinventing the wheel?
>
>
>
> cheers,
> Steve
>
>
>
>
>
>
>


Re: Changing WicketRuntimeException output

2008-10-29 Thread Ryan Gravener
Create your own RequestCycle and in the onRuntimeException(Page page,
RuntimeException e) do this.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Wed, Oct 29, 2008 at 11:27 AM, Dane Laverty <[EMAIL PROTECTED]>wrote:

> I would like to make it so that whenever Wicket throws a
> WicketRuntimeException, it also prints out getSession().getUser(). I'm
> not especially clear on the flow for RuntimeExceptions, so any
> suggestions on where I would add the code to do this will be greatly
> appreciated.
>
>
>
> Dane Laverty
>
> Information Technology
>
> 503-365-4687
>
> [EMAIL PROTECTED]
>
>
>
>


Re: PageExpiredException

2009-03-09 Thread Ryan Gravener
I would double check that all your classes implement Serializable.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Mon, Mar 9, 2009 at 10:39 AM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:

> I get a PageExpiredException  periodically and I'm having trouble isolating
> the cause.  I thought that it had something to do with server restarts but
> I'm not sure about that now.
>
> Stack:
>
>
> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
> rendered page in session
> [pagemap=null,componentPath=5:leftList:tableList:contactList:2:nameCell:namePanelLink,versionNumber=0]
>
>
>
>
>
>at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:190)
>
>
>
>
>
>at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
>
>at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>
>at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>
>at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>
>
>
>
>
>
>
>at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
>
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>
>at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>
>
>
>
>
>
>at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>
>at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
>
>
>
>
>
>
>at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>
>at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>
>at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>
>
>
>
>
>
>
>at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
>
>at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>
>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
>
>
>
>
>
>
>
>at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
>
>at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
>
>at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>
>
>
>
>
>
>
>at java.lang.Thread.run(Thread.java:619)
>
>


Re: Wicket + Resin, Content-Length Header Issue

2009-03-10 Thread Ryan Gravener
I searched Resin Accept-Encoding and looks like I found your papernapkin
paste: http://www.papernapkin.org/pastebin/view/4871/

The response header had: Transfer-Encoding: chunked, which would mean that
the server is doing on the fly compression and no content-length will ever
be sent.  Perhaps resin is failing to compress the file.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Tue, Mar 10, 2009 at 9:51 AM, Seth Green  wrote:

> I'm running wicket (1.2.6) on both Jetty and Resin (3.0.25).
>
> Everything appears to work correctly on Jetty. However, on Resin, when
> requesting the wicket-ajax.js file, it is sent back without a content-length
> header and is therefore unreadable by the browser. It appears this only
> happens when using compression (gzip, in this case). Requesting the file
> without compression, using cURL, returns the correct headers.
>
> I am not using a proxy, this occurs when directly accessing Resin.
>
> Has anyone every experienced this behavior, and/or can provide some
> insight?
>
> Thanks.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: The ServerSide Java Symposium

2009-03-20 Thread Ryan Gravener
Send him a tweet: http://twitter.com/kinabalu

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Mar 20, 2009 at 12:49 PM, Scott Swank  wrote:

> http://javasymposium.techtarget.com/html/frameworks.html#ALombardiWicket
>
>
> On Fri, Mar 20, 2009 at 9:44 AM, Scott Swank 
> wrote:
> > Is anyone in Vegas?  Want to nab a beer?
> >
> > Cheers,
> > Scott
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Start Wicket project with Spring and Hibernate

2009-03-31 Thread Ryan Gravener
Should be good.

http://code.google.com/p/wicket-flex-blazeds/source/browse/trunk/myproject-core/pom.xml

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Tue, Mar 31, 2009 at 10:45 AM, HHB  wrote:

> Hey,
> Our new Wicket application is to be build with Spring and Hibernate, so I
> included these:
>
>
>org.springframework
>spring
>2.5.6
>
>
>org.hibernate
>hibernate
>3.2.6.ga
>
>
>org.apache.wicket
>wicket-spring
>1.3.5
>
>
>org.apache.wicket
>wicket-spring-annot
>1.3.5
>
>
> Anything is missing?
> I noticed there are dependencies like spring-context,
> spring-context-support,
> spring-aop, hibernate-annotations and the list goes on.
> Should I include them too?
> Thanks.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Ryan Gravener
I'm still waiting on the scala implementation that was talked about around
this time last year.

2009/4/1 Daan van Etten 

> FX sounds just way cool.
>
> "WicketFX. Where function meets form. Web development in style."
>
> Say for yourself, would you rather want to work with a framework called
> Wicket, or a framework called WicketFX?!
>
> Birthday parties and pub nights never are the same again:
> "What technologies you use?
>  - "WicketFX, Spri.."
> "Wow! You are so cool!"
>
> Regards,
>
> Daan
>
> Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven:
>
>
>  Same concern here. Why the "FX" suffix?
>>
>> -Original Message-
>> From: Johan Compagner [mailto:jcompag...@gmail.com]
>> Sent: Wednesday, April 01, 2009 9:33 AM
>> To: users@wicket.apache.org
>> Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX
>>
>> Failed eXtremely
>>
>>
>>
>> On Wed, Apr 1, 2009 at 15:08, Ames, Tim  wrote:
>>
>>  Please excuse my EXTREME ignorance, but what exactly does or will the
>>>
>> FX
>>
>>> mean from a Wicket standpoint?  What does it do or allow a developer
>>>
>> to do
>>
>>> that would designate it as "FX"?
>>>
>>>
>>>
>>> -Original Message-
>>> From: David Leangen [mailto:wic...@leangen.net]
>>> Sent: Wednesday, April 01, 2009 4:08 AM
>>> To: users@wicket.apache.org
>>> Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX
>>>
>>>  Or... WTF! (Wicket The Framework)
>>>>
>>>
>>> +1
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>>
>> _ _ _
>>
>>>
>>> EMAIL CONFIDENTIALITY NOTICE
>>>
>>> This Email message, and any attachments, may contain confidential
>>> patient health information that is legally protected. This information
>>> is intended only for the use of the individual or entity named above.
>>> The authorized recipient of this information is prohibited from
>>>
>> disclosing
>>
>>> this information to any other party unless required to do so by law
>>> or regulation and is required to destroy the information after its
>>>
>> stated
>>
>>> need has been fulfilled. If you are not the intended recipient, you
>>>
>> are
>>
>>> hereby notified that any disclosure, copying, distribution, or action
>>> taken in reliance on the contents of this message is strictly
>>>
>> prohibited.
>>
>>>
>>> If you have received this information in error, please notify
>>> the sender immediately by replying to this message and delete the
>>> message from your system.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>  ====
>> This email/fax message is for the sole use of the intended
>> recipient(s) and may contain confidential and privileged information.
>> Any unauthorized review, use, disclosure or distribution of this
>> email/fax is prohibited. If you are not the intended recipient, please
>> destroy all paper and electronic copies of the original message.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Ryan Gravener
http://ryangravener.com


Re: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-02 Thread Ryan Gravener
Someone needs to start a facebook group and protest this change.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Thu, Apr 2, 2009 at 2:14 PM, James Carman
wrote:

> On Thu, Apr 2, 2009 at 2:11 PM, Philippe Marschall  wrote:
> > Well there's a reason these folders are called java.
>
> Yes, but it's not specifically "illegal" in the maven world to put
> non-java files in there (didn't we have this argument a few days ago).
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Updating form components in list view

2009-04-06 Thread Ryan Gravener
have you tried ListView#setReuseItems(true) ?

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Mon, Apr 6, 2009 at 4:57 PM, Jeff Palmer  wrote:

> I have a list view that has some form components (a checkbox and a
> RadioChoice). All of the data from the ListView is getting displayed on the
> page properly, but when I try to modify one of the form values, it isn't
> getting updated as expected. If anyone has any idea what I might be doing
> wrong, please let me know. I have pasted the contents of my code below.
>
> public class MaintainUsersPage extends EzdecBaseWebPage {
>
>@SpringBean
>private ISecurityRepository securityRepository;
>
>@SpringBean
>private ISecurityService securityService;
>
>private EzdecAccount account;
>
>public class UsersModel extends LoadableDetachableModel {
>private EzdecAccount account;
>
>public UsersModel(EzdecAccount account) {
>this.account = account;
>}
>
>@Override
>protected Object load() {
>List users =
> securityRepository.findAllNonArchivedUsersByAccount(account);
>return users;
>}
>}
>
> public MaintainUsersPage() {
>add(new FeedbackPanel("feedback"));
>
>account = EzdecSession.getCurrentUser().getAccount();
>
>add(new BookmarkablePageLink("inviteUserLink", InviteUser.class));
>
>add(new Label("accountName", new PropertyModel(account, "name")));
>
>Form form = new Form("maintainUsersForm");
>PageableListView users = new PageableListView("users", new
> UsersModel(account), 20) {
>
>@Override
>protected void populateItem(final ListItem item) {
>if (item.getIndex() % 2 == 0) {
>item.add(new SimpleAttributeModifier("class", "odd"));
>}
>final EzdecUser user = (EzdecUser) item.getModelObject();
>Link nameLink = new Link("nameLink") {
>@Override
>public void onClick() {
>setResponsePage(new UpdateUserProfilePage(user));
>}
>};
>nameLink.add(new Label("fullname", user.getFullname()));
>item.add(nameLink);
>item.add(new ExternalLink("emailLink", "mailto:"; +
> user.getEmail()).add(new Label("email", user.getEmail(;
>item.add(new CheckBox("active", new PropertyModel(user,
> "active")));
>item.add(new RadioChoice("roles",
> new PropertyModel(user, "roles"),
> Arrays.asList(EzdecRole.values(;
>Link deleteLink = new Link("delete") {
>@Override
>public void onClick() {
>if (securityService.archiveUser(user)) {
>EzdecSession.get().info("User " +
> user.getFullname() + " has been deleted.");
>setResponsePage(MaintainUsersPage.class);
>} else {
>EzdecSession.get().info("User " +
> user.getFullname() +
>" could not be be deleted. Please ensure
> that you " +
>" are an account administrator and that you
> are " +
>" not trying to delete your own account.");
>setResponsePage(MaintainUsersPage.class);
>}
>}
>};
>deleteLink.add(new SimpleAttributeModifier("onclick",
>"return confirm('Are you sure?');"));
>item.add(deleteLink);
>
>Link submitLink = new Link("submitLink") {
>@Override
>public void onClick() {
>if (securityService.updateUser(user)) {
>EzdecSession.get().info("User " +
> user.getFullname() + " has been updated.");
>setResponsePage(MaintainUsersPage.class);
>} else {
>EzdecSession.get().info("User " +
> user.getFullname() + " has not been updated.");
>setResponsePage(MaintainUsersPage.class);
>}
>}
>};
>item.add(submitLink);
>}
>};
>
>form.add(users);
>add(form);
>add(new PagingNavigator("navigator", users));
>}
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: iLearn Wicket - Please reply with your feedback

2009-04-13 Thread Ryan Gravener
I use jetty everywhere.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Mon, Apr 13, 2009 at 12:49 PM, James Carman  wrote:

> On Mon, Apr 13, 2009 at 12:47 PM, Chenini, Mohamed 
> wrote:
> > Hi,
> >
> > I think that Wicket Users tend to use more Jetty than Tomcat as the
> application server.
>
> I don't know that that is true.  We definitely use jetty for
> development/debugging.  But, I don't know that the "production"
> application server is jetty more often than not (we use Tomcat for
> production).
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: @SSLRequired

2009-04-17 Thread Ryan Gravener
maybe this is of use:
http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:

> I'm implement an SSL scheme using annotations and I'm having some issues
> with redirecting properly.
>
> The issue is when I have non-secured page that redirects to a secured page.
>
> I'm doing the https/http redirecting inside of a WebRequestCycleProcessor,
> which works well unless there is a redirect prior to the ssl redirect. If
> this happens then I redirect back to the top of the chain, because I'm using
> the HttpServletRequest to build the url, which returns url info based on the
> orginal request. I've been looking all around and I can't find any way of
> building a url that represents the last redirect. I've tried
>
>
> Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
> and
> RequestCycle.get().urlFor(requestTarget)
>
> Here's my current impl for The RequestCycleProcessor.
>
>
>WebRequest webRequest = (WebRequest) requestCycle .getRequest();
>WebResponse webResponse = (WebResponse) requestCycle .getResponse();
>HttpServletRequest httpServletRequest =
> webRequest.getHttpServletRequest();
>StringBuffer url = new StringBuffer(protocol);
>url.append(httpServletRequest.getServerName());
>if(defaultPort != port){
>url.append(":" + port);
>}
>
>
>
>
>  url.append(webRequest.getHttpServletRequest().getContextPath());
>url.append(webRequest.getServletPath());
>String queryString =
> webRequest.getHttpServletRequest().getQueryString();
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: @SSLRequired

2009-04-17 Thread Ryan Gravener
How about just having apache httpd rewrite the http(s) for the pages you
need?  I haven't yet did our ssl implementation, but I know that I don't
want the logic in wicket.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:

> That's where I got my code..
>
> I'm hitting 2 issues
>
> 1) The ssl detection/redirect isn't happening till the end of the chain and
> when it redirects it redirects back to the top.
>Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
> Page 2.
>  If you go to page 1 then it attempts to redirect to page2 and then
> wicket redirects to Page 1 with https..
>  I would prefer to go directly to Page 2, but I can't figure out how to
> build that url..
> 2) My other issues is this:
> else if (requestTarget instanceof IPageRequestTarget) {
>targetClass = ((IPageRequestTarget)
> requestTarget).getPage()
>.getClass();
>}
> This means that if you redirect to a Page object which you have
> constructed with special state, then this throws that object away and wicket
> will use default constructor.
>
> -Original Message-
> From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
> Gravener
> Sent: Friday, April 17, 2009 10:00 AM
> To: users@wicket.apache.org
> Subject: Re: @SSLRequired
>
> maybe this is of use:
> http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
>
> Ryan Gravener
> http://ryangravener.com/flex | http://twitter.com/ryangravener
>
>
> On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson <
> doug...@douglasferguson.us> wrote:
>
> > I'm implement an SSL scheme using annotations and I'm having some issues
> > with redirecting properly.
> >
> > The issue is when I have non-secured page that redirects to a secured
> page.
> >
> > I'm doing the https/http redirecting inside of a
> WebRequestCycleProcessor,
> > which works well unless there is a redirect prior to the ssl redirect. If
> > this happens then I redirect back to the top of the chain, because I'm
> using
> > the HttpServletRequest to build the url, which returns url info based on
> the
> > orginal request. I've been looking all around and I can't find any way of
> > building a url that represents the last redirect. I've tried
> >
> >
> >
> Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
> > and
> > RequestCycle.get().urlFor(requestTarget)
> >
> > Here's my current impl for The RequestCycleProcessor.
> >
> >
> >WebRequest webRequest = (WebRequest) requestCycle .getRequest();
> >WebResponse webResponse = (WebResponse) requestCycle
> .getResponse();
> >HttpServletRequest httpServletRequest =
> > webRequest.getHttpServletRequest();
> >StringBuffer url = new StringBuffer(protocol);
> >url.append(httpServletRequest.getServerName());
> >if(defaultPort != port){
> >url.append(":" + port);
> >}
> >
> >
> >
> >
> >  url.append(webRequest.getHttpServletRequest().getContextPath());
> >url.append(webRequest.getServletPath());
> >String queryString =
> > webRequest.getHttpServletRequest().getQueryString();
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: Weird DatePicker / DateTextField off by one hour

2009-04-30 Thread Ryan Gravener
What version of wicket, what timezone?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Weird DatePicker / DateTextField off by one hour

2009-04-30 Thread Ryan Gravener
https://issues.apache.org/jira/browse/WICKET-1314

Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Thu, Apr 30, 2009 at 11:28 AM, Ryan Gravener wrote:

> What version of wicket, what timezone?
>


Re: Wicket Offline Applications

2009-05-01 Thread Ryan Gravener
I would just make an adobe air application for offline use.


Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Fri, May 1, 2009 at 10:53 AM, Jeremy Thomerson  wrote:

> I haven't looked into Gears at great length, but I think you may be up
> against a wall here - where the two may be incompatible.  Offline
> gears applications require fat clients.  Wicket isn't typically for
> making fat clients because everything about it ties it back to the
> server.
>
> If you already have it such that each office has their own server and
> database, then it seems that this isn't a product development problem
> so much as it's a network support issue.  How often should the network
> within an office really be down?  I'd try to push this problem back up
> the management chain.
>
> Conceptually, it's a cool idea, though.  Let us know if you have any
> success.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Fri, May 1, 2009 at 3:04 AM, Carlo Camerino 
> wrote:
> > Hi,
> >
> > Is there any project which has Wicket And Google Gears Integration?
> > Wicket has really done a lot of us in speeding up development time.
> Coming
> > from a struts we saw the power of Wicket in terms its reusability and
> i've
> > noticed that
> > wicket already did most of the tasks that we would have to manually do
> using
> > struts application, like session timeouts, redirects, etc
> >
> >  One of our main concerns however are that clients
> > are asking for our applications to be available even if the network is
> down
> > or if the central server is down..
> > Currently we implemented our applications in a distributed fashion
> wherein
> > every branch ( Remote Location)  has its own server.
> > However, this has implications of cost and administration issues.
> > However, if offline mode is enabled we can just begin syncing right.
> >
> > I think that Wicket WIth Google Gears Application will make it even
> better .
> >
> >
> > I think this is really a plus when it comes to marketing it to customers.
> > Most of the applications that we create our banking applications and any
> > downtime is costing our clients.
> >
> > Hopefully we can also do this to offload the central servers and to put
> > processing into client machines.
> >
> > One large problem I see though is that most code wil have to be moved to
> the
> > Browser Layer.
> > I'm thinking of how to create a wicket application which is mostly run by
> > java classes work on the client side.
> > Looks as if there will be a lot of code changes...
> > I'm not really sure if it would be a totally different programming model.
> >
> > Anyone out there tried to integrate Gears And Wicket
> >
> > Carlo
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Expired sign in link after signing out

2009-05-26 Thread Ryan Gravener
add(new BookmarkablePageLink("signin", SigninPage.class));

Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Tue, May 26, 2009 at 6:32 PM, Tim Moose  wrote:

> Hi,
>
> This seems like a FAQ but I couldn't find it. All of my pages have a
> common header with sign in / sign out links. When the user clicks the
> sign in link, I want to display the sign in page and then return to
> the previous page after the user signs in. My sign in link looks like
> this:
>
>add(new Link("signin") {
>@Override
>public void onClick() {
>throw new
> RestartResponseAtInterceptPageException(SignInPage.class);
>}
>...
>}
>
> This works fine unless the user has just signed out, at which point
> the link leads to an expired page error. My sign out page constructor
> does the following:
>
>getSession().invalidate();
>setResponsePage(pageClass);
>
> I think I get what's wrong with this, but none of the variations I've
> tried work. So how can I get the sign in link to work after signing
> out?
>
> Thanks,
> Tim
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread Ryan Gravener
Yes, that is the real students dream.

mvn eclipse:eclipse


On Fri, May 29, 2009 at 5:51 PM, Igor Vaynberg wrote:

> why dont you just start the project from eclipse directly using the
> Start class, that way you get debug and hotswap - which should be the
> real "student's dream" :)
>
> -igor
>
> On Fri, May 29, 2009 at 2:53 PM, David Brown
>  wrote:
> > Hello Martin, Jeremy, dev, gurus, users and mortals. I have just finished
> ch. 13 of the WIA.pdf. I have followed closely the reading using the
> wicket-in-action eclipse project. I have the wicket-in-action running under
> the: mvn jetty:run. The wicket-in-action project is redeployed every 60
> seconds (a student's dream). After finishing the 13th chapter I decided to
> leave the nest for the 1.4rc QuickStart. The new QuickStart project expanded
> and imported into the Eclipse workspace no-problemo. The mystery is what am
> I doing wrong to get the automatic 60 second re-deploy. As it stands now I
> have to kill jetty, mvn package and then restart jetty (mvn jetty:run). I
> have pasted in the:
> >
> >
> > **
> > 
> >configuration
> >development
> > 
> > **
> >
> > from the wicket-in-action web.xml but no change. The Windows cmd console
> shows the usual Wicket WARNING: running in development mode. I plan to use
> the wicket-in-action almost verbatim including the Hibernate DAO for my
> current gig. It is probably only a few weeks before they start holding my
> feet to the fire.
> >
> > Please advise, David.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: can't build Elephas

2009-06-01 Thread Ryan Gravener
It's unlikely the SNAPSHOT for surefire will linger around.  Change that to
2.4.3

Ryan Gravener
http://isithotinhereorisitjust.me | http://twitter.com/ryangravener


On Mon, Jun 1, 2009 at 2:47 PM, danisevsky  wrote:

> hi, I would like to try Elephas but I can't build it with maven. Does
> anyone
> have actual pom.xml file? Or am I doing somethig wrong?
>
> mvn install -Dmaven.test.skip=true
>
>
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.maven.plugins:maven-surefire-plugin
>
> Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in
> reposi
> tory: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-surefire-plugin:pom:2.4-SNAPSHOT
>
> from the specified remote repositories:
>  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
>  elephas-repository (http://elephas.googlecode.com/svn/misc/maven/),
>  wicket-stuff-repository (http://www.wicketstuff.org/maven/repository/),
>  central (http://repo1.maven.org/maven2),
>  temp-repository (
> http://people.apache.org/~frankbille/releases/apache-wicket-1
> .4-m1/m2-repo/<http://people.apache.org/%7Efrankbille/releases/apache-wicket-1%0A.4-m1/m2-repo/>
> )
>
>  for project org.apache.maven.plugins:maven-surefire-plugin
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Mon Jun 01 20:35:22 CEST 2009
> [INFO] Final Memory: 2M/6M
> [INFO]
> 
>


Re: file upload

2009-06-02 Thread Ryan Gravener
Not sure what the wicket default is but you may want to do in your
application:

getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(100));

On Tue, Jun 2, 2009 at 12:37 PM, Igor Vaynberg wrote:

> wicket file upload will do just fine.
>
> -igor
>
> On Tue, Jun 2, 2009 at 9:29 AM, tubin gen  wrote:
> > I am using wicket file upload , In our application users want to upload
> big
> > files  with the size of 50 MB+,  Do I need any  additional support of or
> > wicket file upload allows this ?
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: JDeveloper - Can I get a show of hands?

2009-06-18 Thread Ryan Gravener
http://instantcrickets.com
Ryan Gravener
http://bit.ly/no_word_docs


On Thu, Jun 18, 2009 at 7:12 PM, Nick Heudecker wrote:

> JDeveloper?
>
> *crickets*
>
> :)
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>


Re: OT: Wicket + Blazeds debugger doesnt stop in breakpoints

2009-08-18 Thread Ryan Gravener
Check out wicket-flex-blazeds on google code.

On Tuesday, August 18, 2009, Fernando Wermus  wrote:
> Hello all,
>       I am using jetty to launch my app, which is developed with wicket +
> blazeds. Some days ago I found that the breakpoints I mark in blazeds
> services are useless. I mean the debugger doesn't stop in them. Do you have
> any idea what could it be?
>
> I am trying to install wtp just for testing blazeds services with jetty. I
> am not happy at all with this aproach. I would like to run/debug with jetty
> in only one way.
>
> Thanks in advance.
>
> --
> Fernando Wermus.
>
> http://www.linkedin.com/in/fernandowermus
>

-- 
Ryan Gravener
http://bit.ly/no_word_docs

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Full integration Wicket - Blazeds. Is it possible?

2009-08-19 Thread Ryan Gravener
Make your own filter and implement these methods this way:
http://pastie.org/588344

Ryan Gravener
http://bit.ly/no_word_docs



On Mon, May 4, 2009 at 1:01 PM, Fernando
Wermus wrote:
> Hi all,
>     I am working with flex and wicket and I would like to get a full
> integration. What I mean is that a wicket's model page will be updated in
> case someone uses a flex component that called a blazeds service. I run
> succesfuly http://ryangravener.com/wordpress/?p=21, which I would like to
> improve.
>
> My problem is how to get wicket session, for getting the model's page which
> I would like to update.
>
> Some ideas that come up to my mind are:
>
> a. using cookie JSESSIONID to get wicket session.
> b. getting HttpSession through FlexContext to get Wicket Session after:
>        HttpSession session = FlexContext.getHttpRequest().getSession(true);
>
> Is this possible? This is the web.xml file config according ryangravener:
>
>  
>    
>        wicket.miApp
>
> org.apache.wicket.protocol.http.WicketFilter
>        
>              applicationClassName
>              com.miApp.MiAppApplication
>        
>      
>    
>        wicket.MiApp
>        /*
>      
>
> 
>      
>        MessageBrokerServlet
>        
>            flex.messaging.MessageBrokerServlet
>        
>        
>            services.configuration.file
>            /WEB-INF/flex/services-config.xml
>          
>        
>            flex.write.path
>            /WEB-INF/flex
>          
>        1
>    
>
>    
>        MessageBrokerServlet
>        /messagebroker/*
>    
>
>    
>        wicket.myApp
>        /messagebroker/*
>    
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
> http://mientretiempo.blogspot.com/
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



  1   2   >