Re: [Wicket-user] Wicket AJAX newbie

2007-03-26 Thread Martijn Dashorst
On 3/26/07, Chris Colman [EMAIL PROTECTED] wrote:
 I'm just curious how much of the AJAX dance we have to do ourselves if
 we wanted to do Web 2.0 things like partial updates, modal dialog boxes
 etc., with wicket/AJAX instead of Echo2.

For non-effects stuff you can update any component using ajax, and not
have to write a single line of javascript. The only thing that you
need to be aware of are:
 - setOutputMarkupId()
 - wrapping things in webmarkupcontainers to modify visibility

 But wait, there's more: Does Wicket use Dojo or does it implement its
 own component library?

Using (ajax) behaviors any wicket component can be an Ajax component.
But we don't have many rich client side components in our
core/extensions distributions, such as Dojo provides. For that you
should really take a look at wicket-contrib-dojo, which is actively
maintained in the wicket-stuff project
(http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-dojo)

Martijn

-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] Wicket AJAX newbie

2007-03-26 Thread Johan Compagner

need to be aware of are:
- wrapping things in webmarkupcontainers to modify visibility



we now have a method on Component:

   /**
* Render a placeholder tag when the component is not visible. The tag
is of
* form: lt;componenttag style=display:none; id=componentid/gt;.
This
* method will also call codesetOutputMarkupId(true)/code.
*
* This is useful, for example, in ajax situations where the component
* starts out invisible and then becomes visible through an ajax update.
* With a placeholder tag already in the markup you do not need to
repaint
* this component's parent, instead you can repaint the component
directly.
*
* When this method is called with parameter codefalse/code the
* outputmarkupid flag is not reverted to false.
*
* @param outputTag
* @return this for chaining
*/
   public final Component setOutputMarkupPlaceholderTag(final boolean
outputTag)
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket AJAX newbie

2007-03-26 Thread Martijn Dashorst
Not to be a pest, but where is the vote on @dev that ratifies this
change, afaik it was still under discussion?

Martijn

On 3/26/07, Johan Compagner [EMAIL PROTECTED] wrote:


  need to be aware of are:
  - wrapping things in webmarkupcontainers to modify visibility

 we now have a method on Component:

 /**
  * Render a placeholder tag when the component is not visible. The tag
 is of
  * form: lt;componenttag style=display:none; id=componentid/gt;.
 This
  * method will also call
 codesetOutputMarkupId(true)/code.
  *
  * This is useful, for example, in ajax situations where the component
  * starts out invisible and then becomes visible through an ajax update.
  * With a placeholder tag already in the markup you do not need to
 repaint
  * this component's parent, instead you can repaint the component
 directly.
  *
  * When this method is called with parameter codefalse/code the
  * outputmarkupid flag is not reverted to false.
  *
  * @param outputTag
  * @return this for chaining
  */
 public final Component
 setOutputMarkupPlaceholderTag(final boolean outputTag)


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




-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] Wicket AJAX newbie

2007-03-26 Thread Martijn Dashorst
According to my email log, the method is named differently, and the
discussion about this change made it controversial in my book,
warranting a clear proposal and a vote:  what it does, how it affects
current applications and how it plays together with our security.

At least it is not clear which version of the patch is applied, and if
it should be done at all.

Martijn

On 3/26/07, Johan Compagner [EMAIL PROTECTED] wrote:
 its not an api change its an api addition.
 And it is not default so it is just an helper method for people who want
 that specific behavior.
 So it doesn't change or break anything in the current applications.

  johan



 On 3/26/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
  Not to be a pest, but where is the vote on @dev that ratifies this
  change, afaik it was still under discussion?
 
  Martijn
 
  On 3/26/07, Johan Compagner [EMAIL PROTECTED]  wrote:
  
  
need to be aware of are:
- wrapping things in webmarkupcontainers to modify visibility
  
   we now have a method on Component:
  
   /**
* Render a placeholder tag when the component is not visible. The
 tag
   is of
* form: lt;componenttag style=display:none;
 id=componentid/gt;.
   This
* method will also call
   codesetOutputMarkupId(true)/code.
*
* This is useful, for example, in ajax situations where the
 component
* starts out invisible and then becomes visible through an ajax
 update.
* With a placeholder tag already in the markup you do not need to
   repaint
* this component's parent, instead you can repaint the component
   directly.
*
* When this method is called with parameter codefalse/code the
* outputmarkupid flag is not reverted to false.
*
* @param outputTag
* @return this for chaining
*/
   public final Component
   setOutputMarkupPlaceholderTag(final boolean outputTag)
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys-and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  --
  Learn Wicket at ApacheCon Europe: http://apachecon.com
  Join the wicket community at irc.freenode.net: ##wicket
  Wicket 1.2.5 will keep your server alive. Download Wicket now!
  http://wicketframework.org
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] AutoComplete TextField broken

2007-03-26 Thread Matej Knopp
What wicket version are you using?

On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
 Hi all,

 I have a problem in AutoComplete textfield, here are the use cases.

 Use case A
 - test auto-complete field  - (works)
 - type www.google.com in URL bar and press enter to navigate google main
 page.
 - click on back button back to auto-complete page
 - test auto-complete field - (works)

 Use case B
 - test auto-complete field - (works)
 - click on a non-bookmarkable link
 - click on back button back to auto-complete page
 - test auto-complete field - (broken)

  By the way, I'm using firefox.

 Can anyone tell me how to solve this problem?

 Thank You!

 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AutoComplete TextField broken

2007-03-26 Thread Lan Boon Ping

Hi, Matej Knopp!

I'm using wicket-1.2.3.

Thanks.

Regards
Boon Ping

On 3/26/07, Matej Knopp [EMAIL PROTECTED] wrote:


What wicket version are you using?

On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
 Hi all,

 I have a problem in AutoComplete textfield, here are the use cases.

 Use case A
 - test auto-complete field  - (works)
 - type www.google.com in URL bar and press enter to navigate google main
 page.
 - click on back button back to auto-complete page
 - test auto-complete field - (works)

 Use case B
 - test auto-complete field - (works)
 - click on a non-bookmarkable link
 - click on back button back to auto-complete page
 - test auto-complete field - (broken)

  By the way, I'm using firefox.

 Can anyone tell me how to solve this problem?

 Thank You!

 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket AJAX newbie

2007-03-26 Thread Matej Knopp
I really don't understand what's the big deal here.

The method name can change if there is good reason for it.

What does it do? It renders a hidden placeholder with id same as
original component where the component would not be rendered.

How does it affect security? Why would it affect security at all?  The
component is not rendered. It's just that a small hidden placeholder
is put on the pace of component, so that it can be replaced by ajax
request.

How does it affect current applications? It shouldn't affect those in
any way. The setting is per component and it's off by default.

-Matej

On 3/26/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 According to my email log, the method is named differently, and the
 discussion about this change made it controversial in my book,
 warranting a clear proposal and a vote:  what it does, how it affects
 current applications and how it plays together with our security.

 At least it is not clear which version of the patch is applied, and if
 it should be done at all.

 Martijn

 On 3/26/07, Johan Compagner [EMAIL PROTECTED] wrote:
  its not an api change its an api addition.
  And it is not default so it is just an helper method for people who want
  that specific behavior.
  So it doesn't change or break anything in the current applications.
 
   johan
 
 
 
  On 3/26/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  
   Not to be a pest, but where is the vote on @dev that ratifies this
   change, afaik it was still under discussion?
  
   Martijn
  
   On 3/26/07, Johan Compagner [EMAIL PROTECTED]  wrote:
   
   
 need to be aware of are:
 - wrapping things in webmarkupcontainers to modify visibility
   
we now have a method on Component:
   
/**
 * Render a placeholder tag when the component is not visible. The
  tag
is of
 * form: lt;componenttag style=display:none;
  id=componentid/gt;.
This
 * method will also call
codesetOutputMarkupId(true)/code.
 *
 * This is useful, for example, in ajax situations where the
  component
 * starts out invisible and then becomes visible through an ajax
  update.
 * With a placeholder tag already in the markup you do not need to
repaint
 * this component's parent, instead you can repaint the component
directly.
 *
 * When this method is called with parameter codefalse/code the
 * outputmarkupid flag is not reverted to false.
 *
 * @param outputTag
 * @return this for chaining
 */
public final Component
setOutputMarkupPlaceholderTag(final boolean outputTag)
   
   
   
  -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
opinions on IT  business topics through brief surveys-and earn cash
   
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   --
   Learn Wicket at ApacheCon Europe: http://apachecon.com
   Join the wicket community at irc.freenode.net: ##wicket
   Wicket 1.2.5 will keep your server alive. Download Wicket now!
   http://wicketframework.org
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
   opinions on IT  business topics through brief surveys-and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Learn Wicket at ApacheCon Europe: http://apachecon.com
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.5 will keep your server alive. Download Wicket now!
 http://wicketframework.org

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief 

Re: [Wicket-user] AutoComplete TextField broken

2007-03-26 Thread Matej Knopp
That's an rather old version of wicket. You should really consider
upgrading. Anyway, the problem you're describing is probably because
firefox caches wrong state of the page.

IMHO the best solution for this is to send no-store cache header to
browser, e.g. override configureResponse of your page like this:

protected void configureResponse()
{
final WebResponse response = 
getWebRequestCycle().getWebResponse();
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-store, max-age=0, 
must-revalidate);
}

-Matej

On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
 Hi, Matej Knopp!

 I'm using wicket-1.2.3.

 Thanks.

 Regards
 Boon Ping


 On 3/26/07, Matej Knopp  [EMAIL PROTECTED] wrote:
  What wicket version are you using?
 
  On 3/26/07, Lan Boon Ping  [EMAIL PROTECTED] wrote:
   Hi all,
  
   I have a problem in AutoComplete textfield, here are the use cases.
  
   Use case A
   - test auto-complete field  - (works)
   - type www.google.com in URL bar and press enter to navigate google main
   page.
   - click on back button back to auto-complete page
   - test auto-complete field - (works)
  
   Use case B
   - test auto-complete field - (works)
   - click on a non-bookmarkable link
   - click on back button back to auto-complete page
   - test auto-complete field - (broken)
  
By the way, I'm using firefox.
  
   Can anyone tell me how to solve this problem?
  
   Thank You!
  
   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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket AJAX newbie

2007-03-26 Thread Martijn Dashorst
On 3/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
 I really don't understand what's the big deal here.

The big deal is that there is a big discussion, and suddenly the
change is committed. Don't we have a process for changes that are
controversial, perhaps not for you, but for other committers (like
me)?

Is it really *that* hard to just break out of the discussion, write up
a small proposal that summarizes the discussion, and see if that goes
through? Or do we have to monitor the svn commit logs to check if no
unwanted changes go in?

Martijn

-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] AutoComplete TextField broken

2007-03-26 Thread Lan Boon Ping

Hi,

Thanks for your quick reply.

Overriding configurReponse doesn't solve the problem. Unfortunately, we
couldn't upgrade to new version of wicket for some reasons. Is there any
workaround solution for this problem?

Thanks

Regards
Boon Ping.

On 3/26/07, Matej Knopp [EMAIL PROTECTED] wrote:


That's an rather old version of wicket. You should really consider
upgrading. Anyway, the problem you're describing is probably because
firefox caches wrong state of the page.

IMHO the best solution for this is to send no-store cache header to
browser, e.g. override configureResponse of your page like this:

protected void configureResponse()
{
final WebResponse response =
getWebRequestCycle().getWebResponse();
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-store, max-age=0,
must-revalidate);
}

-Matej

On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
 Hi, Matej Knopp!

 I'm using wicket-1.2.3.

 Thanks.

 Regards
 Boon Ping


 On 3/26/07, Matej Knopp  [EMAIL PROTECTED] wrote:
  What wicket version are you using?
 
  On 3/26/07, Lan Boon Ping  [EMAIL PROTECTED] wrote:
   Hi all,
  
   I have a problem in AutoComplete textfield, here are the use cases.
  
   Use case A
   - test auto-complete field  - (works)
   - type www.google.com in URL bar and press enter to navigate google
main
   page.
   - click on back button back to auto-complete page
   - test auto-complete field - (works)
  
   Use case B
   - test auto-complete field - (works)
   - click on a non-bookmarkable link
   - click on back button back to auto-complete page
   - test auto-complete field - (broken)
  
By the way, I'm using firefox.
  
   Can anyone tell me how to solve this problem?
  
   Thank You!
  
   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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AutoComplete TextField broken

2007-03-26 Thread Matej Knopp
that is really strange, can you check if the flag does force a new
request on backbutton? e.g. when you click back button, is there
another http request ?

-Matej

On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
 Hi,

 Thanks for your quick reply.

 Overriding configurReponse doesn't solve the problem. Unfortunately, we
 couldn't upgrade to new version of wicket for some reasons. Is there any
 workaround solution for this problem?


 Thanks

 Regards
 Boon Ping.

 On 3/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  That's an rather old version of wicket. You should really consider
  upgrading. Anyway, the problem you're describing is probably because
  firefox caches wrong state of the page.
 
  IMHO the best solution for this is to send no-store cache header to
  browser, e.g. override configureResponse of your page like this:
 
  protected void configureResponse()
  {
  final WebResponse response =
 getWebRequestCycle().getWebResponse();
  response.setHeader(Pragma, no-cache);
  response.setHeader(Cache-Control, no-store, max-age=0,
 must-revalidate);
  }
 
  -Matej
 
  On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
   Hi, Matej Knopp!
  
   I'm using wicket-1.2.3.
  
   Thanks.
  
   Regards
   Boon Ping
  
  
   On 3/26/07, Matej Knopp  [EMAIL PROTECTED] wrote:
What wicket version are you using?
   
On 3/26/07, Lan Boon Ping  [EMAIL PROTECTED] wrote:
 Hi all,

 I have a problem in AutoComplete textfield, here are the use cases.

 Use case A
 - test auto-complete field  - (works)
 - type www.google.com in URL bar and press enter to navigate google
 main
 page.
 - click on back button back to auto-complete page
 - test auto-complete field - (works)

 Use case B
 - test auto-complete field - (works)
 - click on a non-bookmarkable link
 - click on back button back to auto-complete page
 - test auto-complete field - (broken)

  By the way, I'm using firefox.

 Can anyone tell me how to solve this problem?

 Thank You!

 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




[Wicket-user] getRealPath(wicket 1.2.4) any proper wicket way to this?

2007-03-26 Thread Nino Wael
Hi 

Currently we are doing this within our wicket application:

getWicketServlet().getServletContext().getRealPath(/);

Im wondering if there are a more wicketly kind of approach to this?


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


Re: [Wicket-user] General Java/OO/Pattern Question

2007-03-26 Thread Matt Welch

On 3/23/07, Scott Swank [EMAIL PROTECTED] wrote:


In short, the Gang of Four's Composite pattern.

http://en.wikipedia.org/wiki/Composite_pattern



Really? I briefly took a look at that pattern specifically and I didn't see
the fit, but I'll take a closer look. Thanks for the advice.

James, I currently have all of the objects that might be parents of children
of each other implement an abstract class that provides the the two
attributes that are the same between them all. I'll take a look at the
TreeNodes that you suggested.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AJAX modal window (1.2.5)and form

2007-03-26 Thread Nino Wael
Hi

I have a AJAX modal window wich contains a form. In the form there a an 
radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating 
behavior are trigered but the model of the radiochoice aren't being updated.

Also on the basepage where you can trigger the modal window, I also have a 
form. Not sure if this should make anything fail?

snip of the code from the panel thats used in the modal window:
public QuestionSelectorPanel(String id, final IModel selectedQuestion,
final ModalWindow modalQuestionPop, final Label label) {
super(id);
Form form = new Form(form);
final RadioChoice questionRadio = new RadioChoice(questions,
selectedQuestion, Question.getTypes());
questionRadio.setOutputMarkupId(true);
questionRadio.add(new 
AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget target) {
System.out.print(selected value should print 
here!:
+ selectedQuestion.toString());
// below are working, label prints out foobar
// label.setModelObject(foobar!);
target.addComponent(label);
modalQuestionPop.close(target);
}
});
add(form);
form.add(questionRadio);
}
snip of the basecode:
final ModalWindow modalQuestionPop = new ModalWindow(
modalquestionpopup);
add(modalQuestionPop);
Label label = new Label(selectedradio, selectedQuestion);
label.setOutputMarkupId(true);
modalQuestionPop.setOutputMarkupId(true);
modalQuestionPop.setTitle(Please select a Question type);
modalQuestionPop.setContent(new 
QuestionSelectorPanel(modalQuestionPop
.getContentId(), selectedQuestion, 
modalQuestionPop, label));
Form form = new Form(form);

AjaxSubmitButton addQuestion = new 
AjaxSubmitButton(addQuestion, form) {

protected void onSubmit(wicket.ajax.AjaxRequestTarget 
arg0,
Form arg1) {
modalQuestionPop.show(arg0);
};

};
form.add(addQuestion);
add(form);
add(label);



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


[Wicket-user] wicket-contrib-datepicker is broken in v. 1.3

2007-03-26 Thread Andrew Klochkov
wicket-contrib-datepicker is broken due to changes in models. Who is
responsible for it? The fix is quite simple, I can create a patch.

-- 
Andrew Klochkov


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


Re: [Wicket-user] wicket-contrib-datepicker is broken in v. 1.3

2007-03-26 Thread Martijn Dashorst
On 3/26/07, Andrew Klochkov [EMAIL PROTECTED] wrote:
 wicket-contrib-datepicker is broken due to changes in models. Who is
 responsible for it? The fix is quite simple, I can create a patch.

Can you do so, and attach it to a JIRA issue?

http://issues.apache.org/jira/browse/WICKET

Thx.

Martijn

-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] AJAX modal window (1.2.5)and form

2007-03-26 Thread Matej Knopp
If you have nested forms it will fail. Nested forms are not supported
in wicket 1.2.

If you need separate form in modal window in 1.2, the safest bet is to
use a page inside modal window.

-Matej

On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote:
 Hi

 I have a AJAX modal window wich contains a form. In the form there a an 
 radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating 
 behavior are trigered but the model of the radiochoice aren't being updated.

 Also on the basepage where you can trigger the modal window, I also have a 
 form. Not sure if this should make anything fail?

 snip of the code from the panel thats used in the modal window:
 public QuestionSelectorPanel(String id, final IModel selectedQuestion,
 final ModalWindow modalQuestionPop, final Label 
 label) {
 super(id);
 Form form = new Form(form);
 final RadioChoice questionRadio = new RadioChoice(questions,
 selectedQuestion, Question.getTypes());
 questionRadio.setOutputMarkupId(true);
 questionRadio.add(new 
 AjaxFormComponentUpdatingBehavior(onchange) {
 protected void onUpdate(AjaxRequestTarget target) {
 System.out.print(selected value should print 
 here!:
 + 
 selectedQuestion.toString());
 // below are working, label prints out foobar
 // label.setModelObject(foobar!);
 target.addComponent(label);
 modalQuestionPop.close(target);
 }
 });
 add(form);
 form.add(questionRadio);
 }
 snip of the basecode:
 final ModalWindow modalQuestionPop = new ModalWindow(
 modalquestionpopup);
 add(modalQuestionPop);
 Label label = new Label(selectedradio, selectedQuestion);
 label.setOutputMarkupId(true);
 modalQuestionPop.setOutputMarkupId(true);
 modalQuestionPop.setTitle(Please select a Question type);
 modalQuestionPop.setContent(new 
 QuestionSelectorPanel(modalQuestionPop
 .getContentId(), selectedQuestion, 
 modalQuestionPop, label));
 Form form = new Form(form);

 AjaxSubmitButton addQuestion = new 
 AjaxSubmitButton(addQuestion, form) {

 protected void onSubmit(wicket.ajax.AjaxRequestTarget 
 arg0,
 Form arg1) {
 modalQuestionPop.show(arg0);
 };

 };
 form.add(addQuestion);
 add(form);
 add(label);



 regards Nino

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


