Re: Vote/Veto: Should I put 1.5 RC1 on App Engine into production this week?

2011-03-01 Thread Fernando O.
Interesting, I'm also migrating to Wicket 1.5 with GAE

First a comment: In addition to what you mention I had to change the default
HeaderRenderStrategy to
org.apache.wicket.markup.renderStrategy.ParentFirstHeaderRenderStrategy
 since it's rendering the child headers before parents and that doesn't work
for me. I tried reverting the call order in renderHead() but didn't work.

Now a question:
Did you use Ajax? .

I'm getting the following error and I don't know what could be the problem
(I'm a wicket newbie :S )

Last cause: STREAMED
WicketMessage: Method onRequest of interface
org.apache.wicket.behavior.IBehaviorListener targeted at
org.apache.wicket.ajax.markup.html.form.AjaxButton$1@161b0bc on
component [ [Component id = postCommentButton]] threw an exception

Root cause:

java.lang.IllegalStateException: STREAMED
 at org.mortbay.jetty.Request.getReader(Request.java:935)
 at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.generatePostParameters(ServletWebRequest.java:250)
 at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getPostRequestParameters(ServletWebRequest.java:294)
 at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.access$000(ServletWebRequest.java:60)
 at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest$1.getParameterValues(ServletWebRequest.java:331)
 at 
org.apache.wicket.request.parameter.CombinedRequestParametersAdapter.getParameterValues(CombinedRequestParametersAdapter.java:88)
 at 
org.apache.wicket.markup.html.form.FormComponent.getInputAsArray(FormComponent.java:702)
 at 
org.apache.wicket.markup.html.form.FormComponent.inputChanged(FormComponent.java:871)
 at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1045)
 at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1041)
 at 
org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:274)
 at 
org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:263)
 at 
org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:263)
 at org.apache.wicket.util.visit.Visits.visitPostOrder(Visits.java:246)
 at 
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrder(FormComponent.java:344)
 at 
org.apache.wicket.markup.html.form.Form.visitFormComponentsPostOrder(Form.java:980)
 at org.apache.wicket.markup.html.form.Form.inputChanged(Form.java:1039)
 at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:706)
 at 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:148)
 at 
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166)
 at 
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
 at java.lang.reflect.Method.invoke(Method.java:616)
 at 
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
 at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:259)
 at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:240)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:178)
 at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:157)
 at 
org.apache.wicket.request.RequestHandlerStack.executeRequestHandler(RequestHandlerStack.java:84)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:205)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:247)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)


Thanks!


On Sun, Feb 13, 2011 at 4:25 PM, Per p...@hamburg.de wrote:


 Hi Martin,

 yes, I used your utility, it was great to get me started!  Funny enough,
 I had prepared several questions (which I then ended up answering by
 myself and never posted), and in each of them I was referring to your
 utility. Almost asked you directly, but figured it out before I did.
 I'll make sure it's mentioned in the overall summary once I am through
 with this.


 Two items maybe worth mentioning already, since you asked: If you use
 the always-on feature in GAE, there's a much higher chance that your
 session gets deserialised on a node that was not in use yet. You get an
 exception like this:


 Caused by: java.lang.IllegalStateException: PageManager for application
 quickstart not registered.
 at

 org.apache.wicket.page.MyPersistentPageManager$SessionEntry.getPageStore(MyPersistentPageManager.java:117)
 at

 org.apache.wicket.page.MyPersistentPageManager$SessionEntry.readObject(MyPersistentPageManager.java:292)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   

Removing cache in Wicket 1.4

2011-02-27 Thread Fernando O.
Hi All
I've been trying to find the answer to my problems in Google but I couldn't
find it.

I'm using wicket 1.4 rc2  (yeah, I suppose I should migrate to 1.5) but
anyway my problem is that I don't want wicket to cache my pages. Is there
any way to do this?
In fact what I would love is to remove the ugly URLs that wicket creates
:S

Thanks


Re: Removing cache in Wicket 1.4

