Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Erik van Oosten

If you want more power, you can use MixedParamUrlCodingStrategy from Wicket
1.3/2.0. If you are on the 1.2 branch you can pull it from
http://issues.apache.org/jira/browse/WICKET-138.

Regards,
 Erik.



igor.vaynberg wrote:
> 
> http://wicketstuff.org/wicket13/niceurl/
> 
> -igor
> 

--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
-- 
View this message in context: 
http://www.nabble.com/Nicer-URLs-tf3308127.html#a9245308
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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
/me grumbles ok nevermind then, I'll just keep away from this issue.

Eelco

On 2/28/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> We should just remove that stupid method. I hope this is enough proof
> that removing this doesn BREAK anything but rather FIXES something. We
> just wasted Chris'es time and ours by trying to help it.
>
> Eelco
>
>
> On 2/28/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > This is *exactly* why we made such a big fuss about it a couple of
> > weeks ago, when fixing it was vetod. This sucks.
> >
> > Eelco
> >
> >
> > On 2/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > http://wicketstuff.org/maven/repository/org/apache/wicket/
> > >
> > > where is the link to the bug? maybe we should backport it
> > >
> > > -igor
> > >
> > >
> > >
> > >  On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> > > > According to the bug list on Altassian my 'no session' issue is caused
> > > > by a bug that has been recently fixed but only in Wicket 1.3 and 2.0,
> > > > not 1.2.x.
> > > >
> > > > How can I get Wicket 1.3? Are the binaries available for download or do
> > > > I have to get the source and build it myself?
> > > >
> > > >
> > > -
> > > > 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] Tree Node Link and Page Expired Issue

2007-02-28 Thread Lan Boon Ping

It works now. Thanks for your fast reply!

Regards
Boon Ping

On 3/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


what you want is

getsessionsettings().setpagemapevictionstrategy(new
leastrecentlyaccessedevictionstrategy(15))

-igor



On 2/28/07, Lan Boon Ping <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I have a Page Expired issue in tree node link,  for example I have a
> tree, when i click on any node 6 times or more and  click 5 times on "Back"
> button back to first visited page,  and click on any tree node I will get
> Page Expired exception. Does anyone know how to solve this problem? By the
> way, I have increased pageMap size (getSessionSettings().setMaxPageMaps)
> from 5 to 15, but it doesn't solve the problem.
>
> Regards
> Boon Ping.
>
>
>
>
> -
> 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] Tree Node Link and Page Expired Issue

2007-02-28 Thread Igor Vaynberg

what you want is

getsessionsettings().setpagemapevictionstrategy(new
leastrecentlyaccessedevictionstrategy(15))

-igor



On 2/28/07, Lan Boon Ping <[EMAIL PROTECTED]> wrote:


Hi all,

I have a Page Expired issue in tree node link,  for example I have a tree,
when i click on any node 6 times or more and  click 5 times on "Back" button
back to first visited page,  and click on any tree node I will get Page
Expired exception. Does anyone know how to solve this problem? By the way, I
have increased pageMap size (getSessionSettings().setMaxPageMaps)  from 5 to
15, but it doesn't solve the problem.

Regards
Boon Ping.



-
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] Tree Node Link and Page Expired Issue

2007-02-28 Thread Lan Boon Ping

Hi all,

I have a Page Expired issue in tree node link,  for example I have a tree,
when i click on any node 6 times or more and  click 5 times on "Back" button
back to first visited page,  and click on any tree node I will get Page
Expired exception. Does anyone know how to solve this problem? By the way, I
have increased pageMap size (getSessionSettings().setMaxPageMaps)  from 5 to
15, but it doesn't solve the problem.

Regards
Boon Ping.
-
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] repeaters and inheritance

2007-02-28 Thread Iman Rahmatizadeh

Another solution would be to put all the complexity of managing items into a
general CartPanel class, but that wont get much cleaner I guess. One thing
that comes to mind is, If you have a Pricing domain object to handle pricing
issues, and a Summary object to handle the items summary , you can somehow
get rid of the inheritance hierarchy and manage them with a single Item
class at the top, and two dependent objects(Pricing and Summary). The actual
smell I sniff in your code is the parallel inheritance hierarchies in the
domain objects and UI. Thats what forces you to use a factory.

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


On 2/28/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> In our application we have several places where we are construction an
> html table but the content of the rows varies by ProductType.  For
> example:
>
> column 1. always an image
> column 2. the pricing: for hotels by room, for shows by ticket, for
> limo by hours
> column 3. item summary: for hotels the rooms/nights, for shows the
> seats and show time, etc
> column 4. the total
>
> There is a natural class hierarchy here where we have
>
> AbstractItem
>   HotelItem
>   ShowItem
>   LimoItem
>
> I'd like to have a comparable hierarchy of perhaps "RepeaterRow"
> objects that could have methods such as:
>
> AbstractItemRow
>   protected abstract Panel getPricingPanel();
>   protected abstract Panel getSummaryPanel();
>
> I've gotten this working with a ListView, but I'm doing things like:
>
>   populateItem(ListItem listItem) {
> final AbstractItem cartItem =
(AbstractItem)listItem.getModelObject();
> add(CartPanelFactory.getPricingPanel(cartItem));
> add(CartPanelFactory.getSummaryPanel(cartItem));
>   }
>
> Is there a cleaner way than delegating this decision about which Panel
> I need to a factory?

That looks like a fine pattern to me tbh. What don't you like about it?

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] repeaters and inheritance

2007-02-28 Thread Eelco Hillenius
On 2/28/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> In our application we have several places where we are construction an
> html table but the content of the rows varies by ProductType.  For
> example:
>
> column 1. always an image
> column 2. the pricing: for hotels by room, for shows by ticket, for
> limo by hours
> column 3. item summary: for hotels the rooms/nights, for shows the
> seats and show time, etc
> column 4. the total
>
> There is a natural class hierarchy here where we have
>
> AbstractItem
>   HotelItem
>   ShowItem
>   LimoItem
>
> I'd like to have a comparable hierarchy of perhaps "RepeaterRow"
> objects that could have methods such as:
>
> AbstractItemRow
>   protected abstract Panel getPricingPanel();
>   protected abstract Panel getSummaryPanel();
>
> I've gotten this working with a ListView, but I'm doing things like:
>
>   populateItem(ListItem listItem) {
> final AbstractItem cartItem = (AbstractItem)listItem.getModelObject();
> add(CartPanelFactory.getPricingPanel(cartItem));
> add(CartPanelFactory.getSummaryPanel(cartItem));
>   }
>
> Is there a cleaner way than delegating this decision about which Panel
> I need to a factory?

That looks like a fine pattern to me tbh. What don't you like about it?

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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
We should just remove that stupid method. I hope this is enough proof
that removing this doesn BREAK anything but rather FIXES something. We
just wasted Chris'es time and ours by trying to help it.

Eelco


On 2/28/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> This is *exactly* why we made such a big fuss about it a couple of
> weeks ago, when fixing it was vetod. This sucks.
>
> Eelco
>
>
> On 2/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > http://wicketstuff.org/maven/repository/org/apache/wicket/
> >
> > where is the link to the bug? maybe we should backport it
> >
> > -igor
> >
> >
> >
> >  On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> > > According to the bug list on Altassian my 'no session' issue is caused
> > > by a bug that has been recently fixed but only in Wicket 1.3 and 2.0,
> > > not 1.2.x.
> > >
> > > How can I get Wicket 1.3? Are the binaries available for download or do
> > > I have to get the source and build it myself?
> > >
> > >
> > -
> > > 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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
This is *exactly* why we made such a big fuss about it a couple of
weeks ago, when fixing it was vetod. This sucks.

Eelco


On 2/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> http://wicketstuff.org/maven/repository/org/apache/wicket/
>
> where is the link to the bug? maybe we should backport it
>
> -igor
>
>
>
>  On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> > According to the bug list on Altassian my 'no session' issue is caused
> > by a bug that has been recently fixed but only in Wicket 1.3 and 2.0,
> > not 1.2.x.
> >
> > How can I get Wicket 1.3? Are the binaries available for download or do
> > I have to get the source and build it myself?
> >
> >
> -
> > 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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Igor Vaynberg

are you sure you need to specify a different pagemap? that is only needed
when you work with frames/popups

meanwhile ive reopened the issue.

-igor


On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:


> http://wicketstuff.org/maven/repository/org/apache/wicket/
>
> where is the link to the bug? maybe we should backport it
>
> -igor

https://issues.apache.org/jira/browse/WICKET-215?page=com.atlassian.jira
.plugin.system.issuetabpanels:all-tabpanel