Re: [Wicket-user] wicket-contrib-datepicker is broken in v. 1.3

2007-03-26 Thread Andrew Klochkov
Martijn Dashorst wrote:
 On 3/26/07, Andrew Klochkov [EMAIL PROTECTED] wrote:
   
 wicket-contrib-datepicker is broken due to changes in models. Who is
 responsible for it? The fix is quite simple, I can create a patch.
 

 Can you do so, and attach it to a JIRA issue?

 http://issues.apache.org/jira/browse/WICKET

 Thx.

 Martijn
   
Created an issue, attached the patch

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

-- 
Andrew Klochkov


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


Re: [Wicket-user] wicket-contrib-datepicker is broken in v. 1.3

2007-03-26 Thread Martijn Dashorst
On 3/26/07, Andrew Klochkov [EMAIL PROTECTED] wrote:
 Created an issue, attached the patch

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

Thx.

Martijn

-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] Problem with ajax tree and listView

2007-03-26 Thread Isaac Weng
Oops, I forgot to mention that. I'm using 1.2.5 release.


Isaac

Matej Knopp wrote:
 Hi, as a temporary solution you can. But this is bug and needs to be
 resolved. What version of wicket are you using?

 On 3/26/07, Isaac Weng [EMAIL PROTECTED] wrote:
   
 Hi,
 Myabe I can just use RepeatingView instead.
 Thanks a lot for clearing my doubts.

 Isaac


 Matej Knopp wrote:
 
 Hi,

 this seem to be caused by the latest attach refactor. After the
 attaching bug is fixed this problem should disappeared.

 -Matej

 On 3/24/07, Isaac Weng [EMAIL PROTECTED] wrote:

   
 Sorry, I didn't write my sample codes clearly.

 The problem happens in renderItem(). While expanding tree node,
 ListItem in renderItem() becomes null, but the list values I get by
 calling getList() are correct.

 Also, I found it renders correctly if I use RepeatingView.


 Isaac

 Isaac Weng wrote:

 
 Sorry, don't know why my message didn't send, probably because gmail
 and attachement.

 I've made a quick start files for the problem. The problem is
 If using a ListView to display the tree node value, after I collapse
 the node,
 I can never expand it again, and the ListItem becomes null. No problem
 with a Label.

 Could you give me some directions ? Thanks.


 Sincerely,
 Isaac


 Matej Knopp wrote:

   
 hi,

 this really is weird. Can you post a quick start project that
 demonstrates the behavior?

 -Matej
 


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


Re: [Wicket-user] the modal window cannot work in ie fro wicket 2.0 snapshot

2007-03-26 Thread tooy li(Gmail)
line:1011;
Wicket.ajax.call is null or not a object.


 Message: 2
 Date: Sat, 24 Mar 2007 18:47:45 -0700
 From: Igor Vaynberg [EMAIL PROTECTED]
 Subject: Re: [Wicket-user] the modal window cannot work in ie fro
 wicket 2.0 snapshot
 To: wicket-user@lists.sourceforge.net
 Message-ID:
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1
 
 whats the error?
 
 -igor
 
 On 3/24/07, lihanrong [EMAIL PROTECTED] wrote:

 I had mentioned it a  week before, but it is still not fixed now.
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 -- next part --
 An HTML attachment was scrubbed...
 
 --
 
 Message: 3
 Date: Sat, 24 Mar 2007 18:48:02 -0700
 From: Igor Vaynberg [EMAIL PROTECTED]
 Subject: Re: [Wicket-user] the modal window cannot work in ie fro
 wicket 2.0 snapshot
 To: wicket-user@lists.sourceforge.net
 Message-ID:
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1
 
 and have you opened a jira issue?
 
 -igor
 
 
 On 3/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 whats the error?

 -igor

 On 3/24/07, lihanrong [EMAIL PROTECTED] wrote:
 
  I had mentioned it a  week before, but it is still not fixed now.
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net 's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -- next part --
 An HTML attachment was scrubbed...
 
 --
 
 Message: 4
 Date: Sun, 25 Mar 2007 09:15:13 + (UTC)
 From: Kent Tong [EMAIL PROTECTED]
 Subject: [Wicket-user] locale filtering
 To: wicket-user@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=us-ascii
 
 Hi,
 
 If a given web app only supports say English (default) and French but the 
 browser prefers German the most, then the getLocale() on the request will 
 return German and that will be stored into the wicket session. The result 
 is that all built-in components will output messages in German, while the
 messages output by the app itself will be in English. 
 
 A solution is that Wicket should note that German is not a supported locale
 and thus will store English into the session. Currently it seems that the
 only way to do it is to override WebApplication.newWebRequest() to return
 a subclass of ServletWebRequest that performs this kind of locale filtering.
 
 Is there any better way?
 
 Thanks.
 
 
 
 
 --
 
 Message: 5
 Date: Sun, 25 Mar 2007 11:28:39 +0200
 From: Juergen Donnerstag [EMAIL PROTECTED]
 Subject: Re: [Wicket-user] locale filtering
 To: wicket-user@lists.sourceforge.net
 Message-ID:
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
 I'm not aware of any better way. It sounds reasonable simple to me.
 
 Juergen
 
 On 3/25/07, Kent Tong [EMAIL PROTECTED] wrote:
 Hi,

 If a given web app only supports say English (default) and French but the
 browser prefers German the most, then the getLocale() on the request will
 return German and that will be stored into the wicket session. The result
 is that all built-in components will output messages in German, while the
 messages output by the app itself will be in English.

 A solution is that Wicket should note that German is not a supported locale
 and thus will store English into the session. Currently it seems that the
 only way to do it is to override WebApplication.newWebRequest() to return
 a subclass of ServletWebRequest that performs this kind of locale filtering.

 Is there any better way?

 Thanks.


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

 
 
 
 --
 
 

Re: [Wicket-user] AJAX modal window (1.2.5)and form

2007-03-26 Thread Nino Wael
it's not a nested form:

body
concept ideas: display questionaire on main page, have popups 
when adding questions with available question types.
form wicket:id=form
input type=submit wicket:id=addQuestion /
/form
div wicket:id=modalquestionpopup/div
div wicket:id=selectedradionone/div
/body
form tag are closed before the popup tag(modalquestionpopup). I'll try creating 
a page instead?


regards Nino


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Matej Knopp
Sendt: ma 26-03-2007 14:37
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form
 
If you have nested forms it will fail. Nested forms are not supported
in wicket 1.2.

If you need separate form in modal window in 1.2, the safest bet is to
use a page inside modal window.

-Matej

On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote:
 Hi

 I have a AJAX modal window wich contains a form. In the form there a an 
 radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating 
 behavior are trigered but the model of the radiochoice aren't being updated.

 Also on the basepage where you can trigger the modal window, I also have a 
 form. Not sure if this should make anything fail?

 snip of the code from the panel thats used in the modal window:
 public QuestionSelectorPanel(String id, final IModel selectedQuestion,
 final ModalWindow modalQuestionPop, final Label 
 label) {
 super(id);
 Form form = new Form(form);
 final RadioChoice questionRadio = new RadioChoice(questions,
 selectedQuestion, Question.getTypes());
 questionRadio.setOutputMarkupId(true);
 questionRadio.add(new 
 AjaxFormComponentUpdatingBehavior(onchange) {
 protected void onUpdate(AjaxRequestTarget target) {
 System.out.print(selected value should print 
 here!:
 + 
 selectedQuestion.toString());
 // below are working, label prints out foobar
 // label.setModelObject(foobar!);
 target.addComponent(label);
 modalQuestionPop.close(target);
 }
 });
 add(form);
 form.add(questionRadio);
 }
 snip of the basecode:
 final ModalWindow modalQuestionPop = new ModalWindow(
 modalquestionpopup);
 add(modalQuestionPop);
 Label label = new Label(selectedradio, selectedQuestion);
 label.setOutputMarkupId(true);
 modalQuestionPop.setOutputMarkupId(true);
 modalQuestionPop.setTitle(Please select a Question type);
 modalQuestionPop.setContent(new 
 QuestionSelectorPanel(modalQuestionPop
 .getContentId(), selectedQuestion, 
 modalQuestionPop, label));
 Form form = new Form(form);

 AjaxSubmitButton addQuestion = new 
 AjaxSubmitButton(addQuestion, form) {

 protected void onSubmit(wicket.ajax.AjaxRequestTarget 
 arg0,
 Form arg1) {
 modalQuestionPop.show(arg0);
 };

 };
 form.add(addQuestion);
 add(form);
 add(label);



 regards Nino

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

winmail.dat-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics 

Re: [Wicket-user] Problem with ajax tree and listView

2007-03-26 Thread Matej Knopp
I see. It's probably same thing as for 1.x, that TreeItem doesn't
reattach the tree itself.

-Matej

On 3/26/07, Isaac Weng [EMAIL PROTECTED] wrote:
 Oops, I forgot to mention that. I'm using 1.2.5 release.


 Isaac

 Matej Knopp wrote:
  Hi, as a temporary solution you can. But this is bug and needs to be
  resolved. What version of wicket are you using?
 
  On 3/26/07, Isaac Weng [EMAIL PROTECTED] wrote:
 
  Hi,
  Myabe I can just use RepeatingView instead.
  Thanks a lot for clearing my doubts.
 
  Isaac
 
 
  Matej Knopp wrote:
 
  Hi,
 
  this seem to be caused by the latest attach refactor. After the
  attaching bug is fixed this problem should disappeared.
 
  -Matej
 
  On 3/24/07, Isaac Weng [EMAIL PROTECTED] wrote:
 
 
  Sorry, I didn't write my sample codes clearly.
 
  The problem happens in renderItem(). While expanding tree node,
  ListItem in renderItem() becomes null, but the list values I get by
  calling getList() are correct.
 
  Also, I found it renders correctly if I use RepeatingView.
 
 
  Isaac
 
  Isaac Weng wrote:
 
 
  Sorry, don't know why my message didn't send, probably because gmail
  and attachement.
 
  I've made a quick start files for the problem. The problem is
  If using a ListView to display the tree node value, after I collapse
  the node,
  I can never expand it again, and the ListItem becomes null. No problem
  with a Label.
 
  Could you give me some directions ? Thanks.
 
 
  Sincerely,
  Isaac
 
 
  Matej Knopp wrote:
 
 
  hi,
 
  this really is weird. Can you post a quick start project that
  demonstrates the behavior?
 
  -Matej
 


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


Re: [Wicket-user] the modal window cannot work in ie for wicket 2.0 snapshot

2007-03-26 Thread tooy li(Gmail)
hi, it cannot work in IE 6 only , I had tried many pc to prove it .  Since 
mostly of client people use IE, I have to support it.
I ' m worry about the upgrade from my version to the reccently the snapshot.  I 
hope dev team can release alpha or beta version in the month  before you change 
back to the old constructor. our client don't want to know i use non-release 
version  or back to 1.4 platform. it's very urging. 

 Message: 8
 Date: Sun, 25 Mar 2007 10:22:30 -0400
 From: Nathan Hamblen [EMAIL PROTECTED]
 Subject: Re: [Wicket-user] the modal window cannot work in ie fro
 wicket 2.0 snapshot
 To: wicket-user@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
 Modal windows just started not working for me in 1.3.0 snapshots, maybe 
 around the time the close method stopped being static. The models of 
 components inside them aren't being detached; I'm using a Panel as 
 content. I can do more research if need be, but it seems to be broken 
 pretty unsubtly and because of some recent checkin.
 
 Nathan
 
 Igor Vaynberg wrote:
 and have you opened a jira issue?
 
 -igor
 
 
 On 3/24/07, *Igor Vaynberg* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 whats the error?
 
 -igor
 
 
 
 
 
 --
 
 Message: 9
 Date: Sun, 25 Mar 2007 23:21:39 +0800
 From: lihanrong [EMAIL PROTECTED]
 Subject: [Wicket-user] Nobody can fix the ajax modal window bug in 2.0
 snapshot?
 To: wicket-user@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1
 
 I had try it again and again  at last serveral week, it cannot work well in 
 ie.  anybody can try the ajax modal window in example to get the ajax call  
 error.
 
 I need use the datagrid view , so i have to upgrade the app to the current 
 snapshot,  the grid view in example can work for current snapshot.
 but I find some api had changed , and it' seem no one care about the the 2.0 
 snap now, dev team will change the constructor to back again :( . i guess the 
 2.0 will not be released  in a short time.
 
  
 
 --
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 --
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 End of Wicket-user Digest, Vol 10, Issue 217
 
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Francis Amanfo

Hi guys,

An IBM internal memo, written and signed by product manager, Tim O'Malley,
has been leaked.
Well, to be more direct, a friend of my working with IBM leaked this to me.
In it, IBM praised Wicket as an innovative and state of the art web
framework that stands up tall against all its
competitors including JSF, Struts 2 and Tapestry. In the memo, IBM mentions
some of it's frustrations with JSF and
about Sun not listening to them during the creation of the JSF
specification. In the memo, IBM also praises the Wicket team
as very hardworking and dedicated guys and is in negotiations to employ them
into IBM and make them work on Wicket
and sell support under the umbrella of IBM.
The memo also goes further to announce IBM's plans to integrate Wicket into
it's JEE offerings. To be more specific,
Wicket would be Integrated into RAD 8 as the default Web framework, which it
plans to release in the fourth quater of this year.
The memo also states IBM's plans to create widgets, which it plans to market
under the label WICKED Widgets, of all
the standard Wicket components and enable drag and drop development in RAD
8. It would also make WICKED(c) widgets standalone for separate downloads.
The official announcement of this was planned for April 1, 2007, but because
this falls on Sunday, the
announcement is scheduled for April, 2 2007.

There is a link to this memo but is currently available only on IBM's
internal network, which of course is closed
to the public.

I personally think this is a great news. It will grow Wicket's adoption
exponentially, which is of course a good
thing for the community and give Wicket a high status in the web framework
community. In addition, our diligent, humble
and hardworking Wicket core developers would be rewarded.

So join me rejoice about the greatest news so far for the Wicket community.

Regards,
Francis
--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
   -Donald Knuth
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Korbinian Bachl
The official announcement of this was planned for April 1, 2007, but
because this falls on Sunday, the 
announcement is scheduled for April, 2 2007.
 
is this some kind of april the 1st joke or are you serious about it???
 


  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Francis
Amanfo
Gesendet: Montag, 26. März 2007 16:21
An: wicket-user@lists.sourceforge.net
Betreff: [Wicket-user] IBM to adopt Wicket as standard web framework


Hi guys, 
 
An IBM internal memo, written and signed by product manager, Tim O'Malley,
has been leaked. 
Well, to be more direct, a friend of my working with IBM leaked this to me. 
In it, IBM praised Wicket as an innovative and state of the art web
framework that stands up tall against all its
competitors including JSF, Struts 2 and Tapestry. In the memo, IBM mentions
some of it's frustrations with JSF and 
about Sun not listening to them during the creation of the JSF
specification. In the memo, IBM also praises the Wicket team
as very hardworking and dedicated guys and is in negotiations to employ them
into IBM and make them work on Wicket 
and sell support under the umbrella of IBM. 
The memo also goes further to announce IBM's plans to integrate Wicket into
it's JEE offerings. To be more specific,
Wicket would be Integrated into RAD 8 as the default Web framework, which it
plans to release in the fourth quater of this year. 
The memo also states IBM's plans to create widgets, which it plans to market
under the label WICKED Widgets, of all
the standard Wicket components and enable drag and drop development in RAD
8. It would also make WICKED© widgets standalone for separate downloads. 
The official announcement of this was planned for April 1, 2007, but because
this falls on Sunday, the 
announcement is scheduled for April, 2 2007.

There is a link to this memo but is currently available only on IBM's
internal network, which of course is closed 
to the public.

I personally think this is a great news. It will grow Wicket's adoption
exponentially, which is of course a good
thing for the community and give Wicket a high status in the web framework
community. In addition, our diligent, humble 
and hardworking Wicket core developers would be rewarded.

So join me rejoice about the greatest news so far for the Wicket community.

Regards,
Francis
-- 
Beware of bugs in the above code; 
I have only proved it correct, not tried it.
-Donald Knuth 

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


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Francis Amanfo

I'm only a messenger. Don't persecute the messenger!

On 3/26/07, Korbinian Bachl [EMAIL PROTECTED] wrote:


 The official announcement of this was planned for April 1, 2007, but
because this falls on Sunday, the
announcement is scheduled for April, 2 2007.

is this some kind of april the 1st joke or are you serious about it???


 --
*Von:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *Im Auftrag von *Francis Amanfo
*Gesendet:* Montag, 26. März 2007 16:21
*An:* wicket-user@lists.sourceforge.net
*Betreff:* [Wicket-user] IBM to adopt Wicket as standard web framework

Hi guys,

An IBM internal memo, written and signed by product manager, Tim O'Malley,
has been leaked.
Well, to be more direct, a friend of my working with IBM leaked this to
me.
In it, IBM praised Wicket as an innovative and state of the art web
framework that stands up tall against all its
competitors including JSF, Struts 2 and Tapestry. In the memo, IBM
mentions some of it's frustrations with JSF and
about Sun not listening to them during the creation of the JSF
specification. In the memo, IBM also praises the Wicket team
as very hardworking and dedicated guys and is in negotiations to employ
them into IBM and make them work on Wicket
and sell support under the umbrella of IBM.
The memo also goes further to announce IBM's plans to integrate Wicket
into it's JEE offerings. To be more specific,
Wicket would be Integrated into RAD 8 as the default Web framework, which
it plans to release in the fourth quater of this year.
The memo also states IBM's plans to create widgets, which it plans to
market under the label WICKED Widgets, of all
the standard Wicket components and enable drag and drop development in RAD
8. It would also make WICKED(c) widgets standalone for separate downloads.
The official announcement of this was planned for April 1, 2007, but
because this falls on Sunday, the
announcement is scheduled for April, 2 2007.

There is a link to this memo but is currently available only on IBM's
internal network, which of course is closed
to the public.

I personally think this is a great news. It will grow Wicket's adoption
exponentially, which is of course a good
thing for the community and give Wicket a high status in the web framework
community. In addition, our diligent, humble
and hardworking Wicket core developers would be rewarded.

So join me rejoice about the greatest news so far for the Wicket
community.

Regards,
Francis
--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
-Donald Knuth


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





--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
   -Donald Knuth
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] the modal window cannot work in ie for wicket 2.0 snapshot

2007-03-26 Thread Matej Knopp
Hi, indeed it doesn't work in IE6. Thanks for spotting this. Fix is
already in svn, would you mind trying if it helps?

-Matej

