[Wicket-user] Wicket 1.2.4 and commons-codec (Re: Look under the tree: Santa left a present for all)

2006-12-27 Thread Erik van Oosten
Thanks Martijn!

Does anyone know why maven2 suddenly also gets commons-codec 1.3 when I 
switch from 1.2-snapshot (quite recent) to 1.2.4?

I am using wicket, wicket-extentions and wicket-spring. The only 
difference I can find in the pom files is that EasyMock was downgraded 
from 2.0 to 1.2_Java1.3. But that should not matter as easymock is a 
'provided' dependency.

Regards,
 Erik.


Martijn Dashorst wrote:
 As a thank you for your support in 2006, Santa has put Wicket 1.2.4 
 under the tree!


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


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


[Wicket-user] dyke prosperity

2006-12-27 Thread Ellison Q . Felice





All the Escogido have to play for now is pride. A summary of headline
news over the Christmas holiday will appear in the Wednesday, 27
December and Thursday, 28 December editions. A summary of headline news
over the Christmas holiday will appear in the Wednesday, 27 December and
Thursday, 28 December editions. Although Judge Lewis A. On the occasion
of Christmas, the company has launched its Ilusion Navidena flavor, a
delicious creamy blend of rum raisin ice cream blended with
mini-chocolate kisses, raisins and caramelized nuts. Hair program
talkDrug sentencing "a farce"Progress in pensions fraud case? Montas
also said that the disbursal of this loan means that a quick payment of
the rest of the funds would now be possible.


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


Re: [Wicket-user] The component(s) below failed to render

2006-12-27 Thread Martijn Dashorst
Why not use a list view for the comment list?

If you want to show a message with No comments, then:

add(new Label(nocomments, No comments) { boolean isVisible() {
return comments == null || comments.isEmpty();} });

p wicket:id=commentsthis is the listview/p
p wicket:id=nocommentsthis is the no comments label/p

Martijn

On 12/27/06, August Detlefsen [EMAIL PROTECTED] wrote:

  In my case I have an article that can have zero or more comments attached
 to it. I've been getting this error in the case where an article has no
 comments. What is the best practice for handling this?

  -August




  Igor Vaynberg wrote:
 in myapplication.init() {
 getdebugsettings().setcomponentusecheck(false); }

  but you really shouldnt do that, there should be no reason something is in
 java but not in markup. there are plenty of ways to handle these cases such
 as component visibility/panels/fragments/etc

  -igor



 On 12/26/06, August Detlefsen [EMAIL PROTECTED] wrote:
  WicketMessage: The component(s) below failed to render. A common problem
  is that you have added a component in code but forgot to reference it in
  the markup (thus the component will never be rendered).
 
  Is there any way to have wicket simply ignore missing components in the
  markup? For example, if not every page will include every element.
 
  Thanks,
  August
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get 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
 


  --
 August Detlefsen
 CEO/Web Application Architect
 CodeMagi, Inc.
 510-368-4489 tel
 510-336-9434 fax
 http://www.codemagi.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





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

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


Re: [Wicket-user] Wicket 1.2.4 and commons-codec (Re: Look under the tree: Santa left a present for all)

2006-12-27 Thread Martijn Dashorst
Not sure. Downloading the dependency can also be a result of an
upgrade of one of the maven plugins though.

To see what the final pom is, try:

mvn help:effective-pom

The easymock needed to be downgraded as it is a Java 5 version
incompatible with wicket-spring (which is java 1.4).

Martijn

On 12/27/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 Thanks Martijn!

 Does anyone know why maven2 suddenly also gets commons-codec 1.3 when I
 switch from 1.2-snapshot (quite recent) to 1.2.4?

 I am using wicket, wicket-extentions and wicket-spring. The only
 difference I can find in the pom files is that EasyMock was downgraded
 from 2.0 to 1.2_Java1.3. But that should not matter as easymock is a
 'provided' dependency.

 Regards,
  Erik.


 Martijn Dashorst wrote:
  As a thank you for your support in 2006, Santa has put Wicket 1.2.4
  under the tree!
 

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


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



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

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


Re: [Wicket-user] Wicket 1.2.4 and commons-codec (Re: Look under the tree: Santa left a present for all)

2006-12-27 Thread Erik van Oosten
Weird, I have added a
exclusion
groupIdcommons-codec/groupId
artifactIdcommons-codec/artifactId
/exclusion
to each of the wicket dependencies in my pom file and it still wants to 
download it.

I tried the command you gave. It does not mention commons-codec at all 
(except in the exclusions).

For now I will continue under the assumption that it is a maven plugin 
upgrade and I will therefore not add commons-codec to my application's 
classpath.
I really dislike maven more and more...