-
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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Chris Colman
> http://wicketstuff.org/maven/repository/org/apache/wicket/
> 
> where is the link to the bug? maybe we should backport it
> 
> -igor

https://issues.apache.org/jira/browse/WICKET-215?page=com.atlassian.jira
.plugin.system.issuetabpanels:all-tabpanel

-
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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Igor Vaynberg

http://wicketstuff.org/maven/repository/org/apache/wicket/

where is the link to the bug? maybe we should backport it

-igor


On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:


According to the bug list on Altassian my 'no session' issue is caused
by a bug that has been recently fixed but only in Wicket 1.3 and 2.0,
not 1.2.x.

How can I get Wicket 1.3? Are the binaries available for download or do
I have to get the source and build it myself?

-
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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Chris Colman
According to the bug list on Altassian my 'no session' issue is caused
by a bug that has been recently fixed but only in Wicket 1.3 and 2.0,
not 1.2.x.

How can I get Wicket 1.3? Are the binaries available for download or do
I have to get the source and build it myself?

-
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] server side triggered page refresh (aka push)

2007-02-28 Thread Dan Brough
I'm sorry I don't understand too well how jetty works as I have only 
been using it for a week or
so and so far I'm pleased as punch with what Ive achieved in that time.

It would be nice to have some sort of AjaxPollBehaviour though.

I personally don't care much about jetty continuation's as I'm happy to 
have a thread for each poll.
(No scalability concerns at the moment)

Does anyone have a quick cheap-n-nasty trick for updating jetty 
components via a server triggered event ?

I haven't delved into the source code much but I tried doing a wait on a 
session object in the  AjaxSelfUpdatingTimerBehavior
and that blocked all other client side Ajax requests as well.
(I'm using jetty 6.1 and jetty trunk source)

Perhaps the javascript loop was blocked while the 
AjaxSelfUpdatingTimerBehavior was doing its thing ?
I'm not sure if thats possible but my javascript/ajax knowledge is very 
minimal and will hopefully stay
that way thanks to Wicket.

Dan Brough.


Johan Compagner wrote:
> I haven't looked in dept into the jetty feature but as far as i know
> jetty hold the connection open. It pools it internally and when a 
> request (from the client)
> comes in that connection is used and the request is pretty much 
> handled like
> a normal servlet request.
>
> The problem is how and where does your code run when you get a server 
> side event
> that then takes the connection from the pool again and sends something 
> to the client
> (without the client requesting really for something)
>
> Can you ask jetty "he i want to talk to that client, give me the 
> socket connection"
> so where do you "wait" would that be in wicket code or can that be in 
> jetty?
> Because if that was in wicket code then we have to build in some support
> because else the page(map) is locked for anything else constantly.
>
> Johan


-
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] Does wicket:head work with markup inheritance?

2007-02-28 Thread Chris Colman
Using a wicket:head in derived class markup as well as wicket:extend
seems to cause problems in both 1.2.4 and 1.2.5 of wicket (haven't tried
earlier versions).

The following scenario demonstrates this:

Base class markup:
--


http://www.w3.org/1999/xhtml"; >

Wicket Examples - helloworld






home
location






Derived class markup:
-

< ?xml version="1.0" encoding="UTF-8"?>
http://www.w3.org/1999/xhtml"; >

Wicket Examples - helloworld





   http://etc.,"; type="text/javascript">
   
etc., to be placed inside head askjfkjskadf
   


This is the super class header



This text is inserted into base markup body



This is the super class footer



Now what happens in the resulting HTML is that the text from the derived
class' markup ends up in the  instead of in the body and the HTML
contains one opening  but two closing 
tags.


http://www.w3.org/1999/xhtml"; >

Wicket Examples - helloworld




Content is added here which is wrong. <- should
be in body 



]]>*/





Wicket Examples   


  
369
Gourmet


Source link
was here



  




home
location



   <- !Very strange additional closing child tag!






-
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] Multiple sections of markup replaced by subclassed markup

2007-02-28 Thread Igor Vaynberg

no we do not, but what we do support is

stuff which will put stuff into  element of
the page

so ..

-igor


On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:


I have a situation where I have the need to place a  in
the head and another in the body of a superclass markup page. Ie,. The
derived class markups need the ability to provide both header (typically
javascript) and body markup to be inserted when the page is rendered.

Does wicket support multiple  tags in a single
superclass markup page or is there a limit of 1 per page?


-
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] Multiple sections of markup replaced by subclassed markup

2007-02-28 Thread Chris Colman
I have a situation where I have the need to place a  in
the head and another in the body of a superclass markup page. Ie,. The
derived class markups need the ability to provide both header (typically
javascript) and body markup to be inserted when the page is rendered.

Does wicket support multiple  tags in a single
superclass markup page or is there a limit of 1 per page?


-
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] repeaters and inheritance

2007-02-28 Thread Scott Swank
In our application we have several places where we are construction an
html table but the content of the rows varies by ProductType.  For
example:

column 1. always an image
column 2. the pricing: for hotels by room, for shows by ticket, for
limo by hours
column 3. item summary: for hotels the rooms/nights, for shows the
seats and show time, etc
column 4. the total

There is a natural class hierarchy here where we have

AbstractItem
  HotelItem
  ShowItem
  LimoItem

I'd like to have a comparable hierarchy of perhaps "RepeaterRow"
objects that could have methods such as:

AbstractItemRow
  protected abstract Panel getPricingPanel();
  protected abstract Panel getSummaryPanel();

I've gotten this working with a ListView, but I'm doing things like:

  populateItem(ListItem listItem) {
final AbstractItem cartItem = (AbstractItem)listItem.getModelObject();
add(CartPanelFactory.getPricingPanel(cartItem));
add(CartPanelFactory.getSummaryPanel(cartItem));
  }

Is there a cleaner way than delegating this decision about which Panel
I need to a factory?

Thank you,
Scott

-- 
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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Eelco Hillenius
> It seems like mountBookmarkablePage method tries to instantiate the
> pages. These pages always need PageParameters (they use this to process
> the o= parameter so they can determine the organization to display).
> Their constructors that take no parameters don't do anything because
> they won't be used but it seems like when mounting a bookmarkable page
> these pages are instantiated with the parameterless constructor.

We still need even more stack trace :)

mountBookmarkablePage shouldn't (and doesn't as far as I can see)
construct instances.

Why/ by which code is LocationPage getting constructed outside of a session?


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


[Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Chris Colman
> On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> >
> >  I tried to add some nice URLs by adding the following to my
application
> > class:
> >
> > public void init()
> > {
> >   mountBookmarkablePage("/home", HomePage.class);
> >   mountBookmarkablePage("/location", LocationPage.class);
> > }

> can you show me a bit more stacktrace of that second trace?

Here's more of the second stack trace
Caused by: wicket.WicketRuntimeException: there is no session attached
to current thread http-80-1
at wicket.Session.get(Session.java:210)
at wicket.Application$1.onInstantiation(Application.java:272)
at
wicket.Application.notifyComponentInstantiationListeners(Application.
java:823)
at wicket.Component.(Component.java:592)
at wicket.MarkupContainer.(MarkupContainer.java:123)
at wicket.Page.(Page.java:208)
at wicket.markup.html.WebPage.(WebPage.java:128)
at
com.sas.av.ui.wicket.templates.BasePage.(BasePage.java:57)
at
com.sas.av.ui.wicket.templates.BasePage.(BasePage.java:67)
at
com.sas.av.ui.wicket.templates.original.OrganizationPage.(Organ
izationPage.java:59)
at
com.sas.av.ui.wicket.templates.original.StandardPage.(StandardP
age.java:70)
at
com.sas.av.ui.wicket.templates.original.LocationPage.(LocationP
age.java:55)
at
com.sas.av.ui.wicket.templates.original.LocationPage.(Locatio
nPage.java)
... 44 more

> Where does the constructor init starts?

Constructor init of what? The application or the page(s)?

It seems like mountBookmarkablePage method tries to instantiate the
pages. These pages always need PageParameters (they use this to process
the o= parameter so they can determine the organization to display).
Their constructors that take no parameters don't do anything because
they won't be used but it seems like when mounting a bookmarkable page
these pages are instantiated with the parameterless constructor.

Will this work or will I need to create some artifial bindings to the
markup in the parameterless constructors to keep things flowing?

> It seems you are making a static instance inside your HomePage or
> LocationPage.class??

I can't see any code that would be doing that.

> johan

-
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] Nicer URLs