On 3/26/07, tooy li(Gmail) [EMAIL PROTECTED] wrote:
 hi, it cannot work in IE 6 only , I had tried many pc to prove it .  Since 
 mostly of client people use IE, I have to support it.
 I ' m worry about the upgrade from my version to the reccently the snapshot.  
 I hope dev team can release alpha or beta version in the month  before you 
 change back to the old constructor. our client don't want to know i use 
 non-release version  or back to 1.4 platform. it's very urging.

  Message: 8
  Date: Sun, 25 Mar 2007 10:22:30 -0400
  From: Nathan Hamblen [EMAIL PROTECTED]
  Subject: Re: [Wicket-user] the modal window cannot work in ie fro
  wicket 2.0 snapshot
  To: wicket-user@lists.sourceforge.net
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
  Modal windows just started not working for me in 1.3.0 snapshots, maybe
  around the time the close method stopped being static. The models of
  components inside them aren't being detached; I'm using a Panel as
  content. I can do more research if need be, but it seems to be broken
  pretty unsubtly and because of some recent checkin.
 
  Nathan
 
  Igor Vaynberg wrote:
  and have you opened a jira issue?
 
  -igor
 
 
  On 3/24/07, *Igor Vaynberg* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  whats the error?
 
  -igor
 
 
 
 
 
  --
 
  Message: 9
  Date: Sun, 25 Mar 2007 23:21:39 +0800
  From: lihanrong [EMAIL PROTECTED]
  Subject: [Wicket-user] Nobody can fix the ajax modal window bug in 2.0
  snapshot?
  To: wicket-user@lists.sourceforge.net
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain; charset=iso-8859-1
 
  I had try it again and again  at last serveral week, it cannot work well in 
  ie.  anybody can try the ajax modal window in example to get the ajax call 
   error.
 
  I need use the datagrid view , so i have to upgrade the app to the current 
  snapshot,  the grid view in example can work for current snapshot.
  but I find some api had changed , and it' seem no one care about the the 
  2.0 snap now, dev team will change the constructor to back again :( . i 
  guess the 2.0 will not be released  in a short time.
 
 
 
  --
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  --
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  End of Wicket-user Digest, Vol 10, Issue 217
  
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Alexandre Bairos

It´d be fantastic. But it's a bit suspicious, considering the magic date. :)


On 3/26/07, Francis Amanfo [EMAIL PROTECTED] wrote:


I'm only a messenger. Don't persecute the messenger!

On 3/26/07, Korbinian Bachl [EMAIL PROTECTED]  wrote:

  The official announcement of this was planned for April 1, 2007, but
 because this falls on Sunday, the
 announcement is scheduled for April, 2 2007.

 is this some kind of april the 1st joke or are you serious about it???


  --
 *Von:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *Im Auftrag von *Francis
 Amanfo
 *Gesendet:* Montag, 26. März 2007 16:21
 *An:* wicket-user@lists.sourceforge.net
 *Betreff:* [Wicket-user] IBM to adopt Wicket as standard web framework

 Hi guys,

 An IBM internal memo, written and signed by product manager, Tim
 O'Malley, has been leaked.
 Well, to be more direct, a friend of my working with IBM leaked this to
 me.
 In it, IBM praised Wicket as an innovative and state of the art web
 framework that stands up tall against all its
 competitors including JSF, Struts 2 and Tapestry. In the memo, IBM
 mentions some of it's frustrations with JSF and
 about Sun not listening to them during the creation of the JSF
 specification. In the memo, IBM also praises the Wicket team
 as very hardworking and dedicated guys and is in negotiations to employ
 them into IBM and make them work on Wicket
 and sell support under the umbrella of IBM.
 The memo also goes further to announce IBM's plans to integrate Wicket
 into it's JEE offerings. To be more specific,
 Wicket would be Integrated into RAD 8 as the default Web framework,
 which it plans to release in the fourth quater of this year.
 The memo also states IBM's plans to create widgets, which it plans to
 market under the label WICKED Widgets, of all
 the standard Wicket components and enable drag and drop development in
 RAD 8. It would also make WICKED(c) widgets standalone for separate downloads.

 The official announcement of this was planned for April 1, 2007, but
 because this falls on Sunday, the
 announcement is scheduled for April, 2 2007.

 There is a link to this memo but is currently available only on IBM's
 internal network, which of course is closed
 to the public.

 I personally think this is a great news. It will grow Wicket's adoption
 exponentially, which is of course a good
 thing for the community and give Wicket a high status in the web
 framework community. In addition, our diligent, humble
 and hardworking Wicket core developers would be rewarded.

 So join me rejoice about the greatest news so far for the Wicket
 community.

 Regards,
 Francis
 --
 Beware of bugs in the above code;
 I have only proved it correct, not tried it.
 -Donald Knuth



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
-Donald Knuth

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


[Wicket-user] filtering on table

2007-03-26 Thread Wouter de Vaal
Hi,

I've got FilterToolbar working on my DataTable (ajax version) when I
use a single TextFilteredPropertyColumn, however when I create one for
each header, pressing enter in search does not work anymore.
Could someone give me an example how to get this working? I also see
there are GoFilter panels for filter buttons, but I have no idea
where/how to add these..

I'm using a recent 2.0 snapshot.

Thanks,
Wouter

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


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Matej Knopp
http://mail-archives.apache.org/mod_mbox/tapestry-users/200504.mbox/[EMAIL 
PROTECTED]

On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote:
 It´d be fantastic. But it's a bit suspicious, considering the magic date. :)



 On 3/26/07, Francis Amanfo [EMAIL PROTECTED]  wrote:
  I'm only a messenger. Don't persecute the messenger!
 
 
 
  On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED]  wrote:
  
  
  
   The official announcement of this was planned for April 1, 2007, but
 because this falls on Sunday, the
   announcement is scheduled for April, 2 2007.
  
   is this some kind of april the 1st joke or are you serious about it???
  
  
  
   
  Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im
 Auftrag von Francis Amanfo
   Gesendet: Montag, 26. März 2007 16:21
   An: wicket-user@lists.sourceforge.net
   Betreff: [Wicket-user] IBM to adopt Wicket as standard web framework
  
  
  
   Hi guys,
  
   An IBM internal memo, written and signed by product manager, Tim
 O'Malley, has been leaked.
   Well, to be more direct, a friend of my working with IBM leaked this to
 me.
   In it, IBM praised Wicket as an innovative and state of the art web
 framework that stands up tall against all its
   competitors including JSF, Struts 2 and Tapestry. In the memo, IBM
 mentions some of it's frustrations with JSF and
   about Sun not listening to them during the creation of the JSF
 specification. In the memo, IBM also praises the Wicket team
   as very hardworking and dedicated guys and is in negotiations to employ
 them into IBM and make them work on Wicket
   and sell support under the umbrella of IBM.
   The memo also goes further to announce IBM's plans to integrate Wicket
 into it's JEE offerings. To be more specific,
   Wicket would be Integrated into RAD 8 as the default Web framework,
 which it plans to release in the fourth quater of this year.
   The memo also states IBM's plans to create widgets, which it plans to
 market under the label WICKED Widgets, of all
   the standard Wicket components and enable drag and drop development in
 RAD 8. It would also make WICKED(c) widgets standalone for separate downloads.
   The official announcement of this was planned for April 1, 2007, but
 because this falls on Sunday, the
   announcement is scheduled for April, 2 2007.
  
   There is a link to this memo but is currently available only on IBM's
 internal network, which of course is closed
   to the public.
  
   I personally think this is a great news. It will grow Wicket's adoption
 exponentially, which is of course a good
   thing for the community and give Wicket a high status in the web
 framework community. In addition, our diligent, humble
   and hardworking Wicket core developers would be rewarded.
  
   So join me rejoice about the greatest news so far for the Wicket
 community.
  
   Regards,
   Francis
   --
   Beware of bugs in the above code;
   I have only proved it correct, not tried it.
   -Donald Knuth
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys-and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 
 
  --
  Beware of bugs in the above code;
  I have only proved it correct, not tried it.
  -Donald Knuth
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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  

Re: [Wicket-user] filtering on table

2007-03-26 Thread Matej Knopp
hi, the filtering won't work with ajax due to invalid markup it
produces. Though there could be possible workaround using nested
forms.

-Matej

On 3/26/07, Wouter de Vaal [EMAIL PROTECTED] wrote:
 Hi,

 I've got FilterToolbar working on my DataTable (ajax version) when I
 use a single TextFilteredPropertyColumn, however when I create one for
 each header, pressing enter in search does not work anymore.
 Could someone give me an example how to get this working? I also see
 there are GoFilter panels for filter buttons, but I have no idea
 where/how to add these..

 I'm using a recent 2.0 snapshot.

 Thanks,
 Wouter

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


[Wicket-user] HTML problem with Opera

2007-03-26 Thread Marc-Andre Houle

Ok, It is not wicket related but since I don't know where to ask this and
the Opera forum seems a little bit desert, I'm trying within this community
that have a lot of bright big brained developers! :)
Here is the problem, We generate image, and we also generate image map to
make it possible to click on the image and mange everything using Javascript
(Look pretty cool in fact! :)
The problem is that Opera don't seem's to interpret incorrectly the image
map and does not work.

Someone got an idea what it can be?
I include a sample html and gif file (No need for a web server, just place
the two file side by side in the same folder and open it, you'll understand
what is happening.)
If someone got an idea, I'm open to try anything...

Marc










 
 
 

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


Re: [Wicket-user] getRealPath(wicket 1.2.4) any proper wicket way to this?

2007-03-26 Thread Eelco Hillenius
Nope, that's the way to do it. In 1.3 you can get the servlet context
directly from the application object.

Eelco


On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote:
 Hi

 Currently we are doing this within our wicket application:

 getWicketServlet().getServletContext().getRealPath(/);

 Im wondering if there are a more wicketly kind of approach to this?


 regards Nino

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


Re: [Wicket-user] filtering on table

2007-03-26 Thread Wouter de Vaal
Hi,

I've changed my table to the DefaultDataTable and I still have the
same issues...

Wouter

On 3/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
 hi, the filtering won't work with ajax due to invalid markup it
 produces. Though there could be possible workaround using nested
 forms.

 -Matej

 On 3/26/07, Wouter de Vaal [EMAIL PROTECTED] wrote:
  Hi,
 
  I've got FilterToolbar working on my DataTable (ajax version) when I
  use a single TextFilteredPropertyColumn, however when I create one for
  each header, pressing enter in search does not work anymore.
  Could someone give me an example how to get this working? I also see
  there are GoFilter panels for filter buttons, but I have no idea
  where/how to add these..
 
  I'm using a recent 2.0 snapshot.
 
  Thanks,
  Wouter
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] getRealPath(wicket 1.2.4) any proper wicket wayto this?

2007-03-26 Thread Nino Wael
Ok.


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
Sendt: ma 26-03-2007 17:27
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] getRealPath(wicket 1.2.4) any proper wicket wayto this?
 
Nope, that's the way to do it. In 1.3 you can get the servlet context
directly from the application object.

Eelco


On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote:
 Hi

 Currently we are doing this within our wicket application:

 getWicketServlet().getServletContext().getRealPath(/);

 Im wondering if there are a more wicketly kind of approach to this?


 regards Nino

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

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


Re: [Wicket-user] General Java/OO/Pattern Question

2007-03-26 Thread Scott Swank
The idea is that the grouper and the leaf implement the same
interface and perhaps share an abstract parent -- this is named
component in the GoF Pattern.  This is to avoid the following sort
of code when you are processing the tree:

if (x.isLeaf())
{
  // process leaf
}
else
{
  // process branch
}

You simple implement the appropriate behavior on the leaf/branch
appropriately.  Often the branch simply summarizes the branches/leaves
below it.


On 3/26/07, Matt Welch [EMAIL PROTECTED] wrote:
 On 3/23/07, Scott Swank [EMAIL PROTECTED] wrote:
  In short, the Gang of Four's Composite pattern.
 
  http://en.wikipedia.org/wiki/Composite_pattern
 
 

 Really? I briefly took a look at that pattern specifically and I didn't see
 the fit, but I'll take a closer look. Thanks for the advice.

 James, I currently have all of the objects that might be parents of children
 of each other implement an abstract class that provides the the two
 attributes that are the same between them all. I'll take a look at the
 TreeNodes that you suggested.




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




-- 
Scott Swank
reformed mathematician

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


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Korbinian Bachl
seems as they (the jokers) have no longer the patience to wait for april 1st
:P 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von Matej Knopp
 Gesendet: Montag, 26. März 2007 17:03
 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard 
 web framework
 
 http://mail-archives.apache.org/mod_mbox/tapestry-users/200504
.mbox/[EMAIL PROTECTED] 3e
 
 On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote:
  It´d be fantastic. But it's a bit suspicious, considering the magic 
  date. :)
 
 
 
  On 3/26/07, Francis Amanfo [EMAIL PROTECTED]  wrote:
   I'm only a messenger. Don't persecute the messenger!
  
  
  
   On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED]  wrote:
   
   
   
The official announcement of this was planned for 
 April 1, 2007, 
but
  because this falls on Sunday, the
announcement is scheduled for April, 2 2007.
   
is this some kind of april the 1st joke or are you 
 serious about it???
   
   
   

   Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag von 
  Francis Amanfo
Gesendet: Montag, 26. März 2007 16:21
An: wicket-user@lists.sourceforge.net
Betreff: [Wicket-user] IBM to adopt Wicket as standard web 
framework
   
   
   
Hi guys,
   
An IBM internal memo, written and signed by product manager, Tim
  O'Malley, has been leaked.
Well, to be more direct, a friend of my working with IBM leaked 
this to
  me.
In it, IBM praised Wicket as an innovative and state of the art 
web
  framework that stands up tall against all its
competitors including JSF, Struts 2 and Tapestry. In 
 the memo, IBM
  mentions some of it's frustrations with JSF and
about Sun not listening to them during the creation of the JSF
  specification. In the memo, IBM also praises the Wicket team
as very hardworking and dedicated guys and is in 
 negotiations to 
employ
  them into IBM and make them work on Wicket
and sell support under the umbrella of IBM.
The memo also goes further to announce IBM's plans to integrate 
Wicket
  into it's JEE offerings. To be more specific,
Wicket would be Integrated into RAD 8 as the default Web 
framework,
  which it plans to release in the fourth quater of this year.
The memo also states IBM's plans to create widgets, 
 which it plans 
to
  market under the label WICKED Widgets, of all
the standard Wicket components and enable drag and drop 
development in
  RAD 8. It would also make WICKED(c) widgets standalone for 
 separate downloads.
The official announcement of this was planned for April 
 1, 2007, 
but
  because this falls on Sunday, the
announcement is scheduled for April, 2 2007.
   
There is a link to this memo but is currently available only on 
IBM's
  internal network, which of course is closed
to the public.
   
I personally think this is a great news. It will grow Wicket's 
adoption
  exponentially, which is of course a good
thing for the community and give Wicket a high status in the web
  framework community. In addition, our diligent, humble
and hardworking Wicket core developers would be rewarded.
   
So join me rejoice about the greatest news so far for the Wicket
  community.
   
Regards,
Francis
--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
-Donald Knuth
   
  
 --
  ---
Take Surveys. Earn Cash. Influence the Future of IT Join 
SourceForge.net's Techsay panel and you'll get the 
 chance to share
  your
opinions on IT  business topics through brief surveys-and earn 
cash
   
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
  DEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
  
  
   --
   Beware of bugs in the above code;
   I have only proved it correct, not tried it.
   -Donald Knuth
  
  
 --
  ---
   Take Surveys. Earn Cash. Influence the Future of IT Join 
   SourceForge.net's Techsay panel and you'll get the chance to share
  your
   opinions on IT  business topics through brief 
 surveys-and earn cash
  
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
  DEV
   ___
   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 

Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Eelco Hillenius
They spoiled my negotiation position! ;)

Eelco

On 3/26/07, Korbinian Bachl [EMAIL PROTECTED] wrote:
 seems as they (the jokers) have no longer the patience to wait for april 1st
 :P

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag
  von Matej Knopp
  Gesendet: Montag, 26. März 2007 17:03
  An: wicket-user@lists.sourceforge.net
  Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard
  web framework
 
  http://mail-archives.apache.org/mod_mbox/tapestry-users/200504
 .mbox/[EMAIL PROTECTED] 3e
 
  On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote:
   It´d be fantastic. But it's a bit suspicious, considering the magic
   date. :)
  
  
  
   On 3/26/07, Francis Amanfo [EMAIL PROTECTED]  wrote:
I'm only a messenger. Don't persecute the messenger!
   
   
   
On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED]  wrote:



 The official announcement of this was planned for
  April 1, 2007,
 but
   because this falls on Sunday, the
 announcement is scheduled for April, 2 2007.

 is this some kind of april the 1st joke or are you
  serious about it???



 
Von: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Im Auftrag von
   Francis Amanfo
 Gesendet: Montag, 26. März 2007 16:21
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] IBM to adopt Wicket as standard web
 framework



 Hi guys,

 An IBM internal memo, written and signed by product manager, Tim
   O'Malley, has been leaked.
 Well, to be more direct, a friend of my working with IBM leaked
 this to
   me.
 In it, IBM praised Wicket as an innovative and state of the art
 web
   framework that stands up tall against all its
 competitors including JSF, Struts 2 and Tapestry. In
  the memo, IBM
   mentions some of it's frustrations with JSF and
 about Sun not listening to them during the creation of the JSF
   specification. In the memo, IBM also praises the Wicket team
 as very hardworking and dedicated guys and is in
  negotiations to
 employ
   them into IBM and make them work on Wicket
 and sell support under the umbrella of IBM.
 The memo also goes further to announce IBM's plans to integrate
 Wicket
   into it's JEE offerings. To be more specific,
 Wicket would be Integrated into RAD 8 as the default Web
 framework,
   which it plans to release in the fourth quater of this year.
 The memo also states IBM's plans to create widgets,
  which it plans
 to
   market under the label WICKED Widgets, of all
 the standard Wicket components and enable drag and drop
 development in
   RAD 8. It would also make WICKED(c) widgets standalone for
  separate downloads.
 The official announcement of this was planned for April
  1, 2007,
 but
   because this falls on Sunday, the
 announcement is scheduled for April, 2 2007.

 There is a link to this memo but is currently available only on
 IBM's
   internal network, which of course is closed
 to the public.

 I personally think this is a great news. It will grow Wicket's
 adoption
   exponentially, which is of course a good
 thing for the community and give Wicket a high status in the web
   framework community. In addition, our diligent, humble
 and hardworking Wicket core developers would be rewarded.

 So join me rejoice about the greatest news so far for the Wicket
   community.

 Regards,
 Francis
 --
 Beware of bugs in the above code;
 I have only proved it correct, not tried it.
 -Donald Knuth

  
  --
   ---
 Take Surveys. Earn Cash. Influence the Future of IT Join
 SourceForge.net's Techsay panel and you'll get the
  chance to share
   your
 opinions on IT  business topics through brief surveys-and earn
 cash

  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
   DEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

   https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   
   
   
--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
-Donald Knuth
   
  
  --
   ---
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share
   your
opinions on IT  business topics through brief
  surveys-and earn cash
   
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
   DEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

Re: [Wicket-user] General Java/OO/Pattern Question

2007-03-26 Thread Igor Vaynberg

just look at wicket

component=leaf
grouper=markupcontainer

there is no nice and neat pattern that will do everything you want, its just
not how inheritance works. this is why in wicket Page class has
oncomponenttag() eventhough it doesnt make sense there.

-igor


On 3/23/07, Matt Welch [EMAIL PROTECTED] wrote:


As the subject indicates, this isn't a question specific to Wicket
(although it WILL eventually involve Wicket to display these objects), so if
you feel I should post this elsewhere, feel free to tell me so, however it
seemed like a pretty bright bunch of Java guys hang around here so I'm
hoping for some insight.

I've been tasked with implementing a rather curious (to me anyway)
hierarchical object structure. Most of the objects in this structure serve
no other purpose than to group the objects below them; it's only at the
final leaf levels that there are some significant behavioral difference in
the objects. For lack of a better example, I'll call these objects Grouper1,
Grouper2, Grouper3, and Leaf. So I might have a structure that looks like:

Grouper1
--Grouper2
Grouper3
--Leaf
--Leaf
--Leaf
Grouper3
--Leaf
--Leaf
--Leaf

It can also look like this:

Grouper1
--Grouper3
Leaf
Leaf
Leaf
--Grouper3
Leaf
Leaf
Leaf

Or like this:

Grouper1
--Leaf
--Leaf
--Grouper2
Grouper3
--Leaf
--Leaf
--Leaf
Grouper3
--Leaf
--Leaf
--Leaf

Or even like this:

Grouper3
--Leaf
--Leaf
--Leaf

Although I'm willing to exclude that last example (with something other
than a Grouper1 at the top) if it helps simplify things any.

As you can see almost all objects in the hierarchy can exist at any level.
Only the leaf node has any properties beyond those shared by all of the
other objects. And before you ask, despite the fact that the branch items
are so similar, they do have different labels that are important to the
people using the hierarchy. I'm just trying to determine if those labels are
important to the domain model.

