Re: [Wicket-user] has anyone got a book on wicket?

2007-01-10 Thread Martijn Dashorst
Can you read chinese? Then there is one available for you.

http://jroller.com/page/dashorst?entry=new_wicket_book_reaches_out

Martijn


On 1/11/07, snkr subedi <[EMAIL PROTECTED]> wrote:
> Hi,
> If anyone has got a free book on wicket please help me
> I think i need to go through some more tutorials
>
> Please guide me
> thanks in advance
> sNkr
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] has anyone got a book on wicket?

2007-01-10 Thread Eelco Hillenius
It's not free, but at $20 for the electronic version, this
http://www.apress.com/book/bookDisplay.html?bID=10189 is a bargain :)

Eelco


On 1/10/07, snkr subedi <[EMAIL PROTECTED]> wrote:
> Hi,
> If anyone has got a free book on wicket please help me
> I think i need to go through some more tutorials
>
> Please guide me
> thanks in advance
> sNkr
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] has anyone got a book on wicket?

2007-01-10 Thread snkr subedi
Hi,
If anyone has got a free book on wicket please help me
I think i need to go through some more tutorials

Please guide me
thanks in advance
sNkr

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-10 Thread Ian Clarke
Just kinda taking this thread back to where it started:

Does anyone have a .jar for wicket-stuff that will work with the
Wicket 1.x branch?

Ian.

On 1/9/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> That would be great. Maybe we can run the wicket-stuff examples there, too.
> Is it possible for the wicket-stuff maintainers to get access to said box.
>
> thx,
> jim
>
> On 1/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > Yeah, we can't use Apache's infrastructure for wicket-stuff. However,
> > we have a couple of servers available that are not related to Apache I
> > believe.
> >
> > Eelco
> >
> > On 1/9/07, James McLaughlin < [EMAIL PROTECTED]> wrote:
> > > I thought there were licensing issues that prevented us from hosting the
> > > wicket-stuff wiki with the wicket wiki on apache.org. If not, then I am
> for
> > > it. I have never used confluence so maybe someone who knows better can
> > > comment why it is so much better than the other wiki frameworks out
> there.
> > >
> > >
> > > On 1/9/07, Filippo Diotalevi < [EMAIL PROTECTED]> wrote:
> > > > On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > > > > Filippo seems to have experience with confluence,  however, I'm
> still
> > > > > wondering if we can use it, as i dont know
> > > > > a, how to get the license or if we may use the Apache ones for it
> > > > > b, on what server we will put it up - SF.net seems to limit to cgi
> only
> > > and
> > > > > I cant remember to have seen cgi option on the confluence webpage.
> > > >
> > > > Yes, I have some experience with confluence, and it's powerful but
> > > > simple to use (customization can be a bit more tricky, but we might
> > > > easily start using the default template).
> > > > Furthermore, you can set up different 'workspaces', so you need just
> > > > one license to create different wikis.
> > > >
> > > > If there's already confluence installation for wicket, I'd go with it,
> > > > and I'd be happy to maintain it.
> > > >
> > > > --
> > > > Filippo Diotalevi
> > > > [EMAIL PROTECTED]
> > > > http://www.diotalevi.com/weblog
> > > > http://www.jugmilano.it
> > > >
> > > >
> > >
> -
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > your
> > > > opinions on IT & business topics through brief surveys - and earn cash
> > > >
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] no cursor in the modal window

2007-01-10 Thread Prashant Khanal
hello all
i found no cursor in the modal window. Is it the
default behavior.How to make cursor appear in the
input field of the modal window?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread Igor Vaynberg

filelink is just a few lines of code, create your own class that retrieves
the file lazily

-igor


On 1/10/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:


hi,
you didn't give the answer. when you create a download link , you have to
put a file that cannot be null into  the constructor.  now I have to create
a fake file into downloadlink ,then hidden it when the condition is not ok.
it's very verbose!!!.




Message: 6
Date: Wed, 10 Jan 2007 16:51:46 +0100
From: "Martijn Dashorst" <[EMAIL PROTECTED]>
Subject: Re: [Wicket-user] how to create a link without markup id?
To: wicket-user@lists.sourceforge.net
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

add(new LInk("link") {}.setVisible(someCondition));

Martijn

On 1/10/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:
> I need show a downloadlink when a record has a attachment  info.  since
the reocrd may have not attachment, the downloadlink must be create by
condition.  how can i do it ?
> I also feel puzzle for how to do generate a system menu or some dymic
link . since the componet have to bind with some id.
>
> Need i add a webmarkcontainer to hold the id of downloadlink to  do this
? it's  too verbose.
>
> or it's another question, could I decide bind the compoent into the id
by condition?
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


--
Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org



--

Message: 7
Date: Wed, 10 Jan 2007 16:54:06 +0100
From: Erik van Oosten <[EMAIL PROTECTED]>
Subject: Re: [Wicket-user] how to create a link without markup id?
To: wicket-user@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

To answer a part of your question:

You can 'hide' elements on a condition like this:

add(new SomeComponent() {
   public boolean isVisible() {
   return your_condition;
   }
});

Regards,
 Erik.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread tooy li(Gmail)
hi,
you didn't give the answer. when you create a download link , you have to put a 
file that cannot be null into  the constructor.  now I have to create a fake 
file into downloadlink ,then hidden it when the condition is not ok. it's very 
verbose!!!.

 


Message: 6
Date: Wed, 10 Jan 2007 16:51:46 +0100
From: "Martijn Dashorst" <[EMAIL PROTECTED]>
Subject: Re: [Wicket-user] how to create a link without markup id?
To: wicket-user@lists.sourceforge.net
Message-ID:
 <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

add(new LInk("link") {}.setVisible(someCondition));

Martijn