2011-02-27 Thread Fernando O.
thanks!

On Sun, Feb 27, 2011 at 3:05 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Ugly URLs are not related to the pages cache.

 Use HybridUrlCodingStrategy to make the URLs more pretty.
 Or use Wicket 1.5 - see
 http://www.wicket-library.com/wicket-examples/mappers

 On Sun, Feb 27, 2011 at 7:56 PM, Fernando O. fot...@gmail.com wrote:

  Hi All
  I've been trying to find the answer to my problems in Google but I
 couldn't
  find it.
 
  I'm using wicket 1.4 rc2  (yeah, I suppose I should migrate to 1.5) but
  anyway my problem is that I don't want wicket to cache my pages. Is there
  any way to do this?
  In fact what I would love is to remove the ugly URLs that wicket
 creates
  :S
 
  Thanks
 



Newbie Question

2011-01-31 Thread Fernando O.
Hi All, how are you?

   I'm new in this list, actually I'm new to wicket and I'm trying to learn
it. So far I hadn't found any issues and it worked great until I came across
this anoying problem, I have as part of my html:
I wanted to add to a page a button with a text, on click the button hits the
sever, performs some action and it should remove the button from the page
(make it not visible)

I added:
a class=button wicket:id=ajaxbuttonlabel
wicket:id=button-text/label/a

and then In the java Page I have

(this code is inside a populateItem method from a ListView)
.
.
.
protected void populateItem(final ListItemPoll
item) {
  final AjaxLinkTest button = new
AjaxLinkTest(ajaxbutton, item.getModel()) {

public void onClick(AjaxRequestTarget target) {
//Do whatever I have
to do
System.out.println(works?);
this.setEnabled(false); //Also tried removing the label component,
setVisible(false)
}

};
 Label label = new Label(button-text, AText);
label.setOutputMarkupId(true);
button.add(label);
button.setOutputMarkupId(true);//these are desparates attemps to solve it
item.setOutputMarkupId(true);
button.setEnabled(!item.getModelObject().shouldBeDisabled()); //this works,
those that should be disabled do not show a button.
item.add(button);
  }
.
.


Any idea of what I'm doing wrong?

Thanks!


Re: Newbie Question

2011-01-31 Thread Fernando O.
Thanks!!! worked!

On Mon, Jan 31, 2011 at 9:50 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 onclick (target) { setvisible(false); target.add(this); }

 -igor

 On Mon, Jan 31, 2011 at 4:46 PM, Fernando O. fot...@gmail.com wrote:
  Hi All, how are you?
 
I'm new in this list, actually I'm new to wicket and I'm trying to
 learn
  it. So far I hadn't found any issues and it worked great until I came
 across
  this anoying problem, I have as part of my html:
  I wanted to add to a page a button with a text, on click the button hits
 the
  sever, performs some action and it should remove the button from the page
  (make it not visible)
 
  I added:
  a class=button wicket:id=ajaxbuttonlabel
  wicket:id=button-text/label/a
 
  and then In the java Page I have
 
  (this code is inside a populateItem method from a ListView)
  .
  .
  .
 protected void populateItem(final
 ListItemPoll
  item) {
   final AjaxLinkTest button = new
  AjaxLinkTest(ajaxbutton, item.getModel()) {
 
  public void onClick(AjaxRequestTarget target) {
 //Do whatever I
 have
  to do
  System.out.println(works?);
  this.setEnabled(false); //Also tried removing the label component,
  setVisible(false)
  }
 
  };
   Label label = new Label(button-text, AText);
  label.setOutputMarkupId(true);
  button.add(label);
  button.setOutputMarkupId(true);//these are desparates attemps to solve it
  item.setOutputMarkupId(true);
  button.setEnabled(!item.getModelObject().shouldBeDisabled()); //this
 works,
  those that should be disabled do not show a button.
  item.add(button);
   }
  .
  .
 
 
  Any idea of what I'm doing wrong?
 
  Thanks!
 

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