Regards,
Erik.


Martijn Dashorst wrote:
 Not sure. Downloading the dependency can also be a result of an
 upgrade of one of the maven plugins though.

 To see what the final pom is, try:

 mvn help:effective-pom

 The easymock needed to be downgraded as it is a Java 5 version
 incompatible with wicket-spring (which is java 1.4).

 Martijn

 On 12/27/06, Erik van Oosten [EMAIL PROTECTED] wrote:
   
 Thanks Martijn!

 Does anyone know why maven2 suddenly also gets commons-codec 1.3 when I
 switch from 1.2-snapshot (quite recent) to 1.2.4?

 I am using wicket, wicket-extentions and wicket-spring. The only
 difference I can find in the pom files is that EasyMock was downgraded
 from 2.0 to 1.2_Java1.3. But that should not matter as easymock is a
 'provided' dependency.

 Regards,
  Erik.


 Martijn Dashorst wrote:
 
 As a thank you for your support in 2006, Santa has put Wicket 1.2.4
 under the tree!

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


 


   

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


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


Re: [Wicket-user] Wicket 1.2.4 and commons-codec (Re: Look under the tree: Santa left a present for all)

2006-12-27 Thread Erik van Oosten

As a test I downgraded to wicket 1.2.3, and it still downloads 
commons-codec. So I am now pretty sure it has nothing to do with Wicket 
1.2.4.

Regards,
Erik.


Martijn Dashorst wrote:
 Not sure. Downloading the dependency can also be a result of an
 upgrade of one of the maven plugins though.

 To see what the final pom is, try:

 mvn help:effective-pom

 The easymock needed to be downgraded as it is a Java 5 version
 incompatible with wicket-spring (which is java 1.4).

 Martijn

   

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


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


Re: [Wicket-user] Unit test fail probably cause by authenication

2006-12-27 Thread Carfield Yim
I am really sorry, after detail tracing system, I found that there is
some parts of code will throw
RestartResponseAtInterceptPageException...

On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 set a breakpoint in your auth strategy and see what it is doing, sounds like
 a bug in there

 -igor


 On 12/26/06, Carfield Yim  [EMAIL PROTECTED] wrote:
 
  On 12/27/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   well looks like you are expecting main page but getting a login? so your
   auth strategy is redirecting, thus the test fails
  
  But for the unit test session, I already did below:
 
  public static class Tester extends WicketTester {
  @Override
  protected ISessionFactory getSessionFactory() {
  return new ISessionFactory() {
  public Session newSession() {
  com.genuco.util.component.Session
 session = new
  com.component.Session(Tester.this);
  session.setAuthenticated(true);
  return session;
  }
  };
  }
  }
 
  So the auth should be bypassed, do you have any idea that why I still
  getting this error?
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get 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] When will RequestCycle.detach() being called?

2006-12-27 Thread Carfield Yim
I just get another exception from the unit test, this is kind of
strangle that complaint about No RequestCycle available:

wicket.WicketRuntimeException: Can not set the attribute. No
RequestCycle available
at wicket.Session.setAttribute(Session.java:933)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:744)
at wicket.util.tester.WicketTester.startPage(WicketTester.java:262)

However, just before I call startPage I add
Assert.assertNotNull(RequestCycle.get()) and it is passed, and this
only occur for one test cases I have, just wonder when will
RequestCycle.detach() being called so RequestCycle.current begin set
to null?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] When will RequestCycle.detach() being called?

2006-12-27 Thread Johan Compagner

which version of wicket is that?
That should be fixed.
And it is not strange becuase in that startPage we did call touch on the
page/session
after the complete processRequestcycle was called.

johan


On 12/27/06, Carfield Yim [EMAIL PROTECTED] wrote:


I just get another exception from the unit test, this is kind of
strangle that complaint about No RequestCycle available:

wicket.WicketRuntimeException: Can not set the attribute. No
RequestCycle available
at wicket.Session.setAttribute(Session.java:933)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:744)
at wicket.util.tester.WicketTester.startPage(WicketTester.java
:262)

However, just before I call startPage I add
Assert.assertNotNull(RequestCycle.get()) and it is passed, and this
only occur for one test cases I have, just wonder when will
RequestCycle.detach() being called so RequestCycle.current begin set
to null?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] A proposal about IPagingLabelProvider.

2006-12-27 Thread Johan Compagner

igor already did fix this in the 2.0 branch but of course forgot to backport
it!

johan


On 12/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


While i use the interface  of IPagingLabelProvider to define a paging
label.
I was customed to write a anonymous class.
But i got a exception for Serializable.
Then i know this class must implements java.io.Serializable.

