Re: [Wicket-user] Could this be a bug in Wicket 2?

2007-02-22 Thread Gohan

I've added it to Jira now,  Bug Id is WICKET-316. The same thing also occurs
when I run the AjaxMouseEventPage  example from the wicket-examples project.


Eelco Hillenius wrote:
> 
> Sounds like a bug. If the other thread wasn't helping, could you
> please open up a JIRA issue?
> 
> Eelco
> 
> 
> On 2/21/07, Gohan <[EMAIL PROTECTED]> wrote:
>>
>> I've posted this as a reply to another thread but I think it deserves a
>> thread of its own.
>> What happens is that I'd like to show and hide a label by setting switch
>> between setVisible(true) and setVisible(false) when clicking on a
>> AjaxFallbackLink. I've wrapped the label inside a WebMarkupContainer to
>> make
>> this doable. Here is the code:
>>
>> public BasePage() {
>> final WebMarkupContainer table = new WebMarkupContainer(this,
>> "tableId");
>> table.setOutputMarkupId(true);
>> final Label label = new Label(table, "labelId", "This is a
>> label");
>> label.setOutputMarkupId(true);
>> label.setVisible(false);
>>
>>
>> new AjaxFallbackLink(this, "linkId") {
>>private static final long serialVersionUID =
>> 5523627214368899839L;
>>   @Override
>>   public void onClick(AjaxRequestTarget target) {
>>final boolean visible = label.isVisible();
>> label.setVisible(!visible);
>>   target.addComponent(table);
>>  }
>>};
>> }
>>
>> When I click on the AjaxFallbackLink the first time everything is fine,
>> the
>> label (with wicket id "labelId") gets visible. But when I click the link
>> again to make it invisible, I get a NullPointerException when executing
>> label.setVisible(..). Debugging down into the wicket source code tells me
>> that the NullPointerException occurs on 327 in class Page, when it tries
>> to
>> execute "versionManager.componentStateChanging(change)". However
>> versionManager is null. Why is this? Is this a bug or am I doing
>> something
>> wrong?
>>
>> Thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Could-this-be-a-bug-in-Wicket-2--tf3268456.html#a9086303
>> 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/Could-this-be-a-bug-in-Wicket-2--tf3268456.html#a9114701
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] Adding components dynamically

2007-02-22 Thread Igor Vaynberg

or add a simple repeatingview, and then add any number of panels/fragments
into it if you need a variable number

-igor


On 2/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> I am new to Wicket, I have been looking at it for the
> last couple of days. Looks like whatever controls we
> create on the serverside are mapped to what is in the
> markup files. I couldn't really figure out, is there
> any way of adding componets dynamically based on some
> business logic?

Yep. You would typically do that with panels. With panels you kind of
defer the actual component/ component you are placing and you can
decide on some business logic which panels to place. Furthermore, you
can replace components as well, so that e.g. when a link is clicked,
you replace part of the component tree.

There are several examples displaying this. Like the wizard example
and the nested example, but also how the tree and repeaters work.

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] Adding components dynamically

2007-02-22 Thread Eelco Hillenius
> I am new to Wicket, I have been looking at it for the
> last couple of days. Looks like whatever controls we
> create on the serverside are mapped to what is in the
> markup files. I couldn't really figure out, is there
> any way of adding componets dynamically based on some
> business logic?

Yep. You would typically do that with panels. With panels you kind of
defer the actual component/ component you are placing and you can
decide on some business logic which panels to place. Furthermore, you
can replace components as well, so that e.g. when a link is clicked,
you replace part of the component tree.

There are several examples displaying this. Like the wizard example
and the nested example, but also how the tree and repeaters work.

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] HeaderContributor.forCss and older browsers

2007-02-22 Thread Andrew Lombardi
Actually reading up a bit more on it, the only real benefit to using  
it, is it hides CSS from most of the 4.x and previous browsers, kind  
of a hack of sorts for CSS.


By all means, keep the link the way it is :)


On Feb 22, 2007, at 10:23 PM, Eelco Hillenius wrote:


What are the pro's and con's of that? Can't one variant just work best
for all cases?

Eelco

On 2/22/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
HeaderContributor.forCss currently renders CSS in the following  
manner:





However it is sometimes advisable to use the @import command within
CSS to pull in the document ala:


[Wicket-user] Adding components dynamically

2007-02-22 Thread Ramineni Viswanath
I am new to Wicket, I have been looking at it for the
last couple of days. Looks like whatever controls we
create on the serverside are mapped to what is in the
markup files. I couldn't really figure out, is there
any way of adding componets dynamically based on some
business logic? 

--Vish


 

Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.

-
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] HeaderContributor.forCss and older browsers

2007-02-22 Thread Eelco Hillenius
What are the pro's and con's of that? Can't one variant just work best
for all cases?

Eelco

On 2/22/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
> HeaderContributor.forCss currently renders CSS in the following manner:
>
> 
>
> However it is sometimes advisable to use the @import command within
> CSS to pull in the document ala:
>
> 

[Wicket-user] HeaderContributor.forCss and older browsers

2007-02-22 Thread Andrew Lombardi
HeaderContributor.forCss currently renders CSS in the following manner:



However it is sometimes advisable to use the @import command within  
CSS to pull in the document ala:

@import url("/this/is/my.css");


Maybe we can add HeaderContributor.forCss(ResourceReference css,  
boolean useImport) ?




-
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] Kirsten Dunst Carmen Electra

2007-02-22 Thread mohana mayazur
Runners already, getting numerous or wins see which.
Gente, simpata por movimiento, salvemos pantallas instala ordenador tus?
Fileplanet gamers continuing past this, page. Sci olympiad health wellness 
historic technology, interfaith, council progs.
Bold carrier police catalogs century chaplains child cultural req. Important 
brewton parker, stephen hunter careerbest.
Numerous or wins, see which.
Stole show signs crop josh. Register for free site.
Give straight shutout scots.
Simpata por movimiento salvemos pantallas instala ordenador, tus, amigos.
Moore rotten tomatoes home movies dvds.
First year experience honors religion life. Is rt blog sitemap newsletter help. 
Nathe nachoices naparasite hotties, najack nicholson, naron reagan, presidents. 
Numerous or wins see. Guru preview toon and, bond battle.
Last night one crazy summer, st! Be bound, abide, user. Sql mysql, monitored 
managed pythian!
Center accent, cage campaign community, login cottages oak. Suena en todas, las 
radios primer single sombras, informacin.
Students admissions financial programs study course.
Gt mooreceleb quik browser select spotlights. De niro johnny depp diaz?
Igncom gamespy comrade arena teamxbox gamestats ad lanets vaults? Intent play 
waycross brian farrer.


Happiness NAMaster.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] Testing Wicket with JMeter

2007-02-22 Thread Frank Bille

On 2/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Did anyone try to get people from JMeter involved? Maybe they can help
us sort this out?



Nah, I don't believe in this kind of open source collaboration.. ;-)

Seriously I guess my excuse is time. It's easy to solve, when you know the
solution. Nino is this something you want to do something about?

Frank
-
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] Click button in unit test

2007-02-22 Thread Frank Bille

On 2/22/07, Gohan <[EMAIL PROTECTED]> wrote:



I'm trying to test one of my wicket pages using WicketTester. I'd like to
know how I trigger a submit button I have inside a form. I've managed to
click on a Link by using



tester.clickLink for clicking links (doesn't answer your main question, I
know)

Frank
-
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] wicket:component, container, pseudo, et al

2007-02-22 Thread Scott Swank
There is.  Thank you.

http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html


On 2/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> there is a wiki page that lists all these with the exception of :container
>
> -igor
>
>
>
> On 2/22/07, Scott Swank < [EMAIL PROTECTED]> wrote:
> > Nice.  So use  where you'd like to use  or
> >  but the result is invalid html.  Then does the list of
> > "standard" wicket tags looks like the following?
> >
> >wicket:border
> >wicket:child
> >wicket:container
> >wicket:extend
> >wicket:link
> >wicket:message
> >wicket:panel
> >
> > On 2/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > Ah, pretty sweet actually. Good one for the WIKI and Wicket In Action as
> well.
> > >
> > > Eelco
> > >
> > > On 2/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > > wicket:container is in trunk only
> > > >
> > > > it is just a pseudo tag - a container that has setrenderbodyonly(true)
> > > > called on it.
> > > >
> > > > imagine you have a listview that builds tds like this
> > > >
> > > >  > > >
> wicket:id="listview">..
> > > >
> > > > validating editors in an ide will complain because span is not allowed
> > > > inside tr, so instead you do
> > > >
> > > >  > > >
> wicket:id="listview">..
> > > >
> > > > now they should not complain cause the namespace is different
> > > >
> > > > -igor
> > > >
> > > >
> > > >
> > > > On 2/22/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > On 2/21/07, Scott Swank < [EMAIL PROTECTED]> wrote:
> > > > > > All of the above tags were disparaged in the 
> vote.
> > > > > > Are any other tags all but deprecated?  The following are all
> clearly
> > > > > > standard tags.
> > > > > >
> > > > > >wicket:border
> > > > > >wicket:child
> > > > > >wicket:extend
> > > > > >wicket:message
> > > > > >wicket:panel
> > > > > >
> > > > > > What about
> > > > > >
> > > > > >wicket:link
> > > > >
> > > > > That one is fine. I used to be against adopting it, but lost the
> vote,
> > > > > and now that it is in I'm not voting it out again :)
> > > > >
> > > > > For simple situations or situations where you use a lot of
> > > > > bookmarkable pages,  can be quite convenient.
> > > > >
> > > > > > In particular, which tags (apart from component, container &
> pseudo)
> > > > > > would I be best off avoiding?
> > > > >
> > > > > None that I know off. In fact, I lost track and hardly have an idea
> > > > > what container and pseudo really do and whether they are officially
> in
> > > > > the code base now. Maybe the committers who are responsible here
> could
> > > > > clarify this?
> > > > >
> > > > > 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
> > >
> >
> >
> > --
> > Scott Swank
> > reformed mathematician
> >
> >
> -
> > 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] choosing a wicket version