2007-02-28 Thread Chris Colman
> "Today I hit the critical mass of connections between neurons in my
brain
> required to grasp Wicket" - according to Marcus Buckingham in the book
> "now, discover your strength", that is what is called Synapse

Or dendrites and axons or something. Why couldn't they just call them
conductors or wires like in electronics? It would have made it a whole
lot easier for double Es like me.

-
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] server side triggered page refresh (aka push)

2007-02-28 Thread Johan Compagner

I haven't looked in dept into the jetty feature but as far as i know
jetty hold the connection open. It pools it internally and when a request
(from the client)
comes in that connection is used and the request is pretty much handled like
a normal servlet request.

The problem is how and where does your code run when you get a server side
event
that then takes the connection from the pool again and sends something to
the client
(without the client requesting really for something)

Can you ask jetty "he i want to talk to that client, give me the socket
connection"
so where do you "wait" would that be in wicket code or can that be in jetty?
Because if that was in wicket code then we have to build in some support
because else the page(map) is locked for anything else constantly.

Johan

P.S. Repeater package is just something much newer and better then ListView
they are
  separate things and are a bit different in design.

On 2/28/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:


Hi All,

I'm currently developing an application in which I need some kind of
push technology, and even if wicket doesn't seem to support such
feature for the moment, it seems that the gates are open to implement
my own. Great design, kudos to the wicket team!
I'd like to share with you my ideas about that, so that you can
correct me if you think I will hit a wall, or tell me if others have
already done things like what I need. My idea is also to make
something generic that could later be used by other wicket users, and
I'd need your feedback on the different strategies I see.
Disclaimer: I'm a wicket and web development newbie, so these ideas
may suffer from serious design flaws :-)

1) "push" support in wicket
--
For the moment as far as I understand wicket it's not possible to
trigger an update of a client on a server side event. My idea is to
add an interface very similar to the AjaxRequestTarget class, on which
you could call the addComponent and append/prependJavascript to
trigger the appropriate events on the client. To control event
propagation atomicity, I would add a trigger() method which indicates
that the events (component refresh, javascript calls) added so far are
ready to be sent to the client.
I would also provide a class implementing this interface and the
IBehavior, so that you can easily add an instance of this class to
your page and trigger events from the server side.
This implementation would actually contribute a javascript to the page
to poll the server for changes, at a configurable rate, much like the
AbstractAjaxTimerBehavior is implemented. The difference would be that
instead of calling the onTimer(AjaxRequestTarget) in the respond
method it would actually "copy" all the components and javascripts
"server-side events" that were added on the object to the
AjaxRequestTarget. Obviously I would need to take care of thread
synchronization issues.

This seems pretty simple and I think it can be implemented without any
modification in Wicket. But maybe this is something that could be
interesting to contribute to the wicket community?

2) finer grain component update
-
In some cases refreshing a whole component in ajax in too coarse
grain. Imagine you want to implement a chat application. If you add
the component resonsible for rendering the messages history (probably
a ListView or RepeatingView) to your AjaxRequestTarget, you will
actually transport the whole rendered component to the client each
time a new message should be appended to the list. This is not really
optimal.

Thus I'd like to implement this kind of fine grain update, and I think
I can do it by calling addJavascript instead of addComponent, with the
appropriate javascript. But it would be much cleaner to add a method
to AjaxRequestTarget allowing to insert a new item in a RepeatingView
or ListView. If I patch wicket to do that, is it something that would
have a chance to get integrated in wicket?

BTW, any reason why ListView is not a subclass of RepeatingView? It
would make my development cleaner, and it seems pretty easy to make
ListView inherit from RepeatingView.

3) more scalable refresh
--
The problem with the solution proposed in 1) is that you have to
configure your poll rate. If you set it up with a very frequent rate,
HTTP connections will be opened frequently, decreasing service
scalability, especially with the one thread per request model used in
most web servers. Therefore a better solution would be to use a push
technology such as cometd, for which we can find implementations
relying on NIO and thus bypassing the limitation of one thread per
request (see jetty cometd implementation, or the grizzly connector for
glassfish).
As usual I can implement a solution on top of Wicket, but a better
integration could be interesting for others (and for me). So my idea
here is to provide another implementation to the interface desc

[Wicket-user] server side triggered page refresh (aka push)

2007-02-28 Thread Xavier Hanin
Hi All,

I'm currently developing an application in which I need some kind of
push technology, and even if wicket doesn't seem to support such
feature for the moment, it seems that the gates are open to implement
my own. Great design, kudos to the wicket team!
I'd like to share with you my ideas about that, so that you can
correct me if you think I will hit a wall, or tell me if others have
already done things like what I need. My idea is also to make
something generic that could later be used by other wicket users, and
I'd need your feedback on the different strategies I see.
Disclaimer: I'm a wicket and web development newbie, so these ideas
may suffer from serious design flaws :-)

1) "push" support in wicket
--
For the moment as far as I understand wicket it's not possible to
trigger an update of a client on a server side event. My idea is to
add an interface very similar to the AjaxRequestTarget class, on which
you could call the addComponent and append/prependJavascript to
trigger the appropriate events on the client. To control event
propagation atomicity, I would add a trigger() method which indicates
that the events (component refresh, javascript calls) added so far are
ready to be sent to the client.
I would also provide a class implementing this interface and the
IBehavior, so that you can easily add an instance of this class to
your page and trigger events from the server side.
This implementation would actually contribute a javascript to the page
to poll the server for changes, at a configurable rate, much like the
AbstractAjaxTimerBehavior is implemented. The difference would be that
instead of calling the onTimer(AjaxRequestTarget) in the respond
method it would actually "copy" all the components and javascripts
"server-side events" that were added on the object to the
AjaxRequestTarget. Obviously I would need to take care of thread
synchronization issues.

This seems pretty simple and I think it can be implemented without any
modification in Wicket. But maybe this is something that could be
interesting to contribute to the wicket community?

2) finer grain component update
-
In some cases refreshing a whole component in ajax in too coarse
grain. Imagine you want to implement a chat application. If you add
the component resonsible for rendering the messages history (probably
a ListView or RepeatingView) to your AjaxRequestTarget, you will
actually transport the whole rendered component to the client each
time a new message should be appended to the list. This is not really
optimal.

Thus I'd like to implement this kind of fine grain update, and I think
I can do it by calling addJavascript instead of addComponent, with the
appropriate javascript. But it would be much cleaner to add a method
to AjaxRequestTarget allowing to insert a new item in a RepeatingView
or ListView. If I patch wicket to do that, is it something that would
have a chance to get integrated in wicket?

BTW, any reason why ListView is not a subclass of RepeatingView? It
would make my development cleaner, and it seems pretty easy to make
ListView inherit from RepeatingView.

3) more scalable refresh
--
The problem with the solution proposed in 1) is that you have to
configure your poll rate. If you set it up with a very frequent rate,
HTTP connections will be opened frequently, decreasing service
scalability, especially with the one thread per request model used in
most web servers. Therefore a better solution would be to use a push
technology such as cometd, for which we can find implementations
relying on NIO and thus bypassing the limitation of one thread per
request (see jetty cometd implementation, or the grizzly connector for
glassfish).
As usual I can implement a solution on top of Wicket, but a better
integration could be interesting for others (and for me). So my idea
here is to provide another implementation to the interface described
in 1), which post an event on a cometd topic each time the trigger()
method is called. On the client side, a javascript would register on
this topic, and whenever a message is received it would convert it to
a call to the same method that is called when an ajax response is
received (Wicket.Ajax.Call.loadedCallback I think). The main
difference between the two would be that in pure ajax the answer is
received as xml directly, while cometd force the answer to be in json.
Therefore the cometd event would be a very simple json object with one
main property: a string containing the xml that is usually send
directly. This is not really in the spirit of json and cometd, but
would make an easy fit in the existing design of wicket-ajax.

So, what do you think of these ideas? Do you think they could be in a
good direction? Do you think others might be interested? Should I
prefer the "work on my own way" flavor or the "patch to wicket" one?
Would the last point fit in the wicket-con

Re: [Wicket-user] FormComponent mask

2007-02-28 Thread Igor Vaynberg

so you want the user to enter 1,000,000 but on serverside that to be
100? then you need a maskconverter that will convert the string to
integer.

-igor


On 2/28/07, Manuel Alejandro de Brito Fontes <[EMAIL PROTECTED]>
wrote:


Yes, I'ts simple, the problem is when I modify the content of the
textfield the value of the object is with the mask, not the value
behind.
For instance, I have a textfield that only accept integer numbers
(thats is easy with new PatternValidator( "\\d+" ) ), now I want that
the user enter the number  100 and in the event onblur  occur
apply a mask to the number, i.e 1,000,000 or when I write the number
going applying the mask inline. All that works perfect with
javascript, but the problem is what happens behind that. The number
is not 100 it's 1,000,000, so if exist a validation between two
fields i'm screw, I have to know if the field contains a mask or not.
In addition if I do formcomponent.validate() and formcomponent.isValid
() returns false.
The "explication" is confused or I'm confused?

On 28-02-2007, at 16:04, Igor Vaynberg wrote:

> zapatec do it with javascript, which is really the only way to go
> about it.
> once you figure out the javascript it is trivial to hook it into
> wicket.
>
> -igor
>
>
> On 2/28/07, Manuel Alejandro de Brito Fontes
> <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi, I have a question about field mask, It's possible do something
>> like
>> this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html or
>> similar
>> to
>> http://java.sun.com/docs/books/tutorial/uiswing/components/
>> formattedtextfield.htmlin wicket?
>> I miss something in the documentation?.  I only found the
>> IConverter interface
>> doing override of the method getConverter(Class type) in a
>> TextField
>> declaration. The problem is that getConverter() modify my model
>> and I don't
>> want that.
>>
>>
>> -
>> 
>> 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] FormComponent mask

2007-02-28 Thread Manuel Alejandro de Brito Fontes
Yes, I'ts simple, the problem is when I modify the content of the  
textfield the value of the object is with the mask, not the value  
behind.
For instance, I have a textfield that only accept integer numbers  
(thats is easy with new PatternValidator( "\\d+" ) ), now I want that  
the user enter the number  100 and in the event onblur  occur  
apply a mask to the number, i.e 1,000,000 or when I write the number  
going applying the mask inline. All that works perfect with  
javascript, but the problem is what happens behind that. The number  
is not 100 it's 1,000,000, so if exist a validation between two  
fields i'm screw, I have to know if the field contains a mask or not.  
In addition if I do formcomponent.validate() and formcomponent.isValid 
() returns false.
The "explication" is confused or I'm confused?

On 28-02-2007, at 16:04, Igor Vaynberg wrote:

> zapatec do it with javascript, which is really the only way to go  
> about it.
> once you figure out the javascript it is trivial to hook it into  
> wicket.
>
> -igor
>
>
> On 2/28/07, Manuel Alejandro de Brito Fontes  
> <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi, I have a question about field mask, It's possible do something  
>> like
>> this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html or  
>> similar
>> to
>> http://java.sun.com/docs/books/tutorial/uiswing/components/ 
>> formattedtextfield.htmlin wicket?
>> I miss something in the documentation?.  I only found the  
>> IConverter interface
>> doing override of the method getConverter(Class type) in a  
>> TextField
>> declaration. The problem is that getConverter() modify my model  
>> and I don't
>> want that.
>>
>>
>> - 
>> 
>> 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] Can templates have an extension other than .html?

2007-02-28 Thread Matt Welch

Nice! Thanks for the help.

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


On 2/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> that is an interesting comment indeed. if it was really true then
> webpage.getmarkuptype() would be final. anyone else mind to comment?

Looks like an ancient leftover. I ditched it.

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] FormComponent mask

2007-02-28 Thread Igor Vaynberg

zapatec do it with javascript, which is really the only way to go about it.
once you figure out the javascript it is trivial to hook it into wicket.

-igor


On 2/28/07, Manuel Alejandro de Brito Fontes <[EMAIL PROTECTED]>
wrote:


Hi, I have a question about field mask, It's possible do something like
this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html or similar
to
http://java.sun.com/docs/books/tutorial/uiswing/components/formattedtextfield.htmlin
 wicket?
I miss something in the documentation?.  I only found the IConverter interface
doing override of the method getConverter(Class type) in a TextField
declaration. The problem is that getConverter() modify my model and I don't
want that.


-
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] Question about Panel

2007-02-28 Thread Zhang Hailong

It looks good. I will try it. Thank you!

best,
hailong

On 3/1/07, Ryan Holmes <[EMAIL PROTECTED]> wrote:


Use a WebMarkupContainer component instead of a Panel.

You might also be interested in fragments:
http://wicket.sourceforge.net/ExampleUsingFragments.html
http://cwiki.apache.org/WICKET/fragments.html

-Ryan

On Feb 28, 2007, at 1:56 AM, Zhang Hailong wrote:

> Hi all,
>
> I found it is inconvenient to create a separate page and class for
> Panel every time. Sometimes, I just want keep things as simple as
> possible. For example, I just want to hide some components
> together, so I put them in a Panel.
> Is it possible to use Panel like this?Or add this feature in later
> version?(I'm using 1.2.4)
> HTML:
> 
>  
> You believe
> 
>
> 
> 
> text
> 
> 
> 
>
> Java:
> Panel myPanel = new Panel("myPanel");
> Label label = new Label("label", "test");
> myPanel.add(label);
> .
>
> Thanks.
>
>
> Regards,
> Hailong Zhang
>
> --
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


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

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


[Wicket-user] FormComponent mask

2007-02-28 Thread Manuel Alejandro de Brito Fontes
Hi, I have a question about field mask, It's possible do something  
like this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html  
or similar to http://java.sun.com/docs/books/tutorial/uiswing/ 
components/formattedtextfield.html in wicket?
I miss something in the documentation?.  I only found the IConverter  
interface doing override of the method getConverter(Class type) in  
a TextField declaration. The problem is that getConverter() modify my  
model and I don't want that.


-
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] Resuable AddressPanel

2007-02-28 Thread Eelco Hillenius
As you probably know by now, I am not against using a converter as I
have always viewed converters as input/output converters rather than
'just' type converters. However, in 1.2.x and 1.3 until Johan
backports the converters from 2.0 this is awkward to achieve, so
Igor's approach works best. If you want to look at an example with
converters look at the FormInput example (URL and US phone number). I
would probably prefer converters in 2.0 as they make no assumptions on
the kind of model you are using.

Foo. Bar.

Eelco


On 2/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> why use a type converter? you are not converting types...
>
> i would use a model to do this
>
> class addrlinemodel implements imodel {
>  private imodel addrmodel;
>
>
>   public String getobject() {
>   address addr=addrmodel.getobject();
>   return addr.streetnumber+" "+addr.streetname;
>   }
>   public void setobject(String object) {
>  address addr=addrmodel.getobject();
>  string[] parts=object.split();
> //decide what goes where
> addr.streetname=parts[2];
> ...
> }
> }
>
> -igor
>
>
>
> On 2/28/07, Flemming Boller <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi
> >
> > I have a challenge about creating a reuseable Panel for my pojo called
> Address.
> >
> > class Address {
> >
> > String streetName;
> > String streetNumber;
> > String floor;
> > String letter;
> > String door;
> > String zipCode;
> > String city;
> > }
> >
> >
> > What I would like is to concatenate streetName, streetNumber, floor,
> letter, door into ONE textfield (wicket:id="address")
> > ZipCode and city have their own TextFields and PropertyModel is used here.
> >
> >
> > For concatening the fields above I have used a ITypeConverter, which
> converts the one textfield into an new Address object.
> > My problem is that the zipCode and city is bound to the old object, so the
> new Address object is missing the zipCode and city.
> >
> >
> > Do any of you guys know a solution to this problem? Should I use a
> ITypeConverter at all? Or should I take a whole other approch.
> >
> >
> > Regards
> > Flemming
> >
> >
> -
> > 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] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Eelco Hillenius
> would be cool if you could create a wiki page explaining how you built it.
> not only is it a cool component, but outlining the process will help others
> a lot.

I second that.

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] Can templates have an extension other than .html?

2007-02-28 Thread Eelco Hillenius
On 2/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> that is an interesting comment indeed. if it was really true then
> webpage.getmarkuptype() would be final. anyone else mind to comment?

Looks like an ancient leftover. I ditched it.

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] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Eelco Hillenius
I think upgrading to the latest 1.2 would fix your problem. The
current version is 1.2.5, see
http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=130482

Eelco

