On 04.06.2012 at 13:21 hfriederichs wrote:
>
> Thomas Götz-2 wrote
>>
>> As an alternative, you could use an AjaxLink and push the popup-opener JS
>> to teh frontend, then you could have your decision logic (wether to open
>> it or not) in the backend (Wicket layer).
>>
>>
>
> But, how would
Thomas Götz-2 wrote
>
> As an alternative, you could use an AjaxLink and push the popup-opener JS
> to teh frontend, then you could have your decision logic (wether to open
> it or not) in the backend (Wicket layer).
>
>
But, how would you do that?
if (condition) {
info("Do this first"
What about the AjaxLink alternative I already suggested?
-Tom
On 04.06.2012 at 09:35 hfriederichs wrote:
> No suggestions? Anyone?
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-ma
No suggestions? Anyone?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Conditional-Popup-tp4649649p4649706.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
Martin Grigorov-4 wrote
>
> try with:
>
> if (condition) { setPopupSettings(nonNull) } else { setPopupSettings(null)
> }
>
>
This doesn't work. The condition has to be checked every time the link is
clicked, so within the onCLick().
setPopupSettings(null) gives the current page as popup.
May
I thought you might have some condition that you could evaluate in JS. This is
the reason I asked for a short quickstart, it simply eases discussion.
-Tom
On 01.06.2012 at 19:19 hfriederichs wrote:
> I'm sorry, but I don't understand your code. My condition is in the
> Java/Wicket-layer, ho
Thomas Götz-2 wrote
>
>
> PopupSettings popupSettings = new PopupSettings() {
> @Override
> public String getPopupJavaScript() {
> return "if(!condition) return false; " +
> super.getPopupJavaScript();
> }
> };
>
>
I'm sorry, but I don't understand your code. My condition
As an alternative, you could use an AjaxLink and push the popup-opener JS to
teh frontend, then you could have your decision logic (wether to open it or
not) in the backend (Wicket layer).
-Tom
-
To unsubscribe, e-mail: u
As I suppose that you want to create a Javascript popup (i.e. a Wicket Link
with PopupSettings), you need to decide wether to open the popup or not in the
frontend (Javascript layer), not in the onClick() of the Link. So you could try
something like this:
PopupSettings popupSettings = new Popup
try with:
if (condition) { setPopupSettings(nonNull) } else { setPopupSettings(null) }
On Fri, Jun 1, 2012 at 5:40 PM, hfriederichs wrote:
> For other questions I had earlier on, I created quickstarts, but, since I'm
> working on a very complex application, I couldn't reproduce the problem in a
For other questions I had earlier on, I created quickstarts, but, since I'm
working on a very complex application, I couldn't reproduce the problem in a
quickstart. I spent hours and hours copying more and more of my application
into the quickstart, but to no avail.
So again, it's a simple questio
To create a quickstart normally costs me around 5-7 seconds (copy/paste is my
friend) ;-)
Isolating the problem is another question, right. But in your case this sound
rather trivial. In my experience a lot of problems are solved easyly by
creating a quickstart, in most cases because then I real
A quick-start costs me one or two hours; in the end, maybe I will. But I
think this is a reasonably simple question, so I'll await some
straightforward suggestions first.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Conditional-Popup-tp4649649p4649651.html
Sent from
Could you please provide a quickstart or post the interesting HTML and Java
snippets?
-Tom
On 01.06.2012 at 15:24 hfriederichs wrote:
> Hello,
>
> I have a wicket PopupPage that answers a wicket link, but I don't want it to
> popup when certain conditions are not met. In that case I want a
14 matches
Mail list logo