2007-02-22 Thread Xavier Hanin

Hi All,

I'm currently evaluating wicket for a project, and I'm very impressed so far
by the design!

I would like to start some developments and I wonder which version would be
the best in my case. I don't plan to make a release in a short period of
time, and I'm not afraid of looking into the code and adapt to changes, so I
don't mind to work on a  version under development. According to what I've
seen so far, features from 1.x branch seems ok to me, the only things I'm
concerned with are:
* I'll have to make heavy use of asynchronous refresh of some pages
triggered by the server. I've seen nothing to help with that with the
current wicket version except timer based ajax refresh. I've heard about
cometd, but I'm not familiar with this technology yet. I've seen that some
have worked on dojo integration, and I know that dojo provides cometd
integration, so I guess a version compatible with the work done on
wicket-dojo would be good
* scalability is one of my concerns, and according to what I've read it
seems that wicket 1.3 will provide some way to avoid opening a session when
it's not necessary. What is the status with that? What will wicket
2.0provide about that?

So, could any of you give me some recommendations?


Thanks in advance!

- Xavier
-
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] wicket:component, container, pseudo, et al

2007-02-22 Thread Igor Vaynberg

there is a wiki page that lists all these with the exception of :container

-igor


On 2/22/07, Scott Swank <[EMAIL PROTECTED]> wrote:


Nice.  So use  where you'd like to use  or
 but the result is invalid html.  Then does the list of
"standard" wicket tags looks like the following?

   wicket:border
   wicket:child
   wicket:container
   wicket:extend
   wicket:link
   wicket:message
   wicket:panel

On 2/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Ah, pretty sweet actually. Good one for the WIKI and Wicket In Action as
well.
>
> Eelco
>
> On 2/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > wicket:container is in trunk only
> >
> > it is just a pseudo tag - a container that has setrenderbodyonly(true)
> > called on it.
> >
> > imagine you have a listview that builds tds like this
> >
> >  > wicket:id="listview">..
> >
> > validating editors in an ide will complain because span is not allowed
> > inside tr, so instead you do
> >
> >  > wicket:id="listview">..
> >
> > now they should not complain cause the namespace is different
> >
> > -igor
> >
> >
> >
> > On 2/22/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > >
> > > On 2/21/07, Scott Swank < [EMAIL PROTECTED]> wrote:
> > > > All of the above tags were disparaged in the 
vote.
> > > > Are any other tags all but deprecated?  The following are all
clearly
> > > > standard tags.
> > > >
> > > >wicket:border
> > > >wicket:child
> > > >wicket:extend
> > > >wicket:message
> > > >wicket:panel
> > > >
> > > > What about
> > > >
> > > >wicket:link
> > >
> > > That one is fine. I used to be against adopting it, but lost the
vote,
> > > and now that it is in I'm not voting it out again :)
> > >
> > > For simple situations or situations where you use a lot of
> > > bookmarkable pages,  can be quite convenient.
> > >
> > > > In particular, which tags (apart from component, container &
pseudo)
> > > > would I be best off avoiding?
> > >
> > > None that I know off. In fact, I lost track and hardly have an idea
> > > what container and pseudo really do and whether they are officially
in
> > > the code base now. Maybe the committers who are responsible here
could
> > > clarify this?
> > >
> > > 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
>


--
Scott Swank
reformed mathematician

-
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] "span" tag inside "a" tag

2007-02-22 Thread Juan Asensio Sánchez

Yes ok, bad bad bad. I have fixed it. Thanks again

2007/2/22, Igor Vaynberg <[EMAIL PROTECTED]>:


Page link lnk = new PageLink("NameLink", new ShowCategory(category))
this is very very very bad. you are precreating your page instances before
the users even click the link! if your listview has more rows then your
pagemap holds you wont even be able to click on them because those new pages
will kick the current one out of the pagemap.

use a regular link and in onclick do setresponsepage(new
showcategory(category));

-igor


On 2/22/07, Juan Asensio Sánchez < [EMAIL PROTECTED]> wrote:
>
> Perfect. Thank you very much.
>
> 2007/2/22, Marc-Andre Houle <[EMAIL PROTECTED]>:
> >
> >  > wicket:id="name">Category name
> >
> > Page link lnk = new PageLink("NameLink", new ShowCategory(category))
> > lnk.add(new Label("name", category.getName()));
> > item.add(lnk);
> >
> > On 2/22/07, Juan Asensio Sánchez < [EMAIL PROTECTED]> wrote:
> >
> > > Hi
> > >
> > > I am tryiung to display a listview, where it must substitute the
> > > name of the page and a link for that page:
> > >
> > > HTML:
> > > 
> > >   CategoryID:  > >  wicket:id="name">
> > >  > > wicket:id="NameLink">CategoryName,
> > > CategoryDescription
> > > 
> > >
> > > Java:
> > > add(new ListView("CategoryList", subcategories) {
> > > protected void populateItem(ListItem item) {
> > > Category category = (Category) item.getModelObject();
> > > item.add(new Label("id", category.getId
> > > ().toString()));
> > > item.add(new Label("name", category.getName()));
> > > item.add(new Label("description",
> > > category.getDescription()));
> > > item.add(new PageLink("NameLink", new
> > > ShowCategory(category)));
> > > }
> > > });
> > >
> > > But i get this error:
> > > WicketMessage: Expected close tag for ''
> > > Possible attempt to embed component(s) ' > > wicket:id="NameLink">' in the body of this component which discards its 
body
> > > [markup = 
file:/D:/Java/Wicketiki/build/web/WEB-INF/html/ShowCategory.html,
> > > index = 15, current = ' > > wicket:id="NameLink">' (line 19, column 5)]
> > >
> > > I understand the error, but how can i do what i want?
> > >
> > > Thanks in advance.
> > >
> > >
> > > -
> > > 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/li

Re: [Wicket-user] wicket:component, container, pseudo, et al

2007-02-22 Thread Scott Swank
Nice.  So use  where you'd like to use  or
 but the result is invalid html.  Then does the list of
"standard" wicket tags looks like the following?

   wicket:border
   wicket:child
   wicket:container
   wicket:extend
   wicket:link
   wicket:message
   wicket:panel

On 2/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Ah, pretty sweet actually. Good one for the WIKI and Wicket In Action as well.
>
> Eelco
>
> On 2/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > wicket:container is in trunk only
> >
> > it is just a pseudo tag - a container that has setrenderbodyonly(true)
> > called on it.
> >
> > imagine you have a listview that builds tds like this
> >
> >  > wicket:id="listview">..
> >
> > validating editors in an ide will complain because span is not allowed
> > inside tr, so instead you do
> >
> >  > wicket:id="listview">..
> >
> > now they should not complain cause the namespace is different
> >
> > -igor
> >
> >
> >
> > On 2/22/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > >
> > > On 2/21/07, Scott Swank < [EMAIL PROTECTED]> wrote:
> > > > All of the above tags were disparaged in the  vote.
> > > > Are any other tags all but deprecated?  The following are all clearly
> > > > standard tags.
> > > >
> > > >wicket:border
> > > >wicket:child
> > > >wicket:extend
> > > >wicket:message
> > > >wicket:panel
> > > >
> > > > What about
> > > >
> > > >wicket:link
> > >
> > > That one is fine. I used to be against adopting it, but lost the vote,
> > > and now that it is in I'm not voting it out again :)
> > >
> > > For simple situations or situations where you use a lot of
> > > bookmarkable pages,  can be quite convenient.
> > >
> > > > In particular, which tags (apart from component, container & pseudo)
> > > > would I be best off avoiding?
> > >
> > > None that I know off. In fact, I lost track and hardly have an idea
> > > what container and pseudo really do and whether they are officially in
> > > the code base now. Maybe the committers who are responsible here could
> > > clarify this?
> > >
> > > 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
>