On 1/10/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:
> I need show a downloadlink when a record has a attachment  info.  since the 
> reocrd may have not attachment, the downloadlink must be create by condition. 
>  how can i do it ?
> I also feel puzzle for how to do generate a system menu or some dymic link . 
> since the componet have to bind with some id.
>
> Need i add a webmarkcontainer to hold the id of downloadlink to  do this ? 
> it's  too verbose.
>
> or it's another question, could I decide bind the compoent into the id by 
> condition?
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org



--

Message: 7
Date: Wed, 10 Jan 2007 16:54:06 +0100
From: Erik van Oosten <[EMAIL PROTECTED]>
Subject: Re: [Wicket-user] how to create a link without markup id?
To: wicket-user@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

To answer a part of your question:

You can 'hide' elements on a condition like this:

add(new SomeComponent() {
   public boolean isVisible() {
   return your_condition;
   }
});

Regards,
 Erik.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Setting attributes on a list view

2007-01-10 Thread Eelco Hillenius
Not a bad idea.

Eelco

On 1/10/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> as a sidenote, i think a few tag-interfaces are in order:
>
> INotRenderable, INotAjaxifiable, names up for grabs.
>
> what this can do is give the user some nice runtime errors that explain
> whats wrong. listview, for example, would implement both.
>
> INotRenderable - throw exception when a behavior is added, figure out a way
> to lock out oncomponenttag overrides
>
> INotAjaxifiable - throw error when added to ajax target for repainting
>
> just some brain farts
>
> -igor
>
>
>
> On 1/10/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > Someone (nick eugs) had a question on the IRC channel today. I gave
> > the wrong answer unfortunately, and I'm afraid this is quite a common
> > mistake to make anyway.
> >
> > Q: I want to change an attribute of the list view. So say, the list
> > view is attached to tag ..., I want it to
> > render as  I tried adding
> > an attribute modifier to the list view: myListView.add(new
> > SimpleAttributeModifier("myattrib", "foo")), but it
> doesn't show up. I
> > also tried overriding onComponentTag of the list view, but this never
> > gets called.
> >
> > A: ListView is a weird bastard. The actual component itself is never
> > rendered, but for every row, the child components it creates (the
> > ListItem components you get passed in the populateItem method) get
> > rendered instead. This is something to get used to, but once you get
> > the solutions like this question are easy: attach the attribute
> > modifier to the list item instead of to the list view:
> >
> > add(new myListView("someid", list) {
> >   protected void populateItem(ListItem listItem) {
> > listItem.add(new SimpleAttributeModifier("myattrib",
> "foo"));
> > ...
> >   }
> > });
> >
> > If I didn't make any grave mistakes and all, could someone be so kind
> > to put this (maybe with more list view examples?) in the WIKI
> > somewhere?
> >
> > Eelco
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Any more wicket articles?

2007-01-10 Thread Igor Vaynberg

http://www.oreillynet.com/onjava/blog/2007/01/wicket_another_java_web_framew.html



On 1/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> Hello,
>
> I just updated the wiki page
> http://cwiki.apache.org/confluence/display/WICKET/Articles+about+Wicket
> but there must surely be more articles on Wicket out there?!

There should be a couple more, maybe we need to do a bit more googling. :)

But... let this be a call to all readers to write some more articles!

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread Igor Vaynberg

cool, thanks for the comparison, a few points to discuss

On 1/10/07, V. Jenks <[EMAIL PROTECTED]> wrote:



1. select lists are *much* easier to populate, manipulate, and deal with.
;)



can i have an example of code?

2. paging and sorting tables/grids/lists are *much, much* easier to

implement, something I wish would be made easier in Wicket.  I'd do it
myself if I had time...and tried in the past...but am just not skilled
enough to do yet.



once more, got a code example?

in wicket its just:
SortableDataProvider dp=createdataprovider();
List cols=createcolumns();
add(new DefaultDataTable("id", cols, dp, pagesize)


3. IDE support - both Netbeans and Eclipse have good support for JSF...it'd

be nice if the tools supported the technology in Wicket (convenience
stuff).
I haven't tried the eclipse plugin but I'm not sure it would work well w/
a
MyEclipse enterprise projectand I do mostly EJB3.0 architecture.



unfortunately wicket not being limited to beans the ide support is hard to
implement. it has the same problems as swing gui editors and the code they
generated, roundtripping, etc

fwiw the plugin should work fine and makes a world of difference.

4. Databinding - sometimes it is nice to set it and forget it...and only use

components when you need it.  This of course, is contrary to Wicket...and
differs too much conceptually to do anything about.



yeah, but dont forget you can create impls of idataprovider, or even
subclasses of datatables that encapsulate all this if you need to reuse it
in many places.



5. Seamless capability to go stateless.



yep, we might work on that, we might not. we do not see statelessness as a
good thing necessarily.

6. I can inject a session bean into a JSF 1.2 managed bean using an @EJB

annoation...quick and simple.  I have to use JNDI lookups in Wicket...more
code to manage.



ah, but with very little work: wrapping that jndi lookup in an impl of
IFieldValueFactory you can do the same with wicket. in fact there is a new
project in wicket-stuff that does this :)

7. The "model" concept can be tricky in certain cases and isn't intuitive...


because it is so simple it is very flexible and powerful. unfortunately
because it is so simple it is also hard to understand as it has very few
constraints. dont think we can do anything about it if we want to keep it as
powerful as it is now.

-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Setting attributes on a list view

2007-01-10 Thread Igor Vaynberg

as a sidenote, i think a few tag-interfaces are in order:

INotRenderable, INotAjaxifiable, names up for grabs.

what this can do is give the user some nice runtime errors that explain
whats wrong. listview, for example, would implement both.

INotRenderable - throw exception when a behavior is added, figure out a way
to lock out oncomponenttag overrides

INotAjaxifiable - throw error when added to ajax target for repainting

just some brain farts

-igor