I hope the interface of I PagingLabelProvider can extends
java.io.Serializable..
It will help a lot ,especially for anonymous class.

__
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

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

2006-12-27 Thread Daniele Dellafiore

hi, I am new to wicket, I have just done some examples tutorial starting
from the QuickStart app.

I am beginning to build a real webapp and I am wondering about the main
layout structure

I have done the Navomatic example and I am wondering if a good way is to use
borders to define the structure of the page (I need a simple header, footer,
navigation, body layout).

In the navomatic example I have a add(NavomaticBorder()) in each page and if
I want a page body with some wicket component I have to add them to
navomaticInstance and not to the page (I have tried adding the ajax counter
for example... it does not comes for free, counter is showed but click does
not increment, ajax error...)

Back to main problem, this create some architecture issues (replication and
non-standard add method). I could create a template page that incapsulate
the navomatic layout and with a custom add method that uses that... but is
this a good way to do things?

Thanks for advices.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] Architectural issues using Borders for page layout

2006-12-27 Thread Igor Vaynberg

imho much better to use markup inheritance for a common layout. that example
was written before markup inheritance was around.

-igor


On 12/27/06, Daniele Dellafiore [EMAIL PROTECTED] wrote:


hi, I am new to wicket, I have just done some examples tutorial starting
from the QuickStart app.

I am beginning to build a real webapp and I am wondering about the main
layout structure

I have done the Navomatic example and I am wondering if a good way is to
use borders to define the structure of the page (I need a simple header,
footer, navigation, body layout).

In the navomatic example I have a add(NavomaticBorder()) in each page and
if I want a page body with some wicket component I have to add them to
navomaticInstance and not to the page (I have tried adding the ajax counter
for example... it does not comes for free, counter is showed but click does
not increment, ajax error...)

Back to main problem, this create some architecture issues (replication
and non-standard add method). I could create a template page that
incapsulate the navomatic layout and with a custom add method that uses
that... but is this a good way to do things?

Thanks for advices.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] Architectural issues using Borders for page layout

2006-12-27 Thread Martijn Dashorst
I agree with Igor. See
http://wicketframework.org/ExampleMarkupInheritance.html for a small
example of markup inheritance.

Martijn

On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 imho much better to use markup inheritance for a common layout. that example
 was written before markup inheritance was around.

 -igor



 On 12/27/06, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 
  hi, I am new to wicket, I have just done some examples tutorial starting
 from the QuickStart app.
 
  I am beginning to build a real webapp and I am wondering about the main
 layout structure
 
  I have done the Navomatic example and I am wondering if a good way is to
 use borders to define the structure of the page (I need a simple header,
 footer, navigation, body layout).
 
  In the navomatic example I have a add(NavomaticBorder()) in each page and
 if I want a page body with some wicket component I have to add them to
 navomaticInstance and not to the page (I have tried adding the ajax counter
 for example... it does not comes for free, counter is showed but click does
 not increment, ajax error...)
 
  Back to main problem, this create some architecture issues (replication
 and non-standard add method). I could create a template page that
 incapsulate the navomatic layout and with a custom add method that uses
 that... but is this a good way to do things?
 
  Thanks for advices.
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get 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





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

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


Re: [Wicket-user] HTML ids in 2.0-SNAPHOT are being generated even when hardcoded

2006-12-27 Thread Caleb Land
I have a project that uses Wicket 1.x, and it's overwriting my
hardcoded ids with generated ones if setOutputMarkupId it true.  If
this is not the intended behavior then I will open a JIRA issue.

On 12/18/06, Otan [EMAIL PROTECTED] wrote:
 It works fine now. Thanks


 On 19/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  try now
 
  -igor
 
 
 
 
  On 12/18/06, Otan  [EMAIL PROTECTED] wrote:
  
   why do I still get this exception:
  
  
   SEVERE: cannot update component that does not have setOutputMarkupId
 property set to true. Component: [MarkupContainer [Component id = title,
 page = openknowledge.EditPage, path = 5:editForm:title.RequiredTextField,
 isVisible = true, isVersioned = false]]
  
   java.lang.IllegalArgumentException: cannot update
 component that does not have setOutputMarkupId property set to true.
 Component: [MarkupContainer [Component id = title, page =
 openknowledge.EditPage, path = 5:editForm:title.RequiredTextField, isVisible
 = true, isVersioned = false]]
  
   at
 wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java
 :97)
   at
 openknowledge.EditPage$2.onRevisionSelected(EditPage.java:153)
   at
 openknowledge.RevisionListPanel$SelectActionPanel$1.onClick(RevisionListPanel.java:60)
   at
 wicket.ajax.markup.html.AjaxFallbackLink$1.onEvent
 (AjaxFallbackLink.java:79)
   at
 wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:162)
   at
 wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:224)
   at
 wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:98)
   at
 wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java
 :68)
   at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:56)
   at
 wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:938)
   at
 wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:978)
   at wicket.RequestCycle.step(RequestCycle.java:1054)
   at wicket.RequestCycle.steps(RequestCycle.java:1125)
   at wicket.RequestCycle.request(RequestCycle.java:470)
   at
 wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232)
   at
 wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
  
   I don't get that exception before I updated my copy of Wicket 2.0
 snapshots.
  
  
  
   On 13/12/06, Igor Vaynberg [EMAIL PROTECTED]  wrote:
its reverted
   
-igor
   
   
   
   
On 12/12/06, Martijn Dashorst  [EMAIL PROTECTED] wrote:
 On 12/12/06, Igor Vaynberg  [EMAIL PROTECTED]  wrote:
  yeah i changed it, didnt think anyone was using this particular
 facet.

 We use it also.

  im not sure if we should put it back. the problem is sometimes you
 can paint
  yourself into a nasty corner. if you have a component that uses a
 hardcoded
  id, and later the user of that component uses it twice in a page,
 or puts it
  into a repeater you will have duplicate ids in html which is not
 legal, and
  whats worse is it will break ajax/js/css but it will be very hard
 to track
  down.

 Most of the time you are in full control of the markup id. In my
 experience it is in a rare occaission that you have to worry about
 reuse. Repeaters, listview are tricky, and for those I typically let
 Wicket generate the markup id using setOutputMarkupId.

 So -1 for not honoring existing markup ids.

 Martijn

  On 12/11/06, Caleb Land  [EMAIL PROTECTED]  wrote:
   I've been using 2.0-SNAPSHOT for a while now and I noticed a
 behavior
   recently that is new.  If I have an HTML id defined in my
 markup:
  
   wicket:panel
 div id=labels wicket:id=labels/div
   /wicket:panel
  
   When the panel is rendered the HTML id attribute is replaced
 with
   something that is generated by Wicket like labels40.
  
   I looked through the svn changelog for MarkupContainer and
 noticed
   that the getMarkupId() method has been changed, and the javadoc
 for
   that method that said:
  
   If the id attribute is present in the markup attributes of this
 component
   it will be used, otherwise the page-relative path of this
 component will
   be used.
  
   has been deleted...
  
   Should I be able to hard code HTML ids in the future or was that
   feature removed?  I used hard coded HTML ids in my Page markup
 files
   I sometimes use HTML ids to reference elements from CSS and
 javascript
   and I had to use a class instead because of these generated Ids.
  
   --
   Caleb Land
   ( [EMAIL PROTECTED])
  
  
 
 -
   Take Surveys. 

Re: [Wicket-user] HTML ids in 2.0-SNAPHOT are being generated even when hardcoded

2006-12-27 Thread Igor Vaynberg

i believe in the 1.x branch we always override.

-igor


On 12/27/06, Caleb Land [EMAIL PROTECTED] wrote:


I have a project that uses Wicket 1.x, and it's overwriting my
hardcoded ids with generated ones if setOutputMarkupId it true.  If
this is not the intended behavior then I will open a JIRA issue.

On 12/18/06, Otan [EMAIL PROTECTED] wrote:
 It works fine now. Thanks


 On 19/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  try now
 
  -igor
 
 
 
 
  On 12/18/06, Otan  [EMAIL PROTECTED] wrote:
  
   why do I still get this exception:
  
  
   SEVERE: cannot update component that does not have setOutputMarkupId
 property set to true. Component: [MarkupContainer [Component id = title,
 page = openknowledge.EditPage, path = 5:editForm:title.RequiredTextField
,
 isVisible = true, isVersioned = false]]
  
   java.lang.IllegalArgumentException: cannot update
 component that does not have setOutputMarkupId property set to true.
 Component: [MarkupContainer [Component id = title, page =
 openknowledge.EditPage, path = 5:editForm:title.RequiredTextField,
isVisible
 = true, isVersioned = false]]
  
   at
 wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java
 :97)
   at
 openknowledge.EditPage$2.onRevisionSelected(EditPage.java:153)
   at
 openknowledge.RevisionListPanel$SelectActionPanel$1.onClick(
RevisionListPanel.java:60)
   at
 wicket.ajax.markup.html.AjaxFallbackLink$1.onEvent
 (AjaxFallbackLink.java:79)
   at
 wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:162)
   at
 wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(
AbstractDefaultAjaxBehavior.java:224)
   at

