java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-02-24 Thread singh13
Hi there I am using OpenID4java to implement an OpenID relying party and a provider. Whenever I try to access the provider page I get this exception in my console java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called. In this method I am creating

Re: JavaFX2 and Wicket

2012-02-24 Thread kamiseq
those are totally two different technologies. wicekt can generate you html and you can embed flash or javafx applet there. I doubt there is any integration between wicket and flash or java fx. look at javafx tutorial first (they create html file there) and then learn how you can create such page

Re: JavaFX2 and Wicket

2012-02-24 Thread Martijn Dashorst
Check out https://github.com/dashorst/dashboard HTML 5, CSS3 For a demo video, look at http://vimeo.com/channels/topicus#17780865 Martijn On Fri, Feb 17, 2012 at 10:08 PM, clauspbeck b...@welovefailing.com wrote: Hi everyone, I'm going to make a Dashboard look a like thing using Wicket, i'm

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-02-24 Thread Martin Grigorov
Hi, Servlet specs do not allows to write both to the servletresponse's outputstream and its writer. In your code you write to the stream and later somewhere else (maybe Wicket) writes to the writer. See the code in DownloadLink to see how it writes the file bytes. You cannot write your OpenID

Border-Component Problem in Migration to 1.5

2012-02-24 Thread Jürgen Lind
Hi, I've just begun to move my application up to 1.5. and I now getting an error in a place that worked just fine in 1.4. The problem seems to lie within creating a border component as it gives me the following error message: org.apache.wicket.WicketRuntimeException: You can not add a

unixODBC, Wicket, Tomcat

2012-02-24 Thread Alex
Dear All, Does anybody have experience in using unixODBC with Wicket and Tomcat? It is possible to establish connection with jetty. But it does not work with Tomcat under Ubuntu. Stand alone java class (without using wicket) is working under Ubuntu fine. Any help would be highly appreciated. Alex

Re: Border-Component Problem in Migration to 1.5

2012-02-24 Thread Jürgen Lind
Ok, I am going to answer myself on that one: changing this.add(popupHolder); to this.addToBorder(popupHolder); dis it. I had read the migration guide and the Javadoc several times but just did not understand it (correctly)... J. On 24.02.2012 14:00, Jürgen Lind wrote: Hi, I've just begun

Re: unixODBC, Wicket, Tomcat

2012-02-24 Thread Martin Grigorov
It doesn't work doesn't say much about the problem ... Give more details On Fri, Feb 24, 2012 at 2:06 PM, Alex zeita...@googlemail.com wrote: Dear All, Does anybody have experience in using unixODBC with Wicket and Tomcat? It is possible to establish connection with jetty. But it does not work

Re: Adding extra request parameters to AJAX calls

2012-02-24 Thread gmparker2000
Hmm more problems. This is definitely turning out to be more difficult than I expected. If a component already has an Ajax behavior added, then my behavior conflicts. Either my behavior is used and the original behavior is affected, or vice versa. For example if I try to do this: public class

Re: unixODBC, Wicket, Tomcat

2012-02-24 Thread Alex
Sorry, I get: Genral Error | sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6986) | sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114) | sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073) | sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323) |

Re: Adding extra request parameters to AJAX calls

2012-02-24 Thread Martin Grigorov
On Fri, Feb 24, 2012 at 2:18 PM, gmparker2000 greg.par...@brovada.com wrote: Hmm more problems.  This is definitely turning out to be more difficult than I expected.  If a component already has an Ajax behavior added, then my behavior conflicts.  Either my behavior is used and the original

Change input tag to span, what about value?