On 1/10/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Someone (nick eugs) had a question on the IRC channel today. I gave
the wrong answer unfortunately, and I'm afraid this is quite a common
mistake to make anyway.

Q: I want to change an attribute of the list view. So say, the list
view is attached to tag ..., I want it to
render as  I tried adding
an attribute modifier to the list view: myListView.add(new
SimpleAttributeModifier("myattrib", "foo")), but it doesn't show up. I
also tried overriding onComponentTag of the list view, but this never
gets called.

A: ListView is a weird bastard. The actual component itself is never
rendered, but for every row, the child components it creates (the
ListItem components you get passed in the populateItem method) get
rendered instead. This is something to get used to, but once you get
the solutions like this question are easy: attach the attribute
modifier to the list item instead of to the list view:

add(new myListView("someid", list) {
  protected void populateItem(ListItem listItem) {
listItem.add(new SimpleAttributeModifier("myattrib", "foo"));
...
  }
});

If I didn't make any grave mistakes and all, could someone be so kind
to put this (maybe with more list view examples?) in the WIKI
somewhere?

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks

That worked, thanks a lot.


igor.vaynberg wrote:
> 
> first, you dont need to specify that IChoiceRenderer as it does what the
> default one does
> 
> second, you are doing this: form.add(new DropDownChoice("phoneType", new
> Model(),
> 
> that newModel() isnt bound to your entity, so use a constructor without
> that
> IModel param - that way the compound property model will get used.
> 
> -igor
> 
> 
> On 1/10/07, V. Jenks <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all, been a long hiatus for me but I'm diving back into Wicket
>> finally.
>>
>> I'm a little rusty (was forced, against my will, to use JSF for the past
>> couple of months!) - and I've got a silly question...should be a snap.
>>
>> I've got a DropDownChoice select list on a page I simply need to fill w/
>> strings.  It's not table-driven data, it's flat, and it's not represented
>> as
>> an entity/POJO...I simply need to select a single string from a list of
>> strings.
>>
>> Here's a snippet:
>>
>>
>> ..
>>
>> //editable entity
>> PhoneNumber number = new PhoneNumber();
>>
>> //add form
>> final Form form = new Form("editPhoneForm", new
>> CompoundPropertyModel(number));
>>
>> List phoneTypeItems = new ArrayList();
>> phoneTypeItems.add("office");
>> phoneTypeItems.add("cell");
>> phoneTypeItems.add("division");
>>
>> //add dropdown select form control
>> form.add(new DropDownChoice("phoneType", new Model(),
>> phoneTypeItems)
>> {
>> public String getDisplayValue(Object object)
>> {
>> return object.toString();
>> }
>>
>> public String getIdValue(Object object, int
>> index)
>> {
>> return object.toString();
>> }
>> }.setRequired(true));
>>
>>
>> 
>>
>> Now, when I pull up the page, it displays...all the values are there.
>> BUT...I get the value is null when the form is submitted...it isn't
>> getting
>> the value.
>>
>> I'm using JBoss/EJB3 and I get this exception:
>>
>> org.hibernate.PropertyValueException: not-null property references a null
>> or
>> transient value: com.agribeef.ed.model.PhoneNumber.phoneType
>>
>> Any suggestions?  Thanks!  Glad to be back!
>> --
>> View this message in context:
>> http://www.nabble.com/plain-%27ol-DropDownChoice-of-strings---tf2955745.html#a8268348
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/plain-%27ol-DropDownChoice-of-strings---tf2955745.html#a8269156
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks

One more thing :D

Wicket has a fantastic group of developers and the support has been
top-knotch...the same can't be said about every project.

If this mailing list wasn't here I might not have used Wicket so much...or
at all.


igor.vaynberg wrote:
> 
> offtopic, would like to hear about your jsf experience compared to wicket.
> anything you found better that we can improve?
> 
> -igor
> 
> 
> On 1/10/07, V. Jenks <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all, been a long hiatus for me but I'm diving back into Wicket
>> finally.
>>
>> I'm a little rusty (was forced, against my will, to use JSF for the past
>> couple of months!) - and I've got a silly question...should be a snap.
>>
>> I've got a DropDownChoice select list on a page I simply need to fill w/
>> strings.  It's not table-driven data, it's flat, and it's not represented
>> as
>> an entity/POJO...I simply need to select a single string from a list of
>> strings.
>>
>> Here's a snippet:
>>
>>
>> ..
>>
>> //editable entity
>> PhoneNumber number = new PhoneNumber();
>>
>> //add form
>> final Form form = new Form("editPhoneForm", new
>> CompoundPropertyModel(number));
>>
>> List phoneTypeItems = new ArrayList();
>> phoneTypeItems.add("office");
>> phoneTypeItems.add("cell");
>> phoneTypeItems.add("division");
>>
>> //add dropdown select form control
>> form.add(new DropDownChoice("phoneType", new Model(),
>> phoneTypeItems)
>> {
>> public String getDisplayValue(Object object)
>> {
>> return object.toString();
>> }
>>
>> public String getIdValue(Object object, int
>> index)
>> {
>> return object.toString();
>> }
>> }.setRequired(true));
>>
>>
>> 
>>
>> Now, when I pull up the page, it displays...all the values are there.
>> BUT...I get the value is null when the form is submitted...it isn't
>> getting
>> the value.
>>
>> I'm using JBoss/EJB3 and I get this exception:
>>
>> org.hibernate.PropertyValueException: not-null property references a null
>> or
>> transient value: com.agribeef.ed.model.PhoneNumber.phoneType
>>
>> Any suggestions?  Thanks!  Glad to be back!
>> --
>> View this message in context:
>> http://www.nabble.com/plain-%27ol-DropDownChoice-of-strings---tf2955745.html#a8268348
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/plain-%27ol-DropDownChoice-of-strings---tf2955745.html#a8269135
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Setting attributes on a list view