-- 
Scott Swank
reformed mathematician

-
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] wicket:component, container, pseudo, et al

2007-02-22 Thread Eelco Hillenius
Ah, pretty sweet actually. Good one for the WIKI and Wicket In Action as well.

Eelco

On 2/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> wicket:container is in trunk only
>
> it is just a pseudo tag - a container that has setrenderbodyonly(true)
> called on it.
>
> imagine you have a listview that builds tds like this
>
>  wicket:id="listview">..
>
> validating editors in an ide will complain because span is not allowed
> inside tr, so instead you do
>
>  wicket:id="listview">..
>
> now they should not complain cause the namespace is different
>
> -igor
>
>
>
> On 2/22/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> >
> > On 2/21/07, Scott Swank < [EMAIL PROTECTED]> wrote:
> > > All of the above tags were disparaged in the  vote.
> > > Are any other tags all but deprecated?  The following are all clearly
> > > standard tags.
> > >
> > >wicket:border
> > >wicket:child
> > >wicket:extend
> > >wicket:message
> > >wicket:panel
> > >
> > > What about
> > >
> > >wicket:link
> >
> > That one is fine. I used to be against adopting it, but lost the vote,
> > and now that it is in I'm not voting it out again :)
> >
> > For simple situations or situations where you use a lot of
> > bookmarkable pages,  can be quite convenient.
> >
> > > In particular, which tags (apart from component, container & pseudo)
> > > would I be best off avoiding?
> >
> > None that I know off. In fact, I lost track and hardly have an idea
> > what container and pseudo really do and whether they are officially in
> > the code base now. Maybe the committers who are responsible here could
> > clarify this?
> >
> > 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] wicket:component, container, pseudo, et al

2007-02-22 Thread Igor Vaynberg

wicket:container is in trunk only

it is just a pseudo tag - a container that has setrenderbodyonly(true)
called on it.

imagine you have a listview that builds tds like this

..

validating editors in an ide will complain because span is not allowed
inside tr, so instead you do

..

now they should not complain cause the namespace is different

-igor


On 2/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 2/21/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> All of the above tags were disparaged in the  vote.
> Are any other tags all but deprecated?  The following are all clearly
> standard tags.
>
>wicket:border
>wicket:child
>wicket:extend
>wicket:message
>wicket:panel
>
> What about
>
>wicket:link

That one is fine. I used to be against adopting it, but lost the vote,
and now that it is in I'm not voting it out again :)

For simple situations or situations where you use a lot of
bookmarkable pages,  can be quite convenient.

> In particular, which tags (apart from component, container & pseudo)
> would I be best off avoiding?

None that I know off. In fact, I lost track and hardly have an idea
what container and pseudo really do and whether they are officially in
the code base now. Maybe the committers who are responsible here could
clarify this?

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] Could this be a bug in Wicket 2?

2007-02-22 Thread Eelco Hillenius
Sounds like a bug. If the other thread wasn't helping, could you
please open up a JIRA issue?

Eelco


On 2/21/07, Gohan <[EMAIL PROTECTED]> wrote:
>
> I've posted this as a reply to another thread but I think it deserves a
> thread of its own.
> What happens is that I'd like to show and hide a label by setting switch
> between setVisible(true) and setVisible(false) when clicking on a
> AjaxFallbackLink. I've wrapped the label inside a WebMarkupContainer to make
> this doable. Here is the code:
>
> public BasePage() {
> final WebMarkupContainer table = new WebMarkupContainer(this,
> "tableId");
> table.setOutputMarkupId(true);
> final Label label = new Label(table, "labelId", "This is a label");
> label.setOutputMarkupId(true);
> label.setVisible(false);
>
>
> new AjaxFallbackLink(this, "linkId") {
>private static final long serialVersionUID =
> 5523627214368899839L;
>   @Override
>   public void onClick(AjaxRequestTarget target) {
>final boolean visible = label.isVisible();
> label.setVisible(!visible);
>   target.addComponent(table);
>  }
>};
> }
>
> When I click on the AjaxFallbackLink the first time everything is fine, the
> label (with wicket id "labelId") gets visible. But when I click the link
> again to make it invisible, I get a NullPointerException when executing
> label.setVisible(..). Debugging down into the wicket source code tells me
> that the NullPointerException occurs on 327 in class Page, when it tries to
> execute "versionManager.componentStateChanging(change)". However
> versionManager is null. Why is this? Is this a bug or am I doing something
> wrong?
>
> Thanks
>
> --
> View this message in context: 
> http://www.nabble.com/Could-this-be-a-bug-in-Wicket-2--tf3268456.html#a9086303
> 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] wicket:component, container, pseudo, et al

2007-02-22 Thread Eelco Hillenius
On 2/21/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> All of the above tags were disparaged in the  vote.
> Are any other tags all but deprecated?  The following are all clearly
> standard tags.
>
>wicket:border
>wicket:child
>wicket:extend
>wicket:message
>wicket:panel
>
> What about
>
>wicket:link

That one is fine. I used to be against adopting it, but lost the vote,
and now that it is in I'm not voting it out again :)

For simple situations or situations where you use a lot of
bookmarkable pages,  can be quite convenient.

> In particular, which tags (apart from component, container & pseudo)
> would I be best off avoiding?

None that I know off. In fact, I lost track and hardly have an idea
what container and pseudo really do and whether they are officially in
the code base now. Maybe the committers who are responsible here could
clarify this?

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] Navigation between pages

2007-02-22 Thread Eelco Hillenius
> You think that should give problems?

Not necessarily. But do keep in mind that as long as you have
references to pages they can't be serialized. Alternatively, you could
work with bookmarkable pages more and pass the class (and possibly
parameter) for 'back' navigation. Not as pretty but more efficient.
The choice is your's :)

> Im betting that this technique also are used by the wizard extension..?

Wrong bet :) The wizard works entirely with component replacement
(panels). The nice thing about that is that you can use a wizard (or
multiple even) on a page independently of what's on the page for the
rest.

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] Please help me understand Wicket

2007-02-22 Thread Igor Vaynberg

On 2/22/07, Jason Roelofs <[EMAIL PROTECTED]> wrote:


I have a list of available objects displayed on my page as Links. When I
click on these links, how are you supposed to know what you clicked on and
load up that full object for further use?



lol, is that because you did not have to put the pk of that object into the
url? :)

 add(new PropertyListView("staticRuleChain", staticChainListModel) {

@Override
protected void populateItem(final ListItem item) {
  item.add(new Link("editLink", item.getModel()) {
@Override
public void onClick() {



 Object clickedObject=getModelObject();


   }

  }.add(new Label("name")));
}
  });



-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] "span" tag inside "a" tag

2007-02-22 Thread Igor Vaynberg

Page link lnk = new PageLink("NameLink", new ShowCategory(category))
this is very very very bad. you are precreating your page instances before
the users even click the link! if your listview has more rows then your
pagemap holds you wont even be able to click on them because those new pages
will kick the current one out of the pagemap.

use a regular link and in onclick do setresponsepage(new
showcategory(category));

-igor


On 2/22/07, Juan Asensio Sánchez <[EMAIL PROTECTED]> wrote:


Perfect. Thank you very much.

2007/2/22, Marc-Andre Houle <[EMAIL PROTECTED]>:
>
>  wicket:id="name">Category name
>
> Page link lnk = new PageLink("NameLink", new ShowCategory(category))
> lnk.add(new Label("name", category.getName()));
> item.add(lnk);
>
> On 2/22/07, Juan Asensio Sánchez < [EMAIL PROTECTED]> wrote:
>
> > Hi
> >
> > I am tryiung to display a listview, where it must substitute the name
> > of the page and a link for that page:
> >
> > HTML:
> > 
> >   CategoryID:  >  wicket:id="name">
> >  > wicket:id="NameLink">CategoryName,
> > CategoryDescription
> > 
> >
> > Java:
> > add(new ListView("CategoryList", subcategories) {
> > protected void populateItem(ListItem item) {
> > Category category = (Category) item.getModelObject ();
> > item.add(new Label("id", category.getId
> > ().toString()));
> > item.add(new Label("name", category.getName()));
> > item.add(new Label("description",
> > category.getDescription()));
> > item.add(new PageLink("NameLink", new
> > ShowCategory(category)));
> > }
> > });
> >
> > But i get this error:
> > WicketMessage: Expected close tag for ''
> > Possible attempt to embed component(s) ' > wicket:id="NameLink">' in the body of this component which discards its body
> > [markup = file:/D:/Java/Wicketiki/build/web/WEB-INF/html/ShowCategory.html,
> > index = 15, current = ' > wicket:id="NameLink">' (line 19, column 5)]
> >
> > I understand the error, but how can i do what i want?
> >
> > Thanks in advance.
> >
> >
> > -
> > 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