2012-02-24 Thread Taag
I'm overrideing onComponentTag for a textfield. I check if the field is enabled, if not I want to replace the input tag with a span tag. It's working nicely, except that I lose the value attatched to the input tag @Override protected void onComponentTag( ComponentTag tag ) {

Re: Change input tag to span, what about value?

2012-02-24 Thread Taag
Had a look on onComponentTagBody, and got it to work by overrideing that method aswell =) Here is the solution, fro those wondering: @Override protected void onComponentTag( ComponentTag tag ) { super.onComponentTag( tag ); if (!isEnabledInHierarchy()) {

Re: Adding extra request parameters to AJAX calls

2012-02-24 Thread gmparker2000
My intention is not to re-implement it but to extend the functionality it offers and include the concept of a conversation. Do you mean that this is not possible? Or that I'm just not doing it right :). Should I be attempting to encapsulate the AjaxButton instead of inheritance? thanks --

Re: Modal Window does not open second time

2012-02-24 Thread mjop
Yes, with the latest version of Wicket (1.5.4) it works fine. Thanks Igor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modal-Window-does-not-open-second-time-tp3824184p4417206.html Sent from the Users forum mailing list archive at Nabble.com.

Resource Caching in 1.5.

2012-02-24 Thread Jürgen Lind
Hi, my migration to Wicket 1.5. is progressing, but there are still some unresolved issues. Currently, I am trying to prevent wicket from adding antiCache-Information to a PackageResourceReference. I am using a subclassed LabelIconPanel to have my own icons in a Tree component. However, all

Re: unixODBC, Wicket, Tomcat

2012-02-24 Thread Alex
I am just trying to make connection to unixODBC using jdbcOdbc Bridge: public class HomePage extends WebPage { public HomePage(final PageParameters parameters) { Connection con = null; try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ; // Connect with a url string

Re: Getting new lines in RepeatingView

2012-02-24 Thread Eric Jablow
On Fri, Feb 24, 2012 at 1:54 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, I think you can override RepeatingView's org.apache.wicket.markup.repeater.AbstractRepeater#renderChild(): { super.renderChild(component); getResponse().write(br/); } I don't think br / is

Re: DropDownChoice selection won't update form fields

2012-02-24 Thread oggie
I got it working, but I'm not sure if the way I did it is correct. Here's the final code: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-selection-won-t-update-form-fields-tp4413980p4417640.html Sent from the Users forum mailing list archive at

Re: Dot in DataTable Columnheader - not allowed?

2012-02-24 Thread Igor Vaynberg
perhaps the dot is being interpreted as part of a path expression by a property model somewhere... try using normal models instead. -igor On Thu, Feb 23, 2012 at 11:31 PM, Rain... Is wet! oryp-moel...@hotmail.de wrote: Some more info: My DataProvider is using a Model of the type

Re: Resource Caching in 1.5.

2012-02-24 Thread Igor Vaynberg
package resource references should not have anticache appended, please create a quickstart. -igor On Fri, Feb 24, 2012 at 6:39 AM, Jürgen Lind juergen.l...@iteratec.de wrote: Hi, my migration to Wicket 1.5. is progressing, but there are still some unresolved issues. Currently, I am trying

Re: Resource Caching in 1.5.

2012-02-24 Thread Igor Vaynberg
actually, did you override LabelIconPanel#newImageComponent()? in there i see code to prevent anticache... return new Image(componentId) { @Override protected boolean shouldAddAntiCacheParameter() {

Re: Resource Caching in 1.5.

2012-02-24 Thread Jürgen Lind
Thx Igor, that was indeed the right call... Not it works as expected... J. On 24.02.2012 17:03, Igor Vaynberg wrote: actually, did you override LabelIconPanel#newImageComponent()? in there i see code to prevent anticache... return new Image(componentId) {

UploadProgressBar not updating with with ajaxbutton form submit

2012-02-24 Thread bad boy
Hi  When I submit the form with ajax button, the progress upload  bar is not getting  updated with progress. When I submit the same file with the non ajax button , the progress bar gets updated correctly. The file is uploaded correctly in both cases. I have configure the  webrequest in the

ExternalLink close modalWindow

2012-02-24 Thread DuneBug
I have a modal window with links, the links need to open a page in a new browser window, and close the modal window in the current window. This works fine with an ajaxLink with this onClick function EXCEPT THAT, it triggers browser pop-up blocking. @Override public void

Exception (Header was already written to response!) when setting response page in IRequestCycleListener

2012-02-24 Thread Neil Curzon
Hi all, We've been using an IRequestCycleListener in order to redirect to a certain page for all requests if certain conditions are met. We're finding that it's giving an exception in 1.5.4: java.lang.IllegalStateException: Header was already written to response! at

Re: Performance optimization

2012-02-24 Thread Per
Hi Martin, some of the things we did was (as mentioned by others) to generate HTML, this saved a lot of memory. But also to look really hard at the component tree and decide if everything was needed *all the time*. For instance, we had plenty of AJAX links that were rarely used (5 per row or so).

Re: Performance optimization

2012-02-24 Thread Per
Martin Makundi wrote The problem is that the SERIALIZATION takes time. So it does not help to ZIP AFTER serialization... Well, if you really only have one page in your session, and that page's serialisation is killing you, then you're right. But if you have multiple page versions, and

AjaxFallbackDefaultDataTable selected row color

2012-02-24 Thread pkc
Is there a way to highlight the selected row after clicking on a link in a DataTable cell? public final class ColumnList extends ArrayListIColumnlt;QuikViewEnv { public ColumnList() { add(new AbstractColumnQuikViewEnv(new ModelString(Environment), name){

Re: Performance optimization

2012-02-24 Thread Martin Makundi
For instance, we had plenty of AJAX links that were rarely used (5 per row or so). We decided to make them load on demand only (click for admin actions). Yeah, we did this too. some of the things we did was (as mentioned by others) to generate HTML, this saved a lot of memory. But Also,

Re: Performance optimization

2012-02-24 Thread Martin Makundi
@Per I wrote a blogpost over here: http://www.small-improvements.com/blog/technical/tuning-wicket-session-size Did you try this approach: if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request ? ** Martin

RE: Performance optimization

2012-02-24 Thread Chris Colman
The advice to try a different serializer is spot on. Serialize any object tree to file using Java's standard serializer and then open that file in a binary editor and then you'll see why the standard Java serialization stream takes a surprisingly large amount of bytes to store each object. I had

How to use autoAdd?

2012-02-24 Thread Martin Makundi
if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request I tried to google for an example of using autoAdd, but did not find anything solid. How would this be used to have a component (for example a label) autoAdded so that it

Re: Performance optimization

2012-02-24 Thread Martin Makundi
@Per about http://www.small-improvements.com/blog/technical/tuning-wicket-session-size You say If condition A is met, show label A. If not, use setVisible(false) to hide it. Combine that with Enclosures... Trouble is, while the hidden component doesn't show up in the markup, it's still part of