Re: Erase Previous Error Messages in Feedback Panel after Download

2011-02-21 Thread Gabriel Landon

Eugene,

If you use an AjaxLink, the validators won't be trigered.

Instead, you must use an AjaxButton like that :

yourForm.add(new AjaxButton("submitMe") {
protected void onSubmit(final AjaxRequestTarget varTarget, final Form
varForm) {
 yourAjaxDownload.initiate(varTarget);
}
protected void onError(final AjaxRequestTarget varTarget, final Form
varForm) {
 super.onError(varTarget, varForm);
 varTarget.addComponent(yourFeedbackPanel);
}
});


Regards,

Gabriel
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Erase-Previous-Error-Messages-in-Feedback-Panel-after-Download-tp3311648p3317941.html
Sent from the Users forum 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



CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit

2011-02-21 Thread eugenebalt

When I was doing the Form onSubmit() to do my file download, the
CheckBoxMultipleChoice.getInput() was returning correct input selections
from my checkbox list. (I have a CheckBoxMultipleChoice field in my form.)

As soon as I switched to the AjaxDownload (which does the download +
FeedbackPanel refresh), CheckBoxMultipleChoice.getInput() started returning
NULL. Any ideas what's going on here. Thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3317829.html
Sent from the Users forum 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: Text after input field

2011-02-21 Thread Alexander Morozov

Try this

textField.add(new AbstractBehavior() {

 public void onRendered(Component component) {
   component.getResponse().write("text after text input");
 }

});

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Text-after-input-field-tp3317381p3317612.html
Sent from the Users forum 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: Problems with continueToOriginalDestination?

2011-02-21 Thread N. Metzger

I solved my problem (not sure if that applies to yours). For OC4J I need my
web.xml to use the servlet configuration whereas for weblogic I use the
filter configuration. Now everything works as intended.

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problems-with-continueToOriginalDestination-tp3172277p3317581.html
Sent from the Users forum 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 pages created by guice

2011-02-21 Thread Martin Grigorov
Take a look at http://code.google.com/p/jolira-tools/wiki/guicier
There is an extended
integration with Guice.

On Mon, Feb 21, 2011 at 5:16 PM, Dan Griffin  wrote:

> Sorry for spamming, but I remembered another thing I would like to ask
> related to this. The reason why I need to inject a page is because I would
> like to use guice AOP feature to wrap an interceptor around wicket pages. If
> you can recommend another way to do that , it would be helpful as well. I
> did a quick scan through wicket documentation, but couldn`t find anything
> useful. Maybe I missed something?
>
> Време: 21.02.2011. 13:31, Dan Griffin пише:
>
>  Hi all,
>>
>> I have guice integrated in my wicket app, and it worked fine until I tried
>> to inject a page, when I received
>>
>> java.lang.IllegalArgumentException: Protected method:
>> checkHierarchyChange(Lorg/apache/wicket/Component;)
>>
>> Now, I assume this is because of guice integration pitfall <
>> https://cwiki.apache.org/WICKET/guice-integration-pitfall.html>, as I
>> clearly cannot use interfaces here, but the proposed solution (with
>> deprecated protected no-arg constructor) doesn`t help me here. Any idea how
>> to get around this?
>>
>> Thanks in advance,
>> Dan
>>
>>
>


Re: Wicket pages created by guice

2011-02-21 Thread Dan Griffin
Sorry for spamming, but I remembered another thing I would like to ask 
related to this. The reason why I need to inject a page is because I 
would like to use guice AOP feature to wrap an interceptor around wicket 
pages. If you can recommend another way to do that , it would be helpful 
as well. I did a quick scan through wicket documentation, but couldn`t 
find anything useful. Maybe I missed something?


Време: 21.02.2011. 13:31, Dan Griffin пише:

Hi all,

I have guice integrated in my wicket app, and it worked fine until I 
tried to inject a page, when I received


java.lang.IllegalArgumentException: Protected method: 
checkHierarchyChange(Lorg/apache/wicket/Component;)


Now, I assume this is because of guice integration pitfall 
, as I 
clearly cannot use interfaces here, but the proposed solution (with 
deprecated protected no-arg constructor) doesn`t help me here. Any 
idea how to get around this?