On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
> I am using 1.2.1 at the moment.
>
> Did we have an official release of the version 2.0. I wiasd thinking of
> moving to 2.0 when its released.
>
> Regards
> Dipu
>
>
> - Original Message -
> From: "Eelco Hillenius" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, February 28, 2007 5:27 PM
> Subject: Re: [Wicket-user] IE 7 + Ajax + Datepicker issues
>
>
> > What version are you using? And if the version is 1.3 or 2.0, you
> > could consider using the much better datepicker that is in
> > wicket-datetime.
> >
> > Anyway, this sounds like a problem we had in previous versions to;
> > should be fixed in new versions.
> >
> > Eelco
> >
> >
> > On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi All,
> >>
> >> I use Ajax links to switch between different panels on a page and some of
> >> the panels has datepicker components on it.
> >> On IE 7 the date picker will stop working ( calendar won't pop up ) after
> >> switching between panels using ajax link.
> >> I think the reason for this is  that when the dom is updated with the
> >> html
> >> for the panel the inline Calendar.setup script is not getting executed
> >> with
> >> IE7.
> >> I tired calling the Calendar.setup script  on the decorateOnSuccessScript
> >> of
> >> the ajax link thats is used to switch panel and the date picker worked.
> >> Can anyone say if this is the solution to go with or do we have any other
> >> better ways of solving the problem.
> >> If calling the Calendar.setup script in the above mentioned way is the
> >> solution then it will be good if the getInitScript method on the
> >> DatePaicker
> >> is made public.
> >>
> >> Regards
> >> Dipu
> >>
> >> -
> >> 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] Can templates have an extension other than .html?

2007-02-28 Thread Eelco Hillenius
> I'm a little concerned by the Note int he javadocs for this method:
>
>  Note: The markup type must be equal to the extension of the markup file. In
> the case of WebPages, it must always be "html".
>
> Does that mean that the string "html" has some meaning beyond just telling
> the framework what file extension to retrieve?

That comment was incorrect. Thanks for noting it, I just removed it.

We have one example of a different extension (xml):
wicket.examples.compref.XmlPage.

You should be able to pick any extension you like. Please report here
if you encounter any problems regarding 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] Can templates have an extension other than .html?

2007-02-28 Thread Igor Vaynberg

that is an interesting comment indeed. if it was really true then
webpage.getmarkuptype() would be final. anyone else mind to comment?

-igor


On 2/28/07, Matt Welch <[EMAIL PROTECTED]> wrote:


I'm a little concerned by the Note int he javadocs for this method:

Note: The markup type must be equal to the extension of the markup file.
In the case of WebPages, it must always be "html".


Does that mean that the string "html" has some meaning beyond just telling
the framework what file extension to retrieve?


On 2/28/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
>
> Should be just override WebPage. getMarkupType()
>
> 
http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebPage.html#getMarkupType()
>
> 

>
> On 3/1/07, Matt Welch <[EMAIL PROTECTED]> wrote:
> > I'd like my template files to have an extension other than .html. Is
> that
> > possible?
> >
>


-
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 templates have an extension other than .html?

2007-02-28 Thread Matt Welch

I'm a little concerned by the Note int he javadocs for this method:

Note: The markup type must be equal to the extension of the markup file. In
the case of WebPages, it must always be "html".


Does that mean that the string "html" has some meaning beyond just telling
the framework what file extension to retrieve?


On 2/28/07, Carfield Yim <[EMAIL PROTECTED]> wrote:


Should be just override WebPage. getMarkupType()


http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebPage.html#getMarkupType()

On 3/1/07, Matt Welch <[EMAIL PROTECTED]> wrote:
> I'd like my template files to have an extension other than .html. Is
that
> possible?
>

-
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] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Dipu
I am using 1.2.1 at the moment.

Did we have an official release of the version 2.0. I wiasd thinking of 
moving to 2.0 when its released.

Regards
Dipu


- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 28, 2007 5:27 PM
Subject: Re: [Wicket-user] IE 7 + Ajax + Datepicker issues


> What version are you using? And if the version is 1.3 or 2.0, you
> could consider using the much better datepicker that is in
> wicket-datetime.
>
> Anyway, this sounds like a problem we had in previous versions to;
> should be fixed in new versions.
>
> Eelco
>
>
> On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi All,
>>
>> I use Ajax links to switch between different panels on a page and some of
>> the panels has datepicker components on it.
>> On IE 7 the date picker will stop working ( calendar won't pop up ) after
>> switching between panels using ajax link.
>> I think the reason for this is  that when the dom is updated with the 
>> html
>> for the panel the inline Calendar.setup script is not getting executed 
>> with
>> IE7.
>> I tired calling the Calendar.setup script  on the decorateOnSuccessScript 
>> of
>> the ajax link thats is used to switch panel and the date picker worked.
>> Can anyone say if this is the solution to go with or do we have any other
>> better ways of solving the problem.
>> If calling the Calendar.setup script in the above mentioned way is the
>> solution then it will be good if the getInitScript method on the 
>> DatePaicker
>> is made public.
>>
>> Regards
>> Dipu
>>
>> -
>> 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] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Igor Vaynberg

would be cool if you could create a wiki page explaining how you built it.
not only is it a cool component, but outlining the process will help others
a lot.

-igor


On 2/28/07, Manuel Alejandro de Brito Fontes <[EMAIL PROTECTED]>
wrote:


Hi, the alerticon contains the tooltip, just pass the mouse over the image
and show the message.

On 28-02-2007, at 7:05, Vincent Demay wrote:

Hi manuel,

Confluence about wicket-contrib-dojo is unfortunatly not up to date, but
there are also some cool validation methods in wicket-contrib-dojo (
1.X-SNAPSHOT because it is the most maintained).
You can take a look at live exemple (comes from svn repo :
wicket-contrib-dojo-example (
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff)) :
http://www.demay-fr.net:8080/WCD13/app/ (end of the first column)

I will try to update confluence documentation asap but I don't have
enought time for the moment.

What you did is interesting, I thought about writing something like that
but with a tooltip on the alerticon instead of a classical feedbackPanel

--
Vincent Demay
http://www.demay-fr.net/blog


Manuel Alejandro de Brito Fontes a écrit :

Hi, I'm using wicket to build a prototype and found interesting the
content of this:
http://wicketstuff.org/confluence/display/STUFFWIKI/DojoFeedbackIndicator
and
http://wicketstuff.org/confluence/display/STUFFWIKI/DojoValidationAjaxHandler
My problem was that the validation only works until I submit the form, the
indicator only appears after the submit of the form and the message of the
caption contains all the errors of the feedback.
So I create a validation that not depends on dojo, indicate the error of
the validation, show the alerticon on fail and persist after the submit of
the form.
If is useful to someone, here attach a quick-start.
To use it add the behavior to any field, i.e.: .add(newFormFieldValidator(ClientEvent.
));
The code works on 2.0-SNAPSHOT (I don't use 1.x, so I don't known the API
changes).

 PS: Thanks for so powerful and flexible framework and sorry for my bad
english.


--

--
-
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] Resuable AddressPanel

2007-02-28 Thread Igor Vaynberg

why use a type converter? you are not converting types...

i would use a model to do this

class addrlinemodel implements imodel {
private imodel addrmodel;


 public String getobject() {
 address addr=addrmodel.getobject();
 return addr.streetnumber+" "+addr.streetname;
 }
 public void setobject(String object) {
address addr=addrmodel.getobject();
   string[] parts=object.split();
   //decide what goes where
   addr.streetname=parts[2];
   ...
   }
}

-igor


On 2/28/07, Flemming Boller <[EMAIL PROTECTED]> wrote:


Hi

I have a challenge about creating a reuseable Panel for my pojo called
Address.

class Address {

String streetName;
String streetNumber;
String floor;
String letter;
String door;
String zipCode;
String city;
}


What I would like is to concatenate streetName, streetNumber, floor,
letter, door into ONE textfield (wicket:id="address")
ZipCode and city have their own TextFields and PropertyModel is used here.


For concatening the fields above I have used a ITypeConverter, which
converts the one textfield into an new Address object.
My problem is that the zipCode and city is bound to the old object, so the
new Address object is missing the zipCode and city.


Do any of you guys know a solution to this problem? Should I use a
ITypeConverter at all? Or should I take a whole other approch.


Regards
Flemming


-
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] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
Hmm...I think I've missed the fact that the application doesn't have mount.
I guess I should cast the Application to WebApplication and just be
done with it...

Sorry for the noise...

/Mats