2007-01-10 Thread Eelco Hillenius
Someone (nick eugs) had a question on the IRC channel today. I gave
the wrong answer unfortunately, and I'm afraid this is quite a common
mistake to make anyway.

Q: I want to change an attribute of the list view. So say, the list
view is attached to tag ..., I want it to
render as  I tried adding
an attribute modifier to the list view: myListView.add(new
SimpleAttributeModifier("myattrib", "foo")), but it doesn't show up. I
also tried overriding onComponentTag of the list view, but this never
gets called.

A: ListView is a weird bastard. The actual component itself is never
rendered, but for every row, the child components it creates (the
ListItem components you get passed in the populateItem method) get
rendered instead. This is something to get used to, but once you get
the solutions like this question are easy: attach the attribute
modifier to the list item instead of to the list view:

add(new myListView("someid", list) {
  protected void populateItem(ListItem listItem) {
listItem.add(new SimpleAttributeModifier("myattrib", "foo"));
...
  }
});

If I didn't make any grave mistakes and all, could someone be so kind
to put this (maybe with more list view examples?) in the WIKI
somewhere?

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks

Sure, I'd be happy to comment on that.

Some constructive criticism; there are many things that JSF does easier
and/or better (IMO) than Wicket.

1. select lists are *much* easier to populate, manipulate, and deal with. ;)
2. paging and sorting tables/grids/lists are *much, much* easier to
implement, something I wish would be made easier in Wicket.  I'd do it
myself if I had time...and tried in the past...but am just not skilled
enough to do yet.
3. IDE support - both Netbeans and Eclipse have good support for JSF...it'd
be nice if the tools supported the technology in Wicket (convenience stuff). 
I haven't tried the eclipse plugin but I'm not sure it would work well w/ a
MyEclipse enterprise projectand I do mostly EJB3.0 architecture.
4. Databinding - sometimes it is nice to set it and forget it...and only use
components when you need it.  This of course, is contrary to Wicket...and
differs too much conceptually to do anything about.
5. Seamless capability to go stateless.
6. I can inject a session bean into a JSF 1.2 managed bean using an @EJB
annoation...quick and simple.  I have to use JNDI lookups in Wicket...more
code to manage.
7. The "model" concept can be tricky in certain cases and isn't intuitive...

Things I do NOT like about JSF and therefore *still* prefer Wicket over any
other front-end that I've tried:

1. jsf-config.xml - I don't like this concept at all...it's tedious,
unintuitive, and cumbersome to manage.  Why do they still believe we need
XML configuration!!  This is one of my favorite things about
Wicket...simplicity.
2. JSTL - The slippery-slope of introducing business logic into your view.
3. The component model isn't simple...and it's not always consistent.
4. 1.2 is being adopted slowly and Glassfish is the only AS (that I know
of?) that offers it...and I've given up on Glassfish after a few crappy
experiences.

My overall impression of JSF vs Wicket is; sometimes in Wicket it would be
nice if some of the finer details were concealed in convenience methods or
done automatically.  The first thing that comes to mind is alternating row
color.  I have to write some gnarly (albeit short) code to do this in
Wicket...in JSF I just specify two css classes in a single tag attribute in
the view.  There are other cases like this but you get the point - sometimes
writing separate classes and tons of code to implement something simple
could be more easily hidden.  I cited paging/sorting - I still haven't
gotten this right in wicket...it's just complicated to implement...and is
trivial in JSF, ASP.NET, and other front-ends I've experienced.

Ultimately, JSF is more complicated and harder to manage...and not as rapid
to develop with as Wicket has been for me in the past.  Wicket is just a
great "pick it up and run w/ it" framework w/ a short(er) learning curve.


igor.vaynberg wrote:
> 
> offtopic, would like to hear about your jsf experience compared to wicket.
> anything you found better that we can improve?
> 
> -igor
> 
> 
> On 1/10/07, V. Jenks <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all, been a long hiatus for me but I'm diving back into Wicket
>> finally.
>>
>> I'm a little rusty (was forced, against my will, to use JSF for the past
>> couple of months!) - and I've got a silly question...should be a snap.
>>
>> I've got a DropDownChoice select list on a page I simply need to fill w/
>> strings.  It's not table-driven data, it's flat, and it's not represented
>> as
>> an entity/POJO...I simply need to select a single string from a list of
>> strings.
>>
>> Here's a snippet:
>>
>>
>> ..
>>
>> //editable entity
>> PhoneNumber number = new PhoneNumber();
>>
>> //add form
>> final Form form = new Form("editPhoneForm", new
>> CompoundPropertyModel(number));
>>
>> List phoneTypeItems = new ArrayList();
>> phoneTypeItems.add("office");
>> phoneTypeItems.add("cell");
>> phoneTypeItems.add("division");
>>
>> //add dropdown select form control
>> form.add(new DropDownChoice("phoneType", new Model(),
>> phoneTypeItems)
>> {
>> public String getDisplayValue(Object object)
>> {
>> return object.toString();
>> }
>>
>> public String getIdValue(Object object, int
>> index)
>> {
>> return object.toString();
>> }
>> }.setRequired(true));
>>
>>
>> 
>>
>> Now, when I pull up the page, it displays...all the values are there.
>> BUT...I get the value is null when the form is submitted...it isn't
>> getting
>> the value.
>>
>> I'm usin

Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread Igor Vaynberg

offtopic, would like to hear about your jsf experience compared to wicket.
anything you found better that we can improve?

-igor


On 1/10/07, V. Jenks <[EMAIL PROTECTED]> wrote:



Hi all, been a long hiatus for me but I'm diving back into Wicket finally.

I'm a little rusty (was forced, against my will, to use JSF for the past
couple of months!) - and I've got a silly question...should be a snap.

I've got a DropDownChoice select list on a page I simply need to fill w/
strings.  It's not table-driven data, it's flat, and it's not represented
as
an entity/POJO...I simply need to select a single string from a list of
strings.

