Re: closing a ModalWindow from a forms onSubmit?

2009-05-25 Thread Brill Pappin

Tried that :)
and it always seems to be null.

I switched to AjaxButtons, but the problem is that the are fired  
*after* the form submits, not before as a normal Button is.
I'm essentially trying to set a value on the form's model depending on  
which button was pressed, and then close the ModalWindow on successful  
submit.
There needs to be an easier way to do this... at the moment I'm  
starting to think I'm going to have to try and attache some javascript  
that will trigger pre-submit to set some sort of flag... but its  
getting very dirty.


- Brill


On 25-May-09, at 10:48 AM, Jeremy Thomerson wrote:

If all you're saying is that you need to do it from your form's  
onsubmit, do this:


AjaxRequestTarget art = AjaxRequestTarget.get();
if (art != null) {
modal.close(art);
}

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Brill Pappin 
Sent: Sunday, May 24, 2009 5:36 PM
To: users@wicket.apache.org
Subject: Re: closing a ModalWindow from a forms onSubmit?

I likely could but am trying to avoid that, because then I have to
call it for every button in the form (there are 4 now, all set a state
and allow the event to propagate to the forms onSubmit().
Is there no way to know the current context from the component itself?


- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:


Can you submit the form via ajax?

On May 24, 2009 2:08 PM, "Brill Pappin"  wrote:

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method
without the
AjaxRequestTarget?

- Brill




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





smime.p7s
Description: S/MIME cryptographic signature


Re: Wicket meeting in Amsterdam?

2009-05-25 Thread nino martinez wael
Ahh.. No problemo, I would'nt be able todo that..

2009/5/25 francisco treacy :
> Well, would be great Nino if you came over :)  But I was talking about
> a regular meetup...
>
> If not, there's Kings of Code in Amsterdam soon, seems interesting -
> not very Java-ish though.
>
> Anyone here going to that conference?
>
> Francisco
>
>
> 2009/5/20 nino martinez wael :
>> Although not an amsterdammer, I might be interested (if I get a budget
>> approval from my boss)..
>>
>> 2009/5/20 francisco treacy :
>>> Hi Linda,
>>>
>>> I am interested, whatever the nature of the event is (sessions, code
>>> reviews, social, etc).
>>>
>>> There's an existing wiki page but apparently this was lined up only
>>> for the meeting during the ApacheCon:
>>>
>>> http://cwiki.apache.org/WICKET/wicket-community-meetups-amsterdam.html
>>>
>>> Any other Amsterdamers interested in such a meetup?
>>>
>>> Francisco
>>>
>>>
>>> 2009/4/29 Linda van der Pal :
 Who would be interested in a meeting in Amsterdam? We talked about it 
 before
 in several discussions, but I thought it might attract more notice in it's
 own thread. And also what kind of meeting would you like it to be? (Social,
 unconference, sessions, code reviews, something else entirely?)

 Regards,
 Linda

 -
 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: DownloadLink

2009-05-25 Thread Douglas Ferguson
But how would this prevent the PageMap from getting blocked?

Would it be possible to somehow span a request that isn't tied to the same 
session i.e get the same behavior of a "non-wicket servlet" but still have it 
live inside the wicket application?

Douglas

-Original Message-
From: Alex Objelean [mailto:alex_objel...@yahoo.com] 
Sent: Monday, May 25, 2009 2:12 PM
To: users@wicket.apache.org
Subject: Re: DownloadLink


A shared resource can be added like this:

Application.get().getSharedResources().add("urlOfTheResource", new
WebResource() {
@Override
public IResourceStream getResourceStream() {
  return new PackageResourceStream(FlowPlayerPanel.class,
"ref/flowplayer-3.1.0.swf");
}
});

Instead of webResource, you can have another implementation of Resource
which suites your needs.

Alex Objelean



Douglas Ferguson-2 wrote:
> 
> I was just reading the javadoc for DownloadLink and it says that it 
> locks the PageMap, does this mean that the page becomes unresponsive 
> during the download?
> 
> It mentions using a "shared resource" as an alternative. Is there 
> example of this online somewhere?
> 
> Douglas
> 
> -
> 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/DownloadLink-tp23710131p23711709.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



:)

2009-05-25 Thread Иванов Дмитрий Валерьевич

надо с фонечкой также :)

--
С уважением, Иванов Дмитрий Валерьевич.
Ведущий специалист НСУИ,
ЗАО "ПРОГНОЗ",
тел.: (342) 240-36-63, доб. 578
ivan...@prognoz.ru, www.prognoz.ru

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

Re: DatePicker trouble under FireFox?

