Help in panel design

2009-08-10 Thread Gerald Fernando
Hello Friends,

I have created a panel(both java and html page).
now i need to view a 3 panels in the home page each should same height and
width or diffrent height and width.
I mean how to i set height and width of that panel

-- 
Thanksregards,
Gerald A


RequestCycle.setRequestTarget() behaviour

2009-08-10 Thread Nils Weinander

Hi all

I am having a minor problem with RequestCycle.setRequestTarget()
in Wicket 1.4. Before I do a workaround I have to check if I have
simply missed out on something.

Assume my application is found at http://mydomain.com/mywebapp

I expected

getRequestCycle().setRequestTarget(
new RedirectRequestTarget(/anotherwebapp/page));

to redirect to

http://mydomain.com/anotherwebapp/page

considering the initial / but it doesn't, redirecting instead
to

http://mydomain.com/mywebapp/anotherwebapp/page

Am I doing anything wrong? Is this so by intention?

getRequestCycle().setRequestTarget(
new RedirectRequestTarget(
http://mydomain.com/anotherwebapp/page;));


I assume I can find http://mydomain.com from the HttpServletRequest
as a workaround.

--
mogul | nils.weinan...@mogul.com
hudiksvallsgatan 4, 113 30 stockholm sweden
+46 8 506 66 100 |  +46 709 78 28 37
skype:nils.weinander
www.mogul.com Part of the Addnode Group

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



Re: RequestCycle.setRequestTarget() behaviour

2009-08-10 Thread Juha Palomäki
This seems to be the expected behaviour for RedirectRequestTarget.

Wiki suggests ExternalLink as an alternative, if you want to go
outside the web app:
http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html

br, Juha

On Mon, Aug 10, 2009 at 9:39 AM, Nils Weinandernils.weinan...@mogul.com wrote:
 Hi all

 I am having a minor problem with RequestCycle.setRequestTarget()
 in Wicket 1.4. Before I do a workaround I have to check if I have
 simply missed out on something.

 Assume my application is found at http://mydomain.com/mywebapp

 I expected

 getRequestCycle().setRequestTarget(
        new RedirectRequestTarget(/anotherwebapp/page));

 to redirect to

 http://mydomain.com/anotherwebapp/page

 considering the initial / but it doesn't, redirecting instead
 to

 http://mydomain.com/mywebapp/anotherwebapp/page

 Am I doing anything wrong? Is this so by intention?

 getRequestCycle().setRequestTarget(
        new RedirectRequestTarget(
                http://mydomain.com/anotherwebapp/page;));


 I assume I can find http://mydomain.com from the HttpServletRequest
 as a workaround.

 --
 mogul | nils.weinan...@mogul.com
 hudiksvallsgatan 4, 113 30 stockholm sweden
 +46 8 506 66 100 |  +46 709 78 28 37
 skype:nils.weinander
 www.mogul.com Part of the Addnode Group

 -
 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: RequestCycle.setRequestTarget() behaviour

2009-08-10 Thread Nils Weinander



Juha Palomäki wrote:
 
 This seems to be the expected behaviour for RedirectRequestTarget.
 
 Wiki suggests ExternalLink as an alternative, if you want to go
 outside the web app:
 http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html
 
 

OK, thanks, I'll have to do the workaround then, as this is not the
result of a link.

-- 
View this message in context: 
http://www.nabble.com/RequestCycle.setRequestTarget%28%29-behaviour-tp24895001p24895200.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



pannels with diffrent width and height

2009-08-10 Thread Gerald Fernando
I have created panel.now i want to show that panel with diffrent width and
height  in another page(3 panels).
is it possible? if so help me how to do it.
am eagerly waiting for your reply

-- 
Thanksregards,
Gerald A


Re: Changing a Form's Model

2009-08-10 Thread Erik van Oosten

I am glad you got that right :)

If the model has changed, call modelChanged() on the form (and/or the 
form components, not sure). There is no need to again set the model.


Regards,
   Erik.



Troy Cauble wrote:

in a form that gets reused (repetitively in the same page).
  

Don't you ever re-use a component! Sharing models/behaviors is fine, sharing
components is not.



Thanks, Erik, but I'm pretty sure we're talking about different things.
I'm just using components on a page and changing the data.
(Reusing the form *over time*.)

I have

Page
   DropDownChoice
   Form
  Fields

When an entity is selected with the DDC, the
form is made visible and filled with the model/data
of the entity.  When a save button is hit the form
is hidden and the DDC reset (Choose one...).

You're not saying the Form should be discarded and rebuilt,
are you?

Thanks,
-troy


  


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



SV: pannels with diffrent width and height

2009-08-10 Thread Wilhelmsen Tor Iver
 I have created panel.now i want to show that panel with diffrent width
 and
 height  in another page(3 panels).

div wicket:id=panel1 style=height: 100px; width: 50px
Will be replaced with contents of wicket:panel element
/div

Or betters, use classes in nested elements that you specify outside of the 
templates.

- Tor Iver

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



AjaxFallbackDefaultDataTable paging disappears

2009-08-10 Thread Bas Vroling
I have a search form that takes user input, and with that input fills  
a dataprovider that is attached to a AjaxFallbackDefaultDataTable.
On form submit, the table is updated, and I see the correct new  
entries being present. There is a problem with the table navigation  
panel (the one with the next/previous buttons). This part of the table  
is updated when the number of search results increases with respect to  
the previous search results (so there are more table pages to browse  
through). However, if in the last search there were too few results to  
display the paging panel the paging panel stays invisible when the  
number of search results increases.


I suspect this is a bug, but maybe I need to call some update function  
somewhere?


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



Re: pannels with diffrent width and height

2009-08-10 Thread Gerald Fernando
it will place one bye one
but i need next to next.column wise

ThanksRegards,
Gerald A

On Mon, Aug 10, 2009 at 3:41 PM, Wilhelmsen Tor Iver toriv...@arrive.nowrote:

  I have created panel.now i want to show that panel with diffrent width
  and
  height  in another page(3 panels).

 div wicket:id=panel1 style=height: 100px; width: 50px
Will be replaced with contents of wicket:panel element
 /div

 Or betters, use classes in nested elements that you specify outside of the
 templates.

 - Tor Iver

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




-- 
Thanksregards,
Gerald A


Output to input stream for streaming?

2009-08-10 Thread Martin Makundi
Hi!

I have a HSSF document which can be written to an output stream.
However, I want to stream it to the website visitor, which requires an
inputstream... I have tried the following, but it somehow doesn't seem
to work.

Anybody know what can be done to fix it?

final PipedInputStream inputStream = new PipedInputStream();
final PipedOutputStream out;
try {
  out = new PipedOutputStream(inputStream);
} catch (IOException e) {
  throw new RuntimeException(e);
}
Executors.newSingleThreadExecutor().execute(new Runnable() {
  @Override
  public void run() {
try {
  wb.write(out);
} catch (IOException e) {
  MarkupUtils.handleUnexpectedException(e);
}
  }
});

IResourceStream resourceStream = new IResourceStream() {
  /**
   * @see org.apache.wicket.util.resource.IResourceStream#close()
   */
  public void close() throws IOException {
inputStream.close();
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#getContentType()
   */
  public String getContentType() {
return getAlternateContentType();
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#getInputStream()
   */
  public InputStream getInputStream()
  throws ResourceStreamNotFoundException {
return inputStream;
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#getLocale()
   */
  public Locale getLocale() {
throw new IllegalAccessError(Method not implemented.);
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#length()
   */
  public long length() {
try {
  return inputStream.available();
} catch (IOException e) {
  MarkupUtils.handleUnexpectedException(e);
}
return 0;
  }

  /**
   * @see 
org.apache.wicket.util.resource.IResourceStream#setLocale(java.util.Locale)
   */
  public void setLocale(Locale locale) {
throw new IllegalAccessError(Method not implemented.);
  }

  /**
   * @see org.apache.wicket.util.watch.IModifiable#lastModifiedTime()
   */
  public Time lastModifiedTime() {
return 
Time.milliseconds(DatabaseServices.getCurrentTimestamp().getTime());
  }

};

java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(Unknown Source)
at java.io.PipedInputStream.receive(Unknown Source)
at java.io.PipedOutputStream.write(Unknown Source)
at java.io.OutputStream.write(Unknown Source)
at org.apache.poi.poifs.storage.BigBlock.doWriteData(BigBlock.java:55)
at 
org.apache.poi.poifs.storage.DocumentBlock.writeData(DocumentBlock.java:220)
at org.apache.poi.poifs.storage.BigBlock.writeBlocks(BigBlock.java:86)
at 
org.apache.poi.poifs.filesystem.POIFSDocument$BigBlockStore.writeBlocks(POIFSDocument.java:603)
at 
org.apache.poi.poifs.filesystem.POIFSDocument.writeBlocks(POIFSDocument.java:275)
at 
org.apache.poi.poifs.filesystem.POIFSFileSystem.writeFilesystem(POIFSFileSystem.java:390)
at 
org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1168)



**
Martin

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



SV: pannels with diffrent width and height

2009-08-10 Thread Wilhelmsen Tor Iver
 it will place one bye one
 but i need next to next.column wise

Well, either use a Table with three columns to represent the panels or use div 
with CSS float: etc. in the page template.

- Tor Iver

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



RE: Output to input stream for streaming?

2009-08-10 Thread Russell Simpkins

Martin,

I don't think you can do this in a thread because that lets the 
HttpServletResponse end and close your ServletOutputStream.

Russ

 Date: Mon, 10 Aug 2009 14:49:58 +0300
 Subject: Output to input stream for streaming?
 From: martin.maku...@koodaripalvelut.com
 To: users@wicket.apache.org
 
 Hi!
 
 I have a HSSF document which can be written to an output stream.
 However, I want to stream it to the website visitor, which requires an
 inputstream... I have tried the following, but it somehow doesn't seem
 to work.
 
 Anybody know what can be done to fix it?
 
 final PipedInputStream inputStream = new PipedInputStream();
 final PipedOutputStream out;
 try {
   out = new PipedOutputStream(inputStream);
 } catch (IOException e) {
   throw new RuntimeException(e);
 }
 Executors.newSingleThreadExecutor().execute(new Runnable() {
   @Override
   public void run() {
 try {
   wb.write(out);
 } catch (IOException e) {
   MarkupUtils.handleUnexpectedException(e);
 }
   }
 });
 
 IResourceStream resourceStream = new IResourceStream() {
   /**
* @see org.apache.wicket.util.resource.IResourceStream#close()
*/
   public void close() throws IOException {
 inputStream.close();
   }
 
   /**
* @see org.apache.wicket.util.resource.IResourceStream#getContentType()
*/
   public String getContentType() {
 return getAlternateContentType();
   }
 
   /**
* @see org.apache.wicket.util.resource.IResourceStream#getInputStream()
*/
   public InputStream getInputStream()
   throws ResourceStreamNotFoundException {
 return inputStream;
   }
 
   /**
* @see org.apache.wicket.util.resource.IResourceStream#getLocale()
*/
   public Locale getLocale() {
 throw new IllegalAccessError(Method not implemented.);
   }
 
   /**
* @see org.apache.wicket.util.resource.IResourceStream#length()
*/
   public long length() {
 try {
   return inputStream.available();
 } catch (IOException e) {
   MarkupUtils.handleUnexpectedException(e);
 }
 return 0;
   }
 
   /**
* @see 
 org.apache.wicket.util.resource.IResourceStream#setLocale(java.util.Locale)
*/
   public void setLocale(Locale locale) {
 throw new IllegalAccessError(Method not implemented.);
   }
 
   /**
* @see org.apache.wicket.util.watch.IModifiable#lastModifiedTime()
*/
   public Time lastModifiedTime() {
 return 
 Time.milliseconds(DatabaseServices.getCurrentTimestamp().getTime());
   }
 
 };
 
 java.io.IOException: Pipe closed
   at java.io.PipedInputStream.checkStateForReceive(Unknown Source)
   at java.io.PipedInputStream.receive(Unknown Source)
   at java.io.PipedOutputStream.write(Unknown Source)
   at java.io.OutputStream.write(Unknown Source)
   at org.apache.poi.poifs.storage.BigBlock.doWriteData(BigBlock.java:55)
   at 
 org.apache.poi.poifs.storage.DocumentBlock.writeData(DocumentBlock.java:220)
   at org.apache.poi.poifs.storage.BigBlock.writeBlocks(BigBlock.java:86)
   at 
 org.apache.poi.poifs.filesystem.POIFSDocument$BigBlockStore.writeBlocks(POIFSDocument.java:603)
   at 
 org.apache.poi.poifs.filesystem.POIFSDocument.writeBlocks(POIFSDocument.java:275)
   at 
 org.apache.poi.poifs.filesystem.POIFSFileSystem.writeFilesystem(POIFSFileSystem.java:390)
   at 
 org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1168)
 
 
 
 **
 Martin
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Openlayers, openstreetmap and markers

2009-08-10 Thread Reinout van Schouwen
Hi,

I'm playing around with Wicketstuff Openlayers and I have a few
questions.

1) With a Google map, I can set the Bounds of a map easily. When I try
to do the same with an OpenStreetMap, my Bounds are ignored and I get a
thumbnail of the world map. What could be going on here?

2) I want to show a popup onmouseover instead of onclick. From the
examples I took the PopupMarkerInfoAttributeAppender and changed the
onClick attribute to onmouseover. However, the popup is still only
displaying on click. What am I missing?

3) How is the class org.wicketstuff.openlayers.api.MarkerOptions
supposed to be used? I can't find a reference to it anywhere.

regards,

-- 
Reinout van Schouwen


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



Re: Output to input stream for streaming?

2009-08-10 Thread Reinhard Nägele

How about this:

ByteArrayOutputStream baos = new ByteArrayOutputStream();
wb.write(baos);
InputStream is = new ByteArrayInputStream(baos.toByteArray());


Martin Makundi schrieb:

Hi!

I have a HSSF document which can be written to an output stream.
However, I want to stream it to the website visitor, which requires an
inputstream... I have tried the following, but it somehow doesn't seem
to work.

Anybody know what can be done to fix it?

final PipedInputStream inputStream = new PipedInputStream();
final PipedOutputStream out;
try {
  out = new PipedOutputStream(inputStream);
} catch (IOException e) {
  throw new RuntimeException(e);
}
Executors.newSingleThreadExecutor().execute(new Runnable() {
  @Override
  public void run() {
try {
  wb.write(out);
} catch (IOException e) {
  MarkupUtils.handleUnexpectedException(e);
}
  }
});

IResourceStream resourceStream = new IResourceStream() {
  /**
   * @see org.apache.wicket.util.resource.IResourceStream#close()
   */
  public void close() throws IOException {
inputStream.close();
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#getContentType()
   */
  public String getContentType() {
return getAlternateContentType();
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#getInputStream()
   */
  public InputStream getInputStream()
  throws ResourceStreamNotFoundException {
return inputStream;
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#getLocale()
   */
  public Locale getLocale() {
throw new IllegalAccessError(Method not implemented.);
  }

  /**
   * @see org.apache.wicket.util.resource.IResourceStream#length()
   */
  public long length() {
try {
  return inputStream.available();
} catch (IOException e) {
  MarkupUtils.handleUnexpectedException(e);
}
return 0;
  }

  /**
   * @see 
org.apache.wicket.util.resource.IResourceStream#setLocale(java.util.Locale)
   */
  public void setLocale(Locale locale) {
throw new IllegalAccessError(Method not implemented.);
  }

  /**
   * @see org.apache.wicket.util.watch.IModifiable#lastModifiedTime()
   */
  public Time lastModifiedTime() {
return 
Time.milliseconds(DatabaseServices.getCurrentTimestamp().getTime());
  }

};

java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(Unknown Source)
at java.io.PipedInputStream.receive(Unknown Source)
at java.io.PipedOutputStream.write(Unknown Source)
at java.io.OutputStream.write(Unknown Source)
at org.apache.poi.poifs.storage.BigBlock.doWriteData(BigBlock.java:55)
at 
org.apache.poi.poifs.storage.DocumentBlock.writeData(DocumentBlock.java:220)
at org.apache.poi.poifs.storage.BigBlock.writeBlocks(BigBlock.java:86)
at 
org.apache.poi.poifs.filesystem.POIFSDocument$BigBlockStore.writeBlocks(POIFSDocument.java:603)
at 
org.apache.poi.poifs.filesystem.POIFSDocument.writeBlocks(POIFSDocument.java:275)
at 
org.apache.poi.poifs.filesystem.POIFSFileSystem.writeFilesystem(POIFSFileSystem.java:390)
at 
org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1168)



**
Martin

-
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: Output to input stream for streaming?

2009-08-10 Thread Russell Simpkins

Its not that anything is missing per se, but if you run your output writer in a 
separate thread, then the rest of your processing is free to continue and in 
your case I'm guessing that the processing has finished before your output 
writing has completed. When your servlet finishes, the last thing that happens 
is the output stream gets closed. Try doing the write outside of a thread and 
see if you get the same exception.

Russ

 Date: Mon, 10 Aug 2009 15:03:13 +0300
 Subject: Re: Output to input stream for streaming?
 From: martin.maku...@koodaripalvelut.com
 To: users@wicket.apache.org
 
 Well well.. I do not understand why it is not possible, in principle.
 The input is there. The output is there... what's missing?
 
 **
 Martin
 
 2009/8/10 Russell Simpkins russellsimpk...@hotmail.com:
 
  Martin,
 
  I don't think you can do this in a thread because that lets the 
  HttpServletResponse end and close your ServletOutputStream.
 
  Russ
 
  Date: Mon, 10 Aug 2009 14:49:58 +0300
  Subject: Output to input stream for streaming?
  From: martin.maku...@koodaripalvelut.com
  To: users@wicket.apache.org
 
  Hi!
 
  I have a HSSF document which can be written to an output stream.
  However, I want to stream it to the website visitor, which requires an
  inputstream... I have tried the following, but it somehow doesn't seem
  to work.
 
  Anybody know what can be done to fix it?
 
  final PipedInputStream inputStream = new PipedInputStream();
  final PipedOutputStream out;
  try {
out = new PipedOutputStream(inputStream);
  } catch (IOException e) {
throw new RuntimeException(e);
  }
  Executors.newSingleThreadExecutor().execute(new Runnable() {
@Override
public void run() {
  try {
wb.write(out);
  } catch (IOException e) {
MarkupUtils.handleUnexpectedException(e);
  }
}
  });
 
  IResourceStream resourceStream = new IResourceStream() {
/**
 * @see org.apache.wicket.util.resource.IResourceStream#close()
 */
public void close() throws IOException {
  inputStream.close();
}
 
/**
 * @see 
  org.apache.wicket.util.resource.IResourceStream#getContentType()
 */
public String getContentType() {
  return getAlternateContentType();
}
 
/**
 * @see 
  org.apache.wicket.util.resource.IResourceStream#getInputStream()
 */
public InputStream getInputStream()
throws ResourceStreamNotFoundException {
  return inputStream;
}
 
/**
 * @see org.apache.wicket.util.resource.IResourceStream#getLocale()
 */
public Locale getLocale() {
  throw new IllegalAccessError(Method not implemented.);
}
 
/**
 * @see org.apache.wicket.util.resource.IResourceStream#length()
 */
public long length() {
  try {
return inputStream.available();
  } catch (IOException e) {
MarkupUtils.handleUnexpectedException(e);
  }
  return 0;
}
 
/**
 * @see 
  org.apache.wicket.util.resource.IResourceStream#setLocale(java.util.Locale)
 */
public void setLocale(Locale locale) {
  throw new IllegalAccessError(Method not implemented.);
}
 
/**
 * @see org.apache.wicket.util.watch.IModifiable#lastModifiedTime()
 */
public Time lastModifiedTime() {
  return 
  Time.milliseconds(DatabaseServices.getCurrentTimestamp().getTime());
}
 
  };
 
  java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(Unknown Source)
at java.io.PipedInputStream.receive(Unknown Source)
at java.io.PipedOutputStream.write(Unknown Source)
at java.io.OutputStream.write(Unknown Source)
at 
  org.apache.poi.poifs.storage.BigBlock.doWriteData(BigBlock.java:55)
at 
  org.apache.poi.poifs.storage.DocumentBlock.writeData(DocumentBlock.java:220)
at 
  org.apache.poi.poifs.storage.BigBlock.writeBlocks(BigBlock.java:86)
at 
  org.apache.poi.poifs.filesystem.POIFSDocument$BigBlockStore.writeBlocks(POIFSDocument.java:603)
at 
  org.apache.poi.poifs.filesystem.POIFSDocument.writeBlocks(POIFSDocument.java:275)
at 
  org.apache.poi.poifs.filesystem.POIFSFileSystem.writeFilesystem(POIFSFileSystem.java:390)
at 
  org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1168)
 
 
 
  **
  Martin
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
  _
  Get back to school stuff for them and cashback for you.
  

Re: pannels with diffrent width and height

2009-08-10 Thread Gerald Fernando
i used table but it will not be placed in the full page even i put table
height and width = 100%
if possible please explain little bit about

div with CSS float: etc. in the page template.



On Mon, Aug 10, 2009 at 5:24 PM, Wilhelmsen Tor Iver toriv...@arrive.nowrote:

  it will place one bye one
  but i need next to next.column wise

 Well, either use a Table with three columns to represent the panels or use
 div with CSS float: etc. in the page template.

 - Tor Iver

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




-- 
Thanksregards,
Gerald A


Re: Output to input stream for streaming?

2009-08-10 Thread Martin Makundi
Maybe the thread is wrongly written, yes but a servlet CAN read a
FILE. A file is always another PROCESS (which supplies the file
contents, yes, it's the disk driver etc.). So a similar configuration
should be possible between a write operation and an input stream.

Anybody have experience with pipedstreams? There is an article about
it here, but I may have misunderstood the details:
http://ostermiller.org/convert_java_outputstream_inputstream.html

**
Martin

2009/8/10 Erik van Oosten e.vanoos...@grons.nl:
 That won't work. Servlets are synchronous; they don't expect anyone writing
 the output once the servlet finished.

 Regards,
   Erik.



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



Re: Output to input stream for streaming?

2009-08-10 Thread Erik van Oosten
With 'output' I meant the servlet request output. But perhaps I 
misunderstood the question.


I guess the problem is that you close 'inputStream' as soon as the 
request is finished. The thread that tries to write to it is still 
active at that moment.


Regards,
   Erik.


Martin Makundi wrote:

Maybe the thread is wrongly written, yes but a servlet CAN read a
FILE. A file is always another PROCESS (which supplies the file
contents, yes, it's the disk driver etc.). So a similar configuration
should be possible between a write operation and an input stream.

Anybody have experience with pipedstreams? There is an article about
it here, but I may have misunderstood the details:
http://ostermiller.org/convert_java_outputstream_inputstream.html

**
Martin

2009/8/10 Erik van Oosten e.vanoos...@grons.nl:
  

That won't work. Servlets are synchronous; they don't expect anyone writing
the output once the servlet finished.

Regards,
  Erik




--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: pannels with diffrent width and height

2009-08-10 Thread Per Lundholm
Hi!

Does not the following spread across the window, or what do you mean?

html
head
/head
body
table style=width: 100%
trtd  style=border-width: 2px; border-style: solidcol1/tdtd
style=border-width: 2px; border-style: solidcol2/tdtd
style=border-width: 2px; border-style: solidcol3/td/tr
/table
/body
/html

/Per

On Mon, Aug 10, 2009 at 2:35 PM, Gerald Fernando 
gerald.anto.ferna...@gmail.com wrote:

 i used table but it will not be placed in the full page even i put table
 height and width = 100%
 if possible please explain little bit about

 div with CSS float: etc. in the page template.



 On Mon, Aug 10, 2009 at 5:24 PM, Wilhelmsen Tor Iver toriv...@arrive.no
 wrote:

   it will place one bye one
   but i need next to next.column wise
 
  Well, either use a Table with three columns to represent the panels or
 use
  div with CSS float: etc. in the page template.
 
  - Tor Iver
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Thanksregards,
 Gerald A



Re: Openlayers, openstreetmap and markers

2009-08-10 Thread Frank Tegtmeyer
 1) With a Google map, I can set the Bounds of a map easily. When I try
 to do the same with an OpenStreetMap, my Bounds are ignored and I get a
 thumbnail of the world map. What could be going on here?

There is a tutorial somewhere on the OpenStreetMap Wiki. The 
boundaries have to be computed using some magic (but deterministic) 
values that are given in that example. Unfortunately I cannot find the 
reference now.

Here is a link to an example in German:
http://www.cognitiones.de/doku.php/osm_openlayers_test

It says that the magic number 20037508.34 is related to the conversion 
between tile numbers and coordinates.
Unlike in this example the attribution link should be enabled in the 
display. The OSM-Javascript files provide it already but it has to be 
enabled:
map.addControl(new OpenLayers.Control.Attribution());

Regards, Frank


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



Re: setResponsePage() Not Working

2009-08-10 Thread Igor Vaynberg
turn the logging to debug level and look at the logs for any clues.

-igor

On Mon, Aug 10, 2009 at 7:22 AM, Jeff Longlandjeff.longl...@gmail.com wrote:
 I've been developing a Wicket app on GlassFish v2 and everything works
 fine.  But when I deploy the application to our production server
 which runs Sun Java App Server 7, setResponsePage() isn't working
 properly.  What's particularly infuriating is that I can see in the
 database that the request is being processed (new rows) but in the
 browser the page isn't being redirected.  Does anyone have any
 suggestions for troubleshooting this problem?  And no, I can't upgrade
 the production server to a newer version or Jetty for that matter :(
 Any help would be greatly appreciated as I need to get this app
 running.

 Thanks again,
 Jeff

 -
 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: DataTable with more than one tr per item

2009-08-10 Thread Igor Vaynberg
no, a datatable doesnt support that. but it is easy enough with your
own repeater.

-igor

On Mon, Aug 10, 2009 at 7:25 AM, Kariem Husseinkar...@users.sf.net wrote:
 Hello,

 I wanted to ask, whether there is a way to have more than one row per
 item rendered from a DataTable [1]. As a result in HTML, we need
 something similar to the example below where both tr elements are
 rendered from a single model.

 ### snip start
 tbody
  tr
    tdcol1/tdtdcol2/tdtdcol3/tdtdcol4/td
  /tr
  tr
    td colspan=4long text with details/td
  /tr
  [... other elements]
 /tbody
 ### snip end

 I tried to use DataTable, but the current version (I am working on
 1.3.6, but 1.4.0 is similar in this respect) creates the data grid in
 the constructor and binds it to 'rows', without any way to
 override/adapt this behavior. Hence my current approach involves a
 customized version of DataTable with this part extracted to be
 overridden by subclasses.

 With this mechanism, a corresponding implementation would be able to
 generate multiple rows and cells, depending on the populators
 (IColumn).

 Now that it looks a little bit complicated, I wanted to ask how others
 have implemented something similar.

 Thank you,
 Kariem

 [1] 
 http://fisheye6.atlassian.com/browse/wicket/sandbox/ivaynberg/wicket-1.4.0/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java?r=794719

 -
 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: DataTable with more than one tr per item

2009-08-10 Thread Erik van Oosten

Kariem,

There is a hint at 
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:container


Regards,
   Erik.


Igor Vaynberg wrote:

no, a datatable doesnt support that. but it is easy enough with your
own repeater.

-igor

  


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Problems with session after modifying code

2009-08-10 Thread Daniel Dominik Holúbek
Hello,i'm developing a webapp combining osgi (equinox) and wicket.
it works fine, except of this case:
let's say we've got two bundles - core and chat.
the chat bundle depends on core bundle.
now, i've made some modifications to the chat bundle, exported it and
deployed it to osgi container, leaving the core bundle unchanged.
because i need the changes to be seen by the core, i have to refresh it.

and here is the problem. when i now access the webapp, i get an exception
which says - MySession can not be cast to org.apache.wicket.Session.
i think the problem is that the old session, containing old classes (in some
Page store maybe? i'm still a newbie :)) is saved to disk before actually
refreshing core classes and then loaded again - but confliting with new,
freshly loaded classes.
the exception goes away and webapp loads correctly after i restart my
browser :)

so my question is: do you know about some workaround for this problem? the
best scenario would be that the Session will load correctly, but it's not
necessary - it can be dropped.

i know there's a lot of osgi, but i think this is a wicket problem - but
correct me if i'm mistaken. :)

thanks for your answers!

-- 
-danoh-


Re: Problem with Palette

2009-08-10 Thread Elad Katz

Does anybody have any ideas?


Elad Katz wrote:
 
 
 egolan74 wrote:
 
 I guess you've checked that selectedEvents is not empty?
 
 yes, they both have stuff in them
 
 
 egolan74 wrote:
 
 If it's not, I think you should check your model representing the
 choices.
 
 What do you mean check?
 
 
 egolan74 wrote:
 
 BTW,
 AFAIK, the selected choices should be a subset of the 'all available'.
 Please corect me if i'm wrong.
 
 That's what I understood from reading the forums, and that is how it's
 done in my implementation - but it still doesn't work
 any other ideas?
 anyone?
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Palette-tp24834525p24902157.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: Openlayers, openstreetmap and markers

2009-08-10 Thread nino martinez wael
2009/8/10 Reinout van Schouwen rein...@gmail.com:
 Hi,

 I'm playing around with Wicketstuff Openlayers and I have a few
 questions.

 1) With a Google map, I can set the Bounds of a map easily. When I try
 to do the same with an OpenStreetMap, my Bounds are ignored and I get a
 thumbnail of the world map. What could be going on here?

 2) I want to show a popup onmouseover instead of onclick. From the
 examples I took the PopupMarkerInfoAttributeAppender and changed the
 onClick attribute to onmouseover. However, the popup is still only
 displaying on click. What am I missing?

 3) How is the class org.wicketstuff.openlayers.api.MarkerOptions
 supposed to be used? I can't find a reference to it anywhere.
I think it might be legacy from when I did the initial framework, I
could'nt find any use for it.. What are you wanting to do?

 regards,

 --
 Reinout van Schouwen


 -
 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: Output to input stream for streaming?

2009-08-10 Thread Russell Simpkins

I'm new to wicket, but if I wanted to send down file data, I would use a 
servlet, get the output stream and write the data.
a simple example: 
writeData(InputStream in, HttpServletResponse resp) {   out = 
resp.getOutputStream();   byte[] data = new byte[1024];   int size = 0;   while 
( (size=in.read(data,1024))=0) {  out.write(data,0,size);   }}
If the file is on disk, then there is no need to do this, but if it's in the db 
you would do something like this. You can't do something like this in JSP, 
because JSP adds a new line to all responses. You may run into issues of wicket 
adds anything to the output stream.
russ

 Date: Mon, 10 Aug 2009 18:10:13 +0300
 Subject: Re: Output to input stream for streaming?
 From: martin.maku...@koodaripalvelut.com
 To: users@wicket.apache.org
 
 Ouch.. Could I make the READ a blocking one... thus it would wait
 until the source is really depleted?
 
 **
 Martin
 
 2009/8/10 Russell Simpkins russellsimpk...@hotmail.com:
 
  Yes. That is exactly the point i was trying to make erik.
 
  Date: Mon, 10 Aug 2009 14:30:59 +0200
  From: e.vanoos...@grons.nl
  To: users@wicket.apache.org
  Subject: Re: Output to input stream for streaming?
 
  That won't work. Servlets are synchronous; they don't expect anyone
  writing the output once the servlet finished.
 
  Regards,
  Erik.
 
 
  Russell Simpkins wrote:
   Its not that anything is missing per se, but if you run your output 
   writer in a separate thread, then the rest of your processing is free to 
   continue and in your case I'm guessing that the processing has finished 
   before your output writing has completed. When your servlet finishes, 
   the last thing that happens is the output stream gets closed. Try doing 
   the write outside of a thread and see if you get the same exception.
  
   Russ
  
  
   Date: Mon, 10 Aug 2009 15:03:13 +0300
   Subject: Re: Output to input stream for streaming?
   From: martin.maku...@koodaripalvelut.com
   To: users@wicket.apache.org
  
   Well well.. I do not understand why it is not possible, in principle.
   The input is there. The output is there... what's missing?
  
   **
   Martin
  
   2009/8/10 Russell Simpkins russellsimpk...@hotmail.com:
  
   Martin,
  
   I don't think you can do this in a thread because that lets the 
   HttpServletResponse end and close your ServletOutputStream.
  
   Russ
  
  
   Date: Mon, 10 Aug 2009 14:49:58 +0300
   Subject: Output to input stream for streaming?
   From: martin.maku...@koodaripalvelut.com
   To: users@wicket.apache.org
  
   Hi!
  
   I have a HSSF document which can be written to an output stream.
   However, I want to stream it to the website visitor, which requires an
   inputstream... I have tried the following, but it somehow doesn't seem
   to work.
  
   Anybody know what can be done to fix it?
  
   final PipedInputStream inputStream = new PipedInputStream();
   final PipedOutputStream out;
   try {
 out = new PipedOutputStream(inputStream);
   } catch (IOException e) {
 throw new RuntimeException(e);
   }
   Executors.newSingleThreadExecutor().execute(new Runnable() {
 @Override
 public void run() {
   try {
 wb.write(out);
   } catch (IOException e) {
 MarkupUtils.handleUnexpectedException(e);
   }
 }
   });
  
   IResourceStream resourceStream = new IResourceStream() {
 /**
  * @see org.apache.wicket.util.resource.IResourceStream#close()
  */
 public void close() throws IOException {
   inputStream.close();
 }
  
 /**
  * @see 
   org.apache.wicket.util.resource.IResourceStream#getContentType()
  */
 public String getContentType() {
   return getAlternateContentType();
 }
  
 /**
  * @see 
   org.apache.wicket.util.resource.IResourceStream#getInputStream()
  */
 public InputStream getInputStream()
 throws ResourceStreamNotFoundException {
   return inputStream;
 }
  
 /**
  * @see 
   org.apache.wicket.util.resource.IResourceStream#getLocale()
  */
 public Locale getLocale() {
   throw new IllegalAccessError(Method not implemented.);
 }
  
 /**
  * @see org.apache.wicket.util.resource.IResourceStream#length()
  */
 public long length() {
   try {
 return inputStream.available();
   } catch (IOException e) {
 MarkupUtils.handleUnexpectedException(e);
   }
   return 0;
 }
  
 /**
  * @see 
   org.apache.wicket.util.resource.IResourceStream#setLocale(java.util.Locale)
  */
 public void setLocale(Locale locale) {
   throw new IllegalAccessError(Method not implemented.);
 }
  
 /**
  * @see 
   

Re: setResponsePage() Not Working

2009-08-10 Thread Jeff Longland
Not much in the way of clues...  The ResultPage is being instantiated,
but instead of being rendered the HomePage is reloaded.  Everything is
fine on GlassFish v2..  but Sun Java App Server 7 = no dice.  I'm at a
loss for what to do next.

On Mon, Aug 10, 2009 at 10:29 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 turn the logging to debug level and look at the logs for any clues.

 -igor

 On Mon, Aug 10, 2009 at 7:22 AM, Jeff Longlandjeff.longl...@gmail.com wrote:
 I've been developing a Wicket app on GlassFish v2 and everything works
 fine.  But when I deploy the application to our production server
 which runs Sun Java App Server 7, setResponsePage() isn't working
 properly.  What's particularly infuriating is that I can see in the
 database that the request is being processed (new rows) but in the
 browser the page isn't being redirected.  Does anyone have any
 suggestions for troubleshooting this problem?  And no, I can't upgrade
 the production server to a newer version or Jetty for that matter :(
 Any help would be greatly appreciated as I need to get this app
 running.

 Thanks again,
 Jeff

 -
 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: setResponsePage() Not Working

2009-08-10 Thread Igor Vaynberg
no clue either. wicket is just a filter, if it works in one container
it should work in them all. try a couple of other containers, maybe it
will help you to narrow the problem.

-igor

On Mon, Aug 10, 2009 at 12:31 PM, Jeff Longlandjeff.longl...@gmail.com wrote:
 Not much in the way of clues...  The ResultPage is being instantiated,
 but instead of being rendered the HomePage is reloaded.  Everything is
 fine on GlassFish v2..  but Sun Java App Server 7 = no dice.  I'm at a
 loss for what to do next.

 On Mon, Aug 10, 2009 at 10:29 AM, Igor Vaynbergigor.vaynb...@gmail.com 
 wrote:
 turn the logging to debug level and look at the logs for any clues.

 -igor

 On Mon, Aug 10, 2009 at 7:22 AM, Jeff Longlandjeff.longl...@gmail.com 
 wrote:
 I've been developing a Wicket app on GlassFish v2 and everything works
 fine.  But when I deploy the application to our production server
 which runs Sun Java App Server 7, setResponsePage() isn't working
 properly.  What's particularly infuriating is that I can see in the
 database that the request is being processed (new rows) but in the
 browser the page isn't being redirected.  Does anyone have any
 suggestions for troubleshooting this problem?  And no, I can't upgrade
 the production server to a newer version or Jetty for that matter :(
 Any help would be greatly appreciated as I need to get this app
 running.

 Thanks again,
 Jeff

 -
 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: setResponsePage() Not Working

2009-08-10 Thread Aiszone

Hi,

Just a thought, could it be, that your session times out - so that the
request get's a new sessionID and therefore is sendt to the homepage (which
I assume is your normal start page for your wicket app).
-- 
View this message in context: 
http://www.nabble.com/setResponsePage%28%29-Not-Working-tp24900715p24907004.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: crud app with wicket

2009-08-10 Thread Erik Post
You could also have a look at Wicketopia's Wicket+Hibernate+Spring archetype:

http://wicketopia.sourceforge.net/wicketopia/source-repository.html

Good luck!

Cheers,
Erik

On Mon, Aug 10, 2009 at 7:27 AM, Peter Thomasptrtho...@gmail.com wrote:
 On Mon, Aug 10, 2009 at 10:36 AM, Ivan Dudko ivan.du...@gmail.com wrote:

 Hi all!
 I am new to java. I am trying to write crud app and using
 Wicket,Spring,Hibernate and PostgreSQL. But speed is very slow.
 May be i am do it in not right way. Where i can see the right way of
 integration of these components?


 Have a look at the Wicket Phonebook example:

 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook

 Also see this performance benchmark using Wicket + JPA (Hibernate):

 http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/




 Thank you!
 Ivan Dudko

 -
 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: DataTable with more than one tr per item

2009-08-10 Thread Vladimir K

The regular repeater does not support pagination, sorting and filtering out
of the box.


Erik van Oosten wrote:
 
 Kariem,
 
 There is a hint at 
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:container
 
 Regards,
 Erik.
 
 
 Igor Vaynberg wrote:
 no, a datatable doesnt support that. but it is easy enough with your
 own repeater.

 -igor

   
 
 -- 
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/
 
 
 
 -
 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://www.nabble.com/DataTable-with-more-than-one-%3Ctr%3E-per-item-tp24900846p24909100.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: DataTable with more than one tr per item

2009-08-10 Thread Igor Vaynberg
both dataview and pageablelistview support paging.

-igor

On Mon, Aug 10, 2009 at 4:06 PM, Vladimir Kkoval...@gmail.com wrote:

 The regular repeater does not support pagination, sorting and filtering out
 of the box.


 Erik van Oosten wrote:

 Kariem,

 There is a hint at
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:container

 Regards,
     Erik.


 Igor Vaynberg wrote:
 no, a datatable doesnt support that. but it is easy enough with your
 own repeater.

 -igor



 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/



 -
 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://www.nabble.com/DataTable-with-more-than-one-%3Ctr%3E-per-item-tp24900846p24909100.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



Re: DataTable with more than one tr per item

2009-08-10 Thread Vladimir K

I mean they does not have toolbars that provides user with pagination,
sorting and filtering. One should author her own DataTable class in order to
get extra tr in the item's markup.

If Item class was derived from Panel class it would be possible to override
newRowItem() method.
I believe it makes sense to re-design DataTable markup a bit.


igor.vaynberg wrote:
 
 both dataview and pageablelistview support paging.
 
 -igor
 
 On Mon, Aug 10, 2009 at 4:06 PM, Vladimir Kkoval...@gmail.com wrote:

 The regular repeater does not support pagination, sorting and filtering
 out
 of the box.


 Erik van Oosten wrote:

 Kariem,

 There is a hint at
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:container

 Regards,
     Erik.


 Igor Vaynberg wrote:
 no, a datatable doesnt support that. but it is easy enough with your
 own repeater.

 -igor



 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/



 -
 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://www.nabble.com/DataTable-with-more-than-one-%3Ctr%3E-per-item-tp24900846p24909100.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/DataTable-with-more-than-one-%3Ctr%3E-per-item-tp24900846p24909271.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: DataTable with more than one tr per item

2009-08-10 Thread Igor Vaynberg
patches are welcome.

-igor

On Mon, Aug 10, 2009 at 4:24 PM, Vladimir Kkoval...@gmail.com wrote:

 I mean they does not have toolbars that provides user with pagination,
 sorting and filtering. One should author her own DataTable class in order to
 get extra tr in the item's markup.

 If Item class was derived from Panel class it would be possible to override
 newRowItem() method.
 I believe it makes sense to re-design DataTable markup a bit.


 igor.vaynberg wrote:

 both dataview and pageablelistview support paging.

 -igor

 On Mon, Aug 10, 2009 at 4:06 PM, Vladimir Kkoval...@gmail.com wrote:

 The regular repeater does not support pagination, sorting and filtering
 out
 of the box.


 Erik van Oosten wrote:

 Kariem,

 There is a hint at
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:container

 Regards,
     Erik.


 Igor Vaynberg wrote:
 no, a datatable doesnt support that. but it is easy enough with your
 own repeater.

 -igor



 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/



 -
 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://www.nabble.com/DataTable-with-more-than-one-%3Ctr%3E-per-item-tp24900846p24909100.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




 --
 View this message in context: 
 http://www.nabble.com/DataTable-with-more-than-one-%3Ctr%3E-per-item-tp24900846p24909271.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



Re: Exception adding a SimpleAttributeModifier to a TextField

2009-08-10 Thread Kuga

Hi,
Did this issue get solved for you? 
I am also facing the similar issue. I am just adding and AttributeReplacer
and this issue happens when i Click on an AjaxButton.

Can you please share with me about the soution?
thanks
Kuga


Miguel Munoz wrote:
 
 Comrades,
 
   I'm getting a strange exception. I created a SimpleAttributeModifier and
 added it to a TextField component, like this:
 
   textField.add(modifier);
 
 When I run it, I get an exception that says this:
 
 java.lang.ClassCastException:
 org.apache.wicket.behavior.SimpleAttributeModifier cannot be cast to
 org.apache.wicket.behavior.IBehaviorListener
  at
 org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:91)
 
 The line of code that generates the exception looks like this:
 
   behaviorListener =
 (IBehaviorListener)component.getBehaviors().get(idAsInt);
 
 It appears to be extracting from a list of IBehaviors, so I have no idea
 why it's trying to cast it as an IBehaviorListener. Does anybody know what
 I'm doing wrong? Or is this a bug in Wicket?
 

-- 
View this message in context: 
http://www.nabble.com/Exception-adding-a-SimpleAttributeModifier-to-a-TextField-tp16262822p24910082.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: setResponsePage() Not Working

2009-08-10 Thread Jeff Longland
That's the thing that I can't seem to figure out.  The app works on
GlassFish v2 and Tomcat, but I'm having this problem on Sun Java App
Server 7.

As suggested in ##wicket, I switched from the wicket filter to the
wicket servlet - but I'm still having the problem where there are two
?wicket in the URL after onSubmit.  ex.
https://host/app/;jsessionid=24DE33C36DE4E699D304CD19573DDB31?wicket:?wicket:interface=:1
 I'm assuming this is what's causing the HomePage to be rendered even
though the ResultPage is being requested?

Anyone have any thoughts on why I'm getting two ?wicket params in the
URL?  This doesn't happen on either GlassFish or Tomcat.

Jeff

On Mon, Aug 10, 2009 at 4:22 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 no clue either. wicket is just a filter, if it works in one container
 it should work in them all. try a couple of other containers, maybe it
 will help you to narrow the problem.

 -igor

 On Mon, Aug 10, 2009 at 12:31 PM, Jeff Longlandjeff.longl...@gmail.com 
 wrote:
 Not much in the way of clues...  The ResultPage is being instantiated,
 but instead of being rendered the HomePage is reloaded.  Everything is
 fine on GlassFish v2..  but Sun Java App Server 7 = no dice.  I'm at a
 loss for what to do next.

 On Mon, Aug 10, 2009 at 10:29 AM, Igor Vaynbergigor.vaynb...@gmail.com 
 wrote:
 turn the logging to debug level and look at the logs for any clues.

 -igor

 On Mon, Aug 10, 2009 at 7:22 AM, Jeff Longlandjeff.longl...@gmail.com 
 wrote:
 I've been developing a Wicket app on GlassFish v2 and everything works
 fine.  But when I deploy the application to our production server
 which runs Sun Java App Server 7, setResponsePage() isn't working
 properly.  What's particularly infuriating is that I can see in the
 database that the request is being processed (new rows) but in the
 browser the page isn't being redirected.  Does anyone have any
 suggestions for troubleshooting this problem?  And no, I can't upgrade
 the production server to a newer version or Jetty for that matter :(
 Any help would be greatly appreciated as I need to get this app
 running.

 Thanks again,
 Jeff

 -
 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: submit a form using ajax

2009-08-10 Thread Toscano

Any luck with this one?
I can't figure out how to do it...


igor.vaynberg wrote:
 
 you have to wire a bit of javascript to do this from the timer, see
 how ajaxsubmitlink does it...
 
 -igor
 
 On Tue, Jun 9, 2009 at 6:39 AM, Juri Prokofievj...@unix.ee wrote:
 I'm trying to save form values every 30 seconds and for this purpose
 I use AbstractAjaxTimerBehavior class, but can't figure out how to
 get the form values if submit button wasn't pressed?

 Thank you
 --
 http://www.autoladu.ee  - kõik varuosad ühes kohas

 
 -
 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://www.nabble.com/submit-a-form-using-ajax-tp23943077p24911252.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: Help in panel design

2009-08-10 Thread Juan Pablo Lagostena

Maybe I'm wrong, or I misunderstood the question, but I'll take a shoot.

You can configure those things with CSS. I think that your panel, in the 
HTML side, is a div or something like this. So, you can define styles 
for each panel, or, if you want, you can apply the same style to all panels.


I hope it helps.

Best,

Juan

Gerald Fernando escribió:

Hello Friends,

I have created a panel(both java and html page).
now i need to view a 3 panels in the home page each should same height and
width or diffrent height and width.
I mean how to i set height and width of that panel

  



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



Get all sessions and manipulate them

2009-08-10 Thread uud ashr
Hi all,
How to manipulate all existing sessions on wicket.
I can get the SessionData trough getRequestLogger().getLiveSessions(), but I
can't manipulate the SessionData.
For examples, I have session class:

public class MyAppSession extends WebSession {
   ...
   public void setLoggedUser(User user) {
   }

   public User getLoggedUser() {

   }
}


I want to kick all logged users because I want to do something like
maintenance thing by using theSession.setLoggedUser(null) to all available
sessions.
Anyone knows?

Regards,
uudashr


Re: Get all sessions and manipulate them

2009-08-10 Thread Jeremy Thomerson
This question has been asked and answered many times on this mailing
list.  Please try searching the archives on Nabble.  Then let us know
if you have questions about one of those implementations.

--
Jeremy Thomerson
http://www.wickettraining.com




On Mon, Aug 10, 2009 at 10:59 PM, uud ashruuda...@gmail.com wrote:
 Hi all,
 How to manipulate all existing sessions on wicket.
 I can get the SessionData trough getRequestLogger().getLiveSessions(), but I
 can't manipulate the SessionData.
 For examples, I have session class:

 public class MyAppSession extends WebSession {
   ...
   public void setLoggedUser(User user) {
   }

   public User getLoggedUser() {

   }
 }


 I want to kick all logged users because I want to do something like
 maintenance thing by using theSession.setLoggedUser(null) to all available
 sessions.
 Anyone knows?

 Regards,
 uudashr


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



InputStreamResource

2009-08-10 Thread Edgar Merino
Hello, what would be the correct way to render an image (Resource) from 
an InputStream? Right now I've got a very simple extension of the 
Resource class (code below), but this is causing problems since 
InputStream is not serializable and I'm keeping a reference to it. 
Thanks in advance.


//CODE BEGINS

import java.io.InputStream;
import org.apache.wicket.Resource;
import org.apache.wicket.util.resource.IResourceStream;
import org.apache.wicket.util.resource.AbstractResourceStream;

public class InputStreamResource extends Resource {

   private class InputStreamResourceStream extends AbstractResourceStream {

   public InputStream getInputStream() {
   return in;
   }

   public void close() {
   try {
   in.close();
   } catch (Exception e) {
   e.printStackTrace();
   }
   }
   }

   private InputStream in;

   public InputStreamResource(InputStream in) {
   this.in = in;
   }

   @Override
   public IResourceStream getResourceStream() {
   return new InputStreamResourceStream();
   }

}

//CODE ENDS


Edgar Merino

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