Here's a snippet:


..

//editable entity
PhoneNumber number = new PhoneNumber();

//add form
final Form form = new Form("editPhoneForm", new
CompoundPropertyModel(number));

List phoneTypeItems = new ArrayList();
phoneTypeItems.add("office");
phoneTypeItems.add("cell");
phoneTypeItems.add("division");

//add dropdown select form control
form.add(new DropDownChoice("phoneType", new Model(),
phoneTypeItems)
{
public String getDisplayValue(Object object)
{
return object.toString();
}

public String getIdValue(Object object, int index)
{
return object.toString();
}
}.setRequired(true));




Now, when I pull up the page, it displays...all the values are there.
BUT...I get the value is null when the form is submitted...it isn't
getting
the value.

I'm using JBoss/EJB3 and I get this exception:

org.hibernate.PropertyValueException: not-null property references a null
or
transient value: com.agribeef.ed.model.PhoneNumber.phoneType

Any suggestions?  Thanks!  Glad to be back!
--
View this message in context:
http://www.nabble.com/plain-%27ol-DropDownChoice-of-strings---tf2955745.html#a8268348
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread Igor Vaynberg

first, you dont need to specify that IChoiceRenderer as it does what the
default one does

second, you are doing this: form.add(new DropDownChoice("phoneType", new
Model(),

that newModel() isnt bound to your entity, so use a constructor without that
IModel param - that way the compound property model will get used.

-igor


On 1/10/07, V. Jenks <[EMAIL PROTECTED]> wrote:



Hi all, been a long hiatus for me but I'm diving back into Wicket finally.

I'm a little rusty (was forced, against my will, to use JSF for the past
couple of months!) - and I've got a silly question...should be a snap.

I've got a DropDownChoice select list on a page I simply need to fill w/
strings.  It's not table-driven data, it's flat, and it's not represented
as
an entity/POJO...I simply need to select a single string from a list of
strings.

Here's a snippet:


..

//editable entity
PhoneNumber number = new PhoneNumber();

//add form
final Form form = new Form("editPhoneForm", new
CompoundPropertyModel(number));

List phoneTypeItems = new ArrayList();
phoneTypeItems.add("office");
phoneTypeItems.add("cell");
phoneTypeItems.add("division");

//add dropdown select form control
form.add(new DropDownChoice("phoneType", new Model(),
phoneTypeItems)
{
public String getDisplayValue(Object object)
{
return object.toString();
}

public String getIdValue(Object object, int index)
{
return object.toString();
}
}.setRequired(true));




Now, when I pull up the page, it displays...all the values are there.
BUT...I get the value is null when the form is submitted...it isn't
getting
the value.

I'm using JBoss/EJB3 and I get this exception:

org.hibernate.PropertyValueException: not-null property references a null
or
transient value: com.agribeef.ed.model.PhoneNumber.phoneType

Any suggestions?  Thanks!  Glad to be back!
--
View this message in context:
http://www.nabble.com/plain-%27ol-DropDownChoice-of-strings---tf2955745.html#a8268348
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] plain 'ol DropDownChoice of strings??

2007-01-10 Thread V. Jenks

Hi all, been a long hiatus for me but I'm diving back into Wicket finally.

I'm a little rusty (was forced, against my will, to use JSF for the past
couple of months!) - and I've got a silly question...should be a snap.

I've got a DropDownChoice select list on a page I simply need to fill w/
strings.  It's not table-driven data, it's flat, and it's not represented as
an entity/POJO...I simply need to select a single string from a list of
strings.

Here's a snippet:

..

//editable entity
PhoneNumber number = new PhoneNumber();

//add form
final Form form = new Form("editPhoneForm", new
CompoundPropertyModel(number));

List phoneTypeItems = new ArrayList();
phoneTypeItems.add("office");
phoneTypeItems.add("cell");
phoneTypeItems.add("division");

//add dropdown select form control
form.add(new DropDownChoice("phoneType", new Model(), 
phoneTypeItems)
{
public String getDisplayValue(Object object)
{
return object.toString();
}

public String getIdValue(Object object, int index)
{
return object.toString();
}
}.setRequired(true));



Now, when I pull up the page, it displays...all the values are there. 
BUT...I get the value is null when the form is submitted...it isn't getting
the value.

I'm using JBoss/EJB3 and I get this exception:

org.hibernate.PropertyValueException: not-null property references a null or
transient value: com.agribeef.ed.model.PhoneNumber.phoneType

Any suggestions?  Thanks!  Glad to be back!
-- 
View this message in context: 
http://www.nabble.com/plain-%27ol-DropDownChoice-of-strings---tf2955745.html#a8268348
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Validation of RadioGroup, DropDownChoice etc.

2007-01-10 Thread Igor Vaynberg

afaik both of these should already support isrequired

-igor


On 1/10/07, jan_bar <[EMAIL PROTECTED]> wrote:


Hi,

it would be nice if setRequired(true) works on RadioGroup or
DropDownChoice
and similar controls. For instance, radio group with initial state that
has
no radio "checked", user is required to select one, there is no default
value. When RadioGroup has required=true, it will verify if one of he
radios
is "checked", otherwise it displays error "select one of the choices". The
same logic can be applied to DropdownChoice, the "Choose one" entry is
invalid input.
How can I implements this behaviour in wicket-1.2.4?

Thanks for your support and precious time, Jan




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Expiring Pages

2007-01-10 Thread Igor Vaynberg

remove the selfupdating one, and just leave the timer. you dont need to put
anything into the ontimer() event, the point is that the behavior generated
a callback to the page so it keeps your session alive.

-igor


On 1/10/07, suranjay <[EMAIL PROTECTED]> wrote:



Thank you!

I put the following code in the constructor of my web-pages.

