Kontostand SEB

2009-12-05 Thread Frank Tegtmeyer
Hallo Petra,

die Cosmos hat die Abbuchungen jetzt scheinbar eingestellt.
Ist die Aachen-Münchner schon umgestellt? Falls ja, könnte ich das 
Konto ja kündigen.

Gruss, Frank

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

Re: Remote Image Generation Null Pointer

2009-12-05 Thread James Carman
Have you looked into DynamicImageResource?

On Sat, Dec 5, 2009 at 2:58 AM, bassglider bassgli...@gmail.com wrote:
 Hi Everyone,

 I am attempting to load an image that takes some time.  I can load a
 remote image using the URL, but when it takes time to gather the data
 and then get the url, I get this:

 [java] 11174 [btpool0-1] ERROR org.apache.wicket.RequestCycle -
 Exception in rendering component: [Component id = image]
    [java] org.apache.wicket.WicketRuntimeException: Exception in
 rendering component: [Component id = image]
    [java]     at
 org.apache.wicket.Component.renderComponent(Component.java:2656)
    [java]     at
 org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
    [java]     at org.apache.wicket.Component.render(Component.java:2448)


 I read that it could be from the thread expiring or the page trying to
 modify itself after it is rendered(?)

 So I tried adding this to my Application

 �...@override
  protected void init() {
   super.init();

   //remove thread monitoring from resource watcher
   this.getResourceSettings().setResourcePollFrequency(null);
  }


 It had no effect on the issue.  Any suggestions or remedies would be
 greatly appreciated.

 Here is the code I am using:


  Image dynamicImage = new Image(image);
   dynamicImage.add(new AttributeModifier(src, true, new
 AbstractReadOnlyModelObject() {

     private static final long serialVersionUID = 1L;

     /**
      * {...@inheritdoc}
      */
     @Override
     public final Object getObject() {
       GoogleChart chart = new GoogleChart(http://xx:/x/;);
       String url = chart.getChart (value, 2009-11-15, 2009-11-15,
           , july, true, false );
       System.out.println(GETCHART URL:  + url);
       //String url = http://xx/PleaseStandBy.jpg;;
       return url;
     }
   }));
   dynamicImage.setOutputMarkupId(true);
   add(dynamicImage);

 -
 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: How to return specific HTTP result code on HTTP request

2009-12-05 Thread bgooren

See http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html

In particular (in your webpage):

@Override
protected void configureResponse() {
super.configureResponse();

getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(HttpServletResponse.SC_NOT_FOUND);
}

Where you can send other codes than SC_NOT_FOUND, obviously.

Bas

Petr Fejfar-2 wrote:
 
 Hi all,
 
 I'm not able to find-out how to respond on HTTP request
 (via mounted URL) by setting HTTP result code
 to specific value e.g. 402 (Payment required) etc...
 
 Pls, could somebody push me forward?
 
 
 Thx, pf
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/How-to-return-specific-HTTP-result-code-on-HTTP-request-tp26653425p26655615.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Remote Image Generation Null Pointer

2009-12-05 Thread bgooren

If you want to generate the URL yourself and want to keep using the code you
have already written, use a WebComponent instead of an Image:

WebComponent dynamicImage = new WebComponent(image);
dynamicImage.add(new AttributeModifier(src, true, new
AbstractReadOnlyModel() {} ) );

Otherwise, as suggested by the previous reply, look into
DynamicImageResource.


bassglider wrote:
 
 Hi Everyone,
 
 I am attempting to load an image that takes some time.  I can load a
 remote image using the URL, but when it takes time to gather the data
 and then get the url, I get this:
 
 [java] 11174 [btpool0-1] ERROR org.apache.wicket.RequestCycle -
 Exception in rendering component: [Component id = image]
 [java] org.apache.wicket.WicketRuntimeException: Exception in
 rendering component: [Component id = image]
 [java] at
 org.apache.wicket.Component.renderComponent(Component.java:2656)
 [java] at
 org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
 [java] at org.apache.wicket.Component.render(Component.java:2448)
 
 
 I read that it could be from the thread expiring or the page trying to
 modify itself after it is rendered(?)
 
 So I tried adding this to my Application
 
  @Override
  protected void init() {
super.init();
 
//remove thread monitoring from resource watcher
this.getResourceSettings().setResourcePollFrequency(null);
  }
 
 
 It had no effect on the issue.  Any suggestions or remedies would be
 greatly appreciated.
 
 Here is the code I am using:
 
 
  Image dynamicImage = new Image(image);
dynamicImage.add(new AttributeModifier(src, true, new
 AbstractReadOnlyModel() {
 
  private static final long serialVersionUID = 1L;
 
  /**
   * {...@inheritdoc}
   */
  @Override
  public final Object getObject() {
GoogleChart chart = new GoogleChart(http://xx:/x/;);
String url = chart.getChart (value, 2009-11-15, 2009-11-15,
, july, true, false );
System.out.println(GETCHART URL:  + url);
//String url = http://xx/PleaseStandBy.jpg;;
return url;
  }
}));
dynamicImage.setOutputMarkupId(true);
add(dynamicImage);
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Remote-Image-Generation-Null-Pointer-tp26653612p26655670.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: wicket enclosure not finding child!?

2009-12-05 Thread Douglas Ferguson
What snapshot should I use?

I tried using 1.4.4-SNAPSHOT but that doesn't work.
and 1.4-SNAPSHOT has a date of 10/31

D/


 On Dec 4, 2009, at 12:45 AM, Girts Ziemelis wrote:

 You might want to try first the development snapshot first. There is
 additional enclosure fix  waiting for 1.4.4:
 https://issues.apache.org/jira/browse/WICKET-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

 Do not know, if this will fix your problem, but might be worth a try
 before you create a quickstart ...

 Douglas Ferguson wrote:
 Are there instructions for this?

 D/

 On Dec 3, 2009, at 4:51 PM, Igor Vaynberg wrote:


 create a quickstart or a testcase and attach it to the jira issue

 -igor

 On Thu, Dec 3, 2009 at 2:18 PM, Douglas Ferguson
 doug...@douglasferguson.us wrote:

 I have no idea where that http: came from I pasted this:

 I do not have : and I'm still getting the error.
 I had to revert to 1.4.1


 wicket:enclosure child=mediaOutlet.name
 div class=details-subhead font-xsmall font-dgray 
 strongMedia Outlet (span wicket:id=mediaOutlet.name/):BR

 On Dec 3, 2009, at 3:43 PM, Igor Vaynberg wrote:


 the colon character is a path separator, if it has worked previously
 it was only by mistake. you should not use ids that contain :

 -igor

 On Thu, Dec 3, 2009 at 1:40 PM, Douglas Ferguson
 doug...@douglasferguson.us wrote:

 I just upgraded to 1.4.3 from 1.4.0 and now I'm getting this:

 org.apache.wicket.WicketRuntimeException:Could not find child with id: 
 mediaOutlet.namehttp://mediaOutlet.name in the wicket:enclosure 
 org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:220)
 org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:262)
 org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169)
 org.apache.wicket.Component.renderComponent(Component.java:2617)
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
 org.apache.wicket.Component.render(Component.java:2448)
 org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)


 wicket:enclosure child=mediaOutlet.namehttp://mediaOutlet.name
 div class=details-subhead font-xsmall font-dgray strongMedia Outlet 
 (span wicket:id=mediaOutlet.namehttp://mediaOutlet.name/):BR


 -
 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



 -
 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





 -
 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: Remote Image Generation Null Pointer

2009-12-05 Thread bassglider
WebComponent was a perfect fit, thank you.

A somewhat related problem exists however.

I load this Image using AjaxLazyLoadPanel like so:

add(new AjaxLazyLoadPanel(image) {
  /**
   * Makes object serializable.
   */
  private static final long serialVersionUID = 1L;

  @Override
  public Component getLazyLoadComponent(String id) {
return (new ChartPanel(id));
  }
});

class ChartPanel extends Panel {

  private static final long serialVersionUID = 1L;

  /**
   * Constructor for ChartPanel.
   *
   * @param - The id to use
   *
   */
  public ChartPanel(String id) {
super(id);
addChart(this);
  }

which calls my the addChart() that works now since I switched to WebComponent.

The lazy loading image (the spinning waiter) continues to spin after
the image is loaded.

Am I missing something obvious here to make it stop?

Thanks



On Sat, Dec 5, 2009 at 3:33 AM, bgooren b...@iswd.nl wrote:

 If you want to generate the URL yourself and want to keep using the code you
 have already written, use a WebComponent instead of an Image:

 WebComponent dynamicImage = new WebComponent(image);
 dynamicImage.add(new AttributeModifier(src, true, new
 AbstractReadOnlyModel() {} ) );

 Otherwise, as suggested by the previous reply, look into
 DynamicImageResource.


 bassglider wrote:

 Hi Everyone,

 I am attempting to load an image that takes some time.  I can load a
 remote image using the URL, but when it takes time to gather the data
 and then get the url, I get this:

 [java] 11174 [btpool0-1] ERROR org.apache.wicket.RequestCycle -
 Exception in rendering component: [Component id = image]
     [java] org.apache.wicket.WicketRuntimeException: Exception in
 rendering component: [Component id = image]
     [java]     at
 org.apache.wicket.Component.renderComponent(Component.java:2656)
     [java]     at
 org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
     [java]     at org.apache.wicket.Component.render(Component.java:2448)


 I read that it could be from the thread expiring or the page trying to
 modify itself after it is rendered(?)

 So I tried adding this to my Application

 �...@override
  protected void init() {
    super.init();

    //remove thread monitoring from resource watcher
    this.getResourceSettings().setResourcePollFrequency(null);
  }


 It had no effect on the issue.  Any suggestions or remedies would be
 greatly appreciated.

 Here is the code I am using:


  Image dynamicImage = new Image(image);
    dynamicImage.add(new AttributeModifier(src, true, new
 AbstractReadOnlyModel() {

      private static final long serialVersionUID = 1L;

      /**
       * {...@inheritdoc}
       */
     �...@override
      public final Object getObject() {
        GoogleChart chart = new GoogleChart(http://xx:/x/;);
        String url = chart.getChart (value, 2009-11-15, 2009-11-15,
            , july, true, false );
        System.out.println(GETCHART URL:  + url);
        //String url = http://xx/PleaseStandBy.jpg;;
        return url;
      }
    }));
    dynamicImage.setOutputMarkupId(true);
    add(dynamicImage);

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




 --
 View this message in context: 
 http://old.nabble.com/Remote-Image-Generation-Null-Pointer-tp26653612p26655670.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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



Ajax Panels Direction

2009-12-05 Thread bassglider
Hi Everyone,

I was wondering if someone could point to the right direction
(examples, classes) for the following scenario:

I have a few text fields inside a panel, when one of the text fields
is changed, I'd like to call a method with updates a panel within the
current panel.

Currently I have the two text fields in the panel with the other panel
that displays the image, I just need to figure out how to call that
method when these forms are changed and I'm sure I can figure out the
rest from there.

Any direction is helpful

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



Re: Ajax Panels Direction

2009-12-05 Thread bassglider
Ok, I think I'm getting somewhere after a few hours, I have two
textfields, when the user hits the ajax submit button, the panel
should be replaced with a new panel.  I'm thinking that
onSubmit(AjaxRequestTarget target, Form? form)
should be able to take the input of the textfields and call the method
to update the image panel with a new image panel based on the new
values in the textfields.

Any ideas?



FormString form = new FormString(Chart);

TextFieldDate dateBegin =
new TextFieldDate(beginningDate, new
PropertyModelDate(session, beginningDate));
dateBegin.add(new DatePicker());
dateBegin.setRequired(true);
form.add(dateBegin);

TextFieldDate endingDate =
new TextFieldDate(endingDate, new
PropertyModelDate(session, endingDate));
endingDate.add(new DatePicker());
endingDate.setRequired(true);
form.add(endingDate);

CreateChart(this);
AjaxFormValidatingBehavior.addToAllFormComponents(form,
onchange, Duration.ONE_SECOND);

form.add(new AjaxButton(ajax-button, form) {

  private static final long serialVersionUID = 1L;

  @Override
  protected void onSubmit(AjaxRequestTarget target, Form? form) {
// repaint the feedback panel so that it is hidden
target.addComponent(feedback);
System.out.println(Ajax Submitted! + feedback.toString());

  }




private Panel CreateChart(Panel pan) {
pan.add(new AjaxLazyLoadPanel(image) {
  /**
   * Makes object serializable.
   */
  private static final long serialVersionUID = 1L;

  @Override
  public Component getLazyLoadComponent(String id) {
return (new ChartPanel(id));
  }
});
return pan;
  }



On Sat, Dec 5, 2009 at 2:51 PM, bassglider bassgli...@gmail.com wrote:
 Hi Everyone,

 I was wondering if someone could point to the right direction
 (examples, classes) for the following scenario:

 I have a few text fields inside a panel, when one of the text fields
 is changed, I'd like to call a method with updates a panel within the
 current panel.

 Currently I have the two text fields in the panel with the other panel
 that displays the image, I just need to figure out how to call that
 method when these forms are changed and I'm sure I can figure out the
 rest from there.

 Any direction is helpful


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



Update ListView using ajaX

2009-12-05 Thread local_shamil

in case if you found the solution, can u plzz reply to the forum

freak182 wrote:
 
 Hello,
 
 For no apparent reason the listview is not updating when i targeted it. im
 using wicket 1.4.1.
 
 here is the code:
 
 final WebMarkupContainer resultcontainer = new
 WebMarkupContainer(resultcontainer);
 add(resultcontainer.setOutputMarkupId(true));
 
 final ListViewCustomFileDescription files = new
 ListViewCustomFileDescription(files, results)
 {
 @Override
 protected void populateItem(ListItemCustomFileDescription item)
 {
 final CustomFileDescription fileDesc = item.getModelObject();
 item.setModel(new
 CompoundPropertyModelCustomFileDescription(fileDesc));
 item.add(new Label(name));
 item.add(new Label(lastModified));
 }
 };
 //files.setReuseItems(true);
 resultcontainer.add(files);
 
 final ListCustomFileDescription results =
 fileSearchService.search(query.getDefaultModelObjectAsString());
 System.out.println(results.size());
 files.setDefaultModelObject(results);
 target.addComponent(resultcontainer);
 
 ...the results are just appending to each other.
 
 Thanks a lot.
 Cheers.
 
 

-- 
View this message in context: 
http://old.nabble.com/Update-ListView-using-ajax-tp25310457p26662446.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Update ListView using ajaX

2009-12-05 Thread Don Ferguson

Hi all.

Rather than overwriting results, shouldn't the code be more like:

ListCustomFileDescription results = new  
ArrayListCustomFileDescription();
final WebMarkupContainer resultcontainer = new  
WebMarkupContainer(resultcontainer);

 add(resultcontainer.setOutputMarkupId(true));

 final ListViewCustomFileDescription files = new  
ListViewCustomFileDescription(files, results)

   {
  ...
   };
   resultcontainer.add(files);
...

  results.clear();
  results.addAll(Arrays.AsList(
fileSearchService.search(query.getDefaultModelObjectAsString()
  ));
  target.addComponent(resultcontainer);

When you create the ListView, pass an instantiated List object (the  
Model Object, essentially), and modify the model by adding stuff to it.


-Don

On Dec 5, 2009, at 9:42 PM, local_shamil wrote:



in case if you found the solution, can u plzz reply to the forum

freak182 wrote:


Hello,

For no apparent reason the listview is not updating when i targeted  
it. im

using wicket 1.4.1.

here is the code:

final WebMarkupContainer resultcontainer = new
WebMarkupContainer(resultcontainer);
   add(resultcontainer.setOutputMarkupId(true));

   final ListViewCustomFileDescription files = new
ListViewCustomFileDescription(files, results)
   {
   @Override
   protected void populateItem(ListItemCustomFileDescription  
item)

   {
   final CustomFileDescription fileDesc = item.getModelObject();
   item.setModel(new
CompoundPropertyModelCustomFileDescription(fileDesc));
   item.add(new Label(name));
   item.add(new Label(lastModified));
   }
   };
   //files.setReuseItems(true);
   resultcontainer.add(files);

final ListCustomFileDescription results =
fileSearchService.search(query.getDefaultModelObjectAsString());
   System.out.println(results.size());
   files.setDefaultModelObject(results);
   target.addComponent(resultcontainer);

...the results are just appending to each other.

Thanks a lot.
Cheers.




--
View this message in context: 
http://old.nabble.com/Update-ListView-using-ajax-tp25310457p26662446.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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



Location of html files

2009-12-05 Thread Johan den Boer
Hi,

I place my html files in the same package where my java classes resides. Is
it possible to change this. I want to place my html files in the
WEB-INF/page directory

-- 
thanks a lot,

Johan den Boer


Re: Location of html files

2009-12-05 Thread Marat Radchenko
With custom IResourceFinder, you can put them wherever you want. But
why? You should have a strong reason to not follow defaults.

2009/12/6, Johan den Boer johanj.denb...@gmail.com:
 Hi,

  I place my html files in the same package where my java classes resides. Is
  it possible to change this. I want to place my html files in the
  WEB-INF/page directory

  --
  thanks a lot,


  Johan den Boer


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



Re: Location of html files

2009-12-05 Thread Ernesto Reinaldo Barreiro
IResourcePath?

Ernesto


On Sun, Dec 6, 2009 at 8:07 AM, Johan den Boer johanj.denb...@gmail.comwrote:

 Hi,

 I place my html files in the same package where my java classes resides. Is
 it possible to change this. I want to place my html files in the
 WEB-INF/page directory

 --
 thanks a lot,

 Johan den Boer



Re: Location of html files

2009-12-05 Thread Johan den Boer

Hi,

I not like my html files / css files / images are all locates in the same
package but seperated in directories i.e.

html files goto  ../html
css files go to  ../css
images go to   ../images

why is this not possible

johan


Marat Radchenko-2 wrote:
 
 With custom IResourceFinder, you can put them wherever you want. But
 why? You should have a strong reason to not follow defaults.
 
 2009/12/6, Johan den Boer johanj.denb...@gmail.com:
 Hi,

  I place my html files in the same package where my java classes resides.
 Is
  it possible to change this. I want to place my html files in the
  WEB-INF/page directory

  --
  thanks a lot,


  Johan den Boer

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

-- 
View this message in context: 
http://old.nabble.com/Location-of-html-files-tp26662782p26662799.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Location of html files

2009-12-05 Thread maven apache
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.htmlSee
 the above page.
Also I think it is a little complex for costuming the location of resources.

2009/12/6 Johan den Boer johanj.denb...@gmail.com


 Hi,

 I not like my html files / css files / images are all locates in the same
 package but seperated in directories i.e.

 html files goto  ../html
 css files go to  ../css
 images go to   ../images

 why is this not possible

 johan


 Marat Radchenko-2 wrote:
 
  With custom IResourceFinder, you can put them wherever you want. But
  why? You should have a strong reason to not follow defaults.
 
  2009/12/6, Johan den Boer johanj.denb...@gmail.com:
  Hi,
 
   I place my html files in the same package where my java classes
 resides.
  Is
   it possible to change this. I want to place my html files in the
   WEB-INF/page directory
 
   --
   thanks a lot,
 
 
   Johan den Boer
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Location-of-html-files-tp26662782p26662799.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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