2009-05-25 Thread James Carman
Make sure adblock isn't messing things up.  I've seen that before
(maybe not with DatePicker, but

On Mon, May 25, 2009 at 11:23 AM, Tom Tamulewicz  wrote:
>
>
> I'm running 1.4rc4 and have a DatePicker that works fine under IE6 and 
> Chrome, but doesn't work under FireFox (3).  The date icon shows OK, just 
> nothing happens when you click on it.  The usage is on a pretty simple page 
> within a form.
>
> Any special tricks to get this working under FireFox?
>
> Thanks.
>
>
>
>
>
>
> _
> Hotmail® has a new way to see what's up with your friends.
> http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009

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



Re: DownloadLink (Javadoc)

2009-05-25 Thread Steve Swinsburg

Hi David,

You can get the Javadoc either by building it yourself from source via  
'mvn javadoc:javadoc' or by issuing 'mvn eclipse:eclipse - 
DdownloadJavadocs=true' which will get the Javadoc and adjust your  
Eclipse classpath to link it up.



cheers,
Steve


On 25/05/2009, at 10:54 PM, David Brown wrote:

Hello, it just so happens I have been looking for Wicket Javadoc.  
the Wicket jar I have contains no javadoc. Please reply with the  
source of the Wicket javadoc you are referencing. Please advise,  
David.


There are 10 kinds of people in this world: those who understand  
binary and those who don’t (Valid only for 2's complement).


- Original Message -
From: "Douglas Ferguson" 
To: users@wicket.apache.org
Sent: Monday, May 25, 2009 12:11:06 PM GMT -06:00 US/Canada Central
Subject: DownloadLink

I was just reading the javadoc for DownloadLink and it says that it
locks the PageMap, does this mean that the page becomes unresponsive
during the download?

It mentions using a "shared resource" as an alternative. Is there
example of this online somewhere?

Douglas

-
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





smime.p7s
Description: S/MIME cryptographic signature


nested onclick events

2009-05-25 Thread Aaron Dixon
If there is no Wicket-centric answer to this, it's a Javascript question.

I have an AjaxEventBehavior("onclick") behaviored attached to a
wicket-rendered table/tr.

I am trying to render html links within each rendered item, and not
have the wicket-onclick behavior executed if the user clicks on a link
within the itm.

The typical solution I found online is some variation of the following
used for the onclick property of the generated links:

e = window.event; e.cancelBubble = true; e.returnValue = false;
if (e.stopPropagation) { e.stopPropagation(); e.preventDefault(); }
return false;

However this isn't working, and it doesn't seem Wicket-centric either.

Any experience out there with this event bubble-up problem?

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



Stump the WIA newbie

2009-05-25 Thread David Brown
Hello Wicket dev, gurus, users and mortals, I am on page 123 of the wia.pdf. 
The 5.8 listing displays an exercise to migrate the: new Link() to: new 
AjaxFallbackLink() for both the Add and Delete links. I was successful on both 
points mentioned in the previous sentence. However, I was not successful on the 
part left as an exercise for the reader: migrate the new Label() for the Total 
to some presumably documented Ajax method. The particulars follow. Please 
advise (or hint), David.

Wicket: WIA 1.3.6
Eclipse: 3.4.2
WIA: listing 5.8.
Build: maven







Arguing with an engineer is like wrestling with a pig in the mud; after a while 
you realize you are muddy and the pig is enjoying it.

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



Re: DownloadLink

2009-05-25 Thread David Brown
Hello, it just so happens I have been looking for Wicket Javadoc. the Wicket 
jar I have contains no javadoc. Please reply with the source of the Wicket 
javadoc you are referencing. Please advise, David.

There are 10 kinds of people in this world: those who understand binary and 
those who don’t (Valid only for 2's complement).

- Original Message -
From: "Douglas Ferguson" 
To: users@wicket.apache.org
Sent: Monday, May 25, 2009 12:11:06 PM GMT -06:00 US/Canada Central
Subject: DownloadLink

I was just reading the javadoc for DownloadLink and it says that it 
locks the PageMap, does this mean that the page becomes unresponsive 
during the download?

It mentions using a "shared resource" as an alternative. Is there 
example of this online somewhere?

Douglas

-
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: AbortWithWebErrorCodeException(404) results in blank page

2009-05-25 Thread Johan Compagner
Your really just have to digg a bit into the container what it exactly does

But  you want that the conatainer redirects to a /404 url and that is
again served by wicket? As a page that is mounted under /404?

Is the url becoming /404? What happens if you just ask for that?

On 25/05/2009, Sergey Podatelev  wrote:
> Okay, at least any pointers why this might happen are appreciated.
>
> On Sat, May 23, 2009 at 10:03 PM, Sergey Podatelev
>  wrote:
>> I'm using tomcat, web.xml has the following configuration:
>>
>> ...
>> 
>>    Wicket Filter
>>    /*
>>    REQUEST
>>    ERROR
>>  
>>  
>>    404
>>    /404
>>  
>> ...
>>
>> /404 is mounted to ErrorNotFoundPage.class
>>
>> So, when I try to access something like localhost:8084/MyApp/fhdwef134,
>> I get ErrorNotFoundPage.
>>
>> However, during rendering of a particular bookmarkable page, I throw
>> AbortWithWebErrorCodeException(404) if the UUID provided in query
>> string is not referencing to any object in repository.
>> Instead of ErrorNotFoundPage, I'm getting a blank page.
>>
>> What am I doing wrong?
>>
>> --
>> sp
>>
>
>
>
> --
> sp
>
> -
> 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: Generic BookmarkablePage

2009-05-25 Thread James Carman
Yes, of course.  My bad.  I didn't understand what you meant.  Sorry.

On Mon, May 25, 2009 at 11:38 AM, Igor Vaynberg  wrote:
> no, you cannot instantiate , but you can instantiate  and
> assign it to  as per my example below
>
> -igor
>
> On Mon, May 25, 2009 at 6:05 AM, James Carman
>  wrote:
>> On Sun, May 24, 2009 at 11:16 PM, Igor Vaynberg  
>> wrote:
>>> final Link link = new BookmarkablePageLink("a-contact",
>>>
>>> if you are not intending on using the model use  which will help enforce 
>>> that
>>
>> Care to elaborate on that?  How does  assure that folks aren't
>> going to use the model better than ?  You can't instantiate a
>> BookmarkablePageLink.
>>
>> -
>> 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: HTTP pseudo streaming for Wicket

2009-05-25 Thread Matej Knopp
I'm not sure why there should be any logic regarding mp4 on the
server. I don't know how exactly flash mp4 players work but the player
should be able to request the exact byte offset and length from the
server. Content-Range header basically provides random access to
remote files which should be enough for streaming playback with
seeking.

-Matej

On Mon, May 25, 2009 at 10:00 PM, Kaspar Fischer  wrote:
> Sorry: the link I gave is already outdated; a new version is available:
>
>  http://h264.code-shop.com/trac/wiki
>
> P.S. Unfortunately I need a solution for Tomcat as I am hosting at a Tomcat
> provider.
>
> On 25.05.2009, at 22:57, Kaspar Fischer wrote:
>
>> Thanks, Matej, for the pointer. I have not read a lot about MP4 Pseudo
>> Streaming but as far as I currently understand it, the server needs to
>> analyse the MP4 file (its meta data, actually) in order to know which part
>> of the file to return -- the latter task can then be done using you
>> Streamer.java. For instance,
>>
>>
>>  http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Introduction-Version1
>>
>> analyses the MP4 file in order to get from a time-input ("start playing at
>> 00:01:23") to a file offset. Does anymore have or know of Java code/port for
>> the MP4/h264 pseudo-streaming and is willing to share it?
>>
>> Kaspar
>>
>> On 13.04.2009, at 21:10, Matej Knopp wrote:
>>
>>> If you want to support http streaming you need to implements
>>> servlet/filter that supports Content-Range and Accept-Range headers.
>>> You can take a look at
>>>
>>> http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
>>> to get the idea.
>>>
>>> -Matej
>>>
>>> On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
>>>  wrote:

 I think lighttpd does this - although I've never personally used it.  I
 just
 remember it form some research I was doing on a similar subject.
 http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd

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



 On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer  wrote:

> I need to stream H264 .mp4 movies to a Flash video player (JW Player)
> and
> want to support HTTP pseudo streaming, i.e., the user should be able to
> seek
> within the movie. Does anybody know of a Wicket implementation for
> this,
> something like xmoov-php [1] for Java with a corresponding Wicket
> component?
>
> The video itself lies in a JackRabbit repository, not directly on the
> file
> system.
>
> Red5 [2] offers streaming and a lot more. However, I need a solution
> that
> also works in low memory situations and from the Red5 specs [2] it
> seems
> that this might be difficult.
>
> Regards,
> Kaspar
> --
>
> [1] http://xmoov.com/xmoov-php/
> [2] http://code.google.com/p/red5/
> [3]
>
> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>
> -
> 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: HTTP pseudo streaming for Wicket

2009-05-25 Thread Kaspar Fischer

Sorry: the link I gave is already outdated; a new version is available:

  http://h264.code-shop.com/trac/wiki

P.S. Unfortunately I need a solution for Tomcat as I am hosting at a  
Tomcat provider.


On 25.05.2009, at 22:57, Kaspar Fischer wrote:

Thanks, Matej, for the pointer. I have not read a lot about MP4  
Pseudo Streaming but as far as I currently understand it, the server  
needs to analyse the MP4 file (its meta data, actually) in order to  
know which part of the file to return -- the latter task can then be  
done using you Streamer.java. For instance,


 http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Introduction-Version1

analyses the MP4 file in order to get from a time-input ("start  
playing at 00:01:23") to a file offset. Does anymore have or know of  
Java code/port for the MP4/h264 pseudo-streaming and is willing to  
share it?


Kaspar

On 13.04.2009, at 21:10, Matej Knopp wrote:


If you want to support http streaming you need to implements
servlet/filter that supports Content-Range and Accept-Range headers.
You can take a look at
http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
to get the idea.

-Matej

On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
 wrote:
I think lighttpd does this - although I've never personally used  
it.  I just

remember it form some research I was doing on a similar subject.
http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd

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



On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer   
wrote:


I need to stream H264 .mp4 movies to a Flash video player (JW  
Player) and
want to support HTTP pseudo streaming, i.e., the user should be  
able to seek
within the movie. Does anybody know of a Wicket implementation  
for this,
something like xmoov-php [1] for Java with a corresponding Wicket  
component?


The video itself lies in a JackRabbit repository, not directly on  
the file

system.

Red5 [2] offers streaming and a lot more. However, I need a  
solution that
also works in low memory situations and from the Red5 specs [2]  
it seems

that this might be difficult.

Regards,
Kaspar
--

[1] http://xmoov.com/xmoov-php/
[2] http://code.google.com/p/red5/
[3]
http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5

-
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: HTTP pseudo streaming for Wicket

2009-05-25 Thread Kaspar Fischer
Thanks, Matej, for the pointer. I have not read a lot about MP4 Pseudo  
Streaming but as far as I currently understand it, the server needs to  
analyse the MP4 file (its meta data, actually) in order to know which  
part of the file to return -- the latter task can then be done using  
you Streamer.java. For instance,


  http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Introduction-Version1

analyses the MP4 file in order to get from a time-input ("start  
playing at 00:01:23") to a file offset. Does anymore have or know of  
Java code/port for the MP4/h264 pseudo-streaming and is willing to  
share it?


Kaspar

On 13.04.2009, at 21:10, Matej Knopp wrote:


If you want to support http streaming you need to implements
servlet/filter that supports Content-Range and Accept-Range headers.
You can take a look at
http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
to get the idea.

-Matej

On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
 wrote:
I think lighttpd does this - although I've never personally used  
it.  I just

remember it form some research I was doing on a similar subject.
http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd

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



On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer   
wrote:


I need to stream H264 .mp4 movies to a Flash video player (JW  
Player) and
want to support HTTP pseudo streaming, i.e., the user should be  
able to seek
within the movie. Does anybody know of a Wicket implementation for  
this,
something like xmoov-php [1] for Java with a corresponding Wicket  
component?


The video itself lies in a JackRabbit repository, not directly on  
the file

system.

Red5 [2] offers streaming and a lot more. However, I need a  
solution that
also works in low memory situations and from the Red5 specs [2] it  
seems

that this might be difficult.

Regards,
Kaspar
--

[1] http://xmoov.com/xmoov-php/
[2] http://code.google.com/p/red5/
[3]
http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5

-
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: DownloadLink

2009-05-25 Thread Alex Objelean

A shared resource can be added like this:

Application.get().getSharedResources().add("urlOfTheResource", new
WebResource() {
@Override
public IResourceStream getResourceStream() {
  return new PackageResourceStream(FlowPlayerPanel.class,
"ref/flowplayer-3.1.0.swf");
}
});

Instead of webResource, you can have another implementation of Resource
which suites your needs.

Alex Objelean



Douglas Ferguson-2 wrote:
> 
> I was just reading the javadoc for DownloadLink and it says that it 
> locks the PageMap, does this mean that the page becomes unresponsive 
> during the download?
> 
> It mentions using a "shared resource" as an alternative. Is there 
> example of this online somewhere?
> 
> Douglas
> 
> -
> 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/DownloadLink-tp23710131p23711709.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: Wicket meeting in Amsterdam?

2009-05-25 Thread francisco treacy
Well, would be great Nino if you came over :)  But I was talking about
a regular meetup...

If not, there's Kings of Code in Amsterdam soon, seems interesting -
not very Java-ish though.

Anyone here going to that conference?

Francisco


2009/5/20 nino martinez wael :
> Although not an amsterdammer, I might be interested (if I get a budget
> approval from my boss)..
>
> 2009/5/20 francisco treacy :
>> Hi Linda,
>>
>> I am interested, whatever the nature of the event is (sessions, code
>> reviews, social, etc).
>>
>> There's an existing wiki page but apparently this was lined up only
>> for the meeting during the ApacheCon:
>>
>> http://cwiki.apache.org/WICKET/wicket-community-meetups-amsterdam.html
>>
>> Any other Amsterdamers interested in such a meetup?
>>
>> Francisco
>>
>>
>> 2009/4/29 Linda van der Pal :
>>> Who would be interested in a meeting in Amsterdam? We talked about it before
>>> in several discussions, but I thought it might attract more notice in it's
>>> own thread. And also what kind of meeting would you like it to be? (Social,
>>> unconference, sessions, code reviews, something else entirely?)
>>>
>>> Regards,
>>> Linda
>>>
>>> -
>>> 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: AbortWithWebErrorCodeException(404) results in blank page

2009-05-25 Thread Sergey Podatelev
Okay, at least any pointers why this might happen are appreciated.

On Sat, May 23, 2009 at 10:03 PM, Sergey Podatelev
 wrote:
> I'm using tomcat, web.xml has the following configuration:
>
> ...
> 
>    Wicket Filter
>    /*
>    REQUEST
>    ERROR
>  
>  
>    404
>    /404
>  
> ...
>
> /404 is mounted to ErrorNotFoundPage.class
>
> So, when I try to access something like localhost:8084/MyApp/fhdwef134,
> I get ErrorNotFoundPage.
>
> However, during rendering of a particular bookmarkable page, I throw
> AbortWithWebErrorCodeException(404) if the UUID provided in query
> string is not referencing to any object in repository.
> Instead of ErrorNotFoundPage, I'm getting a blank page.
>
> What am I doing wrong?
>
> --
> sp
>



-- 
sp

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



Re: Generic BookmarkablePage

2009-05-25 Thread Luther Baker
Just exploring this a bit deeper ... these all end up doing the same thing.

final Link link = new BookmarkablePageLink("a-title",
Home.class);
this.add(link);
final IModel m = link.getModel();
final Object o = m.getObject();

final Link link = new BookmarkablePageLink("a-title",
Home.class);
this.add(link);
final IModel m = link.getModel();
final Object o = m.getObject();

final Link link = new BookmarkablePageLink("a-title",
Home.class);
this.add(link);
final IModel m = link.getModel();
final Object o = m.getObject();

This breaks for obvious reasons:

final Link link = new BookmarkablePageLink("a-title",
Home.class);
this.add(link);
final IModel m = link.getModel();
final Object o = m.getObject();

But this DOES work (incorrectly with respect to intent):

final Link link = new BookmarkablePageLink("a-title",
Home.class);
this.add(link);
*final IModel m = (IModel) link.getModel();*
final Object o = m.getObject();

And this is broken (correctly - it doesn't compile):

final Link link = new BookmarkablePageLink("a-title",
Home.class);
this.add(link);
final IModel m = (IModel) link.getModel();
final Object o = m.getObject();


Using  allows me to cast the model. Using  does not allow me to
cast. Now that I understand the idea here, I think technically, Void is
probably a better choice here. Does that make sense Igor?

Implementation aside, conceptually and with respect to intent, I also think
 seems a little more final and resolute - an explicit choice by the
developer -- whereas  seems to convey ... "ah, I need to keep my options
open :) Maybe I'll need to cast this later." Indeed, that is what prompted
me to do the test above.

For what its worth, I'd never seen  before this thread. Thanks Igor
and James.

Thanks,

-Luther


Igor's perspective -
One 'self-documenting' part


On Mon, May 25, 2009 at 10:38 AM, Igor Vaynberg wrote:

> no, you cannot instantiate , but you can instantiate  and
> assign it to  as per my example below
>
> -igor
>
> On Mon, May 25, 2009 at 6:05 AM, James Carman
>  wrote:
> > On Sun, May 24, 2009 at 11:16 PM, Igor Vaynberg 
> wrote:
> >> final Link link = new BookmarkablePageLink("a-contact",
> >>
> >> if you are not intending on using the model use  which will help
> enforce that
> >
> > Care to elaborate on that?  How does  assure that folks aren't
> > going to use the model better than ?  You can't instantiate a
> > BookmarkablePageLink.
> >
> > -
> > 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
>
>


DownloadLink

2009-05-25 Thread Douglas Ferguson
I was just reading the javadoc for DownloadLink and it says that it 
locks the PageMap, does this mean that the page becomes unresponsive 
during the download?


It mentions using a "shared resource" as an alternative. Is there 
example of this online somewhere?


Douglas

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



Re: Storing css and image files

2009-05-25 Thread Luther Baker
Where's the edit button :)


Near the beginning,

"theoratical" should be theoretical.

Near the end,

"I'm just surprised ... that dropping files into webapp/* is
*ill*-advised"
should read

"I'm just surprised ... that dropping files into webapp/* isn't *ill
*-advised"


I'm sure there are more. Thanks,

-Luther



On Mon, May 25, 2009 at 11:38 AM, Luther Baker wrote:

> **On Mon, May 25, 2009 at 2:34 AM, Martijn Dashorst <
> martijn.dasho...@gmail.com> wrote:
>
>> or, if these images and css are for your application, and application
>> wide (i.e. all pages include them), you could put them in
>> src/main/webapp/..
>>
>> and just  them in your markup.
>>
>> Martijn
>>
>
> I'd like to pose a design/theoratical thought here 
>
> I understand that  does the right thing for resources (like
> stylesheets) kept in the classpath. I love this behavior.
>
> But, as we know, depending on where my browser URL points, the following:
>
> 
>
> resolves to different locations. For instance, said stylesheet referenced
> from:
>
> http://hostname/context/products/wires/24
>
> physically resolves to (mavenized) webapps/*products/wires*/css/styles.css,
> whereas from
>
> http://hostname/context/people/hr/judy
>
> resolves to webapps/*people/hr/judy*/css/styles.css
>
> (In part, this is due to our effort NOT to hardcode the context into the
> link's href.)
>
> *Traditionally, I solved this one of three ways:*
>
>1. Manually manage every application URL and every mapped file and make
>sure that in all cases the relative path is correct. Ugh! For obvious
>reasons - this technique is not maintainable. Large apps back in the early
>days of Struts with hundreds of actions and JSPs, this just wasn't fun.
>2. JSTL came along and I started to leverage the most part, that was a workable solution - the resulting path was 'absolute'
>but it wasn't hardcoded. Essentially, it gives the framework a chance to
>work its magic (if it were to change somehow).
>3. Today, I use the resource method () which obviates all
>anxiety by simply letting the framework just manage it.
>
> So to your point Martijn, is using webapp/css and directly including  href="css/styles.css" .../> really a good - viable, long-term solution in
> Wicket apps? Understandably maybe today, the default URL mapper in Wicket
> uses query strings and not deep or hierarchical urls - but the important
> term for me here is "today".
>
> What if, in the future, wicket decides to change the default URL mapping
> scheme - maybe become more RESTful. The inertia built up around legacy apps
> using webapp/css may pose a problem. I don't think this is premature
> functionality ... I think links and urls are a here a now thing and that
> building and migrating apps to future versions of frameworks is hard and
> that a loose practice here may come back to bite a developer ... ?
>
> Also, I've not yet mounted urls but I assume if I were to mount URLs - I'd
> have to really manage this webapp/css approach - whereas, the resource
> approach with  would just keep humming along.
>
> Some may argue that it isn't really *better* to provide multiple ways to
> do the same thing ... take Tapestry for instance and the technical relevance
> as to where markup files can or cannot reside.
>
> This post is indeed a bit philosophical/theoretical - I've often thought
> about this topic and wanted to clarify in my mind that maybe, these are
> either moot points, ignored concerns, overthinking on my part ... or just
> not important somehow. As I mentioned, this little detail has always been a
> pain point in my previous work and I've just been happy as a lark to use the
>  which protects me from whatever the future provides. I'm just
> surprised it isn't the suggested best practice or that dropping files into
> webapp/* is *ill*-advised since it assumes something about how Wicket
> works.
>
> Thanks,
>
> -Luther
>
>


Re: Storing css and image files

2009-05-25 Thread Luther Baker
**On Mon, May 25, 2009 at 2:34 AM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> or, if these images and css are for your application, and application
> wide (i.e. all pages include them), you could put them in
> src/main/webapp/..
>
> and just  them in your markup.
>
> Martijn
>

I'd like to pose a design/theoratical thought here 

I understand that  does the right thing for resources (like
stylesheets) kept in the classpath. I love this behavior.

But, as we know, depending on where my browser URL points, the following:



resolves to different locations. For instance, said stylesheet referenced
from:

http://hostname/context/products/wires/24

physically resolves to (mavenized) webapps/*products/wires*/css/styles.css,
whereas from

http://hostname/context/people/hr/judy

resolves to webapps/*people/hr/judy*/css/styles.css

(In part, this is due to our effort NOT to hardcode the context into the
link's href.)

*Traditionally, I solved this one of three ways:*

   1. Manually manage every application URL and every mapped file and make
   sure that in all cases the relative path is correct. Ugh! For obvious
   reasons - this technique is not maintainable. Large apps back in the early
   days of Struts with hundreds of actions and JSPs, this just wasn't fun.
   2. JSTL came along and I started to leverage the ) which obviates all
   anxiety by simply letting the framework just manage it.

So to your point Martijn, is using webapp/css and directly including  really a good - viable, long-term solution in
Wicket apps? Understandably maybe today, the default URL mapper in Wicket
uses query strings and not deep or hierarchical urls - but the important
term for me here is "today".

What if, in the future, wicket decides to change the default URL mapping
scheme - maybe become more RESTful. The inertia built up around legacy apps
using webapp/css may pose a problem. I don't think this is premature
functionality ... I think links and urls are a here a now thing and that
building and migrating apps to future versions of frameworks is hard and
that a loose practice here may come back to bite a developer ... ?

Also, I've not yet mounted urls but I assume if I were to mount URLs - I'd
have to really manage this webapp/css approach - whereas, the resource
approach with  would just keep humming along.

Some may argue that it isn't really *better* to provide multiple ways to do
the same thing ... take Tapestry for instance and the technical relevance as
to where markup files can or cannot reside.

This post is indeed a bit philosophical/theoretical - I've often thought
about this topic and wanted to clarify in my mind that maybe, these are
either moot points, ignored concerns, overthinking on my part ... or just
not important somehow. As I mentioned, this little detail has always been a
pain point in my previous work and I've just been happy as a lark to use the
 which protects me from whatever the future provides. I'm just
surprised it isn't the suggested best practice or that dropping files into
webapp/* is *ill*-advised since it assumes something about how Wicket works.

Thanks,

-Luther


Re: IFrame and Ajax

2009-05-25 Thread Jeremy2009

Hi,

Did you ever solve this?

Many thanks for your time.
Jeremy

noppy-flex wrote:
> 
> Hello,
> 
> My application consists of an panel holding an IFrame and another
> subpanel. The IFrame has a tree as nested component which has a
> #onTerminalCodeSelection(AjaxRequestTarget target) method which is called
> when a node gets selected. On selection components which are placed on the
> subpanel (i.e. outside the IFrame) should be updated within the Ajax-call.
> The problem is that subpanel and iframe do have two different pages as
> root container. So when I append a component from the subpanel to the
> target (which has the IFrame page as page object) nothing happens. 
> Could anybody suggest a smart way to overcome this problem.
> 
> Thanks a lot 
> 

-- 
View this message in context: 
http://www.nabble.com/IFrame-and-Ajax-tp20562056p23709357.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: Generate markup for hidden framework form field?

2009-05-25 Thread Igor Vaynberg
right, so remove that code since you have replaced that component with
pure markup.

-igor

On Mon, May 25, 2009 at 8:48 AM, Jörn Zaefferer
 wrote:
> That was the idea. But Wicket still can't find the component markup
> when looking for it. The form adds this elsewhere:
>
> add(new HiddenField("csrf-protection", new
> Model(csrfProtection())).setRequired(true).add(new
> IValidator() {
>        public void validate(IValidatable validatable) {
>                log.warn("potential csrf attack, submitted value: " +
> validatable.getValue() + ", expected: " + csrfProtection());
>                validatable.error(new ValidationError().setMessage("wrong csrf
> protection cookie"));
>        }
> }));
>
> Jörn
>
> On Mon, May 25, 2009 at 5:44 PM, Igor Vaynberg  
> wrote:
>> if you write it out in oncomponenttagbody then you dont need it in the
>> markupo anymore.
>>
>> -igor
>>
>> On Mon, May 25, 2009 at 6:32 AM, Jörn Zaefferer
>>  wrote:
>>> Hi,
>>>
>>> my application uses a form subclass everywhere for CSRF protection.
>>> Each form needs a hidden field like this: >> wicket:id="csrf-protection" />
>>> The wicket component for that is added by the form subclass
>>> (SecureForm) which all other forms in the application extend.
>>>
>>> Currently each form has to include that markup somewhere, producing a
>>> lot of duplication.
>>>
>>> I'm looking for a way to get rid of that duplication. An approach I'm
>>> currently investigating is to generate the markup, similar to how Form
>>> genrates a hidden input it its onComponentTagBody:
>>>
>>> @Override
>>> protected void onComponentTagBody(MarkupStream markupStream,
>>> ComponentTag openTag) {
>>>        String nameAndId = get("csrf-protection").getId();
>>>        AppendingStringBuffer buffer = new AppendingStringBuffer(
>>>        "");
>>>        getResponse().write(buffer);
>>>        super.onComponentTagBody(markupStream, openTag);
>>> }
>>>
>>> That doesn't work, Wicket throws an exception of a missing reference
>>> in markup anyway. Likely because this just writes to the response, not
>>> extending the markup.
>>> I also don't see any way to achieve this via MarkupStream or ComponentTag.
>>>
>>> Any ideas?
>>>
>>> Regards
>>> Jörn Zaefferer
>>>
>>> -
>>> 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: Generate markup for hidden framework form field?

2009-05-25 Thread Jörn Zaefferer
That was the idea. But Wicket still can't find the component markup
when looking for it. The form adds this elsewhere:

add(new HiddenField("csrf-protection", new
Model(csrfProtection())).setRequired(true).add(new
IValidator() {
public void validate(IValidatable validatable) {
log.warn("potential csrf attack, submitted value: " +
validatable.getValue() + ", expected: " + csrfProtection());
validatable.error(new ValidationError().setMessage("wrong csrf
protection cookie"));
}
}));

Jörn

On Mon, May 25, 2009 at 5:44 PM, Igor Vaynberg  wrote:
> if you write it out in oncomponenttagbody then you dont need it in the
> markupo anymore.
>
> -igor
>
> On Mon, May 25, 2009 at 6:32 AM, Jörn Zaefferer
>  wrote:
>> Hi,
>>
>> my application uses a form subclass everywhere for CSRF protection.
>> Each form needs a hidden field like this: > wicket:id="csrf-protection" />
>> The wicket component for that is added by the form subclass
>> (SecureForm) which all other forms in the application extend.
>>
>> Currently each form has to include that markup somewhere, producing a
>> lot of duplication.
>>
>> I'm looking for a way to get rid of that duplication. An approach I'm
>> currently investigating is to generate the markup, similar to how Form
>> genrates a hidden input it its onComponentTagBody:
>>
>> @Override
>> protected void onComponentTagBody(MarkupStream markupStream,
>> ComponentTag openTag) {
>>        String nameAndId = get("csrf-protection").getId();
>>        AppendingStringBuffer buffer = new AppendingStringBuffer(
>>        "");
>>        getResponse().write(buffer);
>>        super.onComponentTagBody(markupStream, openTag);
>> }
>>
>> That doesn't work, Wicket throws an exception of a missing reference
>> in markup anyway. Likely because this just writes to the response, not
>> extending the markup.
>> I also don't see any way to achieve this via MarkupStream or ComponentTag.
>>
>> Any ideas?
>>
>> Regards
>> Jörn Zaefferer
>>
>> -
>> 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: AjaxEditableLabel within a RepeatingView?

2009-05-25 Thread Igor Vaynberg
just like you would use it outside a repeatingview...

-igor

2009/5/25 Dorothée Giernoth :
> Hey everyone,
>
> how can I use AjaxEditableLabel within a RepeatingView?
> Meaning: I have data from a database written into a RepeatingView. Now I 
> wanna make it possible, that the user can edit the cells.
> But how?
>
> Any hint would be appreciated.
> Thnx,
> dg
>
>
> -
> 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: Generate markup for hidden framework form field?

2009-05-25 Thread Igor Vaynberg
if you write it out in oncomponenttagbody then you dont need it in the
markupo anymore.

-igor

On Mon, May 25, 2009 at 6:32 AM, Jörn Zaefferer
 wrote:
> Hi,
>
> my application uses a form subclass everywhere for CSRF protection.
> Each form needs a hidden field like this:  wicket:id="csrf-protection" />
> The wicket component for that is added by the form subclass
> (SecureForm) which all other forms in the application extend.
>
> Currently each form has to include that markup somewhere, producing a
> lot of duplication.
>
> I'm looking for a way to get rid of that duplication. An approach I'm
> currently investigating is to generate the markup, similar to how Form
> genrates a hidden input it its onComponentTagBody:
>
> @Override
> protected void onComponentTagBody(MarkupStream markupStream,
> ComponentTag openTag) {
>        String nameAndId = get("csrf-protection").getId();
>        AppendingStringBuffer buffer = new AppendingStringBuffer(
>        "");
>        getResponse().write(buffer);
>        super.onComponentTagBody(markupStream, openTag);
> }
>
> That doesn't work, Wicket throws an exception of a missing reference
> in markup anyway. Likely because this just writes to the response, not
> extending the markup.
> I also don't see any way to achieve this via MarkupStream or ComponentTag.
>
> Any ideas?
>
> Regards
> Jörn Zaefferer
>
> -
> 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: Generic BookmarkablePage

2009-05-25 Thread Igor Vaynberg
no, you cannot instantiate , but you can instantiate  and
assign it to  as per my example below

-igor

On Mon, May 25, 2009 at 6:05 AM, James Carman
 wrote:
> On Sun, May 24, 2009 at 11:16 PM, Igor Vaynberg  
> wrote:
>> final Link link = new BookmarkablePageLink("a-contact",
>>
>> if you are not intending on using the model use  which will help enforce 
>> that
>
> Care to elaborate on that?  How does  assure that folks aren't
> going to use the model better than ?  You can't instantiate a
> BookmarkablePageLink.
>
> -
> 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



How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-25 Thread Jörn Zaefferer
Hi,

in one of my Wicket unit tests I'd like to assert that after a
successful submit, a RedirectRequestTarget was set. Its not even
necessary to check the exact URL of that redirect, just that it
happens.

I can't find any support for that via WicketTester, and
RequestCycle.get().getRequestTarget() (or accessed via
tester.getLastRenderedPage().getRequestCycle().getRequestTarget())
returns null.

Any ideas?

Regards
Jörn Zaefferer

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



Re: Any forum (bb) components / applications written using Wicket?

2009-05-25 Thread Cristi Manole
Hi,

Thanks to both of you. I've checked JForum in the past, and while I like it
a lot (I think we have it implemented on one of the sites we did for a
client), I thought back then it would be hard to really integrate it with
Wicket.

I decided to write what I need from scratch, since I don't need a full blown
forum anyways.

Once I finish it, if it seems worth anything to somebody else, I will
release the code to the crowd.

Again, thanks,
Cristi

On Mon, May 25, 2009 at 4:51 AM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> Hi
>
> I did the BBcode integration, it's very basic. But a starting point..
>
> If you need something more, you could use Jforum it's since it's
> possible todo a "single" sign on from your application to theirs..
>
> http://www.jforum.net/
>
>
>
> 2009/5/24 Cristi Manole :
> > Hello,
> >
> > I'm in the need of a forum (bulletin board) component / application
> written
> > in Wicket to integrate in a larger Wicket application.
> >
> > Does anybody have one / know of one? Please promote it. :)
> >
> > I don't mind if it's still in alpha or something as I prefer building on
> top
> > of that rather than starting from scratch :) I'm on a _very_ tight
> schedule.
> >
> > Thanks,
> > --
> > Cristi Manole
> >
> > Nova Creator Software
> > www.novacreator.com
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


DatePicker trouble under FireFox?

2009-05-25 Thread Tom Tamulewicz


I'm running 1.4rc4 and have a DatePicker that works fine under IE6 and Chrome, 
but doesn't work under FireFox (3).  The date icon shows OK, just nothing 
happens when you click on it.  The usage is on a pretty simple page within a 
form.

Any special tricks to get this working under FireFox?  

Thanks.


 



_
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009

RE: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread David Chang

Jeremy, thanks so much for the input. I will look at it later. 

I feel that, in addition to server-side validationi, the client-side validation 
is much needed since it reduces lot of network traffic and server workload for 
a busy website. 

I have been doing consulting for many years and I do see customers really like 
client side validation. In my experience, that need is an order from the God 
and we, as programmers, have to deliver. I am surprised that no mature solution 
in this regard can be found from the Wicket or related projects.  

Still, Wicket is great!!!

Cheers!


--- On Mon, 5/25/09, Jeremy Thomerson  wrote:

> From: Jeremy Thomerson 
> Subject: RE: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: users@wicket.apache.org
> Date: Monday, May 25, 2009, 10:43 AM
> In wicketstuff-core there is a
> library that I started as a proof of concept that allows you
> to add one behavior to your component which adds client and
> server side validation.  You could start with it and
> add on as needed.
> 
> Jeremy Thomerson
> http://www.wickettraining.com
> -- sent from a wireless device
> 
> 
> -Original Message-
> From: David Chang 
> Sent: Monday, May 25, 2009 9:19 AM
> To: users@wicket.apache.org
> Subject: RE: Any easy way to do client-side
> javascript-based validation with  Wicket?
> 
> 
> 
> Frank, thanks so much for your input. It seems your jQuery
> validation plugin is a cool tool. 
> 
> > We made an layer on top of the Wicket
> > validation, where we also add some client-side
> validation.
> 
> Does it mean that by using Wicket AND your jQuery
> validation plugin I only have to write validation rules ONCE
> (not write second time for the client side validation)? Is
> it correct? If it is true, I am eager to donate after
> tests:-)
> 
> Warm regards.
> 
> 
> --- On Mon, 5/25/09, Frank Klein Koerkamp 
> wrote:
> 
> > From: Frank Klein Koerkamp 
> > Subject: RE: Any easy way to do client-side
> javascript-based validation with  Wicket?
> > To: "'users@wicket.apache.org'"
> 
> > Date: Monday, May 25, 2009, 10:01 AM
> > We made an layer on top of the Wicket
> > validation, where we also add some client-side
> validation.
> > We use an jQuery library for it 
> > (http://bassistance.de/jquery-plugins/jquery-plugin-validation/).
> > Very easy to integrate. And most of the times it's
> only
> > adding extra style class to field and it works.
> > 
> > Kind Regards,
> > 
> > Frank Klein Koerkamp
> > 
> > -Original Message-
> > From: David Chang [mailto:david_q_zh...@yahoo.com]
> > Sent: Monday, May 25, 2009 3:39 PM
> > To: users@wicket.apache.org
> > Subject: Re: Any easy way to do client-side
> > javascript-based validation with Wicket?
> > 
> > 
> > Thanks for your input, but I am looking for something
> > different.
> > 
> > In Spring MVC, I can use Spring Modules' Valang
> Validator
> > to define validation rules in applicationContext.xml
> for a
> > form bean. Then Spring generates both client- and
> > server-side valudation. This write-once approach is
> very
> > appealing.
> > 
> > I am not planning write validation rules in Wicket's
> Java
> > components and write Javascript-based client
> validation
> > again in markup.
> > 
> > Cheers!
> > 
> > 
> > --- On Mon, 5/25/09, Per Lundholm 
> > wrote:
> > 
> > > From: Per Lundholm 
> > > Subject: Re: Any easy way to do client-side
> > javascript-based validation with  Wicket?
> > > To: users@wicket.apache.org
> > > Date: Monday, May 25, 2009, 3:14 AM
> > > I assume you have read the parts
> > > about validation in Wicket.
> > >
> > > There are several examples of integrating Wicket
> with
> > > various
> > > JavaScript libraries, such as Dojo.
> > >
> > > /Per
> > >
> > >
> > > 2009/5/25 David Chang :
> > > >
> > > >
> > > > I am now reading the book "Wicket in Action"
> to
> > learn
> > > about Wicket. The more I read and the more I like
> it!
> > > >
> > > > I did a few projects with Spring MVC in the
> past.
> > In
> > > these projects, I defined form field validation
> rules
> > in an
> > > XML file and Spring adds both client side and
> > server-side,
> > > which I think is quite helpful.
> > > >
> > > > I just want to know how to do the same thing
> in
> > > Wicket. The validation rules dont have to be in
> an XML
> > file
> > > and they can be in Wicket's Java files, but I
> hope
> > Wicket
> > > can generate client-side validation.
> > > >
> > > > Please dont argue with me about the good or
> bad
> > things
> > > about client-side validation. I simply want to
> know
> > whether
> > > Wicket can do it or how to it, as well as any
> attempt
> > in
> > > this regard.
> > > >
> > > > Thanks so much for your help!
> > > >
> > > > Cheers!
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> -
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket

RE: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread Frank Klein Koerkamp
Yes in  our case it's only needed once :). And with Hibernate Validator we also 
generate the right validators on the fields.
But you have to make some kind of framework:
1. Extension on default form to add jquery functionality.
2. Extension (via Behaviours) of validators to add validator to formcomponent

The nice thing is that the jquery validator is very easily extensible.

Hope this will help.

Regards

-Original Message-
From: David Chang [mailto:david_q_zh...@yahoo.com]
Sent: Monday, May 25, 2009 4:20 PM
To: users@wicket.apache.org
Subject: RE: Any easy way to do client-side javascript-based validation with 
Wicket?



Frank, thanks so much for your input. It seems your jQuery validation plugin is 
a cool tool.

> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.

Does it mean that by using Wicket AND your jQuery validation plugin I only have 
to write validation rules ONCE (not write second time for the client side 
validation)? Is it correct? If it is true, I am eager to donate after tests:-)

Warm regards.


--- On Mon, 5/25/09, Frank Klein Koerkamp  wrote:

> From: Frank Klein Koerkamp 
> Subject: RE: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: "'users@wicket.apache.org'" 
> Date: Monday, May 25, 2009, 10:01 AM
> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.
> We use an jQuery library for it 
> (http://bassistance.de/jquery-plugins/jquery-plugin-validation/).
> Very easy to integrate. And most of the times it's only
> adding extra style class to field and it works.
>
> Kind Regards,
>
> Frank Klein Koerkamp
>
> -Original Message-
> From: David Chang [mailto:david_q_zh...@yahoo.com]
> Sent: Monday, May 25, 2009 3:39 PM
> To: users@wicket.apache.org
> Subject: Re: Any easy way to do client-side
> javascript-based validation with Wicket?
>
>
> Thanks for your input, but I am looking for something
> different.
>
> In Spring MVC, I can use Spring Modules' Valang Validator
> to define validation rules in applicationContext.xml for a
> form bean. Then Spring generates both client- and
> server-side valudation. This write-once approach is very
> appealing.
>
> I am not planning write validation rules in Wicket's Java
> components and write Javascript-based client validation
> again in markup.
>
> Cheers!
>
>
> --- On Mon, 5/25/09, Per Lundholm 
> wrote:
>
> > From: Per Lundholm 
> > Subject: Re: Any easy way to do client-side
> javascript-based validation with  Wicket?
> > To: users@wicket.apache.org
> > Date: Monday, May 25, 2009, 3:14 AM
> > I assume you have read the parts
> > about validation in Wicket.
> >
> > There are several examples of integrating Wicket with
> > various
> > JavaScript libraries, such as Dojo.
> >
> > /Per
> >
> >
> > 2009/5/25 David Chang :
> > >
> > >
> > > I am now reading the book "Wicket in Action" to
> learn
> > about Wicket. The more I read and the more I like it!
> > >
> > > I did a few projects with Spring MVC in the past.
> In
> > these projects, I defined form field validation rules
> in an
> > XML file and Spring adds both client side and
> server-side,
> > which I think is quite helpful.
> > >
> > > I just want to know how to do the same thing in
> > Wicket. The validation rules dont have to be in an XML
> file
> > and they can be in Wicket's Java files, but I hope
> Wicket
> > can generate client-side validation.
> > >
> > > Please dont argue with me about the good or bad
> things
> > about client-side validation. I simply want to know
> whether
> > Wicket can do it or how to it, as well as any attempt
> in
> > this regard.
> > >
> > > Thanks so much for your help!
> > >
> > > Cheers!
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
> >
> > --
> > FaceBush, min insamling i Mustaschkampen:
> > http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243
> >
> >
> -
> > 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
>
>
> The information contained in this communication is
> confidential, intended solely for the use of the individual
> or entity to whom it is addressed and may be legally
> privileged and protected by professional secrecy. Access to
> this message by anyone else is unauthorized. If you are not
> the intended recipient, any disclosure, copying, or
> distribution of the message, or any action or omission taken

Panel switching in LinkTree.onNodeLinkClicked() doesn't work

2009-05-25 Thread Bürgel , Andreas
Hi folks,

I want to exchange panels when special nodes of my main navigation tree object 
are clicked

8<
public class Index extends AbstractPage {
// constants

private static String ID_MAIN_PANEL = "main_panel";
private static String ID_NAVIGATION_TREE = "fbc_navigation_tree";

// attributes

private LinkTree myNavigationTree = null;
protected Panel myMainPanel = null;

// constructors

public Index ( final PageParameters pParameters) {
final EmptyPanel lEmptyPanel = new EmptyPanel ( ID_MAIN_PANEL);
final MMCSystemPanel lMMCSystemPanel = new MMCSystemPanel ( 
ID_MAIN_PANEL, new MMCSystem ());
 
myMainPanel = lEmptyPanel;
add ( myMainPanel);

myNavigationTree = new LinkTree ( ID_NAVIGATION_TREE, 
getApp().getNavigationTreeModel ()) {
@Override
protected void onNodeLinkClicked ( Object pNode, 
BaseTree pTree, AjaxRequestTarget pTarget) {
NavigationTreeNode lNode = (NavigationTreeNode) 
pNode;

switch ( lNode.getType ()) {
case PANEL:
System.out.println ( 
"PANEL_NODE");
Object lPayLoad = 
lNode.getPayLoad ();
//MMCSystemPanel lPanel = new 
MMCSystemPanel ( ID_MAIN_PANEL, (MMCSystem) lPayLoad);
setMainPanel ( 
lMMCSystemPanel);
break;

case SUB_TREE_ROOT:
setMainPanel ( lEmptyPanel);

if ( 
pTree.getTreeState().isNodeExpanded ( pNode)) {

pTree.getTreeState().collapseNode ( pNode);
} else {

pTree.getTreeState().expandNode ( pNode);
}
break;

case DEAD:
System.out.println ( 
"DEAD_NODE");
break;
}
}
};

add ( myNavigationTree);

add ( new Link ( "swap") {
private boolean myFlag = true;

@Override
public void onClick () {
if ( myFlag) {
setMainPanel ( lMMCSystemPanel);
} else {
setMainPanel ( lEmptyPanel);
}

myFlag = ! myFlag;
}

});

myNavigationTree.getTreeState().expandAll ();
}
 

// methods
 
public void setMainPanel ( Panel pPanel) {
myMainPanel.replaceWith ( pPanel);
myMainPanel = pPanel;
}
>8 

For testing I also added a link (id=swap) that should toggle between two panels 
when clicked.
While clicking the swap-link produces the expected result, clicking nodes of my 
tree doesn't switch the panel (but produces the output "PANEL_NODE" to console).
Any ideas?
I'm using Firefox 3.0.10, SUN Java(TM) SE Runtime Environment (build 
1.6.0_10-b33), wicket 1.4-rc4 (also tested 1.4-rc2) on Linux

Thanks in advance.

Mit freundlichen Grueszen, / With kind regards,
 
i.A. Andreas Buergel
BUCYRUS (R)
Engineering Center
Automation
Longwall Division
Industriestr. 1, D-44534 Luenen
Tel: +49 (2306) 709 2509
Fax: +49 (2306) 709 1315 2509
mailto: andreas.buer...@de.bucyrus.com
http://www.bucyrus.com
Bucyrus DBT Europe GmbH
Sitz der Gesellschaft: Luenen, Registergericht: Amtsgericht Dortmund, 
Handelsregister HRB 17120
Geschaeftsfuehrung: Luis de Leon (Sprecher), Dr. Ulrich Noll  Vorsitzender des 
Aufsichtsrates: Dr. Juergen W. Stadelhofer

Diese E-Mail enthaelt vertrauliche und/o

RE: closing a ModalWindow from a forms onSubmit?

2009-05-25 Thread Jeremy Thomerson
If all you're saying is that you need to do it from your form's onsubmit, do 
this:

AjaxRequestTarget art = AjaxRequestTarget.get();
if (art != null) {
 modal.close(art); 
}

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Brill Pappin 
Sent: Sunday, May 24, 2009 5:36 PM
To: users@wicket.apache.org
Subject: Re: closing a ModalWindow from a forms onSubmit?

I likely could but am trying to avoid that, because then I have to  
call it for every button in the form (there are 4 now, all set a state  
and allow the event to propagate to the forms onSubmit().
Is there no way to know the current context from the component itself?


- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:

> Can you submit the form via ajax?
>
> On May 24, 2009 2:08 PM, "Brill Pappin"  wrote:
>
> I have a form in a model window
> How do I close the ModalWindow in the form's onSubmit() method  
> without the
> AjaxRequestTarget?
>
> - Brill



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



RE: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread Jeremy Thomerson
In wicketstuff-core there is a library that I started as a proof of concept 
that allows you to add one behavior to your component which adds client and 
server side validation.  You could start with it and add on as needed.

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: David Chang 
Sent: Monday, May 25, 2009 9:19 AM
To: users@wicket.apache.org
Subject: RE: Any easy way to do client-side javascript-based validation with  
Wicket?



Frank, thanks so much for your input. It seems your jQuery validation plugin is 
a cool tool. 

> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.

Does it mean that by using Wicket AND your jQuery validation plugin I only have 
to write validation rules ONCE (not write second time for the client side 
validation)? Is it correct? If it is true, I am eager to donate after tests:-)

Warm regards.


--- On Mon, 5/25/09, Frank Klein Koerkamp  wrote:

> From: Frank Klein Koerkamp 
> Subject: RE: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: "'users@wicket.apache.org'" 
> Date: Monday, May 25, 2009, 10:01 AM
> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.
> We use an jQuery library for it 
> (http://bassistance.de/jquery-plugins/jquery-plugin-validation/).
> Very easy to integrate. And most of the times it's only
> adding extra style class to field and it works.
> 
> Kind Regards,
> 
> Frank Klein Koerkamp
> 
> -Original Message-
> From: David Chang [mailto:david_q_zh...@yahoo.com]
> Sent: Monday, May 25, 2009 3:39 PM
> To: users@wicket.apache.org
> Subject: Re: Any easy way to do client-side
> javascript-based validation with Wicket?
> 
> 
> Thanks for your input, but I am looking for something
> different.
> 
> In Spring MVC, I can use Spring Modules' Valang Validator
> to define validation rules in applicationContext.xml for a
> form bean. Then Spring generates both client- and
> server-side valudation. This write-once approach is very
> appealing.
> 
> I am not planning write validation rules in Wicket's Java
> components and write Javascript-based client validation
> again in markup.
> 
> Cheers!
> 
> 
> --- On Mon, 5/25/09, Per Lundholm 
> wrote:
> 
> > From: Per Lundholm 
> > Subject: Re: Any easy way to do client-side
> javascript-based validation with  Wicket?
> > To: users@wicket.apache.org
> > Date: Monday, May 25, 2009, 3:14 AM
> > I assume you have read the parts
> > about validation in Wicket.
> >
> > There are several examples of integrating Wicket with
> > various
> > JavaScript libraries, such as Dojo.
> >
> > /Per
> >
> >
> > 2009/5/25 David Chang :
> > >
> > >
> > > I am now reading the book "Wicket in Action" to
> learn
> > about Wicket. The more I read and the more I like it!
> > >
> > > I did a few projects with Spring MVC in the past.
> In
> > these projects, I defined form field validation rules
> in an
> > XML file and Spring adds both client side and
> server-side,
> > which I think is quite helpful.
> > >
> > > I just want to know how to do the same thing in
> > Wicket. The validation rules dont have to be in an XML
> file
> > and they can be in Wicket's Java files, but I hope
> Wicket
> > can generate client-side validation.
> > >
> > > Please dont argue with me about the good or bad
> things
> > about client-side validation. I simply want to know
> whether
> > Wicket can do it or how to it, as well as any attempt
> in
> > this regard.
> > >
> > > Thanks so much for your help!
> > >
> > > Cheers!
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
> >
> > --
> > FaceBush, min insamling i Mustaschkampen:
> > http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243
> >
> >
> -
> > 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
> 
> 
> The information contained in this communication is
> confidential, intended solely for the use of the individual
> or entity to whom it is addressed and may be legally
> privileged and protected by professional secrecy. Access to
> this message by anyone else is unauthorized. If you are not
> the intended recipient, any disclosure, copying, or
> distribution of the message, or any action or omission taken
> by you in reliance on it is prohibited and may be unlawful.
> Please immediately contact the sender if you have rec

RE: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread David Chang


Frank, thanks so much for your input. It seems your jQuery validation plugin is 
a cool tool. 

> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.

Does it mean that by using Wicket AND your jQuery validation plugin I only have 
to write validation rules ONCE (not write second time for the client side 
validation)? Is it correct? If it is true, I am eager to donate after tests:-)

Warm regards.


--- On Mon, 5/25/09, Frank Klein Koerkamp  wrote:

> From: Frank Klein Koerkamp 
> Subject: RE: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: "'users@wicket.apache.org'" 
> Date: Monday, May 25, 2009, 10:01 AM
> We made an layer on top of the Wicket
> validation, where we also add some client-side validation.
> We use an jQuery library for it 
> (http://bassistance.de/jquery-plugins/jquery-plugin-validation/).
> Very easy to integrate. And most of the times it's only
> adding extra style class to field and it works.
> 
> Kind Regards,
> 
> Frank Klein Koerkamp
> 
> -Original Message-
> From: David Chang [mailto:david_q_zh...@yahoo.com]
> Sent: Monday, May 25, 2009 3:39 PM
> To: users@wicket.apache.org
> Subject: Re: Any easy way to do client-side
> javascript-based validation with Wicket?
> 
> 
> Thanks for your input, but I am looking for something
> different.
> 
> In Spring MVC, I can use Spring Modules' Valang Validator
> to define validation rules in applicationContext.xml for a
> form bean. Then Spring generates both client- and
> server-side valudation. This write-once approach is very
> appealing.
> 
> I am not planning write validation rules in Wicket's Java
> components and write Javascript-based client validation
> again in markup.
> 
> Cheers!
> 
> 
> --- On Mon, 5/25/09, Per Lundholm 
> wrote:
> 
> > From: Per Lundholm 
> > Subject: Re: Any easy way to do client-side
> javascript-based validation with  Wicket?
> > To: users@wicket.apache.org
> > Date: Monday, May 25, 2009, 3:14 AM
> > I assume you have read the parts
> > about validation in Wicket.
> >
> > There are several examples of integrating Wicket with
> > various
> > JavaScript libraries, such as Dojo.
> >
> > /Per
> >
> >
> > 2009/5/25 David Chang :
> > >
> > >
> > > I am now reading the book "Wicket in Action" to
> learn
> > about Wicket. The more I read and the more I like it!
> > >
> > > I did a few projects with Spring MVC in the past.
> In
> > these projects, I defined form field validation rules
> in an
> > XML file and Spring adds both client side and
> server-side,
> > which I think is quite helpful.
> > >
> > > I just want to know how to do the same thing in
> > Wicket. The validation rules dont have to be in an XML
> file
> > and they can be in Wicket's Java files, but I hope
> Wicket
> > can generate client-side validation.
> > >
> > > Please dont argue with me about the good or bad
> things
> > about client-side validation. I simply want to know
> whether
> > Wicket can do it or how to it, as well as any attempt
> in
> > this regard.
> > >
> > > Thanks so much for your help!
> > >
> > > Cheers!
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
> >
> > --
> > FaceBush, min insamling i Mustaschkampen:
> > http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243
> >
> >
> -
> > 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
> 
> 
> The information contained in this communication is
> confidential, intended solely for the use of the individual
> or entity to whom it is addressed and may be legally
> privileged and protected by professional secrecy. Access to
> this message by anyone else is unauthorized. If you are not
> the intended recipient, any disclosure, copying, or
> distribution of the message, or any action or omission taken
> by you in reliance on it is prohibited and may be unlawful.
> Please immediately contact the sender if you have received
> this message in error. This email does not constitute any
> commitment from Cordys Holding BV or any of its subsidiaries
> except when expressly agreed in a written agreement between
> the intended recipient and Cordys Holding BV or its
> subsidiaries. Cordys is neither liable for the proper and
> complete transmission of the information contained in this
> communication nor for any delay in its receipt. Cordys does
> not guarantee that the integrity of this communication has
> been maintai

AjaxEditableLabel within a RepeatingView?

2009-05-25 Thread Dorothée Giernoth
Hey everyone,

how can I use AjaxEditableLabel within a RepeatingView?
Meaning: I have data from a database written into a RepeatingView. Now I wanna 
make it possible, that the user can edit the cells.
But how?

Any hint would be appreciated.
Thnx,
dg


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



RE: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread Frank Klein Koerkamp
We made an layer on top of the Wicket validation, where we also add some 
client-side validation. We use an jQuery library for it 
(http://bassistance.de/jquery-plugins/jquery-plugin-validation/). Very easy to 
integrate. And most of the times it's only adding extra style class to field 
and it works.

Kind Regards,

Frank Klein Koerkamp

-Original Message-
From: David Chang [mailto:david_q_zh...@yahoo.com]
Sent: Monday, May 25, 2009 3:39 PM
To: users@wicket.apache.org
Subject: Re: Any easy way to do client-side javascript-based validation with 
Wicket?


Thanks for your input, but I am looking for something different.

In Spring MVC, I can use Spring Modules' Valang Validator to define validation 
rules in applicationContext.xml for a form bean. Then Spring generates both 
client- and server-side valudation. This write-once approach is very appealing.

I am not planning write validation rules in Wicket's Java components and write 
Javascript-based client validation again in markup.

Cheers!


--- On Mon, 5/25/09, Per Lundholm  wrote:

> From: Per Lundholm 
> Subject: Re: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: users@wicket.apache.org
> Date: Monday, May 25, 2009, 3:14 AM
> I assume you have read the parts
> about validation in Wicket.
>
> There are several examples of integrating Wicket with
> various
> JavaScript libraries, such as Dojo.
>
> /Per
>
>
> 2009/5/25 David Chang :
> >
> >
> > I am now reading the book "Wicket in Action" to learn
> about Wicket. The more I read and the more I like it!
> >
> > I did a few projects with Spring MVC in the past. In
> these projects, I defined form field validation rules in an
> XML file and Spring adds both client side and server-side,
> which I think is quite helpful.
> >
> > I just want to know how to do the same thing in
> Wicket. The validation rules dont have to be in an XML file
> and they can be in Wicket's Java files, but I hope Wicket
> can generate client-side validation.
> >
> > Please dont argue with me about the good or bad things
> about client-side validation. I simply want to know whether
> Wicket can do it or how to it, as well as any attempt in
> this regard.
> >
> > Thanks so much for your help!
> >
> > Cheers!
> >
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
> --
> FaceBush, min insamling i Mustaschkampen:
> http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243
>
> -
> 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


The information contained in this communication is confidential, intended 
solely for the use of the individual or entity to whom it is addressed and may 
be legally privileged and protected by professional secrecy. Access to this 
message by anyone else is unauthorized. If you are not the intended recipient, 
any disclosure, copying, or distribution of the message, or any action or 
omission taken by you in reliance on it is prohibited and may be unlawful. 
Please immediately contact the sender if you have received this message in 
error. This email does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written agreement 
between the intended recipient and Cordys Holding BV or its subsidiaries. 
Cordys is neither liable for the proper and complete transmission of the 
information contained in this communication nor for any delay in its receipt. 
Cordys does not guarantee that the integrity of this communication has been 
maintained nor that the communication is free of viruses, interceptions or 
interference. If you are not the intended recipient of this communication 
please return the communication to the sender and delete and destroy all copies.

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



Re: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread David Chang

Thanks for your input, but I am looking for something different.

In Spring MVC, I can use Spring Modules' Valang Validator to define validation 
rules in applicationContext.xml for a form bean. Then Spring generates both 
client- and server-side valudation. This write-once approach is very appealing. 

I am not planning write validation rules in Wicket's Java components and write 
Javascript-based client validation again in markup.

Cheers!


--- On Mon, 5/25/09, Per Lundholm  wrote:

> From: Per Lundholm 
> Subject: Re: Any easy way to do client-side javascript-based validation with  
> Wicket?
> To: users@wicket.apache.org
> Date: Monday, May 25, 2009, 3:14 AM
> I assume you have read the parts
> about validation in Wicket.
> 
> There are several examples of integrating Wicket with
> various
> JavaScript libraries, such as Dojo.
> 
> /Per
> 
> 
> 2009/5/25 David Chang :
> >
> >
> > I am now reading the book "Wicket in Action" to learn
> about Wicket. The more I read and the more I like it!
> >
> > I did a few projects with Spring MVC in the past. In
> these projects, I defined form field validation rules in an
> XML file and Spring adds both client side and server-side,
> which I think is quite helpful.
> >
> > I just want to know how to do the same thing in
> Wicket. The validation rules dont have to be in an XML file
> and they can be in Wicket's Java files, but I hope Wicket
> can generate client-side validation.
> >
> > Please dont argue with me about the good or bad things
> about client-side validation. I simply want to know whether
> Wicket can do it or how to it, as well as any attempt in
> this regard.
> >
> > Thanks so much for your help!
> >
> > Cheers!
> >
> >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> 
> 
> -- 
> FaceBush, min insamling i Mustaschkampen:
> http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243
> 
> -
> 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



Generate markup for hidden framework form field?

2009-05-25 Thread Jörn Zaefferer
Hi,

my application uses a form subclass everywhere for CSRF protection.
Each form needs a hidden field like this: 
The wicket component for that is added by the form subclass
(SecureForm) which all other forms in the application extend.

Currently each form has to include that markup somewhere, producing a
lot of duplication.

I'm looking for a way to get rid of that duplication. An approach I'm
currently investigating is to generate the markup, similar to how Form
genrates a hidden input it its onComponentTagBody:

@Override
protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {
String nameAndId = get("csrf-protection").getId();
AppendingStringBuffer buffer = new AppendingStringBuffer(
"");
getResponse().write(buffer);
super.onComponentTagBody(markupStream, openTag);
}

That doesn't work, Wicket throws an exception of a missing reference
in markup anyway. Likely because this just writes to the response, not
extending the markup.
I also don't see any way to achieve this via MarkupStream or ComponentTag.

Any ideas?

Regards
Jörn Zaefferer

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



Re: adjusting form model on submit with AjaxButton -- Was: closing a ModalWindow from a forms onSubmit?

2009-05-25 Thread Brill Pappin

There  has got to be a solution for this.

The problem with using an AjaxButton is that the onSubmit is called  
*after* the form is submitted, but since there are multiple submit  
buttons that change the model object just before submit, I need to  
adjust the model before the form is submitted.


If I use a normal Button, I can adjust the form model but can't close  
the ModalWindow since I have no ajax target.


- Brill

On 24-May-09, at 6:36 PM, Brill Pappin wrote:

I likely could but am trying to avoid that, because then I have to  
call it for every button in the form (there are 4 now, all set a  
state and allow the event to propagate to the forms onSubmit().

Is there no way to know the current context from the component itself?


- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:


Can you submit the form via ajax?

On May 24, 2009 2:08 PM, "Brill Pappin"  wrote:

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method  
without the

AjaxRequestTarget?

- Brill






smime.p7s
Description: S/MIME cryptographic signature


Re: Generics in components

2009-05-25 Thread James Carman
On Mon, May 25, 2009 at 6:54 AM, Frank Tegtmeyer
 wrote:
> Hi,
>
> I am still very very new to Java and Wicket of course too,
> so excuse me if this is a dumb question.
>
> I swiched my project to Wicket 1.4-rc4 now and got all these
> wonderful warnings about the "Raw types" of the components
> in my sources.
> Are there any examples that highlight the handling of
> the generic component types? I have no clue what type parameter
> I have to give a form component for example (no clue for other
> components too). Should it be the class of my model or anything
> else? For validators I tried to set base types (Integer, ..)
> and this worked. But still I have no clue if this is the right
> thing to do.
>
> Confused ... :)

The type parameter on components is supposed to correspond to their
model's type parameter.  So,  TextField would need an
IModel.  The Wicket test cases should have examples of this,
if nothing else.

Use the source, Luke.

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



SimpleAuthorizationStratagy with errormessage fails

2009-05-25 Thread Boydens Joeri (OZ)
Hi all,

 

I have a created a simple authorizationstrategy,

 

   SimplePageAuthorizationStrategy authorizationStrategy = new
SimplePageAuthorizationStrategy(

  OnlineVacationAvailabilityPage.class,
VacationAlreadyRegisteredPage.class) {

  protected boolean isAuthorized()  {

return
(((VacationApplicationSession)Session.get()).getBookingInformation() ==
null);

}

   };

 

 
getSecuritySettings().setAuthorizationStrategy(authorizationStrategy);

 

 

I want the user to visit the OnlineVacationAvailabiltyPage only when
he's authorized (= there's no bookingInformation in the session).  When
a execute the following scenario (it's a bit of a reverse login
scenario, but it should work ;-) :

 

(first visit)

*user enters the OnlineVacationAvailabiltyPage -> isAuthorized returns
true because there is no booking information in the session (= OK)

*users enters information and submits page -> program creates a
bookingInformation object in the session (= OK)

*users clicks back button of the browser -> isAuthorized returns false
because there is a booking information available in the session, the
user is redirected to the VacationAlreadyRegisteredPage (= OK)

 

The above works as it should, but the following scenario doesn't

 

(first visit)

*user enters the OnlineVacationAvailabiltyPage -> isAuthorized returns
true because there is no booking information in the session (= OK)

*users enters informations and submits page -> there is a validation
error in the onSubmit action, error(message) is called and the user
returns to the OnlineVactionAvailabiltyPage (but now it's not a
stateless page anymore because there is an error message shown to the
user) (=OK)

*users enters correct information and submits page -> program creates a
bookingInformation object in the session (=OK)

*users clicks back button of the browser -> the isAhtorized method isn't
called anymore and the user returns to the OnlineAvailibiltyPage ( NOT
OK )

 

I thinks this happens because after the error occurred my page isn't
stateless anymore L

 

Any ideas how to solve this ?

 

Regards,

Joeri

 

 

 



Re: File names of dynamic web resources

2009-05-25 Thread Günther Enthaler

If you just click the link, both IE & Firefox use the file name configured in
response.setAttachmentHeader().

However, if you right-click the link & Save Link As..., I found IE uses the
file name configured in response.setAttachmentHeader(), but Firefox uses the
file name part of the href. So you'll probably want to make sure they're the
same.

Cheers,
Günther


Clint Popetz-2 wrote:
> 
> protected void setHeaders(WebResponse response)
> {
> super.setHeaders(response);
> response.setAttachmentHeader('your_name_here.txt");
> }
> 

-- 
View this message in context: 
http://www.nabble.com/File-names-of-dynamic-web-resources-tp23706024p23706850.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: File names of dynamic web resources

2009-05-25 Thread James Carman
Two of the constructors for DynamicWebResource take "filename"
parameters.  Have you tried using them?

On Mon, May 25, 2009 at 8:10 AM, Pi Trash  wrote:
> I am using DynamicWebResource to provide links to download files stored in a 
> database. The only thing I do is to override the getData() and 
> getContentType() method of a ResourceState I return in the getResourceState() 
> method of the Dynamic WebResource.
>
> How can I configure the name of the file which is displayed in the 'save as' 
> dialog of the browser?
>
> tia
> __
> Verschicken Sie SMS direkt vom Postfach aus - in alle deutschen und viele
> ausländische Netze zum gleichen Preis!
> https://produkte.web.de/webde_sms/sms
>
>
>
>
> -
> 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: Generic BookmarkablePage

2009-05-25 Thread James Carman
On Sun, May 24, 2009 at 11:16 PM, Igor Vaynberg  wrote:
> final Link link = new BookmarkablePageLink("a-contact",
>
> if you are not intending on using the model use  which will help enforce 
> that

Care to elaborate on that?  How does  assure that folks aren't
going to use the model better than ?  You can't instantiate a
BookmarkablePageLink.

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



Re: DataTables and Cell Color

2009-05-25 Thread James Carman
You can implement your own column and set the cell item's "class"
attribute (or in-line style it if you wish).

On Mon, May 25, 2009 at 8:23 AM, Daniel Ore  wrote:
> HiIs there a way to set the color of a cell in a DataTable (Actually I'm
> using the AjaxFallbackDefaultDataTable but I guess that if there's a way it
> must apply to all).
>
> Thanks
>
> ___
> Daniel Ore
>

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



Re: DataTables and Cell Color

2009-05-25 Thread Clint Popetz
You can define a css class with the color, and override
DataTabla.newCellItem() to either add a DataTable.CssAttributeBehavior with
the css class name or to return an Item subclass that overrides
onComponentTag() to add the css class name.  The latter is better if the
cells are changing color dynamically with ajax.

-Clint

On Mon, May 25, 2009 at 7:23 AM, Daniel Ore  wrote:

> HiIs there a way to set the color of a cell in a DataTable (Actually I'm
> using the AjaxFallbackDefaultDataTable but I guess that if there's a way it
> must apply to all).
>
> Thanks
>
> ___
> Daniel Ore
>



-- 
Clint Popetz
http://42lines.net
Scalable Web Application Development


Re: File names of dynamic web resources

2009-05-25 Thread Clint Popetz
protected void setHeaders(WebResponse response)
{
super.setHeaders(response);
response.setAttachmentHeader('your_name_here.txt");
}



On Mon, May 25, 2009 at 7:10 AM, Pi Trash  wrote:

> I am using DynamicWebResource to provide links to download files stored in
> a database. The only thing I do is to override the getData() and
> getContentType() method of a ResourceState I return in the
> getResourceState() method of the Dynamic WebResource.
>
> How can I configure the name of the file which is displayed in the 'save
> as' dialog of the browser?
>
>



-- 
Clint Popetz
http://42lines.net
Scalable Web Application Development


DataTables and Cell Color

2009-05-25 Thread Daniel Ore
HiIs there a way to set the color of a cell in a DataTable (Actually I'm
using the AjaxFallbackDefaultDataTable but I guess that if there's a way it
must apply to all).

Thanks

___
Daniel Ore


AW: MarkupException, BUT WHY???

2009-05-25 Thread Dorothée Giernoth

I solved the problem myself.
- dg

 

-Ursprüngliche Nachricht-
Von: Dorothée Giernoth [mailto:dorothee.giern...@kds-kg.de] 
Gesendet: Montag, 25. Mai 2009 11:41
An: users@wicket.apache.org
Betreff: AW: MarkupException, BUT WHY???

Oh yeah, that might be helpful:
Here is the exception message:

WicketMessage: Unable to find component with id 'heading' in [MarkupContainer 
[Component id = _extend3]]. This means that you declared wicket:id=heading in 
your markup, but that you either did not add the component to your page at all, 
or that the hierarchy does not match.
[markup = 
file:/C:/workspace/MyApp/context/WEB-INF/classes/myapp/dbtest/ListTabelle.html
http://www.w3.org/TR/html4/loose.dtd";>




Datenbank-Designer




Willkommen beim DB-Designer 1.0! (c) by dg
Was möchten Sie tun:









Die in der Datenbank vorhandenen Tabellen:





























, index = 40, current = '' (line 6, column 7)]

Root cause:

org.apache.wicket.markup.MarkupException: Unable to find component with id 
'heading' in [MarkupContainer [Component id = _extend3]]. This means that you 
declared wicket:id=heading in your markup, but that you either did not add the 
component to your page at all, or that the hierarchy does not match.
[markup = 
file:/C:/workspace/MyApp/context/WEB-INF/classes/myapp/dbtest/ListTabelle.html
http://www.w3.org/TR/html4/loose.dtd";>




Datenbank-Designer




Willkommen beim DB-Designer 1.0! (c) by dg
Was möchten Sie tun:









Die in der Datenbank vorhandenen Tabellen:





























, index = 40, current = '' (line 6, column 7)]
at 
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:464)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1344)
at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1401)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1401)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1427)
at org.apache.wicket.Page.onRender(Page.java:1470)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.Page.renderPage(Page.java:904)
at 
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163)
at 
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)



-Ursprüngliche Nachricht

File names of dynamic web resources

2009-05-25 Thread Pi Trash
I am using DynamicWebResource to provide links to download files stored in a 
database. The only thing I do is to override the getData() and getContentType() 
method of a ResourceState I return in the getResourceState() method of the 
Dynamic WebResource.

How can I configure the name of the file which is displayed in the 'save as' 
dialog of the browser?

tia
__
Verschicken Sie SMS direkt vom Postfach aus - in alle deutschen und viele 
ausländische Netze zum gleichen Preis! 
https://produkte.web.de/webde_sms/sms




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



Generics in components

2009-05-25 Thread Frank Tegtmeyer
Hi,

I am still very very new to Java and Wicket of course too,
so excuse me if this is a dumb question.

I swiched my project to Wicket 1.4-rc4 now and got all these
wonderful warnings about the "Raw types" of the components
in my sources.
Are there any examples that highlight the handling of
the generic component types? I have no clue what type parameter
I have to give a form component for example (no clue for other
components too). Should it be the class of my model or anything
else? For validators I tried to set base types (Integer, ..)
and this worked. But still I have no clue if this is the right
thing to do.

Confused ... :)

Regards, Frank

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



static content / two jetty contexts?

2009-05-25 Thread Frank Tegtmeyer
Hi,

I got a Wicket project set up with Maven and work with it in Eclipse.

I like to deliver static content through a webserver directly (lighttpd
in this case). I do this also for the CSS framework that I use (YAML).

Now there ist the problem to include the static content during the
tests.

I package my application with an embedded Jetty server in a jar
file to make deployment simple. For the tests I use the
maven-jetty-plugin to be able to server the static content also.
Until now I can either get dynamic content OR static content.
So my question is how to combine both (I have no experience
with servlet containers and web.xml).

I tried to understand the jetty documentation, but with no
success :)
Any hint would be good.

Here is my plugin configuration:


   org.mortbay.jetty
   maven-jetty-plugin
   
  /
  ../website
  ../tp/src/main/webapp/WEB-INF/web.xml
   


And part of web.xml:


   wicket.tp
  /*


With kind regards,
Frank

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



AW: MarkupException, BUT WHY???

2009-05-25 Thread Dorothée Giernoth
Oh yeah, that might be helpful:
Here is the exception message:

WicketMessage: Unable to find component with id 'heading' in [MarkupContainer 
[Component id = _extend3]]. This means that you declared wicket:id=heading in 
your markup, but that you either did not add the component to your page at all, 
or that the hierarchy does not match.
[markup = 
file:/C:/workspace/MyApp/context/WEB-INF/classes/myapp/dbtest/ListTabelle.html
http://www.w3.org/TR/html4/loose.dtd";>




Datenbank-Designer




Willkommen beim DB-Designer 1.0! (c) by dg
Was möchten Sie tun:









Die in der Datenbank vorhandenen Tabellen:





























, index = 40, current = '' (line 6, column 7)]

Root cause:

org.apache.wicket.markup.MarkupException: Unable to find component with id 
'heading' in [MarkupContainer [Component id = _extend3]]. This means that you 
declared wicket:id=heading in your markup, but that you either did not add the 
component to your page at all, or that the hierarchy does not match.
[markup = 
file:/C:/workspace/MyApp/context/WEB-INF/classes/myapp/dbtest/ListTabelle.html
http://www.w3.org/TR/html4/loose.dtd";>




Datenbank-Designer




Willkommen beim DB-Designer 1.0! (c) by dg
Was möchten Sie tun:









Die in der Datenbank vorhandenen Tabellen:





























, index = 40, current = '' (line 6, column 7)]
at 
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:464)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1344)
at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1401)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1401)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1427)
at org.apache.wicket.Page.onRender(Page.java:1470)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.Page.renderPage(Page.java:904)
at 
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163)
at 
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)



-Ursprüngliche Nachricht-
Von: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] 
Gesendet: Montag, 25. Mai 2009 11:22
An: users@wicket.apache.org
Betreff: Re: MarkupException, BUT WHY???

What's the exception message?

2009/5/25 Dorothée Giernoth :
> 

Re: MarkupException, BUT WHY???

2009-05-25 Thread Martin Makundi
What's the exception message?

2009/5/25 Dorothée Giernoth :
> Hey all,
>
> I am quite new to Wicket, but I am trying some stuff to see how it works. 
> Right now I am trying my best to build a little database-designer, but I get 
> a MarkupException, but I dunno why. I am using MarkupInheritance ...
> My Code doesn't look very tidy, but I am still brave enough to post it. Hope 
> someone sees where it fails. Thank you in advance!
>
> My first class-file, where it calls the second class-file, that includes the 
> code, that will be loaded into the original html-file:
> -
> // DBDesigner.java:
> protected void onSubmit(){
>String o = ( String ) drop3.getObject();
>if( o.equals( "Datensaetze nur anzeigen" )){
>try{
>String tab = tableList.get( tabelle );
>/* RESPONSEPAGE CALLED HERE*/
>ListTabelle listing = new ListTabelle( tab );
>setResponsePage( listing );
>}
>catch(Exception e){
>System.out.println( "TIENES UNA PROBLEMA: " + e );
>}
>}
> }
> --
>
>
> It calls ListTabelle.java where I load data from a database according to the 
> choice of the user (the user chooses a table to collect to data from). I 
> build up a RepeatingView that holds the data.
> I tried to just print the data in a label for shit and giggles and it worked, 
> but something doesn't work with my RepeatingView (or with all the other 
> Components I tried ...). I am missing something and tried for days now to 
> figure out where my brain fails ... I just can't see it.
> Here is the code from ListTabelle.java (at least, what could be interesting):
> --
> package ...;
> import ...;
>
>
> public class ListTabelle extends DBDesigner implements Serializable{
>
>// VARIABLES ...
>
>  /**
>   * Constructor
>   * @param conMe
>   * @param tab
>   */
>  public ListTabelle( String tab ){
>this.tab = tab;
>
>try {
>
>/*
> *  CONNECTION TO DB:
> */
>...
>
>  try{
>showData();
>
>int sizeH = tabellenHeader.size();
>int sizeC = list.size();
>
>RepeatingView heading = new RepeatingView( "heading" );
>for( int i = 0; i <= sizeH; i++ ){
>  heading.add( new Label( heading.newChildId(),
>   tabellenHeader.get( 
> i ) ) );
>}
>add( heading );
>RepeatingView row = new RepeatingView( "row" );
>add( row );
>
>for( int j = 0; j <= sizeC; j++ ){
>  WebMarkupContainer r = new WebMarkupContainer(
>
> row.newChildId() );
>  RepeatingView cell = new RepeatingView( "cell" );
>  row.add(r);
>  r.add(cell);
>  cell.add( new Label( cell.newChildId(),
>list.get( j ) ) )  
>for( int d = 0; d <= sizeC; d++ ){
> cell.add( new Label( cell.newChildId(),
>  list.get( j )  ) );
>  }
>}
>
>
>
>/*
> * close the database
> */
>conMe.close();
>}
>catch( Exception e ){
>e.printStackTrace();
>}
>}
>
>
>/**
> * Bastelt die Ausgabe-Liste aus der Datenbank zusammen.
> */
>private void showData(){
>
>add( new Label( "infoText", "Ihre Daten werden angezeigt!" ) );
>
>list = new ArrayList();
>tabellenHeader = new ArrayList();
>try {
>Statement cs = conMe.createStatement();
>// Tabellen-Header abfragen:
>ResultSet header = cs.executeQuery(
>"SHOW COLUMNS FROM " + tab + 
> ";" );
>anzahlSpalten = 0;
>while( header.next() ){
>anzahlSpalten++;
>tabellenHeader.add( inhalt );
>list.add( inhalt );
>}
>
>

MarkupException, BUT WHY???

2009-05-25 Thread Dorothée Giernoth
Hey all,

I am quite new to Wicket, but I am trying some stuff to see how it works. Right 
now I am trying my best to build a little database-designer, but I get a 
MarkupException, but I dunno why. I am using MarkupInheritance ...
My Code doesn't look very tidy, but I am still brave enough to post it. Hope 
someone sees where it fails. Thank you in advance!

My first class-file, where it calls the second class-file, that includes the 
code, that will be loaded into the original html-file:
-
// DBDesigner.java:
protected void onSubmit(){
String o = ( String ) drop3.getObject();
if( o.equals( "Datensaetze nur anzeigen" )){
try{
String tab = tableList.get( tabelle );
/* RESPONSEPAGE CALLED HERE*/
ListTabelle listing = new ListTabelle( tab );
setResponsePage( listing );
}
catch(Exception e){
System.out.println( "TIENES UNA PROBLEMA: " + e );
}
}
}
--


It calls ListTabelle.java where I load data from a database according to the 
choice of the user (the user chooses a table to collect to data from). I build 
up a RepeatingView that holds the data.
I tried to just print the data in a label for shit and giggles and it worked, 
but something doesn't work with my RepeatingView (or with all the other 
Components I tried ...). I am missing something and tried for days now to 
figure out where my brain fails ... I just can't see it.
Here is the code from ListTabelle.java (at least, what could be interesting):
--
package ...;
import ...;


public class ListTabelle extends DBDesigner implements Serializable{

// VARIABLES ... 

  /**
   * Constructor
   * @param conMe
   * @param tab
   */
  public ListTabelle( String tab ){
this.tab = tab;

try {

/*
 *  CONNECTION TO DB:
 */
...

  try{
showData();

int sizeH = tabellenHeader.size();
int sizeC = list.size();

RepeatingView heading = new RepeatingView( "heading" );
for( int i = 0; i <= sizeH; i++ ){
  heading.add( new Label( heading.newChildId(),
   tabellenHeader.get( 
i ) ) );
}
add( heading );
RepeatingView row = new RepeatingView( "row" );
add( row );

for( int j = 0; j <= sizeC; j++ ){
  WebMarkupContainer r = new WebMarkupContainer( 

row.newChildId() );
  RepeatingView cell = new RepeatingView( "cell" );
  row.add(r);
  r.add(cell);
  cell.add( new Label( cell.newChildId(), 
list.get( j ) ) )   
  for( int d = 0; d <= sizeC; d++ ){
 cell.add( new Label( cell.newChildId(), 
  list.get( j )  ) );
  }
}



/* 
 * close the database 
 */
conMe.close();
} 
catch( Exception e ){
e.printStackTrace();
}
}


/**
 * Bastelt die Ausgabe-Liste aus der Datenbank zusammen.
 */
private void showData(){

add( new Label( "infoText", "Ihre Daten werden angezeigt!" ) );

list = new ArrayList();
tabellenHeader = new ArrayList();
try {
Statement cs = conMe.createStatement();
// Tabellen-Header abfragen:
ResultSet header = cs.executeQuery( 
"SHOW COLUMNS FROM " + tab + 
";" );
anzahlSpalten = 0;
while( header.next() ){
anzahlSpalten++;
tabellenHeader.add( inhalt );
list.

Re: Any forum (bb) components / applications written using Wicket?

2009-05-25 Thread nino martinez wael
Hi

I did the BBcode integration, it's very basic. But a starting point..

If you need something more, you could use Jforum it's since it's
possible todo a "single" sign on from your application to theirs..

http://www.jforum.net/



2009/5/24 Cristi Manole :
> Hello,
>
> I'm in the need of a forum (bulletin board) component / application written
> in Wicket to integrate in a larger Wicket application.
>
> Does anybody have one / know of one? Please promote it. :)
>
> I don't mind if it's still in alpha or something as I prefer building on top
> of that rather than starting from scratch :) I'm on a _very_ tight schedule.
>
> Thanks,
> --
> Cristi Manole
>
> Nova Creator Software
> www.novacreator.com
>

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



Re: Storing css and image files

2009-05-25 Thread Martijn Dashorst
or, if these images and css are for your application, and application
wide (i.e. all pages include them), you could put them in
src/main/webapp/..

and just  them in your markup.

Martijn

On Sun, May 24, 2009 at 6:17 PM, Lucas Bonansea
 wrote:
> Thanks for the responses, I'll try them out
>
> On Sun, May 24, 2009 at 9:51 AM, Jeremy Thomerson > wrote:
>
>> The most common "wicket way" is that they are stored in your java
>> packages, next to your class and html files.  This way they can be
>> packaged and reused in other applications, etc.  Then you reference
>> them with a resourcereference(ClassNextToThem.class,
>> "relative-path-from-class").
>>
>> Or you can put them in the same place and use wicket:link rather than
>> a resource reference.  Up to you.
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Sat, May 23, 2009 at 9:10 PM, Lucas Bonansea
>>  wrote:
>> > Hello.
>> >           I'm new to web development and to Wicket. I created an Wicket
>> > project in Eclipse following the instructions in the website, from there
>> and
>> > following the examples I have been able to create a couple of simple web
>> > pages. The problem I am having, is that I don't know where to store my
>> css
>> > file and my image files so that they would be loaded when I execute my
>> new
>> > web pages.
>> >           If possible I would like to do it using relative paths so then
>> I
>> > can deploy my war elsewhere
>> >
>> > Thanks
>> >
>> > Lucas B
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread Per Lundholm
I assume you have read the parts about validation in Wicket.

There are several examples of integrating Wicket with various
JavaScript libraries, such as Dojo.

/Per


2009/5/25 David Chang :
>
>
> I am now reading the book "Wicket in Action" to learn about Wicket. The more 
> I read and the more I like it!
>
> I did a few projects with Spring MVC in the past. In these projects, I 
> defined form field validation rules in an XML file and Spring adds both 
> client side and server-side, which I think is quite helpful.
>
> I just want to know how to do the same thing in Wicket. The validation rules 
> dont have to be in an XML file and they can be in Wicket's Java files, but I 
> hope Wicket can generate client-side validation.
>
> Please dont argue with me about the good or bad things about client-side 
> validation. I simply want to know whether Wicket can do it or how to it, as 
> well as any attempt in this regard.
>
> Thanks so much for your help!
>
> Cheers!
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
FaceBush, min insamling i Mustaschkampen:
http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243

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