I started to model this using simple inheritance. Something like the
following:

public abstract class MyHierarchyObject{
private String commonAttribute1;
private boolean commonAttribute2 = false;
private ListMyHierarchyObject children = new
ArrayListMyHierarchyObject;
private MyHierarchyObject parent;  //the association needs to be
bidirectional for up and down navigation
...
}

public class Grouper1 extends MyHierarchyObject{
}

etc. etc.

Of course, I realized after just a few seconds that this seemed a little
silly since I was going to end up with at least three classes with either no
behavior or properties or only extremely minor changes to the abstract
class's properties like setting commonAttribute2 to true by default.

So does using inheritance like this still make sense or should I do
something like make the MyHierarchyObject not abstract and add a Type
property that can be populated from an enum with elements like Grouper1,
Grouper2, and Grouper3? What about the leaf node. It's not allowed to have
children but because it can be a child of any of the Groupers, it seems like
it needs to extend MyHierarchyObject in order to fit into the child parent
model. Should I put the children related methods into an interface that only
the Grouper classes implement? Of course that only works if I use the
inheritance model; maybe that's a good reason to use it? Or is there a
design pattern I'm missing in all of this that might help me.

I've been thinking about this for so long now that I'm afraid I'm too deep
into it and not thinking clearly about the best approaches. That's why I'm
posting here. Unfortunately, the hierarchy is quite a bit more complex than
this example, but I think if I can solve this level of complexity, I can
apply similar logic to the rest of the hierarchy that I didn't represent
here.

Thanks for reading such a long post.

Matt

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


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Igor Vaynberg

were you gonna get paid one miio dollars?

-igor


On 3/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


They spoiled my negotiation position! ;)

Eelco

On 3/26/07, Korbinian Bachl [EMAIL PROTECTED] wrote:
 seems as they (the jokers) have no longer the patience to wait for april
1st
 :P

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag
  von Matej Knopp
  Gesendet: Montag, 26. März 2007 17:03
  An: wicket-user@lists.sourceforge.net
  Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard
  web framework
 
  http://mail-archives.apache.org/mod_mbox/tapestry-users/200504
 .mbox/[EMAIL PROTECTED] 3e
 
  On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote:
   It´d be fantastic. But it's a bit suspicious, considering the magic
   date. :)
  
  
  
   On 3/26/07, Francis Amanfo [EMAIL PROTECTED]  wrote:
I'm only a messenger. Don't persecute the messenger!
   
   
   
On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED]  wrote:



 The official announcement of this was planned for
  April 1, 2007,
 but
   because this falls on Sunday, the
 announcement is scheduled for April, 2 2007.

 is this some kind of april the 1st joke or are you
  serious about it???



 
Von: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Im Auftrag von
   Francis Amanfo
 Gesendet: Montag, 26. März 2007 16:21
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] IBM to adopt Wicket as standard web
 framework



 Hi guys,

 An IBM internal memo, written and signed by product manager, Tim
   O'Malley, has been leaked.
 Well, to be more direct, a friend of my working with IBM leaked
 this to
   me.
 In it, IBM praised Wicket as an innovative and state of the art
 web
   framework that stands up tall against all its
 competitors including JSF, Struts 2 and Tapestry. In
  the memo, IBM
   mentions some of it's frustrations with JSF and
 about Sun not listening to them during the creation of the JSF
   specification. In the memo, IBM also praises the Wicket team
 as very hardworking and dedicated guys and is in
  negotiations to
 employ
   them into IBM and make them work on Wicket
 and sell support under the umbrella of IBM.
 The memo also goes further to announce IBM's plans to integrate
 Wicket
   into it's JEE offerings. To be more specific,
 Wicket would be Integrated into RAD 8 as the default Web
 framework,
   which it plans to release in the fourth quater of this year.
 The memo also states IBM's plans to create widgets,
  which it plans
 to
   market under the label WICKED Widgets, of all
 the standard Wicket components and enable drag and drop
 development in
   RAD 8. It would also make WICKED(c) widgets standalone for
  separate downloads.
 The official announcement of this was planned for April
  1, 2007,
 but
   because this falls on Sunday, the
 announcement is scheduled for April, 2 2007.

 There is a link to this memo but is currently available only on
 IBM's
   internal network, which of course is closed
 to the public.

 I personally think this is a great news. It will grow Wicket's
 adoption
   exponentially, which is of course a good
 thing for the community and give Wicket a high status in the web
   framework community. In addition, our diligent, humble
 and hardworking Wicket core developers would be rewarded.

 So join me rejoice about the greatest news so far for the Wicket
   community.

 Regards,
 Francis
 --
 Beware of bugs in the above code;
 I have only proved it correct, not tried it.
 -Donald Knuth

  
  --
   ---
 Take Surveys. Earn Cash. Influence the Future of IT Join
 SourceForge.net's Techsay panel and you'll get the
  chance to share
   your
 opinions on IT  business topics through brief surveys-and earn
 cash

  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
   DEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

   https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   
   
   
--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
-Donald Knuth
   
  
  --
   ---
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share
   your
opinions on IT  business topics through brief
  surveys-and earn cash
   
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
   DEV
  

[Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Jaime De La Jara
Hi, I have a form with some fields and a AutoCompleteTextField that is working 
nice, however now I need to retrieve the value of a TextField from this 
AutoCompleteTextField so I can restrict the values shown for autocompletion. Is 
this possible? in the affirmative case, could you give me a hint?
Thanks,

Jaime.

 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Igor Vaynberg

On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:


Hi, I have a form with some fields and a AutoCompleteTextField that is
working nice, however now I need to retrieve the value of a TextField from
this AutoCompleteTextField so I can restrict the values shown for
autocompletion. Is this possible?



umm...isnt that what the autocomplete is for? you are in control of the
choices, so why would you need to further restrict them?

-igor



in the affirmative case, could you give me a hint?

Thanks,

Jaime.

--
Don't be flakey. Get Yahoo! Mail for 
Mobilehttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailand
always stay 
connectedhttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailto 
friends.


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


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread remco bos
I saw it coming.. http://wicket.sourceforge.net/ExampleStockQuote.html



Igor Vaynberg [EMAIL PROTECTED] wrote: were you gonna get paid one 
miio dollars?

-igor


On 3/26/07, Eelco Hillenius [EMAIL PROTECTED]  wrote:They spoiled my 
negotiation position! ;)

Eelco

On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED] wrote:
 seems as they (the jokers) have no longer the patience to wait for april 1st
 :P

  -Ursprüngliche Nachricht- 
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] ] Im Auftrag
  von Matej Knopp
  Gesendet: Montag, 26. März 2007 17:03
  An: wicket-user@lists.sourceforge.net
  Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard 
  web framework
 
  http://mail-archives.apache.org/mod_mbox/tapestry-users/200504
 .mbox/%3cPine.LNX.4.60.0504011327210.18753@ localhost.localdomain% 3e
 
  On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote:
   It´d be fantastic. But it's a bit suspicious, considering the magic 
   date. :)
  
  
  
   On 3/26/07, Francis Amanfo [EMAIL PROTECTED]  wrote:
I'm only a messenger. Don't persecute the messenger! 
   
   
   
On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED]  wrote:
 


 The official announcement of this was planned for
  April 1, 2007,
 but
   because this falls on Sunday, the 
 announcement is scheduled for April, 2 2007.

 is this some kind of april the 1st joke or are you
  serious about it???
 


 
Von:  [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Im Auftrag von
   Francis Amanfo 
 Gesendet: Montag, 26. März 2007 16:21
 An: wicket-user@lists.sourceforge.net
 Betreff: [Wicket-user] IBM to adopt Wicket as standard web 
 framework



 Hi guys,

 An IBM internal memo, written and signed by product manager, Tim 
   O'Malley, has been leaked.
 Well, to be more direct, a friend of my working with IBM leaked
 this to
   me.
 In it, IBM praised Wicket as an innovative and state of the art 
 web
   framework that stands up tall against all its
 competitors including JSF, Struts 2 and Tapestry. In
  the memo, IBM
   mentions some of it's frustrations with JSF and 
 about Sun not listening to them during the creation of the JSF
   specification. In the memo, IBM also praises the Wicket team
 as very hardworking and dedicated guys and is in 
  negotiations to
 employ
   them into IBM and make them work on Wicket
 and sell support under the umbrella of IBM.
 The memo also goes further to announce IBM's plans to integrate 
 Wicket
   into it's JEE offerings. To be more specific,
 Wicket would be Integrated into RAD 8 as the default Web
 framework, 
   which it plans to release in the fourth quater of this year.
 The memo also states IBM's plans to create widgets,
  which it plans
 to 
   market under the label WICKED Widgets, of all
 the standard Wicket components and enable drag and drop
 development in
   RAD 8. It would also make WICKED(c) widgets standalone for 
  separate downloads.
 The official announcement of this was planned for April
  1, 2007,
 but
   because this falls on Sunday, the 
 announcement is scheduled for April, 2 2007.

 There is a link to this memo but is currently available only on
 IBM's 
   internal network, which of course is closed
 to the public.

 I personally think this is a great news. It will grow Wicket's 
 adoption
   exponentially, which is of course a good
 thing for the community and give Wicket a high status in the web
   framework community. In addition, our diligent, humble 
 and hardworking Wicket core developers would be rewarded.

 So join me rejoice about the greatest news so far for the Wicket
   community. 

 Regards,
 Francis
 --
 Beware of bugs in the above code;
 I have only proved it correct, not tried it. 
 -Donald Knuth

  
  --
   --- 
 Take Surveys. Earn Cash. Influence the Future of IT Join
 SourceForge.net's Techsay panel and you'll get the
  chance to share
   your 
 opinions on IT  business topics through brief surveys-and earn
 cash

  
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
   DEV
 ___
 Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   
   
   
-- 
Beware of bugs in the above code;
I have only proved it correct, not tried it.
-Donald Knuth

  
  --
   ---
Take Surveys. Earn Cash. Influence the Future of IT Join
 SourceForge.net's Techsay panel and you'll 

Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Alexandre Bairos

*Dr. Evil http://www.imdb.com/name/nm196/*: Okay, here's the plan. We
get the warhead and then hold the world ransom for... 1 MILLION dollars!
*Number Two http://www.imdb.com/name/nm0001822/*: [*clears throat*] Sir,
strictly speaking, a million dollars will not go very far these days.
Virtucon alone makes over 9 billion dollars a year.
*Dr. Evil http://www.imdb.com/name/nm196/*: Really? Okay then... we
hold the world ransom for 1... hundred... BILLION dollars!

:)



On 3/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


were you gonna get paid one miio dollars?

-igor


On 3/26/07, Eelco Hillenius [EMAIL PROTECTED]  wrote:

 They spoiled my negotiation position! ;)

 Eelco

 On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED] wrote:
  seems as they (the jokers) have no longer the patience to wait for
 april 1st
  :P
 
   -Ursprüngliche Nachricht-
   Von: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] ] Im Auftrag
   von Matej Knopp
   Gesendet: Montag, 26. März 2007 17:03
   An: wicket-user@lists.sourceforge.net
   Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard
   web framework
  
   http://mail-archives.apache.org/mod_mbox/tapestry-users/200504
  .mbox/%3cPine.LNX.4.60.0504011327210.18753@ localhost.localdomain% 3e
  
   On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote:
It´d be fantastic. But it's a bit suspicious, considering the
 magic
date. :)
   
   
   
On 3/26/07, Francis Amanfo [EMAIL PROTECTED]  wrote:
 I'm only a messenger. Don't persecute the messenger!



 On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED]  wrote:
 
 
 
  The official announcement of this was planned for
   April 1, 2007,
  but
because this falls on Sunday, the
  announcement is scheduled for April, 2 2007.
 
  is this some kind of april the 1st joke or are you
   serious about it???
 
 
 
  
 Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Francis Amanfo
  Gesendet: Montag, 26. März 2007 16:21
  An: wicket-user@lists.sourceforge.net
  Betreff: [Wicket-user] IBM to adopt Wicket as standard web
  framework
 
 
 
  Hi guys,
 
  An IBM internal memo, written and signed by product manager,
 Tim
O'Malley, has been leaked.
  Well, to be more direct, a friend of my working with IBM
 leaked
  this to
me.
  In it, IBM praised Wicket as an innovative and state of the
 art
  web
framework that stands up tall against all its
  competitors including JSF, Struts 2 and Tapestry. In
   the memo, IBM
mentions some of it's frustrations with JSF and
  about Sun not listening to them during the creation of the JSF
specification. In the memo, IBM also praises the Wicket team
  as very hardworking and dedicated guys and is in
   negotiations to
  employ
them into IBM and make them work on Wicket
  and sell support under the umbrella of IBM.
  The memo also goes further to announce IBM's plans to
 integrate
  Wicket
into it's JEE offerings. To be more specific,
  Wicket would be Integrated into RAD 8 as the default Web
  framework,
which it plans to release in the fourth quater of this year.
  The memo also states IBM's plans to create widgets,
   which it plans
  to
market under the label WICKED Widgets, of all
  the standard Wicket components and enable drag and drop
  development in
RAD 8. It would also make WICKED(c) widgets standalone for
   separate downloads.
  The official announcement of this was planned for April
   1, 2007,
  but
because this falls on Sunday, the
  announcement is scheduled for April, 2 2007.
 
  There is a link to this memo but is currently available only
 on
  IBM's
internal network, which of course is closed
  to the public.
 
  I personally think this is a great news. It will grow Wicket's

  adoption
exponentially, which is of course a good
  thing for the community and give Wicket a high status in the
 web
framework community. In addition, our diligent, humble
  and hardworking Wicket core developers would be rewarded.
 
  So join me rejoice about the greatest news so far for the
 Wicket
community.
 
  Regards,
  Francis
  --
  Beware of bugs in the above code;
  I have only proved it correct, not tried it.
  -Donald Knuth
 
   
  
 --
---
  Take Surveys. Earn Cash. Influence the Future of IT Join
  SourceForge.net's Techsay panel and you'll get the
   chance to share
your
  opinions on IT  business topics through brief surveys-and
 earn
  cash
 
   
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
DEV
  

[Wicket-user] Where to download wicket 2.0 jar builds?

2007-03-26 Thread M.A.Bednarz
Hello PoJo friends !

Is there a public repository where I can download wicket 2.0 jar instead of 
source code? I would like to switch at this point my community portal to the 
2.0 branch :-)

Maciek 


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


Re: [Wicket-user] IBM to adopt Wicket as standard web framework

2007-03-26 Thread Francis Amanfo

And I learnt before they came to the conclusion to adopt Wicket some few
IBM'ers proposed to grab the current Tapestry 5 en rename it to Wicketstry
because they looked so alike. But the panel voted unanimously for Wicket
because they wanted the real and original meat.

On 3/26/07, remco bos [EMAIL PROTECTED] wrote:


I saw it coming.. http://wicket.sourceforge.net/ExampleStockQuote.html



*Igor Vaynberg [EMAIL PROTECTED]* wrote:

were you gonna get paid one miio dollars?

-igor


On 3/26/07, Eelco Hillenius [EMAIL PROTECTED]  wrote:

 They spoiled my negotiation position! ;)

 Eelco

 On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED] wrote:
  seems as they (the jokers) have no longer the patience to wait for
 april 1st
  :P
 
   -Ursprüngliche Nachricht-
   Von: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] ] Im Auftrag
   von Matej Knopp
   Gesendet: Montag, 26. März 2007 17:03
   An: wicket-user@lists.sourceforge.net
   Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard
   web framework
  
   http://mail-archives.apache.org/mod_mbox/tapestry-users/200504
  .mbox/%3cPine.LNX.4.60.0504011327210.18753@ localhost.localdomain% 3e
  
   On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote:
It´d be fantastic. But it's a bit suspicious, considering the
 magic
date. :)
   
   
   
On 3/26/07, Francis Amanfo [EMAIL PROTECTED]  wrote:
 I'm only a messenger. Don't persecute the messenger!



 On 3/26/07, Korbinian Bachl  [EMAIL PROTECTED]  wrote:
 
 
 
  The official announcement of this was planned for
   April 1, 2007,
  but
because this falls on Sunday, the
  announcement is scheduled for April, 2 2007.
 
  is this some kind of april the 1st joke or are you
   serious about it???
 
 
 
  
 Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Francis Amanfo
  Gesendet: Montag, 26. März 2007 16:21
  An: wicket-user@lists.sourceforge.net
  Betreff: [Wicket-user] IBM to adopt Wicket as standard web
  framework
 
 
 
  Hi guys,
 
  An IBM internal memo, written and signed by product manager,
 Tim
O'Malley, has been leaked.
  Well, to be more direct, a friend of my working with IBM
 leaked
  this to
me.
  In it, IBM praised Wicket as an innovative and state of the
 art
  web
framework that stands up tall against all its
  competitors including JSF, Struts 2 and Tapestry. In
   the memo, IBM
mentions some of it's frustrations with JSF and
  about Sun not listening to them during the creation of the JSF
specification. In the memo, IBM also praises the Wicket team
  as very hardworking and dedicated guys and is in
   negotiations to
  employ
them into IBM and make them work on Wicket
  and sell support under the umbrella of IBM.
  The memo also goes further to announce IBM's plans to
 integrate
  Wicket
into it's JEE offerings. To be more specific,
  Wicket would be Integrated into RAD 8 as the default Web
  framework,
which it plans to release in the fourth quater of this year.
  The memo also states IBM's plans to create widgets,
   which it plans
  to
market under the label WICKED Widgets, of all
  the standard Wicket components and enable drag and drop
  development in
RAD 8. It would also make WICKED(c) widgets standalone for
   separate downloads.
  The official announcement of this was planned for April
   1, 2007,
  but
because this falls on Sunday, the
  announcement is scheduled for April, 2 2007.
 
  There is a link to this memo but is currently available only
 on
  IBM's
internal network, which of course is closed
  to the public.
 
  I personally think this is a great news. It will grow Wicket's

  adoption
exponentially, which is of course a good
  thing for the community and give Wicket a high status in the
 web
framework community. In addition, our diligent, humble
  and hardworking Wicket core developers would be rewarded.
 
  So join me rejoice about the greatest news so far for the
 Wicket
community.
 
  Regards,
  Francis
  --
  Beware of bugs in the above code;
  I have only proved it correct, not tried it.
  -Donald Knuth
 
   
  
 --
---
  Take Surveys. Earn Cash. Influence the Future of IT Join
  SourceForge.net's Techsay panel and you'll get the
   chance to share
your
  opinions on IT  business topics through brief surveys-and
 earn
  cash
 
   
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
DEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Where to download wicket 2.0 jar builds?

2007-03-26 Thread Rüdiger Schulz

I don't know where to download 2.0 jars, but I can assure that you should
think twice about upgrading to 2.0 at the moment. Search the archive for
reverting the constructor change and you'll find out that the future of
2.0 in its current state is not so well.

2007/3/26, M.A.Bednarz [EMAIL PROTECTED]:


Hello PoJo friends !

Is there a public repository where I can download wicket 2.0 jar instead
of
source code? I would like to switch at this point my community portal to
the
2.0 branch :-)

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


Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Jaime De La Jara
Basically what I need is to narrow the possible choices of the autocomplete 
field, depending on the value the user entered in the other field (which is a 
normal field).
This is a user requirement to simplify their data entry, in this case the 
normal field is an invoice number and the autocomplete field corresponds to the 
vendor name, so if the user enters invoice number 0189, and in the autocomplete 
he types E the list displayed should show only the vendors whose name start 
with an E and
have an invoice numbered 0189.
Thanks,

Jaime.