On 2/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> make a jira issue for this.
>
>
>
> On 2/28/07, Mats Norén <[EMAIL PROTECTED]> wrote:
> > On 2/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > i think that should work
> > > Doesn't it? error? or the mount is just not there?
> >
> > not there! :)
> >
> > wicket 1.2.4 btw
> >
> > /Mats
> >
> >
> >
> > >
> > > johan
> > >
> > >
> > >
> > > On 2/28/07, Mats Norén < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > > is it possible to mount my shared resource within my localizer?
> > > >
> > > > public class ForumFeedResource extends ContentFeedResource
> > > >
> > > > public static class Initializer implements IInitializer {
> > > >
> > > > public void init(Application application) {
> > > > application.getSharedResources ().add("newsFeed", new
> > > > ForumFeedResource());
> > > > --> can't be done?
> > > > -->application.mountSharedResource("/rss/forum", new
> > > >
> ResourceReference("newsFeed").getSharedResourceKey());
> > > > }
> > > > }
> > > >
> > > >
> > > > protected SyndFeed getFeed() {
> > > > ValueMap params = getParameters();
> > > > build my feed...
> > > >}
> > > > }
> > > >
> > > > Or am I using it the wrong way?
> > > >
> > > > /Mats
> > > >
> > > >
> > >
> -
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > your
> > > > opinions on IT & business topics through brief surveys-and earn cash
> > > >
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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


Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Igor Vaynberg

http://wicketstuff.org/wicket13/niceurl/

-igor


On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:


Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - "Wicket rocks massively!"

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPage&o=76165

to something like:

http://myserver.com/helloworld/LocationPage&o=76165

?

Regards.

-
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] Ajax Link + IE7 problem

2007-02-28 Thread Igor Vaynberg

the only reason it wouldnt work is that the table captures the onclick event
and doesnt bubble it up to the link. but, in general, you shouldnt use table
inside anchors as was said

-igor


On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:


 Thanks very much , if thats the case then i can inform the page designers
about that.

Regards
Dipu

- Original Message -
*From:* Ivo van Dongen <[EMAIL PROTECTED]>
*To:* wicket-user@lists.sourceforge.net
*Sent:* Wednesday, February 28, 2007 12:08 PM
*Subject:* Re: [Wicket-user] Ajax Link + IE7 problem

Hi,

Using a table in a link is probably not standards compliant. I don't know
if that is the problem here, but this kind of thing can cause a lot of
problems with javascript.

See http://htmlhelp.com/reference/html40/special/a.html for the element
specs.

Ivo

On 2/28/07, Dipu < [EMAIL PROTECTED]> wrote:
>
>  Hi All,
>
>
> Ajax Link doesnt work on IE 7 when there is a table in between the
> anchor tags.
>
> If we change the following line in the LinksPage.html from ajax expample
>
> counter 1:
>   <
> tr>increment  ( ajax-only link )
> it will stop working.
>
> Does anyone has any idea why ???
>
> Regards
> Dipu
>
>
>
>
>
>
>
> -
> 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
>
>


--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500

--

-
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] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Eelco Hillenius
What version are you using? And if the version is 1.3 or 2.0, you
could consider using the much better datepicker that is in
wicket-datetime.

Anyway, this sounds like a problem we had in previous versions to;
should be fixed in new versions.

Eelco


On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
>
> I use Ajax links to switch between different panels on a page and some of
> the panels has datepicker components on it.
> On IE 7 the date picker will stop working ( calendar won't pop up ) after
> switching between panels using ajax link.
> I think the reason for this is  that when the dom is updated with the html
> for the panel the inline Calendar.setup script is not getting executed with
> IE7.
> I tired calling the Calendar.setup script  on the decorateOnSuccessScript of
> the ajax link thats is used to switch panel and the date picker worked.
> Can anyone say if this is the solution to go with or do we have any other
> better ways of solving the problem.
> If calling the Calendar.setup script in the above mentioned way is the
> solution then it will be good if the getInitScript method on the DatePaicker
> is made public.
>
> Regards
> Dipu
>
> -
> 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] Question about Panel

2007-02-28 Thread Ryan Holmes
Use a WebMarkupContainer component instead of a Panel.

You might also be interested in fragments:
http://wicket.sourceforge.net/ExampleUsingFragments.html
http://cwiki.apache.org/WICKET/fragments.html

-Ryan

On Feb 28, 2007, at 1:56 AM, Zhang Hailong wrote:

> Hi all,
>
> I found it is inconvenient to create a separate page and class for  
> Panel every time. Sometimes, I just want keep things as simple as  
> possible. For example, I just want to hide some components  
> together, so I put them in a Panel.
> Is it possible to use Panel like this?Or add this feature in later  
> version?(I'm using 1.2.4)
> HTML:
> 
>  
> You believe
> 
>
> 
> 
> text
> 
> 
> 
>
> Java:
> Panel myPanel = new Panel("myPanel");
> Label label = new Label("label", "test");
> myPanel.add(label);
> .
>
> Thanks.
>
>
> Regards,
> Hailong Zhang
>
> -- 
> ---
> 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 templates have an extension other than .html?

2007-02-28 Thread Carfield Yim
Should be just override WebPage. getMarkupType()

http://wicket.sourceforge.net/apidocs/wicket/markup/html/WebPage.html#getMarkupType()

On 3/1/07, Matt Welch <[EMAIL PROTECTED]> wrote:
> I'd like my template files to have an extension other than .html. Is that
> possible?
>
>
>
> -
> 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 templates have an extension other than .html?

2007-02-28 Thread Matt Welch

I'd like my template files to have an extension other than .html. Is that
possible?
-
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] mount shared resource inside initializer?

2007-02-28 Thread Johan Compagner

make a jira issue for this.


On 2/28/07, Mats Norén <[EMAIL PROTECTED]> wrote:


On 2/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> i think that should work
> Doesn't it? error? or the mount is just not there?

not there! :)

wicket 1.2.4 btw

/Mats



>
> johan
>
>
>
> On 2/28/07, Mats Norén < [EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > is it possible to mount my shared resource within my localizer?
> >
> > public class ForumFeedResource extends ContentFeedResource
> >
> > public static class Initializer implements IInitializer {
> >
> > public void init(Application application) {
> > application.getSharedResources ().add("newsFeed", new
> > ForumFeedResource());
> > --> can't be done?
> > -->application.mountSharedResource("/rss/forum", new
> > ResourceReference("newsFeed").getSharedResourceKey());
> > }
> > }
> >
> >
> > protected SyndFeed getFeed() {
> > ValueMap params = getParameters();
> > build my feed...
> >}
> > }
> >
> > Or am I using it the wrong way?
> >
> > /Mats
> >
> >
>
-
> > 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] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Vincent Demay
Manuel Alejandro de Brito Fontes a écrit :
> Hi, the alerticon contains the tooltip, just pass the mouse over the 
> image and show the message.
oh, sorry, I haven't seen it ;)

--
Vincent Demay
http://www.demay-fr.net/blog
>
> On 28-02-2007, at 7:05, Vincent Demay wrote:
>
>> Hi manuel,
>>
>> Confluence about wicket-contrib-dojo is unfortunatly not up to date, 
>> but there are also some cool validation methods in 
>> wicket-contrib-dojo (1.X-SNAPSHOT because it is the most maintained).
>> You can take a look at live exemple (comes from svn repo : 
>> wicket-contrib-dojo-example 
>> (https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff)) : 
>> http://www.demay-fr.net:8080/WCD13/app/ (end of the first column)
>>
>> I will try to update confluence documentation asap but I don't have 
>> enought time for the moment.
>>
>> What you did is interesting, I thought about writing something like 
>> that but with a tooltip on the alerticon instead of a classical 
>> feedbackPanel
>>
>> --
>> Vincent Demay
>> http://www.demay-fr.net/blog
>>
>>
>> Manuel Alejandro de Brito Fontes a écrit :
>>> Hi, I'm using wicket to build a prototype and found interesting the 
>>> content of this:
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/DojoFeedbackIndicator  
>>> and 
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/DojoValidationAjaxHandler
>>> My problem was that the validation only works until I submit the 
>>> form, the indicator only appears after the submit of the form and 
>>> the message of the caption contains all the errors of the feedback.
>>> So I create a validation that not depends on dojo, indicate the 
>>> error of the validation, show the alerticon on fail and persist 
>>> after the submit of the form.
>>> If is useful to someone, here attach a quick-start.
>>> To use it add the behavior to any field, i.e.: .add(new 
>>> FormFieldValidator(ClientEvent.));
>>> The code works on 2.0-SNAPSHOT (I don't use 1.x, so I don't known 
>>> the API changes).
>>>
>>> PS: Thanks for so powerful and flexible framework and sorry for my 
>>> bad english.
>>>
>>>
>>> 
>>>
>>> 
>>> -
>>> 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] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
On 2/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> i think that should work
> Doesn't it? error? or the mount is just not there?

not there! :)

wicket 1.2.4 btw

/Mats