Re: [Wicket-user] invalid quotes escaping in event handlers scripts

2007-02-22 Thread Igor Vaynberg

how do you escape quotes in javascript then if not " \" " ?

-igor


On 2/22/07, Andrew Klochkov <[EMAIL PROTECTED]> wrote:


BTW it's my second post about incorrect quotes escaping and the first
one was more than two months ago :-(

Andrew Klochkov wrote:
> I'm trying to open a modal window right after opening my WebPage. So in
> the page constructor I have this code:
>
>  modalWindow.add(new
> AbstractAjaxTimerBehavior(Duration.milliseconds(100)) {
>
>@Override
>protected void onTimer(AjaxRequestTarget target) {
> stop();
> modalWindow.show(target);
>}
>
> });
>
> I add this behaviour to modalWindow because if I just add it to the
> WebPage instance wicket doesn't add script to body's onload handler.
>
> So then I see the following html source in the brower:
>
> 
wcall=wicketAjaxGet('?wicket:interface=:9:agreement-popup-window:-1:IUnversionedBehaviorListener:7&wicket:ignoreIfNotActive=true',
> function() { }, function() { });\", 100);">
>
> And it doesn't work because of invalid qoutes escaping (\"). How can I
> avoid/fix it?
>
>


--
Andrew Klochkov


-
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] Model location via ICompoundModel

2007-02-22 Thread Igor Vaynberg

two reasons. getmodel() finds the model _and_ assigns it to the component -
which is not something you want done across the component branch.

also doing it in a loop is an optimization because it unrolls the recursive
lookup. if you are ten components deep you do not want to push and pop ten
stack frames if you can do it with a simple loop.

-igor


On 2/22/07, Charlie Dobbie <[EMAIL PROTECTED]> wrote:


Hi all,

Taken from the "Best practice and use of detachable models" thread:


On 2/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> no, not exactly. if you havent set a model on the component (or set it
to
> null) and call getmodel() wicket will search upwards for a model that
> implements the compound model interface. look up compound property
models on
> that wiki page.


The above is something that caused me some confusion when I first
started working with Wicket.  The component tree is hierarchical by
nature, and I assumed (naturally, I think) that model location would
directly follow this hierarchy, with a simple "parent.getModel()"
system.

It would be very helpful to me, and I expect some others, to
understand the reasoning behind this process.  Can anyone explain why
model location follows the current strategy, or alternatively describe
a situation where the just-delegate-to-parent approach isn't
preferred?


Cheers,
Charlie.


For reference, relevant docs:

http://wicket.sourceforge.net/apidocs/wicket/model/ICompoundModel.html

http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-Compoundpropertymodels

-
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] Please help me understand Wicket

2007-02-22 Thread Eelco Hillenius
Hi,

>   add(new PropertyListView("staticRuleChain",
> staticChainListModel) {
> @Override
> protected void populateItem(final ListItem item) {
>   item.add(new Link("editLink") {
> @Override
> public void onClick() {
>   System.out.println("Setting model to something static...");
>
>   // What goes here? I want to use the model I clicked on!

SomeObjectFromTheList myObject = (SomeObjectFromTheList)item.getModelObject();


> For all I've searched, I've found only tidbits and tips on certain parts of
> the Wicket framework. I've tried looking through the examples, but none of
> them seem to do what I want, or are doing them in a different manner (mostly
> using Form, which I am not using). Are there any documents around that
> describe the Why and How of Wicket vs just the What?

Well, there is list, and the archives of it at
http://www.nabble.com/Wicket-f13974.html

There is the WIKI at http://cwiki.apache.org/WICKET/

And there is a book: http://www.apress.com/book/bookDisplay.html?bID=10189

And finally, you can sniff around on the ##wicket channel at
freenode.net and see if there are people who'd like to help you get
started.

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] "span" tag inside "a" tag

2007-02-22 Thread Juan Asensio Sánchez

Perfect. Thank you very much.

2007/2/22, Marc-Andre Houle <[EMAIL PROTECTED]>:


Category name

Page link lnk = new PageLink("NameLink", new ShowCategory(category))
lnk.add(new Label("name", category.getName()));
item.add(lnk);

On 2/22/07, Juan Asensio Sánchez < [EMAIL PROTECTED]> wrote:

> Hi
>
> I am tryiung to display a listview, where it must substitute the name of
> the page and a link for that page:
>
> HTML:
> 
>   CategoryID:   wicket:id="name">
>  wicket:id="NameLink">CategoryName,
> CategoryDescription
> 
>
> Java:
> add(new ListView("CategoryList", subcategories) {
> protected void populateItem(ListItem item) {
> Category category = (Category) item.getModelObject ();
> item.add(new Label("id", category.getId().toString()));
> item.add(new Label("name", category.getName()));
> item.add(new Label("description",
> category.getDescription()));
> item.add(new PageLink("NameLink", new
> ShowCategory(category)));
> }
> });
>
> But i get this error:
> WicketMessage: Expected close tag for '' Possible
> attempt to embed component(s) ' wicket:id="NameLink">' in the body of this component which discards its body
> [markup = file:/D:/Java/Wicketiki/build/web/WEB-INF/html/ShowCategory.html,
> index = 15, current = ' wicket:id="NameLink">' (line 19, column 5)]
>
> I understand the error, but how can i do what i want?
>
> Thanks in advance.
>
>
> -
> 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] Toggle visibility for a component using ajax

2007-02-22 Thread Ayodeji Aladejebi

Here is a code preview from one of my projects and this works great for my
toggling..pure wicket(no java script)


WebMarkupContainer togglingPanel = ...

togglingPanel.setOutMarkupId(true);

AjaxLink toggleLink= new AjaxLink("") {

 boolean toogle = false;

 public void onClick(AjaxRequestTarget ajaxRequestTarget) {
toogle = !toogle;
if(toogle)
 togglingPanel.add(new AttributeModifier("style",true,new
Model("display:block")));
else
 togglingPanel.add(new AttributeModifier("style",true,new
Model("display:none")));
 ajaxRequestTarget.addComponent(togglingPanel);
 }
};
another more worded version that works well is:

WebMarkupContainer togglingPanel = ...

togglingPanel.setOutputMarkupId(true);

private class ToggleObject implements Serializable {
private String toggleStyle = "display:block";
getter;
setter;
}

tattr = new AttributeModifier("style",true,new
PropertyModel(ToogleObject,"toggleStyle"));
togglingPanel.add(tattr);

AjaxLink toogleLink= new AjaxLink("") {

 boolean toogle = false;

 public void onClick(AjaxRequestTarget ajaxRequestTarget) {
toogle = !toogle;
if(toogle)
 ToggleObject.setToggleStyle("display:none");
else
  ToggleObject.setToggleStyle("display:block");

 ajaxRequestTarget.addComponent(togglingPanel);
 }
};


On 2/21/07, Gohan <[EMAIL PROTECTED]> wrote:



Yes it did compile yesterday but the error occured when I updated my
eclipse
project after I installed the latest wicket snapshot. But I removed the
whole wicket snapshot directory and did a clean checkout, now everything
works. But the issue still remains though. The code looks like this:

public BasePage() {
final WebMarkupContainer table = new WebMarkupContainer(this,
"tableId");
table.setOutputMarkupId(true);
final Label label = new Label(table, "labelId", "This is a
label");
label.setOutputMarkupId(true);
label.setVisible(false);


new AjaxFallbackLink(this, "linkId") {
   private static final long serialVersionUID =
5523627214368899839L;
  @Override
  public void onClick(AjaxRequestTarget target) {
   final boolean visible = label.isVisible();
   label.setVisible(!visible);
  target.addComponent(table);
 }
   };
}

When I click on the AjaxFallbackLink the first time everything is fine,
the
label (with wicket id "labelId) gets visible. But when I click the link
again to make it invisible, I get a NullPointerException when executing
label.setVisible(..). Debugging down into the wicket source code tells me
that the NullPointerException occurs on 327 in class Page, when it tries
to
execute "versionManager.componentStateChanging(change)". However
versionManager is null. Why is this? Is this a bug or am I doing something
wrong?

Thanks


igor.vaynberg wrote:
>
> actually everything compiles
>
> see here
>
> http://www.wicketstuff.org/bamboo/start.action
>
> also latest jars are here
> http://www.wicketstuff.org/maven/repository
>
> -igor
>

--
View this message in context:
http://www.nabble.com/Toggle-visibility-for-a-component-using-ajax-tf3260070.html#a9076595
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





--
Aladejebi Ayodeji A.,

DabarObjects Solutions
Phone: 234 9 273 2 555
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/
-
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] Testing Wicket with JMeter

2007-02-22 Thread Eelco Hillenius
Did anyone try to get people from JMeter involved? Maybe they can help
us sort this out?

Eelco

On 2/22/07, Frank Bille <[EMAIL PROTECTED]> wrote:
> On 2/22/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> > Im unable to confirm this. Im not seeing that jmeter does record in random
> order. Im using the GUI and a http recording controller and a cookie
> manager.
>
> Not in total random order, but it tends to reorder some requests. I recall
> that it was normally two requests next to each other that were reordered,
> but that is enough.
>
> I'm using the Proxy to record. Don't know if that is the same as HTTP
> recording controller.
>
>
> > Although I've also had the trouble that Flavia Paganelli talks about.
> Recording a jmeter test one day having it work the whole day and then the
> day after it stops working.
>
> Hmm I haven't had that problem. After I have rearranged the requests it
> always works. Can you send me a test which behaves like that?
>
> Frank
> -
> 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] "span" tag inside "a" tag

2007-02-22 Thread Marc-Andre Houle

Category name

Page link lnk = new PageLink("NameLink", new ShowCategory(category))
lnk.add(new Label("name", category.getName()));
item.add(lnk);

On 2/22/07, Juan Asensio Sánchez <[EMAIL PROTECTED]> wrote:


Hi

I am tryiung to display a listview, where it must substitute the name of
the page and a link for that page:

HTML:

  CategoryID: 
CategoryName,
CategoryDescription


Java:
add(new ListView("CategoryList", subcategories) {
protected void populateItem(ListItem item) {
Category category = (Category) item.getModelObject ();
item.add(new Label("id", category.getId().toString()));
item.add(new Label("name", category.getName()));
item.add(new Label("description", category.getDescription
()));
item.add(new PageLink("NameLink", new
ShowCategory(category)));
}
});

But i get this error:
WicketMessage: Expected close tag for '' Possible
attempt to embed component(s) '' in the body of this component which discards its body
[markup = file:/D:/Java/Wicketiki/build/web/WEB-INF/html/ShowCategory.html,
index = 15, current = ''
(line 19, column 5)]

I understand the error, but how can i do what i want?

Thanks in advance.

-
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] "span" tag inside "a" tag

2007-02-22 Thread Juan Asensio Sánchez

Hi

I am tryiung to display a listview, where it must substitute the name of the
page and a link for that page:

HTML:

 CategoryID: 
   CategoryName,
   CategoryDescription


Java:
add(new ListView("CategoryList", subcategories) {
   protected void populateItem(ListItem item) {
   Category category = (Category) item.getModelObject();
   item.add(new Label("id", category.getId().toString()));
   item.add(new Label("name", category.getName()));
   item.add(new Label("description", category.getDescription
()));
   item.add(new PageLink("NameLink", new
ShowCategory(category)));
   }
   });

But i get this error:
WicketMessage: Expected close tag for '' Possible
attempt to embed component(s) '' in the body of this component which discards its body
[markup = file:/D:/Java/Wicketiki/build/web/WEB-INF/html/ShowCategory.html,
index = 15, current = ''
(line 19, column 5)]

I understand the error, but how can i do what i want?

Thanks in advance.
-
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] invalid quotes escaping in event handlers scripts

2007-02-22 Thread Andrew Klochkov
BTW it's my second post about incorrect quotes escaping and the first
one was more than two months ago :-(

Andrew Klochkov wrote:
> I'm trying to open a modal window right after opening my WebPage. So in
> the page constructor I have this code:
>
>  modalWindow.add(new
> AbstractAjaxTimerBehavior(Duration.milliseconds(100)) {
>
>@Override
>protected void onTimer(AjaxRequestTarget target) {
> stop();
> modalWindow.show(target);
>}
> 
> });
>
> I add this behaviour to modalWindow because if I just add it to the
> WebPage instance wicket doesn't add script to body's onload handler.
>
> So then I see the following html source in the brower:
>
>  wcall=wicketAjaxGet('?wicket:interface=:9:agreement-popup-window:-1:IUnversionedBehaviorListener:7&wicket:ignoreIfNotActive=true',
> function() { }, function() { });\", 100);">
>
> And it doesn't work because of invalid qoutes escaping (\"). How can I
> avoid/fix it?
>
>   


-- 
Andrew Klochkov


-
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] invalid quotes escaping in event handlers scripts

2007-02-22 Thread Andrew Klochkov
I'm trying to open a modal window right after opening my WebPage. So in
the page constructor I have this code:

 modalWindow.add(new
AbstractAjaxTimerBehavior(Duration.milliseconds(100)) {

   @Override
   protected void onTimer(AjaxRequestTarget target) {
stop();
modalWindow.show(target);
   }

});

I add this behaviour to modalWindow because if I just add it to the
WebPage instance wicket doesn't add script to body's onload handler.

So then I see the following html source in the brower:



And it doesn't work because of invalid qoutes escaping (\"). How can I
avoid/fix it?

-- 
Andrew Klochkov


-
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] Wicket dev job in the LA Area

2007-02-22 Thread Marc-Andre Houle

Not that bad, now your resume is open to everybody! :)