Igor Vaynberg [EMAIL PROTECTED] wrote: On 3/26/07, Jaime De La Jara [EMAIL 
PROTECTED] wrote: Hi, I have a form with some fields and a 
AutoCompleteTextField that is working nice, however now I need to retrieve the 
value of a TextField from this AutoCompleteTextField so I can restrict the 
values shown for autocompletion. Is this possible?  
umm...isnt that what the autocomplete is for? you are in control of the 
choices, so why would you need to further restrict them?

-igor

 

 in the affirmative case, could you give me a hint?
Thanks,

Jaime.
   

-
Don't be flakey. Get Yahoo! Mail for Mobile and 
 always stay connected to friends.

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


 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Igor Vaynberg

ok, this is a bit tricky but is def doable. i dont think this is a very
common usecase, so i dont think we will create all the factories/etc for you
to be able to do this out of the box because in most cases it will just be
api bloat.

that said, although not trivial it is still def very possible

start with extending the autocompletebehavior
override getcallbackurl and do something like
return super.getcallbackurl
()++'limiter='+document.getelementbyid('someid').value);

so now whenever the url is invoked for the autocomplete it will also contain
a limiter param whose value will be the value of that textfield - make
sure someid is the id of that textfield.

then simply create your own component, or add the behavior directly to a
textfield, see AutoCompleteTextField source - its rather trivial.

now in your getchoices() you can do getrequest().getparameter(limiter) and
that will give you that extra value you need to filter

make sense?

-igor


On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:


Basically what I need is to narrow the possible choices of the
autocomplete field, depending on the value the user entered in the other
field (which is a normal field).
This is a user requirement to simplify their data entry, in this case the
normal field is an invoice number and the autocomplete field corresponds to
the vendor name, so if the user enters invoice number 0189, and in the
autocomplete he types E the list displayed should show only the vendors
whose name start with an E and
have an invoice numbered 0189.
Thanks,

Jaime.

*Igor Vaynberg [EMAIL PROTECTED]* wrote:

On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:

 Hi, I have a form with some fields and a AutoCompleteTextField that is
 working nice, however now I need to retrieve the value of a TextField from
 this AutoCompleteTextField so I can restrict the values shown for
 autocompletion. Is this possible?


umm...isnt that what the autocomplete is for? you are in control of the
choices, so why would you need to further restrict them?

-igor



in the affirmative case, could you give me a hint?
 Thanks,

 Jaime.
 --
 Don't be flakey. Get Yahoo! Mail for 
Mobilehttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailand
 always stay 
connectedhttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailto 
friends.

 -

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


--
Don't be flakey. Get Yahoo! Mail for 
Mobilehttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailand
always stay 
connectedhttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailto 
friends.


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


Re: [Wicket-user] General Java/OO/Pattern Question

2007-03-26 Thread Matt Welch

Thanks everyone, you've given me a lot of places to start.

Matt

On 3/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


just look at wicket

component=leaf
grouper=markupcontainer

there is no nice and neat pattern that will do everything you want, its
just not how inheritance works. this is why in wicket Page class has
oncomponenttag() eventhough it doesnt make sense there.

-igor


On 3/23/07, Matt Welch [EMAIL PROTECTED] wrote:

 As the subject indicates, this isn't a question specific to Wicket
 (although it WILL eventually involve Wicket to display these objects), so if
 you feel I should post this elsewhere, feel free to tell me so, however it
 seemed like a pretty bright bunch of Java guys hang around here so I'm
 hoping for some insight.

 I've been tasked with implementing a rather curious (to me anyway)
 hierarchical object structure. Most of the objects in this structure serve
 no other purpose than to group the objects below them; it's only at the
 final leaf levels that there are some significant behavioral difference in
 the objects. For lack of a better example, I'll call these objects Grouper1,
 Grouper2, Grouper3, and Leaf. So I might have a structure that looks like:

 Grouper1
 --Grouper2
 Grouper3
 --Leaf
 --Leaf
 --Leaf
 Grouper3
 --Leaf
 --Leaf
 --Leaf

 It can also look like this:

 Grouper1
 --Grouper3
 Leaf
 Leaf
 Leaf
 --Grouper3
 Leaf
 Leaf
 Leaf

 Or like this:

 Grouper1
 --Leaf
 --Leaf
 --Grouper2
 Grouper3
 --Leaf
 --Leaf
 --Leaf
 Grouper3
 --Leaf
 --Leaf
 --Leaf

 Or even like this:

 Grouper3
 --Leaf
 --Leaf
 --Leaf

 Although I'm willing to exclude that last example (with something other
 than a Grouper1 at the top) if it helps simplify things any.

 As you can see almost all objects in the hierarchy can exist at any
 level. Only the leaf node has any properties beyond those shared by all of
 the other objects. And before you ask, despite the fact that the branch
 items are so similar, they do have different labels that are important to
 the people using the hierarchy. I'm just trying to determine if those labels
 are important to the domain model.

 I started to model this using simple inheritance. Something like the
 following:

 public abstract class MyHierarchyObject{
 private String commonAttribute1;
 private boolean commonAttribute2 = false;
 private ListMyHierarchyObject children = new
 ArrayListMyHierarchyObject;
 private MyHierarchyObject parent;  //the association needs to be
 bidirectional for up and down navigation
 ...
 }

 public class Grouper1 extends MyHierarchyObject{
 }

 etc. etc.

 Of course, I realized after just a few seconds that this seemed a little
 silly since I was going to end up with at least three classes with either no
 behavior or properties or only extremely minor changes to the abstract
 class's properties like setting commonAttribute2 to true by default.

 So does using inheritance like this still make sense or should I do
 something like make the MyHierarchyObject not abstract and add a Type
 property that can be populated from an enum with elements like Grouper1,
 Grouper2, and Grouper3? What about the leaf node. It's not allowed to have
 children but because it can be a child of any of the Groupers, it seems like
 it needs to extend MyHierarchyObject in order to fit into the child parent
 model. Should I put the children related methods into an interface that only
 the Grouper classes implement? Of course that only works if I use the
 inheritance model; maybe that's a good reason to use it? Or is there a
 design pattern I'm missing in all of this that might help me.

 I've been thinking about this for so long now that I'm afraid I'm too
 deep into it and not thinking clearly about the best approaches. That's why
 I'm posting here. Unfortunately, the hierarchy is quite a bit more complex
 than this example, but I think if I can solve this level of complexity, I
 can apply similar logic to the rest of the hierarchy that I didn't represent
 here.

 Thanks for reading such a long post.

 Matt


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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

Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Jaime De La Jara
Absolutely !, thanks a lot Igor, I'll try it right now. I agree that is an 
uncommon use case and it doesn't deserve an api change and a custom solution is 
what is needed.

Jaime.

Igor Vaynberg [EMAIL PROTECTED] wrote: ok, this is a bit tricky but is def 
doable. i dont think this is a very common usecase, so i dont think we will 
create all the factories/etc for you to be able to do this out of the box 
because in most cases it will just be api bloat. 

that said, although not trivial it is still def very possible

start with extending the autocompletebehavior
override getcallbackurl and do something like
return 
super.getcallbackurl()++'limiter='+document.getelementbyid('someid').value); 

so now whenever the url is invoked for the autocomplete it will also contain a 
limiter param whose value will be the value of that textfield - make sure 
someid is the id of that textfield.

then simply create your own component, or add the behavior directly to a 
textfield, see AutoCompleteTextField source - its rather trivial. 

now in your getchoices() you can do getrequest().getparameter(limiter) and 
that will give you that extra value you need to filter

make sense?

-igor


 On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote: Basically what I need 
is to narrow the possible choices of the autocomplete field, depending on the 
value the user entered in the other field (which is a normal field).
This is a user requirement to simplify their data entry, in this case the 
normal field is an invoice number and the autocomplete field corresponds to the 
vendor name, so if the user enters invoice number 0189, and in the autocomplete 
he types E the list displayed should show only the vendors whose name start 
with an E and 
have an invoice numbered 0189.
Thanks,

Jaime.

Igor Vaynberg  [EMAIL PROTECTED] wrote:
 On 3/26/07,  Jaime De La Jara [EMAIL PROTECTED] wrote:
  Hi, I have a form with some fields and a AutoCompleteTextField that is 
working nice, however now I need to retrieve the value of a TextField from this 
AutoCompleteTextField so I can restrict the values shown for autocompletion. Is 
this possible?   
umm...isnt that what the autocomplete is for? you are in control of the 
choices, so why would you need to further restrict them?

-igor

 

  in the affirmative case, could you give me a hint?
Thanks,

Jaime.
   

-
Don't be flakey.  Get Yahoo! Mail for Mobile and 
 always stay connected to friends. 

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

   

-
Don't be flakey. Get Yahoo! Mail for Mobile  and 
always stay connected to friends.

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


  
-
Looking for earth-friendly autos? 
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.  -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 

[Wicket-user] wicket sessions

2007-03-26 Thread Scott Swank
We are integrating our new Wicket app with our legacy applications as follows:

1. legacy app makes an http post to wicket app
2. the bridge page catches this post, extracts the http parameters
and redirects to the relevant wicket page -- crucial point: we now
have a cart object in our wicket session that contains the item that
the user was browsing in the legacy app
3. the user goes back out to the legacy app
4. the user comes back into the wicket app

Question: is there any way to get the wicket session from step #2
again in step #4?  We want to add this 2nd item from one of the legacy
apps to our existing wicket session's cart.

Thanks you.

-- 
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket sessions

2007-03-26 Thread Igor Vaynberg

why would the session be different? its stored in a cookie...

-igor


On 3/26/07, Scott Swank [EMAIL PROTECTED] wrote:


We are integrating our new Wicket app with our legacy applications as
follows:

1. legacy app makes an http post to wicket app
2. the bridge page catches this post, extracts the http parameters
and redirects to the relevant wicket page -- crucial point: we now
have a cart object in our wicket session that contains the item that
the user was browsing in the legacy app
3. the user goes back out to the legacy app
4. the user comes back into the wicket app

Question: is there any way to get the wicket session from step #2
again in step #4?  We want to add this 2nd item from one of the legacy
apps to our existing wicket session's cart.

Thanks you.

--
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket sessions

2007-03-26 Thread Eelco Hillenius
See wicket.protocol.http.servlet.WicketSessionFilter

Eelco

On 3/26/07, Scott Swank [EMAIL PROTECTED] wrote:
 We are integrating our new Wicket app with our legacy applications as follows:

 1. legacy app makes an http post to wicket app
 2. the bridge page catches this post, extracts the http parameters
 and redirects to the relevant wicket page -- crucial point: we now
 have a cart object in our wicket session that contains the item that
 the user was browsing in the legacy app
 3. the user goes back out to the legacy app
 4. the user comes back into the wicket app

 Question: is there any way to get the wicket session from step #2
 again in step #4?  We want to add this 2nd item from one of the legacy
 apps to our existing wicket session's cart.

 Thanks you.

 --
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini

Hey all,

I have a list view that contains a list of objects. these objects are
selectable via checkboxes. My problem is that i don't know how to know or
tell my code what objects have been selected. here is what i want to do.

i ahve a list of objects lets call them pens. So i have a list of 5
different types of pen objects. this object type is a property ( a list of
this object to be specific) in another object say a pencilCase.  i want a
user to select 0-many different pens which will then be placed in the pencil
case by the applicaition. what i am not sure how to do is associate each pen
in the list with what is selected. I seen on the wiki that i can add a
boolean property to the pens called selected. and make that what the
checkbox renders on. but i don't have access to the pens to do that. is
another some way i can do an association externally? I thought of creating a
separate list of booleans variables that i can compare side by side with the
list of pens. selection of check boxes will set the booleans in that list.
then look at what is true and go get the pen in the pens list at that
position and do what i got to do with it. however I think this method 1- may
not work and 2 - is to elementary and not very professional. I am sure there
is another way to do this. Please advise.


-B
-- 
View this message in context: 
http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Igor Vaynberg

please search mail archives before posting

http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784

-igor


On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:



Hey all,

I have a list view that contains a list of objects. these objects are
selectable via checkboxes. My problem is that i don't know how to know or
tell my code what objects have been selected. here is what i want to do.

i ahve a list of objects lets call them pens. So i have a list of 5
different types of pen objects. this object type is a property ( a list of
this object to be specific) in another object say a pencilCase.  i want a
user to select 0-many different pens which will then be placed in the
pencil
case by the applicaition. what i am not sure how to do is associate each
pen
in the list with what is selected. I seen on the wiki that i can add a
boolean property to the pens called selected. and make that what the
checkbox renders on. but i don't have access to the pens to do that. is
another some way i can do an association externally? I thought of creating
a
separate list of booleans variables that i can compare side by side with
the
list of pens. selection of check boxes will set the booleans in that list.
then look at what is true and go get the pen in the pens list at that
position and do what i got to do with it. however I think this method 1-
may
not work and 2 - is to elementary and not very professional. I am sure
there
is another way to do this. Please advise.


-B
--
View this message in context:
http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini

I don't quite grasp the concepts used in that tread. from what i understand i
should create a separate model that takes the model that has to get set(the
model that is selected via checkbox) in the object i'm making, and places it
in a collection if it is selected. Is this correct?

-B



igor.vaynberg wrote:
 
 please search mail archives before posting
 
 http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784
 
 -igor
 
 
 On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:


 Hey all,

 I have a list view that contains a list of objects. these objects are
 selectable via checkboxes. My problem is that i don't know how to know or
 tell my code what objects have been selected. here is what i want to do.

 i ahve a list of objects lets call them pens. So i have a list of 5
 different types of pen objects. this object type is a property ( a list
 of
 this object to be specific) in another object say a pencilCase.  i want a
 user to select 0-many different pens which will then be placed in the
 pencil
 case by the applicaition. what i am not sure how to do is associate each
 pen
 in the list with what is selected. I seen on the wiki that i can add a
 boolean property to the pens called selected. and make that what the
 checkbox renders on. but i don't have access to the pens to do that. is
 another some way i can do an association externally? I thought of
 creating
 a
 separate list of booleans variables that i can compare side by side with
 the
 list of pens. selection of check boxes will set the booleans in that
 list.
 then look at what is true and go get the pen in the pens list at that
 position and do what i got to do with it. however I think this method 1-
 may
 not work and 2 - is to elementary and not very professional. I am sure
 there
 is another way to do this. Please advise.


 -B
 --
 View this message in context:
 http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9682170
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] no public field or method named onfocus message

2007-03-26 Thread jamieballing

We have a problem with a page that has an applet on it. The issue only occurs
in Firefox (it works in IE7). 

If I click on a link that brings up a modal window, I get an error in the
debug output indicating that it can't find a public onfocus event. The
debug output appears below:
---
INFO: Initiating Ajax GET request on
/app?wicket:interface=:1:content:searchResultListerPanel:listerForm:dataView:1:documentDetail:actionsPickList:optionListView:4:optionLink::IBehaviorListenerwicket:behaviorId=1random=0.0007002777531609494
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (1073 characters)
INFO:
?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
id=content_searchResultListerPanel_documentManagementModal ![CDATA[div
style=display:none
id=content_searchResultListerPanel_documentManagementModal
div
id=content_searchResultListerPanel_documentManagementModal_content
TODO
/div
/div]]/componentevaluate![CDATA[var element =
document.getElementById(content_searchResultListerPanel_documentManagementModal_content);
var settings = new Object();
settings.minWidth=200;
settings.minHeight=200;
settings.className=w_blue;
settings.width=600;
settings.height=600;
settings.resizable=true;
settings.element = element;
settings.cookieId=modal-window-8207246;
settings.title=This is a placholder;
settings.mask=semi-transparent;
settings.onClose = function() { var
wcall=wicketAjaxGet('/app?wicket:interface=:1:content:searchResultListerPanel:documentManagementModal::IBehaviorListenerwicket:behaviorId=1',
function() { }, function() { }); };
Wicket.Window.create(settings).show();
]]/evaluate/ajax-response
INFO: Response parsed. Now invoking steps...
ERROR: Error while parsing response: Java class
com.test.wicket.panel.upload.applet.FileDropApplet has no public field or
method named onfocus
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
---
Just for kicks, I added a couple methods named getOnfocus() and
onfocus() that return strings in the FileDropApplet class, but it didn't
seem to make any difference.

Do you have any thoughts or suggestions for what my be causing this?

Many thanks,
Jamie

-- 
View this message in context: 
http://www.nabble.com/no-public-field-or-method-named-%22onfocus%22-message-tf3469746.html#a9682250
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Igor Vaynberg

if you dont grasp the concepts perhaps you should read the wiki page on
models

the concept is:

since the checkbox works by setting/clearing a boolean the model translates
a set boolean-insert into collection and clear boolean-remove from
collection.

there is explanation there, try to read that too, not just look at the code.

-igor


On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:



I don't quite grasp the concepts used in that tread. from what i
understand i
should create a separate model that takes the model that has to get
set(the
model that is selected via checkbox) in the object i'm making, and places
it
in a collection if it is selected. Is this correct?

-B



igor.vaynberg wrote:

 please search mail archives before posting


http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784

 -igor


 On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:


 Hey all,

 I have a list view that contains a list of objects. these objects are
 selectable via checkboxes. My problem is that i don't know how to know
or
 tell my code what objects have been selected. here is what i want to
do.

 i ahve a list of objects lets call them pens. So i have a list of 5
 different types of pen objects. this object type is a property ( a list
 of
 this object to be specific) in another object say a pencilCase.  i want
a
 user to select 0-many different pens which will then be placed in the
 pencil
 case by the applicaition. what i am not sure how to do is associate
each
 pen
 in the list with what is selected. I seen on the wiki that i can add a
 boolean property to the pens called selected. and make that what the
 checkbox renders on. but i don't have access to the pens to do that. is
 another some way i can do an association externally? I thought of
 creating
 a
 separate list of booleans variables that i can compare side by side
with
 the
 list of pens. selection of check boxes will set the booleans in that
 list.
 then look at what is true and go get the pen in the pens list at that
 position and do what i got to do with it. however I think this method
1-
 may
 not work and 2 - is to elementary and not very professional. I am sure
 there
 is another way to do this. Please advise.


 -B
 --
 View this message in context:

http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9682170
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Jaime De La Jara
Igor, unfortunely I haven't been able to use the solution proposed. I copied 
and pasted the code for the getCallbackUrl method but it had a minor typo, but 
after I corrected and reloaded the page with the autocomplete field the browser 
(IE) throws a javascript error. The following works (using a hard code value) :

return super.getCallbackUrl() + limiter=1415; 

but If I use this :

return super.getCallbackUrl() + ' + 'numeroFact=' + 
document.getElementById('numero').value + ';

or

return super.getCallbackUrl() + numeroFact=' + 
document.getElementById(\numero\).value + ';

I get an  when getting the parameter from the request.

The code generated in the page is the following :


new Wicket.AutoComplete('indexForm_proveedores',

'/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListenerwicket:behaviorId=1wicket:ignoreIfNotActive=truelimiter='
 + document.getElementById('numero').value + '');

It seems the retrieval of the field is returning null !.

The field is defined as follows in the page :

input wicket:id=numero type=text class=tipo size=12

and in the Java code :

add(new TextField(numero)
  {
public String getMarkupId()
{
 return numero;
}
}.add(new NumeroFacturaValidador()).
  add(StringValidator.maximumLength(12)).
  setOutputMarkupId(true).add(new FieldFocusBehavior()));


I don't know what I'm doing wrong, any help would be greatly appreciated.

Jaime.







Jaime De La Jara [EMAIL PROTECTED] wrote: Absolutely !, thanks a lot Igor, 
I'll try it right now. I agree that is an uncommon use case and it doesn't 
deserve an api change and a custom solution is what is needed.

Jaime.

Igor Vaynberg [EMAIL PROTECTED] wrote: ok, this is a bit tricky but is def 
doable. i dont think this is a very common usecase, so i dont think we will 
create all the factories/etc for you to be able to do this out of the box 
because in most cases it will just be api bloat. 

that said, although not trivial it is still def very possible