wicket.request.target.component.listener.BehaviorRequestTarget.processEvents
(BehaviorRequestTarget.java:98)
   at
 wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java
 :68)
   at

wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
(AbstractCompoundRequestCycleProcessor.java:56)
   at
 wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:938)
   at
 wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:978)
   at wicket.RequestCycle.step(RequestCycle.java:1054)
   at wicket.RequestCycle.steps(RequestCycle.java:1125)
   at wicket.RequestCycle.request(RequestCycle.java:470)
   at
 wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232)
   at
 wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
  
   I don't get that exception before I updated my copy of Wicket 2.0
 snapshots.
  
  
  
   On 13/12/06, Igor Vaynberg [EMAIL PROTECTED]  wrote:
its reverted
   
-igor
   
   
   
   
On 12/12/06, Martijn Dashorst  [EMAIL PROTECTED] wrote:
 On 12/12/06, Igor Vaynberg  [EMAIL PROTECTED]  wrote:
  yeah i changed it, didnt think anyone was using this
particular
 facet.

 We use it also.

  im not sure if we should put it back. the problem is sometimes
you
 can paint
  yourself into a nasty corner. if you have a component that
uses a
 hardcoded
  id, and later the user of that component uses it twice in a
page,
 or puts it
  into a repeater you will have duplicate ids in html which is
not
 legal, and
  whats worse is it will break ajax/js/css but it will be very
hard
 to track
  down.

 Most of the time you are in full control of the markup id. In my
 experience it is in a rare occaission that you have to worry
about
 reuse. Repeaters, listview are tricky, and for those I typically
let
 Wicket generate the markup id using setOutputMarkupId.

 So -1 for not honoring existing markup ids.

 Martijn

  On 12/11/06, Caleb Land  [EMAIL PROTECTED]  wrote:
   I've been using 2.0-SNAPSHOT for a while now and I noticed a
 behavior
   recently that is new.  If I have an HTML id defined in my
 markup:
  
   wicket:panel
 div id=labels wicket:id=labels/div
   /wicket:panel
  
   When the panel is rendered the HTML id attribute is replaced
 with
   something that is generated by Wicket like labels40.
  
   I looked through the svn changelog for MarkupContainer and
 noticed
   that the getMarkupId() method has been changed, and the
javadoc
 for
   that method that said:
  
   If the id attribute is present in the markup attributes of
this
 component
   it will be used, otherwise the page-relative path of this
 component will
   be used.
  
   has been deleted...
  
   Should I be able to hard code HTML ids in the future or was
that
   feature removed?  I used hard coded HTML ids in my Page
markup
 files
   I sometimes use HTML ids to reference elements from CSS and
 javascript
   and I had to use a class instead because of these generated
Ids.
  
   --
   Caleb Land
   ( [EMAIL PROTECTED])
   

[Wicket-user] Back Button DropDownChoice

2006-12-27 Thread Andrew Strickland
I have a class that extends DropDownChoice, called TCOChooser.  It is for some 
very minor things (overriding wantOnSelectionChanged, the choice renderer, etc 
).  I have a page that uses TCOChooser to allow the user to select a TCO that 
changes the data displayed in a table lower on the page.
 
When the user selects a new TCO the table updates as expected. When I use the 
back button on the browser the table reverts as expected.  However, the 
TCOChooser does not revert, and stays with the last user selected value.
 
My question is, am I doing something wrong or unexpected here or is this a 
problem with Wicket's modelChanged and versioning strategy or perhaps even a 
limitation of the browser or the html select element?
 
Below is TCOChooser:
 
public class TCOChooser extends DropDownChoice{

private OrderPage orderPage;

public TCOChooser(String id, IModel model, List choices, OrderPage 
orderPage){
super(id, model, choices, new TCOChoiceRenderer());

this.orderPage = orderPage;
}

protected boolean wantOnSelectionChangedNotifications() {
return true;
}

protected void onSelectionChanged(final Object newSelection) {
orderPage.updateOrderTable((TCO)newSelection);
}
}
 
 
 