On 2/22/07, cowwoc <[EMAIL PROTECTED]> wrote:



Ugh! Sorry for mistakenly posting this to the entire list :(

Gili

cowwoc wrote:
> Hi Daniel,
>
>   I apologize if you get this email twice, as a power-out knocked
out my
> computer the last time I sent this out so I'm not sure whether you got
> it or not :)
>
>   I've attached my CV to this email. I am interested in applying for
the
> Senior Software Engineer position and I would appreciate you giving more
> background on the position such as:
>
> 1) Contractor or Full-Time? The former appeals to me strictly from a
> tax-deduction point of view :)
>
> 2) Typical working hours? 40, 50, 60 hours a week?
>
> 3) Size and makeup of the team I'd be working with.
>
> 4) Working environment at Fox. What is the feel like? What kind of
> benefits does Fox offer? What are the career advancement opportunities
> like at Fox?
>
> Thank you,
> Gili
>
> Daniel Gould wrote:
>> Hopefully a job listing isn't out-of-place on wicket-user (if so, I
>> appologize).
>>
>> We are looking for two great wicket developers at FIM Labs, a
newly-formed
>> new product research and development group at Fox Interactive
Media.  We're
>> building a high-profile site witin MySpace using Wicket, and have a
bunch of
>> other interesting projects going on.
>>
>> We're a small group that maintains a startup culture while still having
>> access to the resources of Fox (MySpace, FoxSports.com, IGN,
>> AmericanIdol.com, etc).  Or focus is on new social web
applications.  Right
>> now, our group has one Software Engineer and one Sr. Software Engineer
>> position open.
>>
>> We're in the LA area, but we'd be willing to relocate the right person.
>>
>> While we normally go though HR, feel free to send resumes for this
position
>> to me (Daniel dot Gould at fox com) and I will forward them along to
HR.
>>
>> The job listing is below; that said, we care far more about smart
people who
>> can pick things up than any laundry list of tools and languages.  (The
HR
>> folks normally attach all the info about benefits, free movies on the
Fox
>> lot, lunch at our building, stuff about being an equal oppt'y employer,
and
>> all that to the bottom of these, but I wanted to send this out to the
wicket
>> community right away, so if you need the even more official version,
let me
>> know.)
>>


-
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.util.ConcurrentModificationException

2007-02-22 Thread Konstantin

Ok. Understood. Thanks.