>
> johan
>
>
>
> On 2/28/07, Mats Norén < [EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > is it possible to mount my shared resource within my localizer?
> >
> > public class ForumFeedResource extends ContentFeedResource
> >
> > public static class Initializer implements IInitializer {
> >
> > public void init(Application application) {
> > application.getSharedResources ().add("newsFeed", new
> > ForumFeedResource());
> > --> can't be done?
> > -->application.mountSharedResource("/rss/forum", new
> > ResourceReference("newsFeed").getSharedResourceKey());
> > }
> > }
> >
> >
> > protected SyndFeed getFeed() {
> > ValueMap params = getParameters();
> > build my feed...
> >}
> > }
> >
> > Or am I using it the wrong way?
> >
> > /Mats
> >
> >
> -
> > 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] mount shared resource inside initializer?

2007-02-28 Thread Johan Compagner

i think that should work
Doesn't it? error? or the mount is just not there?

johan


On 2/28/07, Mats Norén <[EMAIL PROTECTED]> wrote:


Hi,
is it possible to mount my shared resource within my localizer?

public class ForumFeedResource extends ContentFeedResource

public static class Initializer implements IInitializer {

public void init(Application application) {
application.getSharedResources().add("newsFeed", new
ForumFeedResource());
--> can't be done?
-->application.mountSharedResource("/rss/forum", new
ResourceReference("newsFeed").getSharedResourceKey());
}
}


protected SyndFeed getFeed() {
ValueMap params = getParameters();
build my feed...
   }
}

Or am I using it the wrong way?

/Mats

-
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] using a map in a model

2007-02-28 Thread Ivo van Dongen

Thanks, I'll try that this afternoon.

Ivo

On 2/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


this should work i think:

Map map = new HashMap();
// fill map
map.put("name", "Ivo");

Form form = new Form("form", new CompoundModel(map));

form.add(new TextField("name"));

johan



On 2/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:

> Hi,
>
> We have a domain object that contains (among others) a map with
> key-value pairs. I want to use entries in this map in a Form with separate
> input fields for each entry (some may not already exist in the map). What
> would be the way to do this? Can I use a CompoundModel for this somehow?
>
> Thanks in advance,
> Ivo
>
> --
> Ivo van Dongen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 423
> F +31 20 4223500
>
> -
> 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





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
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] Resuable AddressPanel

2007-02-28 Thread Flemming Boller

Hi

I have a challenge about creating a reuseable Panel for my pojo called
Address.

class Address {

String streetName;
String streetNumber;
String floor;
String letter;
String door;
String zipCode;
String city;
}


What I would like is to concatenate streetName, streetNumber, floor, letter,
door into ONE textfield (wicket:id="address")
ZipCode and city have their own TextFields and PropertyModel is used here.


For concatening the fields above I have used a ITypeConverter, which
converts the one textfield into an new Address object.
My problem is that the zipCode and city is bound to the old object, so the
new Address object is missing the zipCode and city.


Do any of you guys know a solution to this problem? Should I use a
ITypeConverter at all? Or should I take a whole other approch.


Regards
Flemming
-
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] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Manuel Alejandro de Brito Fontes
Hi, the alerticon contains the tooltip, just pass the mouse over the  
image and show the message.


On 28-02-2007, at 7:05, Vincent Demay wrote:


Hi manuel,

Confluence about wicket-contrib-dojo is unfortunatly not up to  
date, but there are also some cool validation methods in wicket- 
contrib-dojo (1.X-SNAPSHOT because it is the most maintained).
You can take a look at live exemple (comes from svn repo : wicket- 
contrib-dojo-example (https://wicket-stuff.svn.sourceforge.net/ 
svnroot/wicket-stuff)) : http://www.demay-fr.net:8080/WCD13/app/  
(end of the first column)


I will try to update confluence documentation asap but I don't have  
enought time for the moment.


What you did is interesting, I thought about writing something like  
that but with a tooltip on the alerticon instead of a classical  
feedbackPanel


--
Vincent Demay
http://www.demay-fr.net/blog


Manuel Alejandro de Brito Fontes a écrit :
Hi, I'm using wicket to build a prototype and found interesting  
the content of this:
http://wicketstuff.org/confluence/display/STUFFWIKI/ 
DojoFeedbackIndicator  and http://wicketstuff.org/confluence/ 
display/STUFFWIKI/DojoValidationAjaxHandler
My problem was that the validation only works until I submit the  
form, the indicator only appears after the submit of the form and  
the message of the caption contains all the errors of the feedback.
So I create a validation that not depends on dojo, indicate the  
error of the validation, show the alerticon on fail and persist  
after the submit of the form.

If is useful to someone, here attach a quick-start.
To use it add the behavior to any field, i.e.: .add 
(new FormFieldValidator(ClientEvent.));
The code works on 2.0-SNAPSHOT (I don't use 1.x, so I don't known  
the API changes).


PS: Thanks for so powerful and flexible framework and sorry for my  
bad english.




- 


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] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Johan Compagner

can you show me a bit more stacktrace of that second trace?

Where does the constructor init starts?
It seems you are making a static instance inside your HomePage or
LocationPage.class??

johan


On 2/28/07, Chris Colman <[EMAIL PROTECTED]> wrote:


 I tried to add some nice URLs by adding the following to my application
class:



public void init()

{

  mountBookmarkablePage("/home", HomePage.class);

  mountBookmarkablePage("/location", LocationPage.class);

}



But then I get the following error when the web app is deployed:



java.lang.ExceptionInInitializerError

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at
com.sas.av.ui.wicket.templates.original.HelloWorldApplication.class$(
HelloWorldApplication.java:40)

at
com.sas.av.ui.wicket.templates.original.HelloWorldApplication.init(
HelloWorldApplication.java:41)



Caused by: wicket.WicketRuntimeException: there is no session attached to
current thread http-80-1

at wicket.Session.get(Session.java:210)

at wicket.Application$1.onInstantiation(Application.java:272)

at wicket.Application.notifyComponentInstantiationListeners(
Application.java:823)

at wicket.Component.(Component.java:592)

at wicket.MarkupContainer.(MarkupContainer.java:123)

at wicket.Page.(Page.java:208)

at wicket.markup.html.WebPage.(WebPage.java:128)





The HomePage and LocationPage classes are available. For some reason
wicket thinks that no session has been set up yet – which is actually
correct. Why do we need a session set up if we haven't yet had to process
a HTTP request? We're just initializing the webapp.



Using Wicket 1.2.4

-
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] using a map in a model

2007-02-28 Thread Johan Compagner

this should work i think:

Map map = new HashMap();
// fill map
map.put("name", "Ivo");

Form form = new Form("form", new CompoundModel(map));

form.add(new TextField("name"));

johan



On 2/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:


Hi,

We have a domain object that contains (among others) a map with key-value
pairs. I want to use entries in this map in a Form with separate input
fields for each entry (some may not already exist in the map). What would be
the way to do this? Can I use a CompoundModel for this somehow?

Thanks in advance,
Ivo

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
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] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
Hi,
is it possible to mount my shared resource within my localizer?

public class ForumFeedResource extends ContentFeedResource

public static class Initializer implements IInitializer {

public void init(Application application) {
application.getSharedResources().add("newsFeed", new
ForumFeedResource());
--> can't be done?
-->application.mountSharedResource("/rss/forum", new
ResourceReference("newsFeed").getSharedResourceKey());
}
}


protected SyndFeed getFeed() {
ValueMap params = getParameters();
build my feed...
   }
}

Or am I using it the wrong way?

/Mats

-
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] Nicer URLs

2007-02-28 Thread Ayodeji Aladejebi

"Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket" - according to Marcus Buckingham in the book "now,
discover your strength", that is what is called Synapse

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


Oeh an forgot to say that parameters you can just append to the url

Short example:

http:\\localhost\mywicketapp\myniceurl\paramA\valueA\paramB\valueB




-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 28. februar 2007 12:02
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Nicer URLs

Just use a mountedurl


mountBookmarkablePage("/desiredurl",
desiredclass.class);

-Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Chris Colman
Sent: 28. februar 2007 11:59
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Nicer URLs

Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - "Wicket rocks massively!"

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPage&o=76165

to something like:

http://myserver.com/helloworld/LocationPage&o=76165

?

Regards.

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

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

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





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


[Wicket-user] mountBookmarkablePage causes 'no session' error

2007-02-28 Thread Chris Colman
I tried to add some nice URLs by adding the following to my application
class:
 
public void init()
{
  mountBookmarkablePage("/home", HomePage.class);
  mountBookmarkablePage("/location", LocationPage.class);
}
 