Below is my page ( OrderPage ):
 
 
public class OrderPage extends WebPage {

DataTable orderTable;

DropDownChoice tcoChooser;

TCO TCO;

/**
 * Creates a new instance of OrderPage.  TCO will be null and the entire
 * list of AbstractOrder(s) will be returned.
 */
public OrderPage() {

}

/**
 * Creates a new instance of OrderPage.  The AbstractOrder(s) that match
 * the TCO will be returned.
 *
 * @param TCO The TCO to filter the list of AbstractOrder(s) by.
 */
public OrderPage(TCO TCO){
this.TCO = TCO;
}

private void initTCOChooser(){
List tcos = new TCODAO().getTCOs();

/* If the TCO was not supplied through the constructor, default to the 
first item in the TCO drop down */
if( TCO == null ){
TCO = (TCO)tcos.get(0);
}

tcoChooser = new TCOChooser(tcoChoices, new Model(TCO), tcos, this);
add(tcoChooser);
}

private void initOrderTable(){
List columns = new ArrayList();
columns.add(new PropertyColumn(new Model(TSR Number), 
TSRNumber.number, TSRNumber.number));
columns.add(new PropertyColumn(new Model(TSO Number), 
TSONumber.number, TSONumber.number));
columns.add(new PropertyColumn(new Model(CCSD), CCSD.number, 
CCSD.number));
orderTable = new DefaultDataTable(orders, columns, new 
OrderDataProvider(TCO), 25);
add(orderTable);
}

@Override
protected void onAttach() {

if(tcoChooser==null){
initTCOChooser();
}
   

if( orderTable == null ){
initOrderTable();
}
}

/*
 * A public callback to allow the TCOChooser component to update the order 
table when a new TCO selection is made.
 *
 * @param TCO The TCO to limit the orders in the table to.
 */
public void updateOrderTable(TCO TCO){
this.TCO = TCO;
 
remove(orderTable);
initOrderTable();
}
}
 
Thanks much,
Andy Strickland
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] Back Button DropDownChoice

2006-12-27 Thread Igor Vaynberg

i think this is the browser caching the choice not wicket

-igor


On 12/27/06, Andrew Strickland [EMAIL PROTECTED] wrote:


I have a class that extends DropDownChoice, called TCOChooser.  It is for
some very minor things (overriding wantOnSelectionChanged, the choice
renderer, etc ).  I have a page that uses TCOChooser to allow the user to
select a TCO that changes the data displayed in a table lower on the page.

When the user selects a new TCO the table updates as expected. When I use
the back button on the browser the table reverts as expected.  However, the
TCOChooser does not revert, and stays with the last user selected value.

My question is, am I doing something wrong or unexpected here or is this a
problem with Wicket's modelChanged and versioning strategy or perhaps even a
limitation of the browser or the html select element?

Below is TCOChooser:

public class TCOChooser extends DropDownChoice{

private OrderPage orderPage;

public TCOChooser(String id, IModel model, List choices, OrderPage
orderPage){
super(id, model, choices, new TCOChoiceRenderer());

this.orderPage = orderPage;
}

protected boolean wantOnSelectionChangedNotifications() {
return true;
}

protected void onSelectionChanged(final Object newSelection) {
orderPage.updateOrderTable((TCO)newSelection);
}
}



Below is my page ( OrderPage ):


public class OrderPage extends WebPage {

DataTable orderTable;

DropDownChoice tcoChooser;

TCO TCO;

/**
 * Creates a new instance of OrderPage.  TCO will be null and the
entire
 * list of AbstractOrder(s) will be returned.
 */
public OrderPage() {

}

/**
 * Creates a new instance of OrderPage.  The AbstractOrder(s) that
match
 * the TCO will be returned.
 *
 * @param TCO The TCO to filter the list of AbstractOrder(s) by.
 */
public OrderPage(TCO TCO){
this.TCO = TCO;
}

private void initTCOChooser(){
List tcos = new TCODAO().getTCOs();

/* If the TCO was not supplied through the constructor, default to
the first item in the TCO drop down */
if( TCO == null ){
TCO = (TCO)tcos.get(0);
}

tcoChooser = new TCOChooser(tcoChoices, new Model(TCO), tcos,
this);
add(tcoChooser);
}

private void initOrderTable(){
List columns = new ArrayList();
columns.add(new PropertyColumn(new Model(TSR Number), 
TSRNumber.number, TSRNumber.number));
columns.add(new PropertyColumn(new Model(TSO Number), 
TSONumber.number, TSONumber.number));
columns.add(new PropertyColumn(new Model(CCSD), CCSD.number, 
CCSD.number));
orderTable = new DefaultDataTable(orders, columns, new
OrderDataProvider(TCO), 25);
add(orderTable);
}

@Override
protected void onAttach() {

if(tcoChooser==null){
initTCOChooser();
}


if( orderTable == null ){
initOrderTable();
}
}

/*
 * A public callback to allow the TCOChooser component to update the
order table when a new TCO selection is made.
 *
 * @param TCO The TCO to limit the orders in the table to.
 */
public void updateOrderTable(TCO TCO){
this.TCO = TCO;

remove(orderTable);
initOrderTable();
}
}