add(new AjaxSelfUpdatingTimerBehavior(Duration.minutes(10)));
add(new AbstractAjaxTimerBehavior(Duration.minutes(10))
{
/**
 * @see
wicket.ajax.AbstractAjaxTimerBehavior#onTimer(
wicket.ajax.AjaxRequestTarget)
 */
protected void onTimer(AjaxRequestTarget target)
{

}
});

I put both of 'em in for good measure.
Is this supposed to do the trick?
What shud I put inside the onTimer() method to ping the server?
I have no Wicket Ajax componenets on the page.

As always, any help is greatly appreciated.
--
View this message in context:
http://www.nabble.com/Expiring-Pages-tf2946013.html#a8256584
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread Erik van Oosten
To answer a part of your question:

You can 'hide' elements on a condition like this:

add(new SomeComponent() {
   public boolean isVisible() {
   return your_condition;
   }
});

Regards,
 Erik.


tooy li(Gmail) schreef:
> I need show a downloadlink when a record has a attachment  info.  since the 
> reocrd may have not attachment, the downloadlink must be create by condition. 
>  how can i do it ?
> I also feel puzzle for how to do generate a system menu or some dymic link . 
> since the componet have to bind with some id.
>
> Need i add a webmarkcontainer to hold the id of downloadlink to  do this ? 
> it's  too verbose.
>
> or it's another question, could I decide bind the compoent into the id by 
> condition?
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to create a link without markup id?

2007-01-10 Thread Martijn Dashorst
add(new LInk("link") {}.setVisible(someCondition));

Martijn

On 1/10/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:
> I need show a downloadlink when a record has a attachment  info.  since the 
> reocrd may have not attachment, the downloadlink must be create by condition. 
>  how can i do it ?
> I also feel puzzle for how to do generate a system menu or some dymic link . 
> since the componet have to bind with some id.
>
> Need i add a webmarkcontainer to hold the id of downloadlink to  do this ? 
> it's  too verbose.
>
> or it's another question, could I decide bind the compoent into the id by 
> condition?
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to create a link without markup id?

2007-01-10 Thread tooy li(Gmail)
I need show a downloadlink when a record has a attachment  info.  since the 
reocrd may have not attachment, the downloadlink must be create by condition.  
how can i do it ?
I also feel puzzle for how to do generate a system menu or some dymic link . 
since the componet have to bind with some id.

Need i add a webmarkcontainer to hold the id of downloadlink to  do this ? it's 
 too verbose.

or it's another question, could I decide bind the compoent into the id by 
condition?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ApacheCon Europe 2007

2007-01-10 Thread Marc-Andre Houle

If i wasn't in Montreal/Quebec/Canada, I would definitely go with something
like drinking beer!  Damn it, Europe is too far away to get there and get
back in one day and not paying for an airplane ticket!

Eh, too bad :)

Marc

On 1/9/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