start with extending the autocompletebehavior
override getcallbackurl and do something like
return 
super.getcallbackurl()++'limiter='+document.getelementbyid('someid').value); 

so now whenever the url is invoked for the autocomplete it will also contain a 
limiter param whose value  will be the value of that textfield - make sure 
someid is the id of that textfield.

then simply create your own component, or add the behavior directly to a 
textfield, see AutoCompleteTextField source - its rather trivial. 

now in your getchoices() you can do getrequest().getparameter(limiter) and 
that will give you that extra value you need to filter

make sense?

-igor


 On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote: Basically what I need 
is to narrow the possible choices of the autocomplete field, depending on the 
value the user entered in the other field (which is a normal field).
This is a user requirement to simplify their data entry, in this case the 
normal field is an  invoice number and the autocomplete field corresponds to 
the vendor name, so if the user enters invoice number 0189, and in the 
autocomplete he types E the list displayed should show only the vendors whose 
name start with an E and 
have an invoice numbered 0189.
Thanks,

Jaime.

Igor Vaynberg  [EMAIL PROTECTED] wrote:
 On 3/26/07,  Jaime De La Jara [EMAIL PROTECTED] wrote:
  Hi, I have a form with some fields and a AutoCompleteTextField that is 
working nice, however now I need to retrieve the value of a TextField from this 
AutoCompleteTextField so I can restrict the values shown for autocompletion. Is 
this possible?   
umm...isnt that what the autocomplete is for? you are in control of the 
choices, so why would you need to further restrict them?

-igor

 

  in the affirmative case, could you give me a hint?
Thanks,

Jaime.
   

-
Don't be flakey.  Get Yahoo! Mail for Mobile and 
 always stay connected to friends. 

- 
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your 
opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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
  

Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Jaime De La Jara
Sorry in the last post I had a type instead of limiter=1415 it should be 
numFact=1415, I'm using numFact as the request variable.

Jaime De La Jara [EMAIL PROTECTED] wrote: Igor, unfortunely I haven't been 
able to use the solution proposed. I copied and pasted the code for the 
getCallbackUrl method but it had a minor typo, but after I corrected and 
reloaded the page with the autocomplete field the browser (IE) throws a 
javascript error. The following works (using a hard code value) :

return super.getCallbackUrl() + limiter=1415; 

but If I use this :

return super.getCallbackUrl() + ' + 'numeroFact=' + 
document.getElementById('numero').value + ';

or

return super.getCallbackUrl() + numeroFact=' + 
document.getElementById(\numero\).value + ';

I get an  when getting the parameter from the request.

The code generated in the page is the following :


new Wicket.AutoComplete('indexForm_proveedores',

'/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListenerwicket:behaviorId=1wicket:ignoreIfNotActive=truelimiter='
 +  document.getElementById('numero').value + '');

It seems the retrieval of the field is returning null !.

The field is defined as follows in the page :

input wicket:id=numero type=text class=tipo size=12

and in the Java code :

add(new TextField(numero)
  {
public String getMarkupId()
{
 return numero;
}
 }.add(new NumeroFacturaValidador()).
  add(StringValidator.maximumLength(12)).
  setOutputMarkupId(true).add(new FieldFocusBehavior()));


I don't know what I'm doing wrong, any help would be greatly appreciated.

Jaime.







Jaime De La Jara [EMAIL PROTECTED] wrote: Absolutely !, thanks a lot Igor, 
I'll try it right now. I agree that is an uncommon use case and it doesn't 
deserve an api change and a custom solution is what is needed.

Jaime.

Igor Vaynberg [EMAIL PROTECTED]  wrote: ok, this is a bit tricky but is def 
doable. i dont think this is a very common usecase, so i dont think we will 
create all the factories/etc for you to be able to do this out of the box 
because in most cases it will just be api bloat. 

that said, although not trivial it is still def very possible

start with extending the autocompletebehavior
override getcallbackurl and do something like
return 
super.getcallbackurl()++'limiter='+document.getelementbyid('someid').value); 

so now whenever the url is invoked for the autocomplete it will also contain a 
limiter param whose value  will be the value of that textfield - make sure 
someid is the id of that textfield.

then simply create your own component, or add the behavior directly to a 
textfield, see AutoCompleteTextField source - its rather trivial. 

now in your  getchoices() you can do getrequest().getparameter(limiter) and 
that will give you that extra value you need to filter

make sense?

-igor


 On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote: Basically what I need 
is to narrow the possible choices of the autocomplete field, depending on the 
value the user entered in the other field (which is a normal field).
This is a user requirement to simplify their data entry, in this case the 
normal field is an  invoice number and the autocomplete field corresponds to 
the vendor name, so if the user enters invoice number 0189, and in the 
autocomplete he types E the list displayed should show only the vendors whose 
name start with an E and 
have an  invoice numbered 0189.
Thanks,

Jaime.

Igor Vaynberg  [EMAIL PROTECTED] wrote:
 On 3/26/07,  Jaime De La Jara [EMAIL PROTECTED] wrote:
  Hi, I have a form with some fields and a AutoCompleteTextField that is 
working  nice, however now I need to retrieve the value of a TextField from 
this AutoCompleteTextField so I can restrict the values shown for 
autocompletion. Is this possible?   
umm...isnt that what the autocomplete is for? you are in control of the 
choices, so why would you need to further restrict them?

-igor

 

  in the affirmative case, could you give me a hint?
Thanks,

Jaime.
   

-
Don't be flakey.  Get Yahoo! Mail for Mobile and 
 always stay connected to  friends. 

- 
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your 
opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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 

Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Igor Vaynberg

your textfield doesnt have an id attribute defined, so
docuement.getelemetnbyid is not finding it
-igor


On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:


Sorry in the last post I had a type instead of limiter=1415 it should be
numFact=1415, I'm using numFact as the request variable.

*Jaime De La Jara [EMAIL PROTECTED]* wrote:

Igor, unfortunely I haven't been able to use the solution proposed. I
copied and pasted the code for the getCallbackUrl method but it had a minor
typo, but after I corrected and reloaded the page with the autocomplete
field the browser (IE) throws a javascript error. The following works (using
a hard code value) :

return super.getCallbackUrl() + limiter=1415;

but If I use this :

return super.getCallbackUrl() + ' + 'numeroFact=' +
document.getElementById('numero').value + ';

or

return super.getCallbackUrl() + numeroFact=' + 
document.getElementById(\numero\).value
+ ';

I get an  when getting the parameter from the request.

The code generated in the page is the following :


new Wicket.AutoComplete('indexForm_proveedores',

'/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListenerwicket:behaviorId=1wicket:ignoreIfNotActive=truelimiter='
+ document.getElementById('numero').value + '');

It seems the retrieval of the field is returning null !.

The field is defined as follows in the page :

input wicket:id=numero type=text class=tipo size=12

and in the Java code :

add(new TextField(numero)
  {
public String getMarkupId()
{
 return numero;
}
}.add(new NumeroFacturaValidador()).
  add(StringValidator.maximumLength(12)).
  setOutputMarkupId(true).add(new
FieldFocusBehavior()));


I don't know what I'm doing wrong, any help would be greatly appreciated.

Jaime.







*Jaime De La Jara [EMAIL PROTECTED]* wrote:

Absolutely !, thanks a lot Igor, I'll try it right now. I agree that is an
uncommon use case and it doesn't deserve an api change and a custom solution
is what is needed.

Jaime.

*Igor Vaynberg [EMAIL PROTECTED]* wrote:

ok, this is a bit tricky but is def doable. i dont think this is a very
common usecase, so i dont think we will create all the factories/etc for you
to be able to do this out of the box because in most cases it will just be
api bloat.

that said, although not trivial it is still def very possible

start with extending the autocompletebehavior
override getcallbackurl and do something like
return 
super.getcallbackurl()++'limiter='+document.getelementbyid('someid').value);


so now whenever the url is invoked for the autocomplete it will also
contain a limiter param whose value will be the value of that textfield -
make sure someid is the id of that textfield.

then simply create your own component, or add the behavior directly to a
textfield, see AutoCompleteTextField source - its rather trivial.

now in your getchoices() you can do getrequest().getparameter(limiter)
and that will give you that extra value you need to filter

make sense?

-igor


On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:

 Basically what I need is to narrow the possible choices of the
 autocomplete field, depending on the value the user entered in the other
 field (which is a normal field).
 This is a user requirement to simplify their data entry, in this case
 the normal field is an invoice number and the autocomplete field corresponds
 to the vendor name, so if the user enters invoice number 0189, and in the
 autocomplete he types E the list displayed should show only the vendors
 whose name start with an E and
 have an invoice numbered 0189.
 Thanks,

 Jaime.

 *Igor Vaynberg  [EMAIL PROTECTED]* wrote:

 On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:

  Hi, I have a form with some fields and a AutoCompleteTextField that is
  working nice, however now I need to retrieve the value of a TextField from
  this AutoCompleteTextField so I can restrict the values shown for
  autocompletion. Is this possible?


 umm...isnt that what the autocomplete is for? you are in control of the
 choices, so why would you need to further restrict them?

 -igor



 in the affirmative case, could you give me a hint?
  Thanks,
 
  Jaime.
  --
  Don't be flakey. Get Yahoo! Mail for 
Mobilehttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailand
  always stay 
connectedhttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailto friends.
 
  -
 
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  

Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Jaime De La Jara
No, it has one (returned by getMarkupId() and generated by 
setOutputMarkup(true)).  

This is the generated html :
 
 input value= maxlength=16 type=text class=tipo size=12 
name=numero id=numero
 scriptdocument.getElementById('numero').focus();/script
 

The strange thing is that if I set the value of the field in the model so the 
page loads with the normal field populated, then the code works returning the 
value I set in the page (in Java).


It seems that the javascript is not getting the input typed in the field.



Igor Vaynberg [EMAIL PROTECTED] wrote: your textfield doesnt have an id 
attribute defined, so docuement.getelemetnbyid is not finding it
-igor


On 3/26/07, Jaime De La Jara  [EMAIL PROTECTED] wrote:Sorry in the last post 
I had a type instead of limiter=1415 it should be numFact=1415, I'm using 
numFact as the request variable. 

Jaime De La Jara [EMAIL PROTECTED]  wrote:
 Igor, unfortunely I haven't been able to use the solution proposed. I copied 
and pasted the code for the getCallbackUrl method but it had a minor typo, but 
after I corrected and reloaded the page with the autocomplete field the browser 
(IE) throws a javascript error. The following works (using a hard code value) : 

return super.getCallbackUrl() + limiter=1415; 

but If I use this :

return super.getCallbackUrl() + ' + 'numeroFact=' + 
document.getElementById('numero').value + '; 

or

return super.getCallbackUrl() + numeroFact=' + 
document.getElementById(\numero\).value + ';

I get an  when getting the  parameter from the request.

The code generated in the page is the following :


new Wicket.AutoComplete('indexForm_proveedores',

'/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListenerwicket:behaviorId=1wicket:ignoreIfNotActive=truelimiter='
 +   document.getElementById('numero').value + '');

It seems the retrieval of the field is returning null !.

The field is defined as follows in the page :

input wicket:id=numero type=text class=tipo size=12 

and in the Java code :

add(new TextField(numero)
  {
public String getMarkupId()
 {
 return numero;
}
 }.add(new NumeroFacturaValidador()).
  add(StringValidator.maximumLength(12)).
   setOutputMarkupId(true).add(new FieldFocusBehavior()));


I don't know what I'm doing wrong, any help would be greatly appreciated.

Jaime.







 Jaime De La Jara [EMAIL PROTECTED] wrote:  Absolutely !, thanks a lot Igor, 
I'll try it right now. I agree that is an uncommon use case and it doesn't 
deserve an api change and a custom solution is what is needed.

Jaime.

Igor Vaynberg  [EMAIL PROTECTED]  wrote:  ok, this is a bit tricky but is def 
doable. i dont think this is a very common usecase, so i dont think we will 
create all the factories/etc for you to be able to do this out of the box 
because in most cases it will just be api bloat.  

that said, although not trivial it is still def very possible

start with extending the autocompletebehavior
override getcallbackurl and do something like
return 
super.getcallbackurl()++'limiter='+document.getelementbyid('someid').value); 
 

so now whenever  the url is invoked for the autocomplete it will also contain a 
limiter param whose value  will be the value of that textfield - make sure 
someid is the id of that textfield.

then simply create your own component, or add the behavior directly to a 
textfield, see AutoCompleteTextField source - its rather trivial.  

now in your  getchoices() you can do getrequest().getparameter(limiter) and 
that will give you that extra value you need to filter

make sense?

-igor


  On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:  Basically what I 
need is to narrow the possible choices of the autocomplete field, depending on 
the value the user entered in the other field (which is a normal  field).
This is a user requirement to simplify their data entry, in this case the 
normal field is an  invoice number and the autocomplete field corresponds to 
the vendor name, so if the user enters invoice number 0189, and in the 
autocomplete he types E the list displayed should show only the vendors whose 
name start with an E and  
have an  invoice numbered 0189.
Thanks,

Jaime.

Igor Vaynberg   [EMAIL PROTECTED] wrote:
 On 3/26/07,  Jaime De La Jara  [EMAIL PROTECTED] wrote:
   Hi, I have a form with some fields and a AutoCompleteTextField that is 
working  nice, however now I need to retrieve the value of a TextField from 
this AutoCompleteTextField so I can restrict the values shown for 
autocompletion. Is this possible?
umm...isnt that what the autocomplete is for? you are in control of the 
choices, so why would you need to further restrict them?

-igor

 

   in the affirmative case, could you give me a hint?
Thanks,

Jaime.
   

-
Don't be flakey.   

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini

I read the thread again and still don't quite understand. I thought i
understod models but maybe i don't i am going to read the wiki on that now.
but in between this is what i think all the tread is saying tell me if i'm
wrong or not. 

its saying that you create a custom model that takes as an argument in the
constructor the object/model that you want to tie to a check box. this model
is used as the model that we pass to our check box component. the setObject
method gets called at the push of the submit button and sets that
object/model as part of the collection if it is selected. is this correct? 

-B 



igor.vaynberg wrote:
 
 if you dont grasp the concepts perhaps you should read the wiki page on
 models
 
 the concept is:
 
 since the checkbox works by setting/clearing a boolean the model
 translates
 a set boolean-insert into collection and clear boolean-remove from
 collection.
 
 there is explanation there, try to read that too, not just look at the
 code.
 
 -igor
 
 
 On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:


 I don't quite grasp the concepts used in that tread. from what i
 understand i
 should create a separate model that takes the model that has to get
 set(the
 model that is selected via checkbox) in the object i'm making, and places
 it
 in a collection if it is selected. Is this correct?

 -B



 igor.vaynberg wrote:
 
  please search mail archives before posting
 
 
 http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784
 
  -igor
 
 
  On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:
 
 
  Hey all,
 
  I have a list view that contains a list of objects. these objects are
  selectable via checkboxes. My problem is that i don't know how to know
 or
  tell my code what objects have been selected. here is what i want to
 do.
 
  i ahve a list of objects lets call them pens. So i have a list of 5
  different types of pen objects. this object type is a property ( a
 list
  of
  this object to be specific) in another object say a pencilCase.  i
 want
 a
  user to select 0-many different pens which will then be placed in the
  pencil
  case by the applicaition. what i am not sure how to do is associate
 each
  pen
  in the list with what is selected. I seen on the wiki that i can add a
  boolean property to the pens called selected. and make that what the
  checkbox renders on. but i don't have access to the pens to do that.
 is
  another some way i can do an association externally? I thought of
  creating
  a
  separate list of booleans variables that i can compare side by side
 with
  the
  list of pens. selection of check boxes will set the booleans in that
  list.
  then look at what is true and go get the pen in the pens list at that
  position and do what i got to do with it. however I think this method
 1-
  may
  not work and 2 - is to elementary and not very professional. I am sure
  there
  is another way to do this. Please advise.
 
 
  -B
  --
  View this message in context:
 
 http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
  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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9682170
 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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 

Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Igor Vaynberg

if you feel like creating a quickstart i can take a look at that

-igor


On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:


No, it has one (returned by getMarkupId() and generated by
setOutputMarkup(true)).

This is the generated html :

input value= maxlength=16 type=text class=tipo size=12
name=numero id=numero
scriptdocument.getElementById('numero').focus();/script


The strange thing is that if I set the value of the field in the model so
the page loads with the normal field populated, then the code works
returning the value I set in the page (in Java).


It seems that the javascript is not getting the input typed in the field.



*Igor Vaynberg [EMAIL PROTECTED]* wrote:

your textfield doesnt have an id attribute defined, so
docuement.getelemetnbyid is not finding it
-igor


On 3/26/07, Jaime De La Jara  [EMAIL PROTECTED] wrote:

 Sorry in the last post I had a type instead of limiter=1415 it should be
 numFact=1415, I'm using numFact as the request variable.

 *Jaime De La Jara [EMAIL PROTECTED] * wrote:

 Igor, unfortunely I haven't been able to use the solution proposed. I
 copied and pasted the code for the getCallbackUrl method but it had a minor
 typo, but after I corrected and reloaded the page with the autocomplete
 field the browser (IE) throws a javascript error. The following works (using
 a hard code value) :

 return super.getCallbackUrl() + limiter=1415;

 but If I use this :

 return super.getCallbackUrl() + ' + 'numeroFact=' +
 document.getElementById('numero').value + ';

 or

 return super.getCallbackUrl() + numeroFact=' + 
document.getElementById(\numero\).value
 + ';

 I get an  when getting the parameter from the request.

 The code generated in the page is the following :


 new Wicket.AutoComplete('indexForm_proveedores',

 
'/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListenerwicket:behaviorId=1wicket:ignoreIfNotActive=truelimiter='
 + document.getElementById('numero').value + '');

 It seems the retrieval of the field is returning null !.

 The field is defined as follows in the page :

 input wicket:id=numero type=text class=tipo size=12

 and in the Java code :

 add(new TextField(numero)
   {
 public String getMarkupId()
 {
  return numero;
 }
 }.add(new NumeroFacturaValidador()).
   add(StringValidator.maximumLength(12)).
   setOutputMarkupId(true).add(new
 FieldFocusBehavior()));


 I don't know what I'm doing wrong, any help would be greatly
 appreciated.

 Jaime.







 * Jaime De La Jara [EMAIL PROTECTED]* wrote:

 Absolutely !, thanks a lot Igor, I'll try it right now. I agree that is
 an uncommon use case and it doesn't deserve an api change and a custom
 solution is what is needed.

 Jaime.

 *Igor Vaynberg  [EMAIL PROTECTED]* wrote:

 ok, this is a bit tricky but is def doable. i dont think this is a very
 common usecase, so i dont think we will create all the factories/etc for you
 to be able to do this out of the box because in most cases it will just be
 api bloat.

 that said, although not trivial it is still def very possible

 start with extending the autocompletebehavior
 override getcallbackurl and do something like
 return 
super.getcallbackurl()++'limiter='+document.getelementbyid('someid').value);


 so now whenever the url is invoked for the autocomplete it will also
 contain a limiter param whose value will be the value of that textfield -
 make sure someid is the id of that textfield.

 then simply create your own component, or add the behavior directly to a
 textfield, see AutoCompleteTextField source - its rather trivial.

 now in your getchoices() you can do getrequest().getparameter(limiter)
 and that will give you that extra value you need to filter

 make sense?

 -igor


 On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:
 
  Basically what I need is to narrow the possible choices of the
  autocomplete field, depending on the value the user entered in the other
  field (which is a normal field).
  This is a user requirement to simplify their data entry, in this case
  the normal field is an invoice number and the autocomplete field corresponds
  to the vendor name, so if the user enters invoice number 0189, and in the
  autocomplete he types E the list displayed should show only the vendors
  whose name start with an E and
  have an invoice numbered 0189.
  Thanks,
 
  Jaime.
 
  *Igor Vaynberg  [EMAIL PROTECTED]* wrote:
 
  On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:
 
   Hi, I have a form with some fields and a AutoCompleteTextField that
   is working nice, however now I need to retrieve the value of a TextField
   from this AutoCompleteTextField so I can restrict the values shown for
   autocompletion. Is this possible?
 
 
  umm...isnt that what the autocomplete is for? you are in control of
  the choices, so 