Thanks much,
Andy Strickland

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] How do you load an external image?

2006-12-27 Thread August Detlefsen
How can I load an image directly from a url?

For example I want to display a picture of a user next to their profile, 
but all of the images are served by another machine for better 
performance. I tried something like this but it won't compile:

Image profileImg = new Image(profileimg);
profileImg.setImageResource( new UrlResourceStream( new 
URL(user.getPhotourl()) ) );


Thanks,
August

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] When will RequestCycle.detach() being called?

2006-12-27 Thread Carfield Yim
On 12/27/06, Johan Compagner [EMAIL PROTECTED] wrote:
 which version of wicket is that?
 That should be fixed.

Wicket 1.2.3, may be I should upgrade to 1.2.4

 And it is not strange becuase in that startPage we did call touch on the
 page/session

Strangle is I have several other unit test of webpage and only this
one have problem

 after the complete processRequestcycle was called.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] How do you load an external image?

2006-12-27 Thread Igor Vaynberg

class staticimage extends webcomponent {

public staticimage(string id, imodel model) {
   super(id, model);
 }

 protected void oncomponenttag(tag) {
 checkcomponenttag(tag, img);
 tag.put(src, getModelObjectAsString());
   }
}

add(new staticimage(img, new Model(http://foo.com/bar.gif;));

-igor


On 12/27/06, August Detlefsen [EMAIL PROTECTED] wrote:


How can I load an image directly from a url?

For example I want to display a picture of a user next to their profile,
but all of the images are served by another machine for better
performance. I tried something like this but it won't compile:

Image profileImg = new Image(profileimg);
profileImg.setImageResource( new UrlResourceStream( new
URL(user.getPhotourl()) ) );


Thanks,
August

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] Architectural issues using Borders for page layout

2006-12-27 Thread Carfield Yim
I feel using Markup interitance over Border is more similar to using
interitance over composition of code reuse. Markup interitance is more
convenience to use but if you like to do something more dynamice, like
change layout according to role, I think Border is more flexible for
that? Please correct me if I am wrong

On 12/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 I agree with Igor. See
 http://wicketframework.org/ExampleMarkupInheritance.html for a small
 example of markup inheritance.

 Martijn

 On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  imho much better to use markup inheritance for a common layout. that example
  was written before markup inheritance was around.
 
  -igor
 
 
 
  On 12/27/06, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  
   hi, I am new to wicket, I have just done some examples tutorial starting
  from the QuickStart app.
  
   I am beginning to build a real webapp and I am wondering about the main
  layout structure
  
   I have done the Navomatic example and I am wondering if a good way is to
  use borders to define the structure of the page (I need a simple header,
  footer, navigation, body layout).
  
   In the navomatic example I have a add(NavomaticBorder()) in each page and
  if I want a page body with some wicket component I have to add them to
  navomaticInstance and not to the page (I have tried adding the ajax counter
  for example... it does not comes for free, counter is showed but click does
  not increment, ajax error...)
  
   Back to main problem, this create some architecture issues (replication
  and non-standard add method). I could create a template page that
  incapsulate the navomatic layout and with a custom add method that uses
  that... but is this a good way to do things?
  
   Thanks for advices.
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get 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
 
 
 


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

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

2006-12-27 Thread August Detlefsen

Thank you Igor! You don't know how long I tried to do this.

I've added this fix to the Wiki:
http://cwiki.apache.org/confluence/display/WICKET/How+to+load+an+external+image

-August



Igor Vaynberg wrote:

class staticimage extends webcomponent {

 public staticimage(string id, imodel model) {
super(id, model);
  }

  protected void oncomponenttag(tag) {
  checkcomponenttag(tag, img);
  tag.put(src, getModelObjectAsString());
}
}

add(new staticimage(img, new Model(http://foo.com/bar.gif;));

-igor


On 12/27/06, *August Detlefsen* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


How can I load an image directly from a url?

For example I want to display a picture of a user next to their
profile,
but all of the images are served by another machine for better
performance. I tried something like this but it won't compile:

Image profileImg = new Image(profileimg);
profileImg.setImageResource( new UrlResourceStream( new
URL(user.getPhotourl()) ) );


Thanks,
August

-

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
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] Architectural issues using Borders for page layout

2006-12-27 Thread Igor Vaynberg

depends.

if you have a preset number of themes/etc then you can still use markup
inheritance in combination with styles/variations to load different markup
files for the base page.

if, however, you need to load themes dynamically via a factory or some such
then you have to use a border. but then your users really have to be aware
of the fact that they need to add things to the border and not the page
directly, where as with markup inheritance it is more transparent.

you can also make a border transparent as well, see
Border.setTransparentResolver.

-igor


On 12/27/06, Carfield Yim [EMAIL PROTECTED] wrote:


I feel using Markup interitance over Border is more similar to using
interitance over composition of code reuse. Markup interitance is more
convenience to use but if you like to do something more dynamice, like
change layout according to role, I think Border is more flexible for
that? Please correct me if I am wrong

On 12/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 I agree with Igor. See
 http://wicketframework.org/ExampleMarkupInheritance.html for a small
 example of markup inheritance.

 Martijn

 On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  imho much better to use markup inheritance for a common layout. that
example
  was written before markup inheritance was around.
 
  -igor
 
 
 
  On 12/27/06, Daniele Dellafiore [EMAIL PROTECTED] wrote:
  
   hi, I am new to wicket, I have just done some examples tutorial
starting
  from the QuickStart app.
  
   I am beginning to build a real webapp and I am wondering about the
main
  layout structure
  
   I have done the Navomatic example and I am wondering if a good way
is to
  use borders to define the structure of the page (I need a simple
header,
  footer, navigation, body layout).
  
   In the navomatic example I have a add(NavomaticBorder()) in each
page and
  if I want a page body with some wicket component I have to add them to
  navomaticInstance and not to the page (I have tried adding the ajax
counter
  for example... it does not comes for free, counter is showed but click
does
  not increment, ajax error...)
  
   Back to main problem, this create some architecture issues
(replication
  and non-standard add method). I could create a template page that
  incapsulate the navomatic layout and with a custom add method that
uses
  that... but is this a good way to do things?
  
   Thanks for advices.
  
  
 
-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get 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
 
 
 


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


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

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

Re: [Wicket-user] How do you load an external image?

2006-12-27 Thread Igor Vaynberg

i wouldnt really call it a fix, just common sense after using wicket for a
bit :)

-igor


On 12/27/06, August Detlefsen [EMAIL PROTECTED] wrote:


 Thank you Igor! You don't know how long I tried to do this.

I've added this fix to the Wiki:

http://cwiki.apache.org/confluence/display/WICKET/How+to+load+an+external+image

-August



Igor Vaynberg wrote:

class staticimage extends webcomponent {

 public staticimage(string id, imodel model) {
super(id, model);
  }

  protected void oncomponenttag(tag) {
  checkcomponenttag(tag, img);
  tag.put(src, getModelObjectAsString());
}
}

add(new staticimage(img, new Model(http://foo.com/bar.gif;));

-igor


On 12/27/06, August Detlefsen [EMAIL PROTECTED] wrote:

 How can I load an image directly from a url?

 For example I want to display a picture of a user next to their profile,
 but all of the images are served by another machine for better
 performance. I tried something like this but it won't compile:

 Image profileImg = new Image(profileimg);
 profileImg.setImageResource( new UrlResourceStream( new
 URL(user.getPhotourl()) ) );


 Thanks,
 August

 -

 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get 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] How do I obtain row index in a DataTable ?

2006-12-27 Thread Ingram Chen

Hi all

DataTable + AbstractColumn are already satisfied almost our requirement.
But occasionally I require row index of table, not just cell-index in
AbstractColumn

cols.add(new AbstractColumn(new Model(#), no) {
   public void populateItem(Item cellItem, String componentId,
   IModel rowModel) {
   int cellIndex = cellItem.getIndex();
   int rowIndex = 
   }
});

is there any way to obtain row index ?

my intuitive thought is using Item = cellItem.getRowItem();


thanks in advanced!

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] How do I obtain row index in a DataTable ?

2006-12-27 Thread Igor Vaynberg

hmm, no builtin support for this unfortunately, a quick hack would be

((Item)cellItem.getParent()).getIndex()

-igor


On 12/27/06, Ingram Chen [EMAIL PROTECTED] wrote:


Hi all

DataTable + AbstractColumn are already satisfied almost our requirement.
But occasionally I require row index of table, not just cell-index in
AbstractColumn

cols.add(new AbstractColumn(new Model(#), no) {
public void populateItem(Item cellItem, String componentId,
IModel rowModel) {
int cellIndex = cellItem.getIndex();
int rowIndex = 
}
});

is there any way to obtain row index ?

my intuitive thought is using Item = cellItem.getRowItem();


thanks in advanced!

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get 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] FeedBackPanel

2006-12-27 Thread tbt

I'm a newbie to wicket and would like to know how to add a customized icon
near the error message which is generated by the feedback panel. Any help
would be appreciated.
-- 
View this message in context: 
http://www.nabble.com/FeedBackPanel-tf2889265.html#a8071827
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