Johan Compagner wrote:
> 
> that looks the problem.
> you are adding resource loaders in a page constructor??
> why?
> You should do that in the Application.init()
> 
> johan
> 
> 
> On 2/20/07, Konstantin <[EMAIL PROTECTED]> wrote:
>>
>>
>> Code:
>>
>> private void initKeyMap(){
>> for (String aKeyMap : keyMap) {
>> keyHashMap.put(aKeyMap, getString(aKeyMap));
>> }
>> for (String aKeyMap : keyMap) {
>> shiftedKeyHashMap.put(aKeyMap, getString(aKeyMap+"Shifted"));
>> }
>> }
>>
>> Is in the keyboard panel.
>>
>> Custom resource loader is added in prototype page constructor:
>>
>> public TemplatePage() {
>> ClassStringResourceLoader loader = new
>> ClassStringResourceLoader(this.getApplication(), this.getClass());
>> this.dbAction = new DBAction(
>>
>> loader.loadStringResource(this.getClass(),"envContextName",null,null)
>>
>> ,loader.loadStringResource(this.getClass(),"dataSourceName",null,null)
>>   );
>>
>>
>> getApplication().getResourceSettings().addStringResourceLoader(new
>> DBStringResourceLoader(dbAction));
>>
>>
>>
>>
>> Johan Compagner wrote:
>> >
>> > I think the code is sort of still the same (you use a pretty old
>> version)
>> >
>> > final Iterator iterator = application.getResourceSettings()
>> > .getStringResourceLoaders().iterator();
>> >
>> > that is the iterator that goes wrong. But that is strange, are you
>> adding
>> > string resourceloaders at some place
>> > while the application is running?
>> >
>> > johan
>> >
>> >
>> > On 2/20/07, Konstantin <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> What could be the reason of this ? (Using Wicket 1.2.1)
>> >>
>> >> 19/2/2007 19:15:28 wicket.RequestCycle step
>> >> SEVERE: null
>> >> java.util.ConcurrentModificationException
>> >> at java.util.AbstractList$Itr.checkForComodification(Unknown
>> >> Source)
>> >> at java.util.AbstractList$Itr.next(Unknown Source)
>> >> at java.util.Collections$UnmodifiableCollection$1.next(Unknown
>> >> Source)
>> >> at wicket.Localizer.visitResourceLoaders(Localizer.java:406)
>> >> at wicket.Localizer.getString(Localizer.java:236)
>> >> at wicket.Localizer.getString(Localizer.java:121)
>> >> at wicket.Component.getString(Component.java:1171)
>> >> at wicket.Component.getString(Component.java:1158)
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/java.util.ConcurrentModificationException-tf3260239.html#a9060910
>> >> 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/java.util.ConcurrentModificationException-tf3260239.html#a9062112
>> 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
> __

Re: [Wicket-user] Click button in unit test

2007-02-22 Thread Gohan

Works great, thanks!


Timo Rantalaiho wrote:
> 
> On Thu, 22 Feb 2007, Gohan wrote:
>> I'm trying to test one of my wicket pages using WicketTester. I'd like to
>> know how I trigger a submit button I have inside a form. I've managed to
>> click on a Link by using 
>> wicketTester.getServletRequest().setRequestToComponent(link);
>> wicketTester.processRequestCycle();  
>> but this does not work on the submit button. 
> 
> FormTester tester = wicketTester.newFormTester("wicket:path:to:form");
> tester.submit("wicketIdOfButton");
> 
> - Timo
> 
> -- 
> Timo Rantalaiho
> Reaktor Innovations Oyhttp://www.ri.fi/ >
> 
> -
> 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/Click-button-in-unit-test-tf3273168.html#a9101529
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] Click button in unit test

2007-02-22 Thread Timo Rantalaiho
On Thu, 22 Feb 2007, Gohan wrote:
> I'm trying to test one of my wicket pages using WicketTester. I'd like to
> know how I trigger a submit button I have inside a form. I've managed to
> click on a Link by using 
> wicketTester.getServletRequest().setRequestToComponent(link);
> wicketTester.processRequestCycle();   
> but this does not work on the submit button. 

FormTester tester = wicketTester.newFormTester("wicket:path:to:form");
tester.submit("wicketIdOfButton");

- Timo

-- 
Timo Rantalaiho
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
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] Please help me understand Wicket

2007-02-22 Thread Jason Roelofs

Wicketers (wicketeers?),

I'm a newcomer to the Wicket framework and I have to say I'm impressed with
what this library does. I'm an extensive Rails user, so when I was given a
web project that had to be in Java, I spent a few days looking and trying
out different frameworks, until I landed on Wicket. However, now I'm nothing
but frustrated as I just don't understand how to use this framework. I've
searched the documentation, I've tried searching the list (not sure what to
search for, honestly), so now I'm posting here.

I'm stuck on how to deal with object models in pages. I picked up Databinder
for Hibernate mappings, which is working quite well, but now I cannot for
the life of me figure out this very simple operation:

I have a list of available objects displayed on my page as Links. When I
click on these links, how are you supposed to know what you clicked on and
load up that full object for further use? The relevant code I've got going
so far (in a WebMarkupContainer, private class inside of IndexPage):

IModel staticChainListModel = new HibernateListModel(StaticRuleChain.class,
new ICriteriaBuilder() {
   public void build(Criteria criteria) {
 criteria.addOrder(Order.asc("name"));
   }
 });

 add(new PropertyListView("staticRuleChain", staticChainListModel) {
   @Override
   protected void populateItem(final ListItem item) {
 item.add(new Link("editLink") {
   @Override
   public void onClick() {
 System.out.println("Setting model to something static...");

 // What goes here? I want to use the model I clicked on!
   }
 }.add(new Label("name")));
   }
 });

And in the constructor of IndexPage (currentRuleChainName is just a field to
show that I actually have the object I'm looking for. I only ever see "Good
Day my Friend"):

   // Display rule chain
   if (getModelObject() == null) {
 //this.setModelObject(new HibernateObjectModel(StaticRuleChain.class
));
 add(new Label("currentRuleChainName", "Good Day my Friend"));
   } else {
 add(new Label("currentRuleChainName", new
PropertyModel(getModelObject(), "name")));
   }

For all I've searched, I've found only tidbits and tips on certain parts of
the Wicket framework. I've tried looking through the examples, but none of
them seem to do what I want, or are doing them in a different manner (mostly
using Form, which I am not using). Are there any documents around that
describe the Why and How of Wicket vs just the What?

Thanks for your help, let me know if you need more information.

Jason
-
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] Click button in unit test

2007-02-22 Thread Gohan

I'm trying to test one of my wicket pages using WicketTester. I'd like to
know how I trigger a submit button I have inside a form. I've managed to
click on a Link by using 
wicketTester.getServletRequest().setRequestToComponent(link);
wicketTester.processRequestCycle(); 
but this does not work on the submit button. 

Thanks

-- 
View this message in context: 
http://www.nabble.com/Click-button-in-unit-test-tf3273168.html#a9101195
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] How to do simple authentication with Wicket

2007-02-22 Thread Andrew Klochkov
Start from looking at wicket-auth-roles and wicket-auth-roles-examples
projects. Also look here:

http://www.nabble.com/Wicket-With-Acegi-t2478230.html
http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg20497.html

Peter Thomas wrote:
> Oops just discovered getSecuritySettings() from
> SignInApplication.java.  Guess I didn't look hard enough.
>
> If anyone has had success integrating Acegi, would be great to get
> tips / suggestions.
>
> On 2/22/07, *Peter Thomas* < [EMAIL PROTECTED]
> > wrote:
>
> Hi,
>
> Please give me some pointers on handling authentication in
> Wicket.  I tried digging into the "library" example, i.e.
> AuthenticatedWebPage but there's nothing much in there.
>
> If there is a simple technique I can use within my Application and
> a custom Session, I would prefer that for now instead of the
> wicket-auth-roles.  Maybe all I need to know is where in the life
> cycle of a request I need to write the check for an authenticated
> principal etc.
>
> I am almost done migrating an application using Acegi + Spring MVC
> to Wicket.  If anyone has some tips on integrating Acegi also that
> would be great.  However the more I work with Wicket the more I
> realize that since everything is in good old Java code - you
> really don't need any more external abstractions for e.g. to
> conditional hide / show components based on role.
>
> Thanks,
>
> Peter. 
>
>
> 
>
> -
> 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
>   


-- 
Andrew Klochkov


-
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] Wicket dev job in the LA Area

2007-02-22 Thread cowwoc

Ugh! Sorry for mistakenly posting this to the entire list :(

Gili

cowwoc wrote:
> Hi Daniel,
> 
>   I apologize if you get this email twice, as a power-out knocked out my
> computer the last time I sent this out so I'm not sure whether you got
> it or not :)
> 
>   I've attached my CV to this email. I am interested in applying for the
> Senior Software Engineer position and I would appreciate you giving more
> background on the position such as:
> 
> 1) Contractor or Full-Time? The former appeals to me strictly from a
> tax-deduction point of view :)
> 
> 2) Typical working hours? 40, 50, 60 hours a week?
> 
> 3) Size and makeup of the team I'd be working with.
> 
> 4) Working environment at Fox. What is the feel like? What kind of
> benefits does Fox offer? What are the career advancement opportunities
> like at Fox?
> 
> Thank you,
> Gili
> 
> Daniel Gould wrote:
>> Hopefully a job listing isn't out-of-place on wicket-user (if so, I
>> appologize).
>>
>> We are looking for two great wicket developers at FIM Labs, a newly-formed
>> new product research and development group at Fox Interactive Media.  We're
>> building a high-profile site witin MySpace using Wicket, and have a bunch of
>> other interesting projects going on.
>>
>> We're a small group that maintains a startup culture while still having
>> access to the resources of Fox (MySpace, FoxSports.com, IGN,
>> AmericanIdol.com, etc).  Or focus is on new social web applications.  Right
>> now, our group has one Software Engineer and one Sr. Software Engineer
>> position open. 
>>
>> We're in the LA area, but we'd be willing to relocate the right person.
>>
>> While we normally go though HR, feel free to send resumes for this position
>> to me (Daniel dot Gould at fox com) and I will forward them along to HR.
>>
>> The job listing is below; that said, we care far more about smart people who
>> can pick things up than any laundry list of tools and languages.  (The HR
>> folks normally attach all the info about benefits, free movies on the Fox
>> lot, lunch at our building, stuff about being an equal oppt'y employer, and
>> all that to the bottom of these, but I wanted to send this out to the wicket
>> community right away, so if you need the even more official version, let me
>> know.)
>>