[Wicket-user] wicket-dev topics

2007-03-26 Thread Scott Swank
Would it be appropriate to post position(s) for Wicket developers on the list?

-- 
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Igor Vaynberg

On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:



its saying that you create a custom model that takes as an argument in the
constructor the object/model that you want to tie to a check box. this
model
is used as the model that we pass to our check box component. the
setObject
method gets called at the push of the submit button and sets that
object/model as part of the collection if it is selected. is this correct?



sounds about right.

-igor



-B




igor.vaynberg wrote:

 if you dont grasp the concepts perhaps you should read the wiki page on
 models

 the concept is:

 since the checkbox works by setting/clearing a boolean the model
 translates
 a set boolean-insert into collection and clear boolean-remove from
 collection.

 there is explanation there, try to read that too, not just look at the
 code.

 -igor


 On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:


 I don't quite grasp the concepts used in that tread. from what i
 understand i
 should create a separate model that takes the model that has to get
 set(the
 model that is selected via checkbox) in the object i'm making, and
places
 it
 in a collection if it is selected. Is this correct?

 -B



 igor.vaynberg wrote:
 
  please search mail archives before posting
 
 

http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784
 
  -igor
 
 
  On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:
 
 
  Hey all,
 
  I have a list view that contains a list of objects. these objects
are
  selectable via checkboxes. My problem is that i don't know how to
know
 or
  tell my code what objects have been selected. here is what i want to
 do.
 
  i ahve a list of objects lets call them pens. So i have a list of 5
  different types of pen objects. this object type is a property ( a
 list
  of
  this object to be specific) in another object say a pencilCase.  i
 want
 a
  user to select 0-many different pens which will then be placed in
the
  pencil
  case by the applicaition. what i am not sure how to do is associate
 each
  pen
  in the list with what is selected. I seen on the wiki that i can add
a
  boolean property to the pens called selected. and make that what the
  checkbox renders on. but i don't have access to the pens to do that.
 is
  another some way i can do an association externally? I thought of
  creating
  a
  separate list of booleans variables that i can compare side by side
 with
  the
  list of pens. selection of check boxes will set the booleans in that
  list.
  then look at what is true and go get the pen in the pens list at
that
  position and do what i got to do with it. however I think this
method
 1-
  may
  not work and 2 - is to elementary and not very professional. I am
sure
  there
  is another way to do this. Please advise.
 
 
  -B
  --
  View this message in context:
 

http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
  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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:

http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9682170
 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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 Take Surveys. Earn Cash. 

Re: [Wicket-user] wicket-dev topics

2007-03-26 Thread Martijn Dashorst
As in job listings? Sure. As long as it is wicket expertise you're
looking for, and not a generic 'we want an engineer that knows 
insert list of frameworks'

Martijn

On 3/27/07, Scott Swank [EMAIL PROTECTED] wrote:
 Would it be appropriate to post position(s) for Wicket developers on the list?

 --
 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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini

Great so i do understand somewhat. I am reading the wiki on models now and
its becoming more clear. I thought i knoew but apparently i didn't know the
lowlevel workings. If i get stuck i will be seeking more help. Thanks a lot

-B



igor.vaynberg wrote:
 
 On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:


 its saying that you create a custom model that takes as an argument in
 the
 constructor the object/model that you want to tie to a check box. this
 model
 is used as the model that we pass to our check box component. the
 setObject
 method gets called at the push of the submit button and sets that
 object/model as part of the collection if it is selected. is this
 correct?
 
 
 sounds about right.
 
 -igor
 
 
 
 -B



 igor.vaynberg wrote:
 
  if you dont grasp the concepts perhaps you should read the wiki page on
  models
 
  the concept is:
 
  since the checkbox works by setting/clearing a boolean the model
  translates
  a set boolean-insert into collection and clear boolean-remove from
  collection.
 
  there is explanation there, try to read that too, not just look at the
  code.
 
  -igor
 
 
  On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:
 
 
  I don't quite grasp the concepts used in that tread. from what i
  understand i
  should create a separate model that takes the model that has to get
  set(the
  model that is selected via checkbox) in the object i'm making, and
 places
  it
  in a collection if it is selected. Is this correct?
 
  -B
 
 
 
  igor.vaynberg wrote:
  
   please search mail archives before posting
  
  
 
 http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784
  
   -igor
  
  
   On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:
  
  
   Hey all,
  
   I have a list view that contains a list of objects. these objects
 are
   selectable via checkboxes. My problem is that i don't know how to
 know
  or
   tell my code what objects have been selected. here is what i want
 to
  do.
  
   i ahve a list of objects lets call them pens. So i have a list of 5
   different types of pen objects. this object type is a property ( a
  list
   of
   this object to be specific) in another object say a pencilCase.  i
  want
  a
   user to select 0-many different pens which will then be placed in
 the
   pencil
   case by the applicaition. what i am not sure how to do is associate
  each
   pen
   in the list with what is selected. I seen on the wiki that i can
 add
 a
   boolean property to the pens called selected. and make that what
 the
   checkbox renders on. but i don't have access to the pens to do
 that.
  is
   another some way i can do an association externally? I thought of
   creating
   a
   separate list of booleans variables that i can compare side by side
  with
   the
   list of pens. selection of check boxes will set the booleans in
 that
   list.
   then look at what is true and go get the pen in the pens list at
 that
   position and do what i got to do with it. however I think this
 method
  1-
   may
   not work and 2 - is to elementary and not very professional. I am
 sure
   there
   is another way to do this. Please advise.
  
  
   -B
   --
   View this message in context:
  
 
 http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
   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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9682170
  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 

Re: [Wicket-user] wicket-dev topics

2007-03-26 Thread Scott Swank
Vegas.com is looking for Java developers with Wicket experience.  The
listed position does not mention Wicket, but all of our on-going web
development is in Wicket.

http://www.vegas.com/about/jobs/jobdescription_softwaredev.html.html

Our stack looks like:

wicket
service layer
domain model
hibernate
db

Kindly mention me if you apply -- there may or may not still be some
sort of bonus in it for me.  :)  And of course ask me if you have any
questions.

Cheers,
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Eelco Hillenius
java.lang.Boolean?

Eelco

On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:

 one more thing...i see wehn you implement the IModel class in the thread, you
 use a data type called Boolean. What is this? is this something (an enum
 class) that you create else wehre?

 -B



 igor.vaynberg wrote:
 
  On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:
 
 
  its saying that you create a custom model that takes as an argument in
  the
  constructor the object/model that you want to tie to a check box. this
  model
  is used as the model that we pass to our check box component. the
  setObject
  method gets called at the push of the submit button and sets that
  object/model as part of the collection if it is selected. is this
  correct?
 
 
  sounds about right.
 
  -igor
 
 
 
  -B
 
 
 
  igor.vaynberg wrote:
  
   if you dont grasp the concepts perhaps you should read the wiki page on
   models
  
   the concept is:
  
   since the checkbox works by setting/clearing a boolean the model
   translates
   a set boolean-insert into collection and clear boolean-remove from
   collection.
  
   there is explanation there, try to read that too, not just look at the
   code.
  
   -igor
  
  
   On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:
  
  
   I don't quite grasp the concepts used in that tread. from what i
   understand i
   should create a separate model that takes the model that has to get
   set(the
   model that is selected via checkbox) in the object i'm making, and
  places
   it
   in a collection if it is selected. Is this correct?
  
   -B
  
  
  
   igor.vaynberg wrote:
   
please search mail archives before posting
   
   
  
  http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784
   
-igor
   
   
On 3/26/07, GS-ikiini [EMAIL PROTECTED] wrote:
   
   
Hey all,
   
I have a list view that contains a list of objects. these objects
  are
selectable via checkboxes. My problem is that i don't know how to
  know
   or
tell my code what objects have been selected. here is what i want
  to
   do.
   
i ahve a list of objects lets call them pens. So i have a list of 5
different types of pen objects. this object type is a property ( a
   list
of
this object to be specific) in another object say a pencilCase.  i
   want
   a
user to select 0-many different pens which will then be placed in
  the
pencil
case by the applicaition. what i am not sure how to do is associate
   each
pen
in the list with what is selected. I seen on the wiki that i can
  add
  a
boolean property to the pens called selected. and make that what
  the
checkbox renders on. but i don't have access to the pens to do
  that.
   is
another some way i can do an association externally? I thought of
creating
a
separate list of booleans variables that i can compare side by side
   with
the
list of pens. selection of check boxes will set the booleans in
  that
list.
then look at what is true and go get the pen in the pens list at
  that
position and do what i got to do with it. however I think this
  method
   1-
may
not work and 2 - is to elementary and not very professional. I am
  sure
there
is another way to do this. Please advise.
   
   
-B
--
View this message in context:
   
  
  http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
   --
   View this message in context:
  
  http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9682170
   Sent from the Wicket - User mailing list archive at 

Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-26 Thread Igor Vaynberg

the reason i wanted a quickstart is so that i can see the problem in
runtime. what you have sent over does not compile when i drop it into
quickstart as it contains your app-specific classes/daos/validators which
you have not included.

-igor


On 3/26/07, Jaime De La Jara [EMAIL PROTECTED] wrote:


Ok, here it goes, though it's not complete quickstart, maybe it can help
to show the context. The zip contains the page (index.html, Index.java)
and the autocomplete field and behaviour. Hope it can help to find what's
going on.
Thanks again,

Jaime.

*Igor Vaynberg [EMAIL PROTECTED]* wrote:

if you feel like creating a quickstart i can take a look at that

-igor


On 3/26/07, Jaime De La Jara  [EMAIL PROTECTED] wrote:

 No, it has one (returned by getMarkupId() and generated by
 setOutputMarkup(true)).

 This is the generated html :

 input value= maxlength=16 type=text class=tipo size=12
 name=numero id=numero
 script document.getElementById('numero').focus();/script


 The strange thing is that if I set the value of the field in the model
 so the page loads with the normal field populated, then the code works
 returning the value I set in the page (in Java).


 It seems that the javascript is not getting the input typed in the
 field.



 *Igor Vaynberg  [EMAIL PROTECTED]* wrote:

 your textfield doesnt have an id attribute defined, so
 docuement.getelemetnbyid is not finding it
 -igor


 On 3/26/07, Jaime De La Jara  [EMAIL PROTECTED] wrote:
 
  Sorry in the last post I had a type instead of limiter=1415 it should
  be numFact=1415, I'm using numFact as the request variable.
 
  *Jaime De La Jara  [EMAIL PROTECTED] * wrote:
 
  Igor, unfortunely I haven't been able to use the solution proposed. I
  copied and pasted the code for the getCallbackUrl method but it had a minor
  typo, but after I corrected and reloaded the page with the autocomplete
  field the browser (IE) throws a javascript error. The following works (using
  a hard code value) :
 
  return super.getCallbackUrl() + limiter=1415;
 
  but If I use this :
 
  return super.getCallbackUrl () + ' + 'numeroFact=' +
  document.getElementById('numero').value + ';
 
  or
 
  return super.getCallbackUrl() + numeroFact=' +
  document.getElementById(\numero\).value + ';
 
  I get an  when getting the parameter from the request.
 
  The code generated in the page is the following :
 
 
  new Wicket.AutoComplete('indexForm_proveedores',
 
  
'/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListenerwicket:behaviorId=1wicket:ignoreIfNotActive=truelimiter='
  + document.getElementById('numero').value + '');
 
  It seems the retrieval of the field is returning null !.
 
  The field is defined as follows in the page :
 
  input wicket:id=numero type=text class=tipo size=12
 
  and in the Java code :
 
  add(new TextField(numero)
{
  public String getMarkupId()
  {
   return numero;
  }
  }.add(new NumeroFacturaValidador()).
add(StringValidator.maximumLength(12)).
setOutputMarkupId(true).add(new
  FieldFocusBehavior()));
 
 
  I don't know what I'm doing wrong, any help would be greatly
  appreciated.
 
  Jaime.
 
 
 
 
 
 
 
  * Jaime De La Jara [EMAIL PROTECTED]* wrote:
 
  Absolutely !, thanks a lot Igor, I'll try it right now. I agree that
  is an uncommon use case and it doesn't deserve an api change and a custom
  solution is what is needed.
 
  Jaime.
 
  *Igor Vaynberg  [EMAIL PROTECTED]* wrote:
 
  ok, this is a bit tricky but is def doable. i dont think this is a
  very common usecase, so i dont think we will create all the factories/etc
  for you to be able to do this out of the box because in most cases it will
  just be api bloat.
 
  that said, although not trivial it is still def very possible
 
  start with extending the autocompletebehavior
  override getcallbackurl and do something like
  return 
super.getcallbackurl()++'limiter='+document.getelementbyid('someid').value);
 
 
  so now whenever the url is invoked for the autocomplete it will also
  contain a limiter param whose value will be the value of that textfield -
  make sure someid is the id of that textfield.
 
  then simply create your own component, or add the behavior directly to
  a textfield, see AutoCompleteTextField source - its rather trivial.
 
  now in your getchoices() you can do
  getrequest().getparameter(limiter) and that will give you that extra value
  you need to filter
 
  make sense?
 
  -igor
 
 
  On 3/26/07, Jaime De La Jara  [EMAIL PROTECTED] wrote:
  
   Basically what I need is to narrow the possible choices of the
   autocomplete field, depending on the value the user entered in the other
   field (which is a normal field).
   This is a user requirement to simplify their data entry, in this
   case the normal field is an invoice number and the 

Re: [Wicket-user] no public field or method named onfocus message

2007-03-26 Thread Matej Knopp
huh, i haven't really tested the code with applet. I guess i'd need a
quickstart so that i can reproduce this behavior to be able to fix it.

-Matej

On 3/26/07, jamieballing [EMAIL PROTECTED] wrote:

 We have a problem with a page that has an applet on it. The issue only occurs
 in Firefox (it works in IE7).

 If I click on a link that brings up a modal window, I get an error in the
 debug output indicating that it can't find a public onfocus event. The
 debug output appears below:
 ---
 INFO: Initiating Ajax GET request on
 /app?wicket:interface=:1:content:searchResultListerPanel:listerForm:dataView:1:documentDetail:actionsPickList:optionListView:4:optionLink::IBehaviorListenerwicket:behaviorId=1random=0.0007002777531609494
 INFO: Invoking pre-call handler(s)...
 INFO: Received ajax response (1073 characters)
 INFO:
 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=content_searchResultListerPanel_documentManagementModal ![CDATA[div
 style=display:none
 id=content_searchResultListerPanel_documentManagementModal
 div
 id=content_searchResultListerPanel_documentManagementModal_content
 TODO
 /div
 /div]]/componentevaluate![CDATA[var element =
 document.getElementById(content_searchResultListerPanel_documentManagementModal_content);
 var settings = new Object();
 settings.minWidth=200;
 settings.minHeight=200;
 settings.className=w_blue;
 settings.width=600;
 settings.height=600;
 settings.resizable=true;
 settings.element = element;
 settings.cookieId=modal-window-8207246;
 settings.title=This is a placholder;
 settings.mask=semi-transparent;
 settings.onClose = function() { var
 wcall=wicketAjaxGet('/app?wicket:interface=:1:content:searchResultListerPanel:documentManagementModal::IBehaviorListenerwicket:behaviorId=1',
 function() { }, function() { }); };
 Wicket.Window.create(settings).show();
 ]]/evaluate/ajax-response
 INFO: Response parsed. Now invoking steps...
 ERROR: Error while parsing response: Java class
 com.test.wicket.panel.upload.applet.FileDropApplet has no public field or
 method named onfocus
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...
 ---
 Just for kicks, I added a couple methods named getOnfocus() and
 onfocus() that return strings in the FileDropApplet class, but it didn't
 seem to make any difference.

 Do you have any thoughts or suggestions for what my be causing this?

 Many thanks,
 Jamie

 --
 View this message in context: 
 http://www.nabble.com/no-public-field-or-method-named-%22onfocus%22-message-tf3469746.html#a9682250
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AutoCompleteTextField bug?

2007-03-26 Thread Igor Vaynberg

hmm, you might be right. i dont think we url encode the input. please add an
rfe.

-igor


On 3/26/07, Michael Day [EMAIL PROTECTED] wrote:


Hi,

I think I found a bug in AutoCompleteTextField.  When I enter
anything with a % symbol, I get a null string passed to getChoices
(String).  I assume this has something to do with URL encoding (or
lack thereof), but I haven't looked any deeper.

I'm using Wicket 1.2.5.

Michael

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


Re: [Wicket-user] AutoCompleteTextField bug?

2007-03-26 Thread David Leangen

Well... that would almost explain the Japanese problem I'm having... but
why only one browser on 1 platform?

Weird...



On Mon, 2007-03-26 at 18:09 -0700, Igor Vaynberg wrote:
 hmm, you might be right. i dont think we url encode the input. please
 add an rfe.
 
 -igor
 
 
 On 3/26/07, Michael Day [EMAIL PROTECTED] wrote:
 Hi,
 
 I think I found a bug in AutoCompleteTextField.  When I enter 
 anything with a % symbol, I get a null string passed to
 getChoices
 (String).  I assume this has something to do with URL encoding
 (or
 lack thereof), but I haven't looked any deeper.
 
 I'm using Wicket 1.2.5.
 
 Michael
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your 
 opinions on IT  business topics through brief surveys-and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AutoComplete TextField broken

2007-03-26 Thread Lan Boon Ping

Hi Matej,

Sorry for my stupidity (I was adding it in a wrong page), your solution does
solve the problem.

Thanks.

Regards
Boon Ping

On 3/26/07, Matej Knopp [EMAIL PROTECTED] wrote:


that is really strange, can you check if the flag does force a new
request on backbutton? e.g. when you click back button, is there
another http request ?

-Matej

On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
 Hi,

 Thanks for your quick reply.

 Overriding configurReponse doesn't solve the problem. Unfortunately, we
 couldn't upgrade to new version of wicket for some reasons. Is there any
 workaround solution for this problem?


 Thanks

 Regards
 Boon Ping.

 On 3/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  That's an rather old version of wicket. You should really consider
  upgrading. Anyway, the problem you're describing is probably because
  firefox caches wrong state of the page.
 
  IMHO the best solution for this is to send no-store cache header to
  browser, e.g. override configureResponse of your page like this:
 
  protected void configureResponse()
  {
  final WebResponse response =
 getWebRequestCycle().getWebResponse();
  response.setHeader(Pragma, no-cache);
  response.setHeader(Cache-Control, no-store,
max-age=0,
 must-revalidate);
  }
 
  -Matej
 
  On 3/26/07, Lan Boon Ping [EMAIL PROTECTED] wrote:
   Hi, Matej Knopp!
  
   I'm using wicket-1.2.3.
  
   Thanks.
  
   Regards
   Boon Ping
  
  
   On 3/26/07, Matej Knopp  [EMAIL PROTECTED] wrote:
What wicket version are you using?
   
On 3/26/07, Lan Boon Ping  [EMAIL PROTECTED] wrote:
 Hi all,

 I have a problem in AutoComplete textfield, here are the use
cases.

 Use case A
 - test auto-complete field  - (works)
 - type www.google.com in URL bar and press enter to navigate
google
 main
 page.
 - click on back button back to auto-complete page
 - test auto-complete field - (works)

 Use case B
 - test auto-complete field - (works)
 - click on a non-bookmarkable link
 - click on back button back to auto-complete page
 - test auto-complete field - (broken)

  By the way, I'm using firefox.

 Can anyone tell me how to solve this problem?

 Thank You!

 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 