Thanks in advance,
Dan





Re: Problems with continueToOriginalDestination?

2011-02-21 Thread N. Metzger

Hi Daniel,

I have seen it, too. Strangely enough it worked with 1.4.15 on my last
deploy. Now I added Guice in the mix and the redirect works when I deploy
with weblogic. When I deploy with OC4J it fails and redirects me to the
homepage.

Sorry I'm not much help here, but maybe someone else has an idea.

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problems-with-continueToOriginalDestination-tp3172277p3317470.html
Sent from the Users forum 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: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-21 Thread Per


Hi,

I am measuring it in a profiler after the request has been completed, 
but thanks for the hint.

In case anyone else is reading, I have been playing with the 
onComponentTag() and onComponentTagBody() methods on the weekend, and 
I've been able to reduce my page sizes significantly. Admittedly, this 
comes at the expense of flexibility and beauty, but I'm only doing this 
in the inner loops of very few pages, so who cares :-)  Will write a 
summary with a couple of hints once I stop drowning in work.

Cheers,
Per


> > Reading in the other thread that a session size of 100K or less
> > is achievable, I'll admit defeat now: I have not been able to shrink 
> some of
> > my pages(!) to less than 200K, not to mention the sessions. Despite 
> LDMs,
> > CompoundPropertyModels, and no, there are no domain objects in 
> there, and no
> > finals.
>
> How are you measuring this? Keep in mind that if you calculate when a
> request is still processing, you might still be measuring temporary
> data (e.g. for LoadableDetachableModel, you would also measure the
> transientModelObject, and same for any proxies (Spring/ Guice) you
> might use.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [hidden email] 
> 
> For additional commands, e-mail: [hidden email] 
> 
>
>
>
> 
> If you reply to this email, your message will be added to the 
> discussion below:
> http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3316743.html
>  
>
> To unsubscribe from Just 100K per session? That would be my dream come 
> true! (Anyone here who has tuned session size before?), click here 
> .
>  
>


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3317403.html
Sent from the Users forum 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



Wicket pages created by guice

2011-02-21 Thread Dan Griffin

Hi all,

I have guice integrated in my wicket app, and it worked fine until I 
tried to inject a page, when I received


java.lang.IllegalArgumentException: Protected method: 
checkHierarchyChange(Lorg/apache/wicket/Component;)


Now, I assume this is because of guice integration pitfall 
, as I 
clearly cannot use interfaces here, but the proposed solution (with 
deprecated protected no-arg constructor) doesn`t help me here. Any idea 
how to get around this?


Thanks in advance,
Dan



requestCycle.getRequestTarget() not giving the target

2011-02-21 Thread Tejash Tarun
Hi,

I have this scenario:
1) AjaxTabbePanel has three tabs.
2) Go to 2nd tab
3) Come back to 1st tab
4) one link in 1st tab will take us to some page
5) Click back button of the browser => we wil come back to the page with the
AjaxTabbedPanel#1st tab
6) Now click on 2nd tab, then

AbstractRequestCycleProcessor#processEvents(requestCycle) doesn't get a
call,
instead RedirectPageRequestTarget#processEvents(requestCycle) gets the call.

This happens all the time barring a few time when it greets me with
following stack trace:

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = link]]

 at org.apache.wicket.Component.getPage(Component.java:1819)

 at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:284)

 at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)

 at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)

 at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)

 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
...


Can anybody tell what and where is going wrong ??


Thanks in advance,
Tejash


Re: how to access component values within a dynamic table?

2011-02-21 Thread Hans Lesmeister
As already mentioned before: you don't have to care about it. Wicket  
does.


The only thing you do is setting up the property models.

In onSubmit you read the model resp the original list. The data  
entered by the user will be there. Try it!


Am 21.02.2011 um 09:00 schrieb hrbaer :



No idea how to deal with multiple panels within a listView (because  
of the

"name clash")?
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-access-component-values-within-a-dynamic-table-tp3310939p3316929.html
Sent from the Users forum 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: how to access component values within a dynamic table?

2011-02-21 Thread hrbaer

No idea how to deal with multiple panels within a listView (because of the
"name clash")?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-access-component-values-within-a-dynamic-table-tp3310939p3316929.html
Sent from the Users forum 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