signature.asc
Description: OpenPGP digital signature
-
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 do simple authentication with Wicket

2007-02-22 Thread Peter Thomas

Oops just discovered getSecuritySettings() from SignInApplication.java.
Guess I didn't look hard enough.

If anyone has had success integrating Acegi, would be great to get tips /
suggestions.

On 2/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote:


Hi,

Please give me some pointers on handling authentication in Wicket.  I
tried digging into the "library" example, i.e. AuthenticatedWebPage but
there's nothing much in there.

If there is a simple technique I can use within my Application and a
custom Session, I would prefer that for now instead of the
wicket-auth-roles.  Maybe all I need to know is where in the life cycle of a
request I need to write the check for an authenticated principal etc.

I am almost done migrating an application using Acegi + Spring MVC to
Wicket.  If anyone has some tips on integrating Acegi also that would be
great.  However the more I work with Wicket the more I realize that since
everything is in good old Java code - you really don't need any more
external abstractions for e.g. to conditional hide / show components based
on role.

Thanks,

Peter.
-
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] portlet race condition

2007-02-22 Thread Janos Cserep

FYI, I've created a JIRA issue:

https://issues.apache.org/jira/browse/WICKET-311

I'm seeing this when the web service I'm calling as backend is taking longer
to respond... (I'm back on 1.2.3 with a patched
WicketPortletRequest.classright now, the bug may affect other versions
as well).
-
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 do simple authentication with Wicket

2007-02-22 Thread Peter Thomas

Hi,

Please give me some pointers on handling authentication in Wicket.  I tried
digging into the "library" example, i.e. AuthenticatedWebPage but there's
nothing much in there.

If there is a simple technique I can use within my Application and a custom
Session, I would prefer that for now instead of the wicket-auth-roles.
Maybe all I need to know is where in the life cycle of a request I need to
write the check for an authenticated principal etc.

I am almost done migrating an application using Acegi + Spring MVC to
Wicket.  If anyone has some tips on integrating Acegi also that would be
great.  However the more I work with Wicket the more I realize that since
everything is in good old Java code - you really don't need any more
external abstractions for e.g. to conditional hide / show components based
on role.

Thanks,

Peter.
-
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] Testing Wicket with JMeter

2007-02-22 Thread Nino Wael
With report, I meant the thing the application does in the end are write a 
report concerning unemployment statistics in Denmark:)

But I skimmed through the help for jmeter and it looks like it has a lot of 
capabilities. Currently we use the aggregate report. But there are some other 
stuff which are interesting to. Some of the graphs looks like they could be 
usefull inorder to find out just how much load the system will handle, they 
have one report where should load times versus concurent threads.

BTW, heard that you know Dhamantha, say hi to him for me:)

regards Nino


-Original Message-
From: [EMAIL PROTECTED] on behalf of Frank Bille
Sent: Thu 22-02-2007 12:17
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Testing Wicket with JMeter
 
On 2/22/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> Also I've had trouble finding out howto download the generated report
> (which the wicket application generates, and places in a temporary folder),
> but thats a strictly jmeter challenge..
>

I do reporting using a spreadsheet or something else based on the raw data
which JMeter spits out. JMeters reporting tool is c*** (read: I don't know
how to use it ;o))

Frank


-
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] Model location via ICompoundModel

2007-02-22 Thread Charlie Dobbie
Hi all,

Taken from the "Best practice and use of detachable models" thread:


On 2/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> no, not exactly. if you havent set a model on the component (or set it to
> null) and call getmodel() wicket will search upwards for a model that
> implements the compound model interface. look up compound property models on
> that wiki page.


The above is something that caused me some confusion when I first
started working with Wicket.  The component tree is hierarchical by
nature, and I assumed (naturally, I think) that model location would
directly follow this hierarchy, with a simple "parent.getModel()"
system.

It would be very helpful to me, and I expect some others, to
understand the reasoning behind this process.  Can anyone explain why
model location follows the current strategy, or alternatively describe
a situation where the just-delegate-to-parent approach isn't
preferred?


Cheers,
Charlie.


For reference, relevant docs:

http://wicket.sourceforge.net/apidocs/wicket/model/ICompoundModel.html
http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-Compoundpropertymodels

-
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] Testing Wicket with JMeter

2007-02-22 Thread Frank Bille

On 2/22/07, Nino Wael <[EMAIL PROTECTED]> wrote:


Also I've had trouble finding out howto download the generated report
(which the wicket application generates, and places in a temporary folder),
but thats a strictly jmeter challenge..



I do reporting using a spreadsheet or something else based on the raw data
which JMeter spits out. JMeters reporting tool is c*** (read: I don't know
how to use it ;o))

Frank
-
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] Testing Wicket with JMeter

2007-02-22 Thread Nino Wael
Ahh, I think its the same think. Im also using the proxy which records the http 
request into the recording controller.

Havent checked if the recordings are reorder sometimes, that might also be what 
has bugged me. Strange though that it keep working for the rest of the day..? 

Also I've had trouble finding out howto download the generated report (which 
the wicket application generates, and places in a temporary folder), but thats 
a strictly jmeter challenge..

regards Nino


-Original Message-
From: [EMAIL PROTECTED] on behalf of Frank Bille
Sent: Thu 22-02-2007 11:17
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Testing Wicket with JMeter
 
On 2/22/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> Im unable to confirm this. Im not seeing that jmeter does record in random
> order. Im using the GUI and a http recording controller and a cookie
> manager.


Not in total random order, but it tends to reorder some requests. I recall
that it was normally two requests next to each other that were reordered,
but that is enough.

I'm using the Proxy to record. Don't know if that is the same as HTTP
recording controller.


Although I've also had the trouble that Flavia Paganelli talks about.
> Recording a jmeter test one day having it work the whole day and then the
> day after it stops working.


Hmm I haven't had that problem. After I have rearranged the requests it
always works. Can you send me a test which behaves like that?


Frank


-
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] Testing Wicket with JMeter

2007-02-22 Thread Frank Bille

On 2/22/07, Nino Wael <[EMAIL PROTECTED]> wrote:


Im unable to confirm this. Im not seeing that jmeter does record in random
order. Im using the GUI and a http recording controller and a cookie
manager.



Not in total random order, but it tends to reorder some requests. I recall
that it was normally two requests next to each other that were reordered,
but that is enough.

I'm using the Proxy to record. Don't know if that is the same as HTTP
recording controller.


Although I've also had the trouble that Flavia Paganelli talks about.

Recording a jmeter test one day having it work the whole day and then the
day after it stops working.



Hmm I haven't had that problem. After I have rearranged the requests it
always works. Can you send me a test which behaves like that?


Frank
-
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] Testing Wicket with JMeter

2007-02-22 Thread Nino Wael
Im unable to confirm this. Im not seeing that jmeter does record in random 
order. Im using the GUI and a http recording controller and a cookie manager.

Although I've also had the trouble that Flavia Paganelli talks about. Recording 
a jmeter test one day having it work the whole day and then the day after it 
stops working.


regards Nino


-Original Message-
From: [EMAIL PROTECTED] on behalf of Frank Bille
Sent: Thu 22-02-2007 10:22
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Testing Wicket with JMeter
 
I looks = It looks


On 2/22/07, Frank Bille <[EMAIL PROTECTED]> wrote:
>
> I looks like JMeter is storing the recorded tests in random order. And
> this doesn't work with wicket because you have to execute the requests in
> correct order (hint: look at the id number in the URL).
>
> Frank
>
>
> On 2/21/07, Flavia Paganelli <[EMAIL PROTECTED]> wrote:
> >
> > Hi!
> > I've also been making JMeter tests over Wicket applications. I had to
> > use the HTTP Cookie Manager.
> > But still sometimes I found strange behaviour, like it sometimes stopped
> > working, I recorded the same test again and it worked.
> > The problem always appeared with a submit (POST).
> > Not much help, but...
> >
> > > Date: Wed, 14 Feb 2007 10:18:42 +0100
> > > From: "Nino Wael" <[EMAIL PROTECTED] >
> > > Subject: [Wicket-user] Testing Wicket with JMeter
> > > To: 
> > > Message-ID:
> > >   < [EMAIL PROTECTED]>
> > > Content-Type: text/plain; charset="us-ascii"
> > >
> > > Hi
> > >
> > >
> > >
> > > Im trying to test an application with jmeter , I keep getting page
> > expired when testing. I have a cookie manager and save jsessionid, are there
> > any thing else I should be aware of in that direction?
> > >
> > >
> > >
> > > The application are rather simple although there are some ajax calls.
> > The test fails on the first submit with a page expired.. Any ideas on what
> > im doing wrong ? Please ask if you need more information...
> > >
> > > Nino Wael
> >
> >
> > -
> > 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] Testing Wicket with JMeter

2007-02-22 Thread Nino Wael
Please update the wiki with your findings, or if your lucky find the solution 
for your troubles:):

http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+JMeter