[Wicket-user] Custom XML markup

2007-03-26 Thread Toscano

Hello,

Sometime ago I was doing some tests for using Wicket with Backbase.
Basically, Backbase is XML which is processed within javascript rendering
some special interface controls.
I need to create custom Panels, so I can get the special XML Backbase needs.
For example, there is a replacement for the standard SELECT, which has the
following syntax:
b:combobox b:name=countryList b:name=Countries
b:combo-option b:value=1England/b:combo-option
b:combo-option b:value=2Spain/b:combo-option
/b:combobox

I made the following custom panel:
public class BackBaseComboBox extends Panel
{
public BackBaseComboBox (String id, List options)
{
super(id);
add (
new ListView(options, options)
{
// This method is called for each entry on the list
@Override protected void populateItem(ListItem item)
{
ComboBoxCell cell = (ComboBoxCell)
item.getModelObject();
item.add(new
SimpleAttributeModifier(b:value,cell.getValue()));
item.add(new Label(text, cell.getText()));
}
}
);
}
}

And the markup file:
wicket:panel
b:combo-option wicket:id=optionstext/b:combo-option
/wicket:panel

I add it to my page, and in the html markup I write:
 b:combobox wicket:id=customComboBox/b:combobox

But I have the following output:
b:combobox
b:combo b:value=1 option=Spanish/b:combo option=
b:combo b:value=2 option=English/b:combo option=
/b:combobox

I mean:
- The combo-option is treated as a new tag attribute, not as the name of the
tag. Is there any way of maintain that - there? 
- How can I output the text between the b:combo-box without having that 
span tags?

Also I think I'm not doing the things as they have to do... any suggestions?

Thank you very very much for all your effort and help,
Oskar

-- 
View this message in context: 
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685532
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Japanese does not work in Autocomplete (Firefox/Windows)

2007-03-26 Thread David Leangen

Just an update...

The problem does not occur on English Windows.

It occurred on 3 different machines running Japanese Windows XP.


I'm stumped...




On Tue, 2007-03-27 at 09:45 +0900, David Leangen wrote:
 Hello!
 
 For some reason, in Firefox under Windows only, Japanese autocomplete
 does not not work.
 
 It works in Firefox on Mac and Linux, and it works on IE in Windows.
 It's just the Firefox/Windows that causes the problem, and only in
 Japanese.
 
 By does not work, I mean that nothing shows up.
 
 
 Any ideas where we could look?
 
 (I don't have a dev environment in Windows set up, so I haven't been
 able to step through the code in debug mode.)
 
 
 Cheers,
 David
 
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AutoCompleteTextField bug?

2007-03-26 Thread Igor Vaynberg

url encoding was only not done for internet explorer.

-igor


On 3/26/07, David Leangen [EMAIL PROTECTED] wrote:



Well... that would almost explain the Japanese problem I'm having... but
why only one browser on 1 platform?

Weird...



On Mon, 2007-03-26 at 18:09 -0700, Igor Vaynberg wrote:
 hmm, you might be right. i dont think we url encode the input. please
 add an rfe.

 -igor


 On 3/26/07, Michael Day [EMAIL PROTECTED] wrote:
 Hi,

 I think I found a bug in AutoCompleteTextField.  When I enter
 anything with a % symbol, I get a null string passed to
 getChoices
 (String).  I assume this has something to do with URL encoding
 (or
 lack thereof), but I haven't looked any deeper.

 I'm using Wicket 1.2.5.

 Michael


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys-and
 earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Summer of Code

2007-03-26 Thread Eelco Hillenius
Martijn, weren't you the one who suggested summer of code?

Eelco

On 3/23/07, behlma [EMAIL PROTECTED] wrote:

 Hi guys,
 as mentioned some time ago I'd be really up for the idea of having a Summer
 of Code. I personally would really be interested in creating an email
 utility library, even though that might only be a small thing.

 Any ideas?
 --
 View this message in context: 
 http://www.nabble.com/Summer-of-Code-tf3455770.html#a9641337
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Igor Vaynberg

On 3/26/07, Toscano [EMAIL PROTECTED] wrote:



I mean:
- The combo-option is treated as a new tag attribute, not as the name of
the
tag. Is there any way of maintain that - there?



what wicket version are you using? this might be a bug in our xml parser.
please open a jira issue.

- How can I output the text between the b:combo-box without having that 

span tags?



which span tags? i dont see any in your email.

Also I think I'm not doing the things as they have to do... any suggestions?


i dont see why you are using a listview and a component/option. do the
options need to be components? it might be easier to write them out as
strings like our DropDownChoice works. what you are doing works, but it is
definetely high-overhead for no gain.

-igor

Thank you very very much for all your effort and help,

Oskar

--
View this message in context:
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685532
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] mount question

2007-03-26 Thread Eelco Hillenius
 Hi, I'm trying to mount some pages so the URL is more user friendly.
 Now, what I have to do for resources like images and css?. I have a
 images directory in the root of webapp and the css file is in the
 root to.

just include it as a relative resource. If you look at
Wicket-examples, you'll notice that the pages have a head section with
a css section like:

link rel=stylesheet type=text/css href=style.css/

which is converted to e.g:

link href=/wicket-examples/style.css type=text/css rel=stylesheet/

at runtime.
In the same fashion, putting:

img src=Image1.gif /

in your page will be translated to e.g:

img src=/wicket-examples/Image1.gif /

at runtime.
If you want to put the resources in the same package, you can use
wicket:link sections or add them as e.g. resource references.

Eelco

 One thing is move all at the same level of a java class and mount there.
 Other can be use a wicket resource and replace the path to the file
 in the html template.
 Is any other more simple that not implies modify the html templates?.

 Thanks in advice.

 PS: the wiki show examples of mountSharedResource but I don't known
 if this is what I need.

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


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Toscano



igor.vaynberg wrote:
 
 On 3/26/07, Toscano [EMAIL PROTECTED] wrote:


 I mean:
 - The combo-option is treated as a new tag attribute, not as the name of
 the
 tag. Is there any way of maintain that - there?
 
 Thank you for your fast answer.
 
 I'm using 3_3_1. I will open the issue now.
 
 The span was between the text inside the b:combo-option tags, but it
 seems that when writting it, the forum treated as the HTML code it is.
 
 But I think it will be solved with the DropDownChoice String output
 method.
 Can I, please, have a quick example of how to implement the String out as
 DropDownChoice? I'm sorry because I'm very new to Wicket, and although I
 already read all the examples, I'm afraid I need some help... 
 
 Again, thank you very very much.
 Oskar
 
 
 
 
 what wicket version are you using? this might be a bug in our xml parser.
 please open a jira issue.
 
 - How can I output the text between the b:combo-box without having that
 
 span tags?
 
 
 which span tags? i dont see any in your email.
 
 Also I think I'm not doing the things as they have to do... any
 suggestions?
 
 
 i dont see why you are using a listview and a component/option. do the
 options need to be components? it might be easier to write them out as
 strings like our DropDownChoice works. what you are doing works, but it is
 definetely high-overhead for no gain.
 
 -igor
 
 Thank you very very much for all your effort and help,
 Oskar

 --
 View this message in context:
 http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685532
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685809
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Igor Vaynberg

On 3/26/07, Toscano [EMAIL PROTECTED] wrote:


 Thank you for your fast answer.

 I'm using 3_3_1. I will open the issue now.



there is no wicket 3.3.1



 But I think it will be solved with the DropDownChoice String output
 method.
 Can I, please, have a quick example of how to implement the String out
as
 DropDownChoice? I'm sorry because I'm very new to Wicket, and although I
 already read all the examples, I'm afraid I need some help...



see the source code of DropDownChoice and its hierarchy.

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


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Toscano

Oh, I'm sorry, that was the Backbase version. The wicket ones is 1.2.
Thank you again.

igor.vaynberg wrote:
 
 On 3/26/07, Toscano [EMAIL PROTECTED] wrote:

  Thank you for your fast answer.
 
  I'm using 3_3_1. I will open the issue now.
 
 
 there is no wicket 3.3.1
 
 
  But I think it will be solved with the DropDownChoice String output
  method.
  Can I, please, have a quick example of how to implement the String out
 as
  DropDownChoice? I'm sorry because I'm very new to Wicket, and although
 I
  already read all the examples, I'm afraid I need some help...
 
 
 see the source code of DropDownChoice and its hierarchy.
 
 -igor
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685864
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Toscano

Hello again,

I'm very sorry, but I don't know how to do it, the DropDownChoice code is
quite complicated for me. 

Does anybody can give me a small example of how to create a component which
outputs the XML I want from a List of objects? I only need a small ones with
the java, markup and how to include in one page. And then I will know how to
implements the most complicated ones.

Sorry for being so annoying...

Thank you,
Oskar


igor.vaynberg wrote:
 
 On 3/26/07, Toscano [EMAIL PROTECTED] wrote:

  Thank you for your fast answer.
 
  I'm using 3_3_1. I will open the issue now.
 
 
 there is no wicket 3.3.1
 
 
  But I think it will be solved with the DropDownChoice String output
  method.
  Can I, please, have a quick example of how to implement the String out
 as
  DropDownChoice? I'm sorry because I'm very new to Wicket, and although
 I
  already read all the examples, I'm afraid I need some help...
 
 
 see the source code of DropDownChoice and its hierarchy.
 
 -igor
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685972
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Igor Vaynberg

class mychoices extends FormComponent {
 protected void onComponentTagBody(final MarkupStream markupStream, final
ComponentTag openTag)
   {
   List choices = getChoices(); // something you implement
   final AppendingStringBuffer buffer = new AppendingStringBuffer((
choices.size() * 50) + 16);

   for (int index = 0; index  choices.size(); index++)
   {
   final Object choice = choices.get(index);
   buffer.append(option).append(choice.tostring
()).append(/option\n);
   }

   replaceComponentTagBody(markupStream, openTag, buffer);
   }
}

select wicket:id=choices/select

-igor

On 3/26/07, Toscano [EMAIL PROTECTED] wrote:



Hello again,

I'm very sorry, but I don't know how to do it, the DropDownChoice code is
quite complicated for me.

Does anybody can give me a small example of how to create a component
which
outputs the XML I want from a List of objects? I only need a small ones
with
the java, markup and how to include in one page. And then I will know how
to
implements the most complicated ones.

Sorry for being so annoying...

Thank you,
Oskar


igor.vaynberg wrote:

 On 3/26/07, Toscano [EMAIL PROTECTED] wrote:

  Thank you for your fast answer.
 
  I'm using 3_3_1. I will open the issue now.


 there is no wicket 3.3.1


  But I think it will be solved with the DropDownChoice String output
  method.
  Can I, please, have a quick example of how to implement the String
out
 as
  DropDownChoice? I'm sorry because I'm very new to Wicket, and
although
 I
  already read all the examples, I'm afraid I need some help...


 see the source code of DropDownChoice and its hierarchy.

 -igor


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685972
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Toscano

It works perfect. This is what I was looking for.

Did I gave thanks to you?

Thank you!,
Oskar



igor.vaynberg wrote:
 
 class mychoices extends FormComponent {
   protected void onComponentTagBody(final MarkupStream markupStream, final
 ComponentTag openTag)
 {
 List choices = getChoices(); // something you implement
 final AppendingStringBuffer buffer = new AppendingStringBuffer((
 choices.size() * 50) + 16);
 
 for (int index = 0; index  choices.size(); index++)
 {
 final Object choice = choices.get(index);
 buffer.append(option).append(choice.tostring
 ()).append(/option\n);
 }
 
 replaceComponentTagBody(markupStream, openTag, buffer);
 }
 }
 
 select wicket:id=choices/select
 
 -igor
 
 On 3/26/07, Toscano [EMAIL PROTECTED] wrote:


 Hello again,

 I'm very sorry, but I don't know how to do it, the DropDownChoice code is
 quite complicated for me.

 Does anybody can give me a small example of how to create a component
 which
 outputs the XML I want from a List of objects? I only need a small ones
 with
 the java, markup and how to include in one page. And then I will know how
 to
 implements the most complicated ones.

 Sorry for being so annoying...

 Thank you,
 Oskar


 igor.vaynberg wrote:
 
  On 3/26/07, Toscano [EMAIL PROTECTED] wrote:
 
   Thank you for your fast answer.
  
   I'm using 3_3_1. I will open the issue now.
 
 
  there is no wicket 3.3.1
 
 
   But I think it will be solved with the DropDownChoice String output
   method.
   Can I, please, have a quick example of how to implement the String
 out
  as
   DropDownChoice? I'm sorry because I'm very new to Wicket, and
 although
  I
   already read all the examples, I'm afraid I need some help...
 
 
  see the source code of DropDownChoice and its hierarchy.
 
  -igor
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685972
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9686311
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom XML markup

2007-03-26 Thread Igor Vaynberg

you are welcome

-igor


On 3/26/07, Toscano [EMAIL PROTECTED] wrote:



It works perfect. This is what I was looking for.

Did I gave thanks to you?

Thank you!,
Oskar



igor.vaynberg wrote:

 class mychoices extends FormComponent {
   protected void onComponentTagBody(final MarkupStream markupStream,
final
 ComponentTag openTag)
 {
 List choices = getChoices(); // something you implement
 final AppendingStringBuffer buffer = new AppendingStringBuffer((
 choices.size() * 50) + 16);

 for (int index = 0; index  choices.size(); index++)
 {
 final Object choice = choices.get(index);
 buffer.append(option).append(choice.tostring
 ()).append(/option\n);
 }

 replaceComponentTagBody(markupStream, openTag, buffer);
 }
 }

 select wicket:id=choices/select

 -igor

 On 3/26/07, Toscano [EMAIL PROTECTED] wrote:


 Hello again,

 I'm very sorry, but I don't know how to do it, the DropDownChoice code
is
 quite complicated for me.

 Does anybody can give me a small example of how to create a component
 which
 outputs the XML I want from a List of objects? I only need a small ones
 with
 the java, markup and how to include in one page. And then I will know
how
 to
 implements the most complicated ones.

 Sorry for being so annoying...

 Thank you,
 Oskar


 igor.vaynberg wrote:
 
  On 3/26/07, Toscano [EMAIL PROTECTED] wrote:
 
   Thank you for your fast answer.
  
   I'm using 3_3_1. I will open the issue now.
 
 
  there is no wicket 3.3.1
 
 
   But I think it will be solved with the DropDownChoice String
output
   method.
   Can I, please, have a quick example of how to implement the String
 out
  as
   DropDownChoice? I'm sorry because I'm very new to Wicket, and
 although
  I
   already read all the examples, I'm afraid I need some help...
 
 
  see the source code of DropDownChoice and its hierarchy.
 
  -igor
 
 

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
  your
  opinions on IT  business topics through brief surveys-and earn cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9685972
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/Custom-XML-markup-tf3470758.html#a9686311
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Flexible markup with same Java classes

2007-03-26 Thread Chris Colman
Let's say I've created a Layout and corresponding Java classes for the
following page

--
| Header |
--
|  | |
| Menu | Content |
|  | |
--
| Footer |
--

Each section is implemented by a separate wicket Panel derived class in
Java. The page itself is implemented by a derivative of wicket's WebPage
class in the usual manner.

Now I use variations and so I can have lots of different markup for the
single set of classes detailed above.

I want to be able to have the flexibility to leave the header out in
certain markup variations without wicket generating an error because the
page tries to add the header component.

Is there a way to create the markup so I can do this without explicitly
telling the Page not to load the header component?

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


Re: [Wicket-user] Flexible markup with same Java classes

2007-03-26 Thread Igor Vaynberg

so you want to keep the same page class, and solely control this from
markup? you have to research the api for getting the markup and then search
it for an attribute or whatever marker you set, but if you dont mind
controlling this via the variation string itself something like this might
work:

class mypage extends webpage {

private boolean headeradded=false;

public void onAttach() {
  super.onAttach();
  if (headeradded==false) {
if (getVariation().contains(noheader)) {
add(new WebMarkupContainer(header));
} else { add(new HeaderPanel(header)); }
headeradded=true;
}
}

-igor

On 3/26/07, Chris Colman [EMAIL PROTECTED] wrote:


Let's say I've created a Layout and corresponding Java classes for the
following page

--
| Header |
--
|  | |
| Menu | Content |
|  | |
--
| Footer |
--

Each section is implemented by a separate wicket Panel derived class in
Java. The page itself is implemented by a derivative of wicket's WebPage
class in the usual manner.

Now I use variations and so I can have lots of different markup for the
single set of classes detailed above.

I want to be able to have the flexibility to leave the header out in
certain markup variations without wicket generating an error because the
page tries to add the header component.

Is there a way to create the markup so I can do this without explicitly
telling the Page not to load the header component?

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


Re: [Wicket-user] Flexible markup with same Java classes

2007-03-26 Thread Igor Vaynberg

or even

mypage() { add(new HeaderPanel(header) { public boolean isvisible() {
return !MyPage.this.getVariation().contains(noheader); }}

if the header panel is pretty cheap to construct

-igor


On 3/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


so you want to keep the same page class, and solely control this from
markup? you have to research the api for getting the markup and then search
it for an attribute or whatever marker you set, but if you dont mind
controlling this via the variation string itself something like this might
work:

class mypage extends webpage {

private boolean headeradded=false;

public void onAttach() {
   super.onAttach();
   if (headeradded==false) {
 if (getVariation().contains(noheader)) {
 add(new WebMarkupContainer(header));
 } else { add(new HeaderPanel(header)); }
 headeradded=true;
 }
}

-igor

On 3/26/07, Chris Colman [EMAIL PROTECTED] wrote:

 Let's say I've created a Layout and corresponding Java classes for the
 following page

 --
 | Header |
 --
 |  | |
 | Menu | Content |
 |  | |
 --
 | Footer |
 --

 Each section is implemented by a separate wicket Panel derived class in
 Java. The page itself is implemented by a derivative of wicket's WebPage

 class in the usual manner.

 Now I use variations and so I can have lots of different markup for the
 single set of classes detailed above.

 I want to be able to have the flexibility to leave the header out in
 certain markup variations without wicket generating an error because the
 page tries to add the header component.

 Is there a way to create the markup so I can do this without explicitly
 telling the Page not to load the header component?


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


Re: [Wicket-user] Flexible markup with same Java classes

2007-03-26 Thread Harald Gruber

 I want to be able to have the flexibility to leave the header out in
 certain markup variations without wicket generating an error because the
 page tries to add the header component.

guess in your base webpage you should fill the header-div/span with a 
default WebMarkupContainer ( add(new WebMarkupContainer(header)); );

later in your subclasses you could replace the headersection with the 
appropriate panel:

...
MyHeaderPanel hp = new MyHeaderPanel(header);
this.replace(hp);
...



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


[Wicket-user] Radio.getValue?

2007-03-26 Thread Nino Wael
Hi

We are doing some extensive Jmeter testing, and have run into a technical 
problem regarding radios, which are the following:

If you had 5 radios on a page at a given time, their value would have been 
radio1, radio2.. radio5.

If you then pulled out radio number 4 then the list would be this, radio1, 
radio2 .. radio4.

Now only the one previously called radio4 should not have been selectable. This 
renders our jmeter test pretty vuernable if some of the stuff no longer are 
available. Im not sure if I can use a ichoicerenderer, looking at the code from 
getValue, it's pretty hardcoded am I correct?

If possible i'd like to just use the IChoiceRenderer's getId instead, that 
should fix the problem.

regards Nino

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


[Wicket-user] Flexible markup with same Java classes

2007-03-26 Thread Chris Colman
 or even
 
 mypage() { add(new HeaderPanel(header) { public boolean isvisible()
{
 return !MyPage.this.getVariation().contains(noheader); }}
 
 if the header panel is pretty cheap to construct
 
 -igor

Yes that looks like an quicker and easier solution. The header is very
cheap to construct.

Thanks, I'll give it a try,

Chris

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