But then I get the following error when the web app is deployed:
 
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.sas.av.ui.wicket.templates.original.HelloWorldApplication.class$(Hel
loWorldApplication.java:40)
at
com.sas.av.ui.wicket.templates.original.HelloWorldApplication.init(Hello
WorldApplication.java:41)
 
Caused by: wicket.WicketRuntimeException: there is no session attached
to current thread http-80-1
at wicket.Session.get(Session.java:210)
at wicket.Application$1.onInstantiation(Application.java:272)
at
wicket.Application.notifyComponentInstantiationListeners(Application.jav
a:823)
at wicket.Component.(Component.java:592)
at wicket.MarkupContainer.(MarkupContainer.java:123)
at wicket.Page.(Page.java:208)
at wicket.markup.html.WebPage.(WebPage.java:128)
 
 
The HomePage and LocationPage classes are available. For some reason
wicket thinks that no session has been set up yet - which is actually
correct. Why do we need a session set up if we haven't yet had to
process a HTTP request? We're just initializing the webapp.
 
Using Wicket 1.2.4
-
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] Ajax Link + IE7 problem

2007-02-28 Thread Dipu
Thanks very much , if thats the case then i can inform the page designers about 
that.

Regards
Dipu
  - Original Message - 
  From: Ivo van Dongen 
  To: wicket-user@lists.sourceforge.net 
  Sent: Wednesday, February 28, 2007 12:08 PM
  Subject: Re: [Wicket-user] Ajax Link + IE7 problem


  Hi,

  Using a table in a link is probably not standards compliant. I don't know if 
that is the problem here, but this kind of thing can cause a lot of problems 
with javascript.

  See http://htmlhelp.com/reference/html40/special/a.html for the element specs.

  Ivo


  On 2/28/07, Dipu < [EMAIL PROTECTED]> wrote:
Hi All,


Ajax Link doesnt work on IE 7 when there is a table in between the anchor 
tags.

If we change the following line in the LinksPage.html from ajax expample

counter 1: 
  increment  ( ajax-only link ) 

it will stop working.

Does anyone has any idea why ???

Regards
Dipu






-
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 





  -- 
  Ivo van Dongen
  Func. Internet Integration
  W http://www.func.nl
  T +31 20 423
  F +31 20 4223500 


--


  -
  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] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Dipu
Hi All, 

I use Ajax links to switch between different panels on a page and some of the 
panels has datepicker components on it.
On IE 7 the date picker will stop working ( calendar won't pop up ) after 
switching between panels using ajax link.
I think the reason for this is  that when the dom is updated with the html for 
the panel the inline Calendar.setup script is not getting executed with IE7.
I tired calling the Calendar.setup script  on the decorateOnSuccessScript of 
the ajax link thats is used to switch panel and the date picker worked.
Can anyone say if this is the solution to go with or do we have any other 
better ways of solving the problem.
If calling the Calendar.setup script in the above mentioned way is the solution 
then it will be good if the getInitScript method on the DatePaicker is made 
public.

Regards
Dipu
 -
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] Ajax Link + IE7 problem

2007-02-28 Thread Ivo van Dongen

Hi,

Using a table in a link is probably not standards compliant. I don't know if
that is the problem here, but this kind of thing can cause a lot of problems
with javascript.

See http://htmlhelp.com/reference/html40/special/a.html for the element
specs.

Ivo

On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:


 Hi All,


Ajax Link doesnt work on IE 7 when there is a table in between the anchor
tags.

If we change the following line in the LinksPage.html from ajax expample

counter 1:
  <
td>increment  ( ajax-only link )
it will stop working.

Does anyone has any idea why ???

Regards
Dipu






-
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





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
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] using a map in a model

2007-02-28 Thread Ivo van Dongen

Hi,

We have a domain object that contains (among others) a map with key-value
pairs. I want to use entries in this map in a Form with separate input
fields for each entry (some may not already exist in the map). What would be
the way to do this? Can I use a CompoundModel for this somehow?

Thanks in advance,
Ivo

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
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] Ajax Link + IE7 problem

2007-02-28 Thread Dipu
Hi All,


Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags.

If we change the following line in the LinksPage.html from ajax expample

counter 1:   increment  ( ajax-only 
link )

it will stop working.

Does anyone has any idea why ???

Regards
Dipu




-
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] Nicer URLs

2007-02-28 Thread Nino Wael
Oeh an forgot to say that parameters you can just append to the url 

Short example:

http:\\localhost\mywicketapp\myniceurl\paramA\valueA\paramB\valueB




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 28. februar 2007 12:02
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Nicer URLs

Just use a mountedurl


mountBookmarkablePage("/desiredurl",
desiredclass.class);

-Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Colman
Sent: 28. februar 2007 11:59
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Nicer URLs

Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - "Wicket rocks massively!"

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPage&o=76165

to something like:

http://myserver.com/helloworld/LocationPage&o=76165

?

Regards.

-
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] Nicer URLs

2007-02-28 Thread Nino Wael
Just use a mountedurl


mountBookmarkablePage("/desiredurl",
desiredclass.class);

-Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Colman
Sent: 28. februar 2007 11:59
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Nicer URLs

Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - "Wicket rocks massively!"

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPage&o=76165

to something like:

http://myserver.com/helloworld/LocationPage&o=76165

?

Regards.

-
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] Nicer URLs

2007-02-28 Thread Chris Colman
Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - "Wicket rocks massively!"

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPage&o=76165

to something like:

http://myserver.com/helloworld/LocationPage&o=76165

?

Regards.

-
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] Question about Panel

2007-02-28 Thread Nino Wael
Just create the panel as an anonym class in your page or inner class...

 

 

Pseudo Snipplet:

 

Webpage extends page

{

Mypanel panel=new Mypanel();

This.add(panel);

 

}

 

Mypanel extends panel{}

 

As I remember it should work...

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zhang Hailong
Sent: 28. februar 2007 10:56
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Question about Panel

 

Hi all,

I found it is inconvenient to create a separate page and class for Panel every 
time. Sometimes, I just want keep things as simple as possible. For example, I 
just want to hide some components together, so I put them in a Panel. 
Is it possible to use Panel like this?Or add this feature in later version?(I'm 
using 1.2.4)
HTML:
 
 
You believe

  


text 

  


Java:
Panel myPanel = new Panel("myPanel");
Label label = new Label("label", "test"); 
myPanel.add(label);
.

Thanks.


Regards,
Hailong Zhang

-
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] Field validation + FeedbackIndicator + Ajax

2007-02-28 Thread Vincent Demay

Hi manuel,

Confluence about wicket-contrib-dojo is unfortunatly not up to date, but 
there are also some cool validation methods in wicket-contrib-dojo 
(1.X-SNAPSHOT because it is the most maintained).
You can take a look at live exemple (comes from svn repo : 
wicket-contrib-dojo-example 
(https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff)) : 
http://www.demay-fr.net:8080/WCD13/app/ (end of the first column)


I will try to update confluence documentation asap but I don't have 
enought time for the moment.


What you did is interesting, I thought about writing something like that 
but with a tooltip on the alerticon instead of a classical feedbackPanel


--
Vincent Demay
http://www.demay-fr.net/blog


Manuel Alejandro de Brito Fontes a écrit :
Hi, I'm using wicket to build a prototype and found interesting the 
content of this:
http://wicketstuff.org/confluence/display/STUFFWIKI/DojoFeedbackIndicator  
and http://wicketstuff.org/confluence/display/STUFFWIKI/DojoValidationAjaxHandler
My problem was that the validation only works until I submit the form, 
the indicator only appears after the submit of the form and the 
message of the caption contains all the errors of the feedback.
So I create a validation that not depends on dojo, indicate the error 
of the validation, show the alerticon on fail and persist after the 
submit of the form.

If is useful to someone, here attach a quick-start.
To use it add the behavior to any field, i.e.: .add(new 
FormFieldValidator(ClientEvent.));
The code works on 2.0-SNAPSHOT (I don't use 1.x, so I don't known the 
API changes).


PS: Thanks for so powerful and flexible framework and sorry for my bad 
english.







-
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] Question about Panel

2007-02-28 Thread Zhang Hailong

Hi all,

I found it is inconvenient to create a separate page and class for Panel
every time. Sometimes, I just want keep things as simple as possible. For
example, I just want to hide some components together, so I put them in a
Panel.
Is it possible to use Panel like this?Or add this feature in later
version?(I'm using 1.2.4)
HTML:


   You believe
   

   
   
   text
   
   


Java:
Panel myPanel = new Panel("myPanel");
Label label = new Label("label", "test");
myPanel.add(label);
.

Thanks.


Regards,
Hailong Zhang
-
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