Hmm, should we make the jmeter faq for wicket more visible?

-Original Message-
From: [EMAIL PROTECTED] on behalf of Flavia Paganelli
Sent: Wed 21-02-2007 17:45
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Testing Wicket with JMeter
 
Hi!
I've also been making JMeter tests over Wicket applications. I had to 
use the HTTP Cookie Manager.
But still sometimes I found strange behaviour, like it sometimes stopped 
working, I recorded the same test again and it worked.
The problem always appeared with a submit (POST).
Not much help, but...

> Date: Wed, 14 Feb 2007 10:18:42 +0100
> From: "Nino Wael" <[EMAIL PROTECTED]>
> Subject: [Wicket-user] Testing Wicket with JMeter
> To: 
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi 
>
>  
>
> Im trying to test an application with jmeter , I keep getting page expired 
> when testing. I have a cookie manager and save jsessionid, are there any 
> thing else I should be aware of in that direction?
>
>  
>
> The application are rather simple although there are some ajax calls. The 
> test fails on the first submit with a page expired.. Any ideas on what im 
> doing wrong ? Please ask if you need more information...
>
> Nino Wael

-
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] Can a model be detachable AND compound?

2007-02-22 Thread Igor Vaynberg

sure, you can chain models :)

new CompoundPropertyModel(new LoadableDetachableModel() {} );

-igor


On 2/22/07, Andrew Klochkov <[EMAIL PROTECTED]> wrote:


I agree that wicket models are not easy to understand especially
compound and "bound compound" models. And the thing I wanted to have is
detachable compound model set to the page which should be used by all
components of the page. Is it possible?

--
Andrew Klochkov


-
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] Can a model be detachable AND compound?

2007-02-22 Thread Andrew Klochkov
I agree that wicket models are not easy to understand especially
compound and "bound compound" models. And the thing I wanted to have is
detachable compound model set to the page which should be used by all
components of the page. Is it possible?

-- 
Andrew Klochkov


-
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] Testing Wicket with JMeter

2007-02-22 Thread Frank Bille

I looks = It looks


On 2/22/07, Frank Bille <[EMAIL PROTECTED]> wrote:


I looks like JMeter is storing the recorded tests in random order. And
this doesn't work with wicket because you have to execute the requests in
correct order (hint: look at the id number in the URL).

Frank


On 2/21/07, Flavia Paganelli <[EMAIL PROTECTED]> wrote:
>
> Hi!
> I've also been making JMeter tests over Wicket applications. I had to
> use the HTTP Cookie Manager.
> But still sometimes I found strange behaviour, like it sometimes stopped
> working, I recorded the same test again and it worked.
> The problem always appeared with a submit (POST).
> Not much help, but...
>
> > Date: Wed, 14 Feb 2007 10:18:42 +0100
> > From: "Nino Wael" <[EMAIL PROTECTED] >
> > Subject: [Wicket-user] Testing Wicket with JMeter
> > To: 
> > Message-ID:
> >   < [EMAIL PROTECTED]>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > Hi
> >
> >
> >
> > Im trying to test an application with jmeter , I keep getting page
> expired when testing. I have a cookie manager and save jsessionid, are there
> any thing else I should be aware of in that direction?
> >
> >
> >
> > The application are rather simple although there are some ajax calls.
> The test fails on the first submit with a page expired.. Any ideas on what
> im doing wrong ? Please ask if you need more information...
> >
> > Nino Wael
>
>
> -
> 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] Testing Wicket with JMeter

2007-02-22 Thread Frank Bille

I looks like JMeter is storing the recorded tests in random order. And this
doesn't work with wicket because you have to execute the requests in correct
order (hint: look at the id number in the URL).

Frank


On 2/21/07, Flavia Paganelli <[EMAIL PROTECTED]> wrote:


Hi!
I've also been making JMeter tests over Wicket applications. I had to
use the HTTP Cookie Manager.
But still sometimes I found strange behaviour, like it sometimes stopped
working, I recorded the same test again and it worked.
The problem always appeared with a submit (POST).
Not much help, but...

> Date: Wed, 14 Feb 2007 10:18:42 +0100
> From: "Nino Wael" <[EMAIL PROTECTED]>
> Subject: [Wicket-user] Testing Wicket with JMeter
> To: 
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi
>
>
>
> Im trying to test an application with jmeter , I keep getting page
expired when testing. I have a cookie manager and save jsessionid, are there
any thing else I should be aware of in that direction?
>
>
>
> The application are rather simple although there are some ajax calls.
The test fails on the first submit with a page expired.. Any ideas on what
im doing wrong ? Please ask if you need more information...
>
> Nino Wael

-
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] Strange Weblogic problem with DataTable - help needed!

2007-02-22 Thread Timo Rantalaiho
On Wed, 21 Feb 2007, Niels Bo wrote:
> I am however *not* able to reproduce it with Sun jvm and/or when a debugger
> is attached!
> 
> I am running it in a clean/new/default WL 8.1 SP5 installation where Jrockit
> is selected as JVM.

Do you mean that it doesn't happen even with JRockit, when a
debugger is attached?

Then it could have something to do with threading (or
hyperthreading), optimizing or garbage collection, all of
which JRockit might do differently from the other VM.  Also
the debugger might produce side effects (such as calling
toString() on some objects) that would prevent the bug from
happenning; I have run into this sometimes when debugging (a
kind of a heisenbug).

It would be a good idea to automate a test that would
reproduce the bug in a consistent way, if you can manage
this e.g. with a load tester. Then you could enable all
possible logging and see if something happens differently on
the different JVMs.

Also you might want to try with yet another JVM (such as
IBM's or some open source); this might help in deciding
whether to look for solutions within Wicket or the JVM.

Another possibility is to tweak the JVM settings. I think
that by default JRockit works quite differently from Sun
JVM (at least Sun's client JVM).

And yet another one to file a case to BEA support with a
reproducable test case.

- Timo

-- 
Timo Rantalaiho
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
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] Best practice and use of detachable models

2007-02-22 Thread Igor Vaynberg

On 2/22/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote:


Hi!

On 2/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> > > Will new Label("foo", fooModel.getFoo() + "bar")kind of hardcoding
conflict in some subtle way with the concept of detachable models?

[detachable model for concatenated string snipped]

> Can I assume that doing all this may not be worth it if you are only
trying
> to derive a simple String value to put into a label - so the
"hardcoding"
> may be okay for most scenarios?

Let's see if I understand wicket basics by now: My take is that each
such "hardcoded" string model remains in the session.



yep

so you think of the tradeoff. you can either serialize a string or a model
class. which one would be smaller? for short strings the string will
probably take up less space.

another thing to consider is whether or not you need this model to be
refreshable. if you put a string in the model never changes, it always
contains the string no matter how many times you repaint the page. this
might not matter when used inside repeaters that rebuild their component
hierarchy on every request.

-igor



Gabor Szokoli

new guy

-
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] Best practice and use of detachable models

2007-02-22 Thread Gabor Szokoli
Hi!

On 2/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> > > Will new Label("foo", fooModel.getFoo() + "bar")kind of hardcoding 
> > > conflict in some subtle way with the concept of detachable models?

[detachable model for concatenated string snipped]

> Can I assume that doing all this may not be worth it if you are only trying
> to derive a simple String value to put into a label - so the "hardcoding"
> may be okay for most scenarios?

Let's see if I understand wicket basics by now: My take is that each
such "hardcoded" string model remains in the session.


Gabor Szokoli
new guy

-
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] Navigation between pages

2007-02-22 Thread Nino Wael
Yes something like that, I guess you could also pop the pages from the page 
stack.

You think that should give problems? Im betting that this technique also are 
used by the wizard extension..?


-regards Nino


-Original Message-
From: [EMAIL PROTECTED] on behalf of Scott Swank
Sent: Wed 21-02-2007 17:48
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Navigation between pages
 
Nino,

Wouldn't that leave all of the pages in session?  I.e. you expect to
have 7 pages in history, but 7 points to 8, which points to 9, etc.

Scott


On 2/21/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> You can also employ an easy way to go back to the previous page by passing 
> the current page to the next page. It's been pretty useful for us. Or even 
> telling the page which page to goto next.
>
> Small pseudo snipplet:
>
>
> public class mypage extends WebPage {
>
> public mypage(final Page Previous, final Page next, Model model) {
>
> on next button: setresponse(next);
>
> on previous: setresponse(previous);
>
> }
>
> Regards Nino
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan
> Sent: 21. februar 2007 09:36
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] Navigation between pages
>
>
> Well you could just use setResponsePage(new YourWebPage(..));
>
>
> Peter Klassen wrote:
> >
> > Hi all,
> >
> > just one more trivial question; ;-)
> >
> > which possibilities do i got to navigate from one Webpage to another after
> > an event is triggered?
> >
> > Thx in advance! Peter
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111
> 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
>


-- 
Scott Swank
reformed mathematician

-
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