As you all probably know, the Apache conference Apache Con Europe 2007
is getting closer (read more about it here: http://apachecon.com)

We can try to organize a couple of get to gethers. I already submitted
an Introduction to Wicket presentation (it still has to be accepted).
We are also preparing an Introductory course (3 hours) for the monday.

I want to propose to put in a birds of a feather for the Wicket
community. Birds of a feather are typically held in the evening.

I was wondering if you come, and what you would expect of such a get
together. Ideas could be:
- discuss 2.0/2.1/3.0 roadmap
- get some real applications shown
- discuss other projects, such as wicket stuff
- discuss the future of the wicket 1.x branch
- ask the core team

Or more mundane things such as drinking beer. Any thoughts?

Martijn

--
Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Expiring Pages

2007-01-10 Thread suranjay

Thank you!

I put the following code in the constructor of my web-pages.

add(new AjaxSelfUpdatingTimerBehavior(Duration.minutes(10)));
add(new AbstractAjaxTimerBehavior(Duration.minutes(10))
{
/**
 * @see
wicket.ajax.AbstractAjaxTimerBehavior#onTimer(wicket.ajax.AjaxRequestTarget)
 */
protected void onTimer(AjaxRequestTarget target)
{
   
}
});

I put both of 'em in for good measure.
Is this supposed to do the trick?
What shud I put inside the onTimer() method to ping the server?  
I have no Wicket Ajax componenets on the page.

As always, any help is greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/Expiring-Pages-tf2946013.html#a8257308
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Validation of RadioGroup, DropDownChoice etc.

2007-01-10 Thread jan_bar
Hi,

it would be nice if setRequired(true) works on RadioGroup or DropDownChoice
and similar controls. For instance, radio group with initial state that has
no radio "checked", user is required to select one, there is no default
value. When RadioGroup has required=true, it will verify if one of he radios
is "checked", otherwise it displays error "select one of the choices". The
same logic can be applied to DropdownChoice, the "Choose one" entry is
invalid input.
How can I implements this behaviour in wicket-1.2.4?

Thanks for your support and precious time, Jan




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-10 Thread Nili Adoram

Indeed there was an error since I put an  tag for the 
AjaxSubmitLink inside the markup instead of  tag.
I fixed the markup and now the form is submitted, the modal window is 
closed and the window closed callback is invoked.

Thank you,
Nili


Matej Knopp wrote:
> Can you please check your log? Probably there will be an exception. Can 
> you post the stacktrace?
>
> -Matej
>
> Nili Adoram wrote:
>   
>> I tried replacing the original SubmitLink in the form with an 
>> AjaxSubmitLink:
>>
>> public class AdvancedSearchForm extends Form {
>>
>> private static final String id = "advanedSearchFrom";
>>
>> public AdvancedSearchForm(IModel model) {
>> super(id, model);
>>   
>> add(new TextField("name"));
>> add(new TextField("user"));
>>
>> //  old code:
>> //add(new SubmitLink("submitSearch"));
>> add(new AjaxSubmitLink("submitSearch",AdvancedSearchForm.this){
>>
>> @Override
>> protected void onSubmit(AjaxRequestTarget target, Form form) {
>> ModalWindow.close(target);
>>
>> }});
>> }
>>  
>> }
>>
>> However the modal window did not open and the following errors were 
>> displayed:
>>
>> Firefox Error console:
>> 
>> Error: no element found
>> Source File: 
>> http://nilia/provision?wicket:interface=:9:simpleSearchPanel:advancedSearch::IBehaviorListener&wicket:behaviorId=0&random=0.6456663530703572
>> Line: 1, Column: 54
>> Source Code:
>> > encoding="UTF-8"?>-^
>> Error: no element found
>> Source File: 
>> http://nilia/provision/plugins/request-provision/ProvisioningRequests
>> Line: 1, Column: 54
>> Source Code:
>> > encoding="UTF-8"?>-^
>>
>> Wicket Ajax Debug window:
>> -
>> 
>> ERROR: Error while parsing response: Could not find root  
>> element
>>  INFO: Invoking post-call handler(s)...
>>  INFO: Invoking failure handler(s)...
>>
>> When I replace the AjaxSubmitLink back with a SubmitLink the modal 
>> window properly appears.
>>
>> Thanks
>> Nili
>>
>> Matej Knopp wrote:
>> 
>>> You have to use AjaxSubmitLink and call Window.close(target) inside the 
>>> onSubmit(AjaxRequestTarget...) method.
>>>
>>> -Matej
>>>
>>> Nili Adoram wrote:
>>>   
>>>   
 Hi all,

 I have a panel (named AdvancedSearchPanel) containing a Form with a 
 SubmitLink.

 I open this panel inside a modal dialog:

 final ModalWindow modal;
 add(modal = new ModalWindow("modalAdvancedSearch"));

 final AdvancedSearchPanel searchPanel = new 
 AdvancedSearchPanel(modal
 .getContentId());
 modal.setContent(searchPanel);

 When the form is submitted, a message is displayed  ("Reloading this 
 page will cause the modal window disappear.")  and the modal window is 
 closed.

 However, the CloseButtonCallback and WindowClosedCallback are not called.

 These callbacks are only called if the close button is clicked.

 What causes the submit button to close the window?
 How can verify that these callbacks are invoked whenever the window is 
 closed?

 Thanks,
 Nili



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share 
 your
 opinions on IT & business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 
>>> -
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> ___
>>> Wicket-user mailing list
>>> Wicket-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>>
>>>   
>>>   
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge

Re: [Wicket-user] Expiring Pages

2007-01-10 Thread suranjay

Thank you!

I put the following code in the constructor of my web-pages.

add(new AjaxSelfUpdatingTimerBehavior(Duration.minutes(10)));
add(new AbstractAjaxTimerBehavior(Duration.minutes(10))
{
/**
 * @see
wicket.ajax.AbstractAjaxTimerBehavior#onTimer(wicket.ajax.AjaxRequestTarget)
 */
protected void onTimer(AjaxRequestTarget target)
{

}
});

I put both of 'em in for good measure.
Is this supposed to do the trick?
What shud I put inside the onTimer() method to ping the server?  
I have no Wicket Ajax componenets on the page.

As always, any help is greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/Expiring-Pages-tf2946013.html#a8256584
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-10 Thread Matej Knopp
Can you please check your log? Probably there will be an exception. Can 
you post the stacktrace?

-Matej

Nili Adoram wrote:
> I tried replacing the original SubmitLink in the form with an 
> AjaxSubmitLink:
> 
> public class AdvancedSearchForm extends Form {
> 
> private static final String id = "advanedSearchFrom";
> 
> public AdvancedSearchForm(IModel model) {
> super(id, model);
>   
> add(new TextField("name"));
> add(new TextField("user"));
> 
> //  old code:
> //add(new SubmitLink("submitSearch"));
> add(new AjaxSubmitLink("submitSearch",AdvancedSearchForm.this){
> 
> @Override
> protected void onSubmit(AjaxRequestTarget target, Form form) {
> ModalWindow.close(target);
>
> }});
> }
>  
> }
> 
> However the modal window did not open and the following errors were 
> displayed:
> 
> Firefox Error console:
> 
> Error: no element found
> Source File: 
> http://nilia/provision?wicket:interface=:9:simpleSearchPanel:advancedSearch::IBehaviorListener&wicket:behaviorId=0&random=0.6456663530703572
> Line: 1, Column: 54
> Source Code:
>  encoding="UTF-8"?>-^
> Error: no element found
> Source File: 
> http://nilia/provision/plugins/request-provision/ProvisioningRequests
> Line: 1, Column: 54
> Source Code:
>  encoding="UTF-8"?>-^
> 
> Wicket Ajax Debug window:
> -
> 
> ERROR: Error while parsing response: Could not find root  
> element
>  INFO: Invoking post-call handler(s)...
>  INFO: Invoking failure handler(s)...
> 
> When I replace the AjaxSubmitLink back with a SubmitLink the modal 
> window properly appears.
> 
> Thanks
> Nili
> 
> Matej Knopp wrote:
>> You have to use AjaxSubmitLink and call Window.close(target) inside the 
>> onSubmit(AjaxRequestTarget...) method.
>>
>> -Matej
>>
>> Nili Adoram wrote:
>>   
>>> Hi all,
>>>
>>> I have a panel (named AdvancedSearchPanel) containing a Form with a 
>>> SubmitLink.
>>>
>>> I open this panel inside a modal dialog:
>>>
>>> final ModalWindow modal;
>>> add(modal = new ModalWindow("modalAdvancedSearch"));
>>>
>>> final AdvancedSearchPanel searchPanel = new 
>>> AdvancedSearchPanel(modal
>>> .getContentId());
>>> modal.setContent(searchPanel);
>>>
>>> When the form is submitted, a message is displayed  ("Reloading this 
>>> page will cause the modal window disappear.")  and the modal window is 
>>> closed.
>>>
>>> However, the CloseButtonCallback and WindowClosedCallback are not called.
>>>
>>> These callbacks are only called if the close button is clicked.
>>>
>>> What causes the submit button to close the window?
>>> How can verify that these callbacks are invoked whenever the window is 
>>> closed?
>>>
>>> Thanks,
>>> Nili
>>>
>>>
>>>
>>> -
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> ___
>>> Wicket-user mailing list
>>> Wicket-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>>
>>> 
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>   
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
__

[Wicket-user] someone

2007-01-10 Thread droppings

Decreased outright dollars comparison iptv. Identifies marketing, goes through.
Seminar minnesota twin cities.
Remixing clips property podcaster health awaited vertical.
Software dells, oem machines became. Blog weblogs slammed parent. Details 
telcos, lay goose egg ranked.
Kitties campaign flickr, isnt. Cell, firms customer medias clients include 
today.
Faithful hammer canonical texts qwest told, nsa bug.
Ralsky nabbed singing loose fan belt napster songs? Text early internet you, 
had read, theyll, ask oh. Podzinger reached needed robust partnered.
Weekly look moral searching, populace, zeitgeist revealed? Supply christmas 
scrambled paying thousands yuletide, theyd fourth threat. Names creation tld 
contact awarded, contract, telnic role dave! Scores win advocates havent. Plans 
alist cannes film festival quite quick point. Enough punditries kissed, anyway 
parents council, ptc soldiering alongside. Players serving bringing offline 
trellians excitement.
Average teenagers memory grow adults levels!

happy feet.gif
Description: GIF image
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems making a form reset button

2007-01-10 Thread Johan Compagner

what is clearing a checkbox?

If the data that somebody entered was false.. (so that was the value that
was entered)
and then you call clear what is then the value? still false? But that is not
cleared. That is still data
cleared to me is null  not false (thats state). Why is false better then
true? Its all depending on
what it represents..

johan




On 1/9/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:


Okay, I thought about a bit more and I now agree with you. It will be a
mess if you do what I propose in combination with not allowing the empty
string through validation.

Still, the method CheckBox#clearInput() does not do what you expect. I
expect it to clear the checkbox. This is translated to setting the model
to false. Instead it sets the model to null. Does this make more sense?

Regards,
 Erik.


Martijn Dashorst wrote:
> Keep it as current. If you want tri-state logic, then you have to
> implement that. What are you going to do with int, long, double,
> float? make it 0? make it -1?
>
> Defaulting to false is very context dependent, and shouldn't be
> implemented as such.
>
> Martijn
>
> On 1/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
>> my checkbox works fine:
>>
>> class MyDataObject
>> {
>>  Boolean myBoolean;
>>
>>  void setMyBoolean(Boolean b)
>>  Boolean getMyBoolean()
>> }
>>
>> so it is not directly the checkbox. But if you map it to a boolean
>> (primitive) then you don't have
>> the three-state thing yes. (null, false, true)
>>
>> So i dont know if this is a bug or not that really needs to be fixed.
>> Because what is the fix?
>>
>> I can't do what you do here. Because if it is a Boolean object then
>> null/empty string is valid.
>>
>> Maybe for booleans we can make an exception that null will be false in
the
>> converter
>> What do others think?
>>
>> johan
>>
>>
>
>

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] java.lang.IllegalStateException: Attempt to set model object on null model of component

2007-01-10 Thread Johan Compagner

on of your components doesn't have a model where the data that comes from
the browser
can be stored into.

so you use something like this:

TextField field = new TextField("textfield")

instead of this:


TextField field = new TextField("textfield", new Model())

that constructor without the model is there for CompoundModels
Maybe we should express this more clearly in the javadoc and other
userguides (wiki)

johan


On 1/10/07, snkr subedi <[EMAIL PROTECTED]> wrote:


hi, all
I have got a problem here.
I have a modal window which contains a form.
When i submit that form i get a error message as shown below:

WicketMessage: Method onFormSubmitted of interface
wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = message_report, page =
com.apl.lm.ui.IndexPage, path =

1:pageBody:tabs:panel:composer:content:message_report.ComposeMessageReportPanel$MRForm,
isVisible = true, isVersioned = true]] threw an exceptionRoot
cause:java.lang.IllegalStateException: Attempt to set model object on
null model of component:
pageBody:tabs:panel:composer:content:message_report:msgORreport at
wicket.Component.setModelObject(Component.java:1962) at
wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:548)
at wicket.markup.html.form.Form$11.formComponent(Form.java:917)
at wicket.markup.html.form.Form$4.component(Form.java:459) at
wicket.MarkupContainer.visitChildren(MarkupContainer.java:744) at
wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
...other are
omitted

why am i getting this error?

please help

Thanks in Advance
sNkr

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] java.lang.IllegalStateException: Attempt to set model object on null model of component

2007-01-10 Thread snkr subedi
hi, all
I have got a problem here.
I have a modal window which contains a form.
When i submit that form i get a error message as shown below:

WicketMessage: Method onFormSubmitted of interface
wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = message_report, page =
com.apl.lm.ui.IndexPage, path =
1:pageBody:tabs:panel:composer:content:message_report.ComposeMessageReportPanel$MRForm,
isVisible = true, isVersioned = true]] threw an exceptionRoot
cause:java.lang.IllegalStateException: Attempt to set model object on
null model of component:
pageBody:tabs:panel:composer:content:message_report:msgORreport at
wicket.Component.setModelObject(Component.java:1962) at
wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:548)
at wicket.markup.html.form.Form$11.formComponent(Form.java:917)
 at wicket.markup.html.form.Form$4.component(Form.java:459) at
wicket.MarkupContainer.visitChildren(MarkupContainer.java:744) at
wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
...other are
omitted

why am i getting this error?

please help

Thanks in Advance
sNkr

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user