Re: InlineFrame: IPageLink object looses reference to page after deserialiations

2009-03-30 Thread Ittay Dror



Ittay Dror wrote:
 
 Hi,
 
 I'm trying to use the InlineFrame component. I create an IPageLink 
 object to it. The object holds a reference to a page.
 
 By placing breakpoints, I can see that the IPageLink object is created 
 once.
 
 InlineFrame#onLinkClicked is called twice. On the first time, the page 
 reference is fine. The second time the IPageLink is of a different 
 object and the page reference it is null.  My guess is that the second 
 time is after deserialization of the page. But why is the reference null?
 
 I'm working in an osgi environment with pax-wicket.
 
on further investigation, i see the issue is that although the page is saved
to the page map (by touching it), it is not found after, (the pagemap is the
same object in both requests and the session exists)

thanks,
ittay


 
 Thank you,
 Ittay
 
 -- 
 --
 Ittay
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/InlineFrame%3A-IPageLink-object-looses-reference-to-page-after-deserialiations-tp21661515p22777118.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: RadioGroup lost value after onError form

2009-03-30 Thread Marieke Vandamme

Hello, 

Can't anyone help me with this? 
Or do I just report a jira bug for this? 
THANKS!


Marieke Vandamme wrote:
 
 Hello, 
 
 consider example underneath. 
 Form with DateTextField and RadioGroup. When an incorrect date is entered
 in the TextField, the value choosen in radiogroup is lost. When correct
 date is entered, the value is shown correct in radiogroup.
 Is this an error in my code? Or a bug?
 I'm using wicket 1.4-rc2. 
 Thanks for any help !!
 
 ==TestPage.java==
 public class TestPage extends WebPage {
 private String color;
 private Date date;
 public TestPage(){
 Form myform = new Form(myform);
 myform.add(new FeedbackPanel(feedback));
 myform.add(new DateTextField(date, new PropertyModel(this,
 date)));
 ListString colors = Arrays.asList(new String[]{green, red,
 yellow});
 myform.add(new RadioGroup(colors, new PropertyModel(this,
 color))
 .add(new ListViewString(color, colors) {
 @Override
 protected void populateItem(ListItemString item) {
 item.add(new Radio(radio, item.getModel()))
 .add(new Label(value, item.getModelObject()));
 }
 }));
 add(myform);
 }
 
 public String getColor() {
 return color;
 }
 public void setColor(String color) {
 this.color = color;
 }
 public Date getDate() {
 return date;
 }
 public void setDate(Date date) {
 this.date = date;
 }
 }
 
 ==TestPage.html==
 html
 head
 title/title
 /head
 body
 form wicket:id=myform
 input type=submit/
 wicket:container wicket:id=feedback/
 input type=text wicket:id=date/br/
 wicket:container wicket:id=colors
 table
 tr wicket:id=color
 tdinput type=radio wicket:id=radio//td
 td wicket:id=value/td
 /tr
 /table
 /wicket:container
 /form
 /body
 /html
 
 

-- 
View this message in context: 
http://www.nabble.com/RadioGroup-lost-value-after-onError-form-tp22718553p22777319.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Form Validations

2009-03-30 Thread Ashis

Hello all
I have a problem with a form, I want to add a feedBackPanel for each fields
added in my form. 
I used the custom FeedbackLabel i.e.
http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket

But it did not worked on AutoCompleteTextFields and RadioChoice.

Any Help

-- 
View this message in context: 
http://www.nabble.com/Form-Validations-tp22777684p22777684.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to insert ${...} literal in property file?

2009-03-30 Thread Heidi Burn
Hello, guys,

Please, help me to insert ${id} literal in a property file. Back
slashes don't work for me.
And how to tell PatternValidator to work differently for two fields in a form?

Heidi

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



NewBie question :Implementation of Collapsible Link

2009-03-30 Thread Ajayi Yinka
I am trying to see if i can implement collapsible link in my page.

i had tried to use Link Tree, but I was getting error which I could not even
trace or decipher the cause.

Please, can anyone give me insight on the best way to implement the
collapsible link

Thanks.
Yinka


MapModel javadoc spelling

2009-03-30 Thread Francis De Brabandere
Can somebody fix the javadoc for MapModel?

Based on codeModel/code but for mapss of serializable objects.

should be maps instead of mapss

-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



franz nursing home ny

2009-03-30 Thread MtnBiker

http://6.m30a.dnsdojo.net/24181n4kaije.html
http://6.m30a.dynalias.net/54m9j2l5lb6.html nurse salary in saudia arabia 
http://6.m30a.dnsdojo.org/54m9j2l5l27.html ny board of nursing address
change  http://6.m30a.blogsite.org/54m9j2l5kk9.html diabetes implications
for nurse practitioners http://6.m30a.dynalias.org/24181n4kam5c.html
licensed practical nurse lpn hospital
http://6.m30a.servebbs.net/cbk47bh9a9.html nursing colleges fl
http://6.m30a.gotdns.org/54m9j2l5m0j.html 
http://6.m30a.dnsalias.org/54m9j2l5kmn.html educational requirements for
nurses  http://6.m30a.gotdns.com/24181n4kb3c2.html 
http://6.m30a.dyndns.info/54m9j2l5lg4.html nursing migration under cgfns
program   http://6.m30a.dnsalias.com/24181n4kaf7d.html hudson vally rn jobs 
http://6.m30a.dnsalias.net/54m9j2l5kne.html
http://6.m30a.dnsdojo.net/54m9j2l5l46.html
http://6.m30a.dynalias.com/24181n4kakbg.html accelerated nursing degree
online http://6.m30a.servebbs.com/24181n4kb549.html international europe
travel nursing  http://6.m30a.dyndns.tv/54m9j2l5lkj.html nurse jobs in dubi  
http://6.m30a.servebbs.org/54m9j2l5m7f.html rutgers bachelor degree for
nursing   http://6.m30a.servebbs.org/24181n4kb6mb.html illinois certified
nurse aide registry  http://6.m30a.dnsalias.net/24181n4kah0m.html adn
nursing degree http://6.m30a.servebbs.com/54m9j2l5m34.html plan legal nurse
consultant marketing  http://6.m30a.dynalias.net/24181n4kam51.html types of
specialties for nurse practitioners  
http://6.m30a.dnsalias.com/54m9j2l5khl.html anesthesia and nurse and program 
http://6.m30a.dynalias.net/54m9j2l5lcj.html dayton nurse assistant classes 
http://6.m30a.dyndns.ws/24181n4kb1i2.html employment nursing nsw 
http://6.m30a.dnsdojo.org/54m9j2l5l2i.html expectations of nursing school
http://6.m30a.dynalias.org/54m9j2l5ld8.html
http://6.m30a.dynalias.net/24181n4kam5f.html lpn jobs in middlesex county 
http://6.m30a.blogdns.com/24181n4kaddl.html maui nursing jobs 
http://6.m30a.dvrdns.org/54m9j2l5l60.html labee labee registered nurse
http://6.m30a.dnsdojo.com/24181n4kaij8.html nurse jobs minnesota
http://6.m30a.dynalias.net/24181n4kam7f.html nursing home jobs in garland
texas  http://6.m30a.dynalias.com/24181n4kakcl.html pediatric icu nurse  
http://6.m30a.homedns.org/24181n4kb556.html nurse jobs in portland orgeon  
http://6.m30a.dyndns.ws/24181n4kb1i6.html collegiate nursing education  
http://6.m30a.gotdns.com/54m9j2l5lnl.html technology grants schools of
nursing  http://6.m30a.blogdns.net/24181n4kadcn.html national rankings of
nursing programs http://6.m30a.servebbs.org/24181n4kb6ml.html nursing jobs
on fort stewart http://6.m30a.dnsdojo.net/24181n4kaij5.html 
http://6.m30a.blogdns.org/24181n4kaddb.html importance basic stastic nursing
profession  http://6.m30a.dnsalias.org/54m9j2l5l0e.html
http://6.m30a.dnsalias.net/54m9j2l5l0n.html
http://6.m30a.servebbs.com/54m9j2l5m44.html information in nurse assistant
http://6.m30a.blogsite.org/54m9j2l5kib.html
http://6.m30a.dyndns.org/24181n4kanng.html 
http://6.m30a.dnsalias.net/24181n4kah1l.html university of toronot school of
nursing  http://6.m30a.homedns.org/54m9j2l5m5n.html rhode island nursing
travel http://6.m30a.blogdns.net/24181n4kaddn.html deliller school nursing
http://6.m30a.dyndns.tv/54m9j2l5lka.html st francis medical school of
nursing http://6.m30a.dnsalias.net/54m9j2l5kmi.html school of nursing
university of winsor http://6.m30a.dvrdns.org/24181n4kakdm.html 
http://6.m30a.dynalias.net/24181n4kam7h.html nursing refreshing courses
eastern college   http://6.m30a.blogdns.com/24181n4kaddc.html nursing ce and
ca  http://6.m30a.gotdns.org/54m9j2l5lne.html 
http://6.m30a.servebbs.org/54m9j2l5m7d.html fitzgerald nurse practitioner
certification  http://6.m30a.dyndns.org/54m9j2l5lec.html nursing ceu's
school http://6.m30a.servebbs.org/24181n4kb6m8.html
http://6.m30a.blogdns.com/54m9j2l5kde.html aultman hospital nursing program 
http://6.m30a.dyndns.org/24181n4kb004.html stepping stones nurses training
school  http://6.m30a.dynalias.org/54m9j2l5lch.html nevada registered nurse
http://6.m30a.blogsite.org/24181n4kaf6e.html
http://6.m30a.dyndns.org/54m9j2l5lfh.html resume example for a student nurse 
http://6.m30a.blogdns.com/54m9j2l5kf5.html walla walla washington nurse job 
http://6.m30a.gotdns.org/24181n4kb3ca.html
http://6.m30a.dyndns.org/54m9j2l5lg9.html hospital nursing assistants 
http://6.m30a.dvrdns.org/54m9j2l5l5m.html credentialing for nurse
practioners   http://6.m30a.servebbs.net/54m9j2l5m8m.html new york state
nursing home laws   http://6.m30a.gotdns.com/cbk47bh99d.html nurse
practitioner or physicians assistant jobs  
http://6.m30a.dnsdojo.net/54m9j2l5l38.html nursing jobs and $40 per hour 
http://6.m30a.dvrdns.org/24181n4kakbl.html
http://6.m30a.servebbs.com/24181n4kb55l.html
http://6.m30a.dnsalias.com/24181n4kaf8h.html intravenous nurses education 
http://6.m30a.dnsdojo.com/24181n4kaije.html nursing employment in usa 
http://6.m30a.blogdns.com/54m9j2l5kd7.html can nurses work with a feleny

IMPORTANT: Nabble posting disabled due to spam

2009-03-30 Thread Martijn Dashorst
I've disabled posting through the Nabble interface because they don't
seem able to prevent spam coming through their interface. If you want
to ask a question, please subscribe to the list. If you don't want to
do that, complain with Nabble support to improve their spam filtering.

Martijn

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to insert ${...} literal in property file?

2009-03-30 Thread Martijn Dashorst
1. Please file a jira
2. Use 2 patternvalidators: one for each pattern

Martijn

On 3/30/09, Heidi Burn heidi.b...@gmail.com wrote:
 Hello, guys,

 Please, help me to insert ${id} literal in a property file. Back
 slashes don't work for me.
 And how to tell PatternValidator to work differently for two fields in a
 form?

 Heidi

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: IMPORTANT: Nabble posting disabled due to spam

2009-03-30 Thread Reinout van Schouwen
Op maandag 30-03-2009 om 11:54 uur [tijdzone +0200], schreef Martijn
Dashorst:
 I've disabled posting through the Nabble interface because they don't
 seem able to prevent spam coming through their interface. If you want
 to ask a question, please subscribe to the list. If you don't want to
 do that, complain with Nabble support to improve their spam filtering.

For people who dislike the large volume of mail caused by the
mailinglist, I recommend the Gmane nntp/web interface:
http://news.gmane.org/gmane.comp.java.wicket.user

regards,

-- 
Reinout van Schouwen


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: what is the state of wicket-contrib?

2009-03-30 Thread Vladimir K

Great! Thanks a lot!



Hi

I had made a copy for wicket 1.3.5 some time back if it helps ... it is here
:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-contrib-yui-1.3.5



-- 
View this message in context: 
http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22781007.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Book/pointers on caching

2009-03-30 Thread James Perry
Caching wicket components is a really bad idea as you will run into
concurrency issues. IMHO the caching strategy depends on the how immutable
the data is, its transaction isolation (read-only, read-write, etc) and what
performance problem you are encountering (Cartesian product, N+1 select,
etc). Have a look at the Java Persistence with Hibernate for a primer on the
subject.

Cheers,
James.

On Sun, Mar 29, 2009 at 5:46 PM, Kaspar Fischer fisch...@inf.ethz.chwrote:

 I again and again run into the following problem: My Wicket app displays a
 complex page, and in order to compile the information needed for this page,
 I need to do many database/repository queries and/or computations -- so many
 that it simply takes to long and the user has two wait.

 Take for instance a page with many news blocks for different topics, a
 recently added content block, polls, the list of all active users, etc.
 Fetching all this data requires tons of queries to the backend.

 I understand that I need some caching mechanism. And as many have pointed
 out on this list, it is preferable to not do this in the presentation layer
 (caching Wicket components) but to move the caching to the business logic or
 persistence layer. So my Wicket models still make the same calls, like
 service.find(blabla), but behind the scenes, a cache speeds up the access.

 The question is just: what are good caching strategies? When to update the
 cache? Should the cache itself know when to invalidate entries? Etc. Is
 there any sample code, articles, or books on this that you can recommend?

 I liked to read Multitiered architectures in Wicket in Action and would
 enjoy something in this direction: Spring, Hibernate (or db4o), services,
 ...

 Thanks a lot,
 Kaspar

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: [OT] Book/pointers on caching

2009-03-30 Thread nino martinez wael
I wrote something about it here:
http://ninomartinez.wordpress.com/2008/08/25/pump-your-java-with-caching/

It's very easy if your already using spring or guice or any other IOC framework.

One thing though I would'nt cache too much with wicket, the benefit
are very small and the code cost are high.


2009/3/29 Kaspar Fischer fisch...@inf.ethz.ch:
 I again and again run into the following problem: My Wicket app displays a
 complex page, and in order to compile the information needed for this page,
 I need to do many database/repository queries and/or computations -- so many
 that it simply takes to long and the user has two wait.

 Take for instance a page with many news blocks for different topics, a
 recently added content block, polls, the list of all active users, etc.
 Fetching all this data requires tons of queries to the backend.

 I understand that I need some caching mechanism. And as many have pointed
 out on this list, it is preferable to not do this in the presentation layer
 (caching Wicket components) but to move the caching to the business logic or
 persistence layer. So my Wicket models still make the same calls, like
 service.find(blabla), but behind the scenes, a cache speeds up the access.

 The question is just: what are good caching strategies? When to update the
 cache? Should the cache itself know when to invalidate entries? Etc. Is
 there any sample code, articles, or books on this that you can recommend?

 I liked to read Multitiered architectures in Wicket in Action and would
 enjoy something in this direction: Spring, Hibernate (or db4o), services,
 ...

 Thanks a lot,
 Kaspar

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to prevent a flickering when Ajax updates an Image

2009-03-30 Thread santo_75

Hi,

I tried some of your suggestions and I came up with a working sollution. But
I have the feeling I can do better than that.

Waht I did is having two of my images at the same time, both wrapped by a
div layer. One div layer is hidden, the other is visible. When something
happens the non visible image gets updated and when the update is done it
will be set to visible and the prior visible will be set to hidden.

I think the concept is ok... but I'd rather work with just one div layer and
copy the image to the visible area via javascript. But I couldn't figure out
how to do that.

Here is some code to show what I did in detail:

This is my image (I have two of theese, map1 and map 2)
NonCachingImage map = new NonCachingImage(map1, new
PropertyModel(this, imageResourceMap)){
private static final long serialVersionUID = 1L;

@Override 
protected void onBeforeRender() {
generateMap();
super.onBeforeRender();
}

};

map.setOutputMarkupId(true);
map.add(new AjaxEventBehavior(onLoad){

@Override
protected void onEvent(AjaxRequestTarget target) {
}

@Override
protected CharSequence getSuccessScript() {
logger.debug(successscript;);
return hideShowElement('divMap2', 'divMap1');;
}

});



I don't know if the SuccessScript is the right place for it... but it
worked.

This is my markup
div id=divMapContainer style=position: absolute;
div id=divMap1 style=display: block; position: 
absolute; left: 10px;
top: 10px;
im.g id=map1 wicket:id = map1 width=400 height=300
onMouseMove='onMove(this, event)'/
/div

div id=divMap2 style=display: none; position: 
absolute; left: 10px;
top: 10px;
im.g id=map2 wicket:id = map2 width=400 
height=300/
/div
/div



The question now is: 
Is the thing I did ok? or is the a better way of doing it?
Right now I have almost no flicker (90% flicker free)... but I think it can
do 100%.



nino martinez wael wrote:
 
 Okay here are some pointers :
 
 http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/
 http://blog.jayway.com/2008/09/26/wicket-javascript-internals-dissected/
 
 And I would probably make a hidden container in which the image loads(so
 that the browser has it loaded), and then use scriptaculous to load it as
 a
 replacement for the image..
 
 
 2009/3/25 santo_75 reinhard.vornh...@coredumped.de
 

 Hi,

 well yes, I understand what you say. But I am not that deep into wicket
 an
 ajax yet... so right now, I don't know what to do next.

 Could you, or anyone else, give some details how to submit the image to
 the
 client-browser and not show it before it's fully loaded?


 thx
 Santo


 nino martinez wael wrote:
 
  Hi
 
  Must be the delay to your server (which is normal I think), I'd suggest
  using something like scriptaculus and then a fade in / out effect. You
  could
  possibly also just prefect it and replace it when fully loaded.
 
  2009/3/24 santo_75 reinhard.vornh...@coredumped.de
 
 
  Hi there,
 
  i have a page that updates an image through a ajax request.
 
  Some Code first:
 
  public class MyPage extends WebPage{
 private RenderedDynamicImageResource imageResourceMap;
 
  ...
  NonCachingImage map = new NonCachingImage(map, new
 PropertyModel(this,
  imageResourceMap)){
 private static final long serialVersionUID = 1L;
 
 @Override
 protected void onBeforeRender() {
 generateMap();
 super.onBeforeRender();
 }
 };
 
 
 AjaxLink lNorth = new AjaxLink(north_link, this.getModel()) {
 @Override
 public void onClick(AjaxRequestTarget target) {
  ...
 target.addComponent(Overview.this.get(map));
 }
 };
 
 
 private void generateMap(){
 HexCoordinates hc = (HexCoordinates) getModelObject();
 imageResourceMap = mapGenerationService.getMap(hc.getX(),
  hc.getY(),
  6);
 }
 
...
  }
 
  html markup is this
 
  ...
 
  ...
 
 
  So my problem is, everytime I click the ajaxlink the image gets
 updated
  correctly but it flickers. Which is very unpleasant. Doesn't matter if
 I
  use
  IE or FF. Both show the flickering effect.
 
  Any help is greatly appreciated.
  Thanx
  Santo.
 
  --
  View this message in context:
 
 

WebResource and Guice

2009-03-30 Thread Adriano dos Santos Fernandes

Hi!

I've this, on my Application class:

getSharedResources().add(name, new WebResource() {
   private static final long serialVersionUID = 1L;

   @Override
   public IResourceStream getResourceStream()
   {
   return new AbstractResourceStream() {
   private static final long serialVersionUID = 1L;
   private @Inject TerceiroService service;

   {
   componentInjector.inject(this);
   }

 ...

Would be there a nicer way to inject service in this case?


Adriano


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: what is the state of wicket-contrib?

2009-03-30 Thread Joshua Lim
Hi

I had made a copy for wicket 1.3.5 some time back if it helps ... it is here
:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-contrib-yui-1.3.5


2009/3/26 Vladimir K koval...@gmail.com


 Thanks Jeremy. I will have a look at snaphot.

 But what I'm concerned about ... I would like to include just stable
 versions of components into my project. Is it possible to find a stable
 version of yui integration for wicket 1.3.5?


 Jeremy Thomerson-5 wrote:
 
  There is no wicket-contrib project.  There is a project that was
  wicket-contrib-yui.  If that's what you need, the source is here:
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/
 
  Run these three commands and you'll have it:
 
  svn co
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core
  cd wicketstuff-core
  mvn clean install
 
  Or you can find snapshots here:
  http://wicketstuff.org/maven/repository/org/wicketstuff/yui/
 
  Or the 1.4-RC2 release in this repo:
  http://www.wickettraining.com/ws-repo
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Mar 25, 2009 at 12:07 PM, Vladimir K koval...@gmail.com wrote:
 
 
  Anyone?
 
  Is wicket-contrib a dead project?
 
 
  Vladimir K wrote:
  
   I'm concerned about where I can get wicket-contrib-yui?
   Sourceforge download page privide several outdated projects and does
  not
   provide wicket-contrib-yui at all.
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22706493.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22707493.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: When and how to use tag 'wicket:component'?

2009-03-30 Thread Martijn Dashorst
Short answer: don't use it. It is not supported.

Search the list archives for info if you still insist on learning more.

Martijn

On 3/30/09, Zenberg Ding zenberg.d...@gmail.com wrote:

 Hi folks, I just wonder when and how to use tag 'wicket:component'. what's
 the intention of this tag exists?

 Thanks


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Link not getting onclick event

2009-03-30 Thread Seven Corners

Thanks for getting back to me.  I figured it out; I had a mismatched div tag
that Firefox forgave.  It wasn't a Wicket issue at all.
-- 
View this message in context: 
http://www.nabble.com/Link-not-getting-onclick-event-tp22725492p22781576.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WebResource and Guice

2009-03-30 Thread Martijn Dashorst
the only thing that comes to mind is salve

Martijn

On Mon, Mar 30, 2009 at 2:03 PM, Adriano dos Santos Fernandes
adrian...@uol.com.br wrote:
 Hi!

 I've this, on my Application class:

 getSharedResources().add(name, new WebResource() {
   private static final long serialVersionUID = 1L;

   @Override
   public IResourceStream getResourceStream()
   {
       return new AbstractResourceStream() {
           private static final long serialVersionUID = 1L;
           private @Inject TerceiroService service;

           {
               componentInjector.inject(this);
           }

         ...

 Would be there a nicer way to inject service in this case?


 Adriano


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket log4j MDC

2009-03-30 Thread daniel . lipski . pl
Hi

I would like to add MDC information(i.e. user login) to my loggs (log4j).
To do that I have to call MDC.put at the beggining of request
handling. Im looking for 'interception' functionality in Wicket to add
MDC code there. Where I should add such code ? RequestCycle ?

Regards
Daniel



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Extend layout of a page

2009-03-30 Thread Pi Trash
Hi,

I am searching for a way to extend the design of a page without changing the 
page itself. That means, something like the Decorator Pattern. I have a page 
with for example just a table in it. In another project (or the same project) 
this page should have a navigation on the top.

My current solution is the following:
I have a base page which is segmented into five panels: header, left, main, 
right and footer. Now if a navigation is needed, a menu panel will be added to 
the header panel.

Is there a better way?

tia

Pt! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: CheckBoxMultipleChoice: change markup from label to span

2009-03-30 Thread jcgarciam

Hi,

I guess the solution would be using a 
http://cwiki.apache.org/WICKET/listview-with-checkboxes.html ListView  in
conjunction with a CheckGroup object in order to achieve what you want.


Roman Zechner | Liland wrote:
 
 is there a way to change the markup of CheckBoxMultipleChoice?
 CheckBoxMultipleChoice.onComponentTagBody() is final ... I need to 
 change the label tag to 
 
 thanks
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/CheckBoxMultipleChoice%3A-change-markup-from-%3Clabel%3E-to-%3Cspan%3E-tp22781388p22784346.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket log4j MDC

2009-03-30 Thread Azzeddine Daddah
You can create a custom request cycle which extends the Wicket
WebRequestCycle. This logs the user name in your logs of the user who does
the request.

public class MyRequestCycle extends WebRequestCycle {
private static final Logger logger =
Logger.getLogger(MyRequestCycle.class);

public static final String USER = USER;

private Time requestStart;
private Time requestEnd;

/**
 * Creates a new request cycle.
 *
 * @param application the application
 * @param request the request
 * @param response the response
 */
public MyRequestCycle(WebApplication application, WebRequest request,
Response response) {
super(application, request, response);
}

@Override
protected void onBeginRequest() {
requestStart = Time.now();
MDC.put(USER, YourUser.getUsername());
logger.debug(Begin Request);
}

@Override
protected void onEndRequest() {
requestEnd = Time.now();
logger.debug(End Request. Request took  +
TimeFrame.valueOf(requestStart, requestEnd).getDuration());
MDC.remove(USER);
}

@Override
public Page onRuntimeException(Page page, RuntimeException e) {
return null;
}

}


Azzeddine Daddah
www.hbiloo.com


On Mon, Mar 30, 2009 at 4:11 PM, daniel.lipski...@gmail.com wrote:

 Hi

 I would like to add MDC information(i.e. user login) to my loggs (log4j).
 To do that I have to call MDC.put at the beggining of request
 handling. Im looking for 'interception' functionality in Wicket to add
 MDC code there. Where I should add such code ? RequestCycle ?

 Regards
 Daniel



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Extend layout of a page

2009-03-30 Thread Serkan Camurcuoglu

search for the words wicket markup inheritance on google..



Pi Trash wrote:

Hi,

I am searching for a way to extend the design of a page without changing the 
page itself. That means, something like the Decorator Pattern. I have a page 
with for example just a table in it. In another project (or the same project) 
this page should have a navigation on the top.

My current solution is the following:
I have a base page which is segmented into five panels: header, left, main, 
right and footer. Now if a navigation is needed, a menu panel will be added to 
the header panel.

Is there a better way?

tia

Pt! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



visibility Behavior?

2009-03-30 Thread Ryan McKinley
I am working on some security integration (Ki/wicket), and am looking  
at a general way to set component visibility based on the user  
permissions/roles etc.


Of course I could do:  component.setVisible( false ), but that gets  
really verbose when 'false' can be a rather long statement.


Wicket-auth-roles uses the authorize actions annotation to disable  
RENDER/ENABLE


I understand how to apply that if I construct a class with the  
annotation, but how would I apply something like that to an arbitrary  
component?


Could this be implemented with a Behavior?

Perhaps, beforeRender() could set enabled/visibility and cleanup()  
would restore it?


It would be great to be able to do:

WebMarkupContainer stuff = new WebMarkupContainer( stats );
stats.add( new AuthorizationConstraint( view: stats );

or something like that.

Any pointers?  Am I missing another preferred way to do this?

thanks
ryan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: visibility Behavior?

2009-03-30 Thread Stephan Koch
Hi Ryan,

works nice with behaviors. I use somehing like the following to
show/hide components based on my user roles:

public class MySecurityBehavior extends AbstractBehavior {

private boolean isVisible() {
// your logic for security checks...
}

@Override
public void bind(Component component) {
boolean visible = isVisible();
component.setVisibilityAllowed(visible);
component.setVisible(visible);
}

}

then just add that to your components.

-stephan

Ryan McKinley wrote:
 I am working on some security integration (Ki/wicket), and am looking at
 a general way to set component visibility based on the user
 permissions/roles etc.
 
 Of course I could do:  component.setVisible( false ), but that gets
 really verbose when 'false' can be a rather long statement.
 
 Wicket-auth-roles uses the authorize actions annotation to disable
 RENDER/ENABLE
 
 I understand how to apply that if I construct a class with the
 annotation, but how would I apply something like that to an arbitrary
 component?
 
 Could this be implemented with a Behavior?
 
 Perhaps, beforeRender() could set enabled/visibility and cleanup() would
 restore it?
 
 It would be great to be able to do:
 
 WebMarkupContainer stuff = new WebMarkupContainer( stats );
 stats.add( new AuthorizationConstraint( view: stats );
 
 or something like that.
 
 Any pointers?  Am I missing another preferred way to do this?
 
 thanks
 ryan
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: RadioGroup lost value after onError form

2009-03-30 Thread Igor Vaynberg
use repeatingview instead of listview, or call setreuseitems on the
listview. there is javadoc on the listview that warns you about this.

-igor

On Sun, Mar 29, 2009 at 11:55 PM, Marieke Vandamme ma...@tvh.be wrote:

 Hello,

 Can't anyone help me with this?
 Or do I just report a jira bug for this?
 THANKS!


 Marieke Vandamme wrote:

 Hello,

 consider example underneath.
 Form with DateTextField and RadioGroup. When an incorrect date is entered
 in the TextField, the value choosen in radiogroup is lost. When correct
 date is entered, the value is shown correct in radiogroup.
 Is this an error in my code? Or a bug?
 I'm using wicket 1.4-rc2.
 Thanks for any help !!

 ==TestPage.java==
 public class TestPage extends WebPage {
     private String color;
     private Date date;
     public TestPage(){
         Form myform = new Form(myform);
         myform.add(new FeedbackPanel(feedback));
         myform.add(new DateTextField(date, new PropertyModel(this,
 date)));
         ListString colors = Arrays.asList(new String[]{green, red,
 yellow});
         myform.add(new RadioGroup(colors, new PropertyModel(this,
 color))
                 .add(new ListViewString(color, colors) {
             @Override
             protected void populateItem(ListItemString item) {
                 item.add(new Radio(radio, item.getModel()))
                         .add(new Label(value, item.getModelObject()));
             }
         }));
         add(myform);
     }

     public String getColor() {
         return color;
     }
     public void setColor(String color) {
         this.color = color;
     }
     public Date getDate() {
         return date;
     }
     public void setDate(Date date) {
         this.date = date;
     }
 }

 ==TestPage.html==
 html
     head
         title/title
     /head
     body
         form wicket:id=myform
             input type=submit/
             wicket:container wicket:id=feedback/
             input type=text wicket:id=date/br/
             wicket:container wicket:id=colors
                 table
                     tr wicket:id=color
                         tdinput type=radio wicket:id=radio//td
                         td wicket:id=value/td
                     /tr
                 /table
             /wicket:container
         /form
     /body
 /html



 --
 View this message in context: 
 http://www.nabble.com/RadioGroup-lost-value-after-onError-form-tp22718553p22777319.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Book/pointers on caching

2009-03-30 Thread Scott Swank
This author compared several caching libraries and recommends ehcache.

http://javalandscape.blogspot.com/2009/03/intro-to-cachingcaching-algorithms-and.html

- Scott


On Mon, Mar 30, 2009 at 4:33 AM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 I wrote something about it here:
 http://ninomartinez.wordpress.com/2008/08/25/pump-your-java-with-caching/

 It's very easy if your already using spring or guice or any other IOC 
 framework.

 One thing though I would'nt cache too much with wicket, the benefit
 are very small and the code cost are high.


 2009/3/29 Kaspar Fischer fisch...@inf.ethz.ch:
 I again and again run into the following problem: My Wicket app displays a
 complex page, and in order to compile the information needed for this page,
 I need to do many database/repository queries and/or computations -- so many
 that it simply takes to long and the user has two wait.

 Take for instance a page with many news blocks for different topics, a
 recently added content block, polls, the list of all active users, etc.
 Fetching all this data requires tons of queries to the backend.

 I understand that I need some caching mechanism. And as many have pointed
 out on this list, it is preferable to not do this in the presentation layer
 (caching Wicket components) but to move the caching to the business logic or
 persistence layer. So my Wicket models still make the same calls, like
 service.find(blabla), but behind the scenes, a cache speeds up the access.

 The question is just: what are good caching strategies? When to update the
 cache? Should the cache itself know when to invalidate entries? Etc. Is
 there any sample code, articles, or books on this that you can recommend?

 I liked to read Multitiered architectures in Wicket in Action and would
 enjoy something in this direction: Spring, Hibernate (or db4o), services,
 ...

 Thanks a lot,
 Kaspar

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MapModel javadoc spelling

2009-03-30 Thread Igor Vaynberg
fixed

-igor

On Mon, Mar 30, 2009 at 1:25 AM, Francis De Brabandere
franci...@gmail.com wrote:
 Can somebody fix the javadoc for MapModel?

 Based on codeModel/code but for mapss of serializable objects.

 should be maps instead of mapss

 --
 http://www.somatik.be
 Microsoft gives you windows, Linux gives you the whole house.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: visibility Behavior?

2009-03-30 Thread Igor Vaynberg
look at wicket-auth-roles, there the metadata storage is used to
attach permissions to arbitrary components. this doesnt have the
overhead of behaviors.

-igor

On Mon, Mar 30, 2009 at 8:19 AM, Ryan McKinley ryan...@gmail.com wrote:
 I am working on some security integration (Ki/wicket), and am looking at a
 general way to set component visibility based on the user permissions/roles
 etc.

 Of course I could do:  component.setVisible( false ), but that gets really
 verbose when 'false' can be a rather long statement.

 Wicket-auth-roles uses the authorize actions annotation to disable
 RENDER/ENABLE

 I understand how to apply that if I construct a class with the annotation,
 but how would I apply something like that to an arbitrary component?

 Could this be implemented with a Behavior?

 Perhaps, beforeRender() could set enabled/visibility and cleanup() would
 restore it?

 It would be great to be able to do:

 WebMarkupContainer stuff = new WebMarkupContainer( stats );
 stats.add( new AuthorizationConstraint( view: stats );

 or something like that.

 Any pointers?  Am I missing another preferred way to do this?

 thanks
 ryan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: CheckBoxMultipleChoice: change markup from label to span

2009-03-30 Thread Roman Zechner

thanks for the hint!

jcgarciam wrote:

Hi,

I guess the solution would be using a 
http://cwiki.apache.org/WICKET/listview-with-checkboxes.html ListView  in

conjunction with a CheckGroup object in order to achieve what you want.


Roman Zechner | Liland wrote:
  

is there a way to change the markup of CheckBoxMultipleChoice?
CheckBoxMultipleChoice.onComponentTagBody() is final ... I need to 
change the label tag to 


thanks

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wicket log4j MDC

2009-03-30 Thread Jeremy Thomerson
Yes. In your application, override newRequestCycle and return a custom rc that 
uses onBeginRequest (IIRC) to do this.


Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: daniel.lipski...@gmail.com
Sent: Monday, March 30, 2009 9:11 AM
To: users@wicket.apache.org
Subject: wicket  log4j MDC

Hi

I would like to add MDC information(i.e. user login) to my loggs (log4j).
To do that I have to call MDC.put at the beggining of request
handling. Im looking for 'interception' functionality in Wicket to add
MDC code there. Where I should add such code ? RequestCycle ?

Regards
Daniel



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How do I call alert(); rather than using .info or .error of Component

2009-03-30 Thread jcgarciam

You could try iterating thru the FeedBackMessage List

Using something like:

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  FeedbackMessages messages = 
WebSession.get().getFeedbackMessages();
  if(!messages.isEmpty()){
 //Iterate thru the messagesList and build a nice JavaScript
Alert Message

response.renderOnLoadJavascript(buildJSAlertFeedback(messages));
  }
 }
 private String buildJSAlertFeedback(FeedbackMessages  messages){
 .
 return .;
 }



john.mattucci wrote:
 
 I need to display messages via a javascript alert box rather than .error
 or .info messages which is provided in Component. I currently have the
 following. The problem is that the message remains. The alert appears
 whenever there is an error however how do I remove it? And is this the
 best approach? Thank you.
 .. extends AbstractBehavior {
 private String message;
 
 public void setMessage(String message) {
   this.message = message;
 }
 
 @Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);
response.renderOnLoadJavascript(alert(' + message +
 '););
 }
 
 
 
 NOTICE OF CONFIDENTIALITY
 This communication including any information transmitted with it is 
 intended only for the use of the addressees and is confidential. 
 If you are not an intended recipient or responsible for delivering 
 the message to an intended recipient, any review, disclosure, 
 conversion to hard copy, dissemination, reproduction or other use 
 of any part of this communication is strictly prohibited, as is the 
 taking or omitting of any action in reliance upon this communication. 
 If you receive this communication in error or without authorization 
 please notify us immediately by return e-mail or otherwise and 
 permanently delete the entire communication from any computer, 
 disk drive, or other storage medium.
 
 If the above disclaimer is not properly readable, it can be found at 
 www.td.com/legal

 AVERTISSEMENT DE CONFIDENTIALITE   
 Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
 aux destinataires susmentionnés,  est confidentiel.  Si vous 
 n'êtes pas le destinataire prévu ou un agent responsable de la 
 livraison de ce courriel, tout examen, divulgation, copie, impression, 
 reproduction, distribution, ou autre utilisation d'une partie de ce 
 courriel est strictement interdit de même que toute intervention ou 
 abstraction à cet égard.  Si vous avez reçu ce message par erreur ou 
 sans autorisation, veuillez en aviser immédiatement l'expéditeur par 
 retour de courriel ou par un autre moyen et supprimer immédiatement 
 cette communication entière de tout système électronique.
 
 Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous 
 pouvez le consulter à www.td.com/francais/legale
 
 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-call-alert%28%29--rather-than-using-.info-or-.error-of-Component-tp22789324p22789715.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How do I call alert(); rather than using .info or .error of Component

2009-03-30 Thread Michael O'Cleirigh

Hi John,

Normally the error, info, fatal messages on Component enter the message 
into the List of Feedback messages in the Session.   The messages are 
accumulated during the pre render phase of the request cycle and then 
the entire list is detached at the end of the request cycle. see 
org.apache.wicket.Session#cleanupFeedbackMessages()


The easy way would be to extend the default FeedbackPanel (or something 
custom from the IFeedback interface) which would take care of consuming 
the messages and apply your implementation to render the errors out as a 
javascript alert.


Regards,

Mike

I need to display messages via a javascript alert box rather than .error or 
.info messages which is provided in Component. I currently have the following. 
The problem is that the message remains. The alert appears whenever there is an 
error however how do I remove it? And is this the best approach? Thank you.
.. extends AbstractBehavior {
private String message;

public void setMessage(String message) {
  this.message = message;
}

@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
   response.renderOnLoadJavascript(alert(' + message + '););
}
  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: How do I call alert(); rather than using .info or .error of Component

2009-03-30 Thread Mattucci, John
Sorry my bad. Got it to work. Is there a way to stop the error/info messages 
from displaying altogether on the form? Thanks again.





-Original Message-
From: jcgarciam [mailto:jcgarc...@gmail.com]
Sent: Monday, March 30, 2009 2:28 PM
To: users@wicket.apache.org
Subject: Re: How do I call alert(); rather than using .info or .error of 
Component


You could try iterating thru the FeedBackMessage List

Using something like:

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  FeedbackMessages messages =
WebSession.get().getFeedbackMessages();
  if(!messages.isEmpty()){
 //Iterate thru the messagesList and build a nice JavaScript
Alert Message

response.renderOnLoadJavascript(buildJSAlertFeedback(messages));
  }
 }
 private String buildJSAlertFeedback(FeedbackMessages  messages){
 .
 return .;
 }



john.mattucci wrote:

 I need to display messages via a javascript alert box rather than .error
 or .info messages which is provided in Component. I currently have the
 following. The problem is that the message remains. The alert appears
 whenever there is an error however how do I remove it? And is this the
 best approach? Thank you.
 .. extends AbstractBehavior {
 private String message;

 public void setMessage(String message) {
   this.message = message;
 }

 @Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);
response.renderOnLoadJavascript(alert(' + message +
 '););
 }


 
 NOTICE OF CONFIDENTIALITY
 This communication including any information transmitted with it is
 intended only for the use of the addressees and is confidential.
 If you are not an intended recipient or responsible for delivering
 the message to an intended recipient, any review, disclosure,
 conversion to hard copy, dissemination, reproduction or other use
 of any part of this communication is strictly prohibited, as is the
 taking or omitting of any action in reliance upon this communication.
 If you receive this communication in error or without authorization
 please notify us immediately by return e-mail or otherwise and
 permanently delete the entire communication from any computer,
 disk drive, or other storage medium.

 If the above disclaimer is not properly readable, it can be found at
 www.td.com/legal

 AVERTISSEMENT DE CONFIDENTIALITE
 Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
 aux destinataires susmentionnés,  est confidentiel.  Si vous
 n'êtes pas le destinataire prévu ou un agent responsable de la
 livraison de ce courriel, tout examen, divulgation, copie, impression,
 reproduction, distribution, ou autre utilisation d'une partie de ce
 courriel est strictement interdit de même que toute intervention ou
 abstraction à cet égard.  Si vous avez reçu ce message par erreur ou
 sans autorisation, veuillez en aviser immédiatement l'expéditeur par
 retour de courriel ou par un autre moyen et supprimer immédiatement
 cette communication entière de tout système électronique.

 Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
 pouvez le consulter à www.td.com/francais/legale



--
View this message in context: 
http://www.nabble.com/How-do-I-call-alert%28%29--rather-than-using-.info-or-.error-of-Component-tp22789324p22789715.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is 
intended only for the use of the addressees and is confidential. 
If you are not an intended recipient or responsible for delivering 
the message to an intended recipient, any review, disclosure, 
conversion to hard copy, dissemination, reproduction or other use 
of any part of this communication is strictly prohibited, as is the 
taking or omitting of any action in reliance upon this communication. 
If you receive this communication in error or without authorization 
please notify us immediately by return e-mail or otherwise and 
permanently delete the entire communication from any computer, 
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at 
www.td.com/legal
   
AVERTISSEMENT DE CONFIDENTIALITE   
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
aux destinataires susmentionnés,  est confidentiel.  Si vous 
n'êtes pas le destinataire prévu ou un agent responsable de la 
livraison de ce courriel, tout examen, divulgation, copie, impression, 
reproduction, distribution, ou autre 

RE: How do I call alert(); rather than using .info or .error of Component

2009-03-30 Thread jcgarciam

Would you please elaborated more on this?

You mean like filtering ERROR or INFO messages?
   

john.mattucci wrote:
 
 Sorry my bad. Got it to work. Is there a way to stop the error/info
 messages from displaying altogether on the form? Thanks again.
 
 
 
 
 
 -Original Message-
 From: jcgarciam [mailto:jcgarc...@gmail.com]
 Sent: Monday, March 30, 2009 2:28 PM
 To: users@wicket.apache.org
 Subject: Re: How do I call alert(); rather than using .info or .error of
 Component
 
 
 You could try iterating thru the FeedBackMessage List
 
 Using something like:
 
 @Override
 public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   FeedbackMessages messages =
 WebSession.get().getFeedbackMessages();
   if(!messages.isEmpty()){
  //Iterate thru the messagesList and build a nice JavaScript
 Alert Message
 
 response.renderOnLoadJavascript(buildJSAlertFeedback(messages));
   }
  }
  private String buildJSAlertFeedback(FeedbackMessages  messages){
  .
  return .;
  }
 
 
 
 john.mattucci wrote:

 I need to display messages via a javascript alert box rather than .error
 or .info messages which is provided in Component. I currently have the
 following. The problem is that the message remains. The alert appears
 whenever there is an error however how do I remove it? And is this the
 best approach? Thank you.
 .. extends AbstractBehavior {
 private String message;

 public void setMessage(String message) {
   this.message = message;
 }

 @Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);
response.renderOnLoadJavascript(alert(' + message +
 '););
 }


 
 NOTICE OF CONFIDENTIALITY
 This communication including any information transmitted with it is
 intended only for the use of the addressees and is confidential.
 If you are not an intended recipient or responsible for delivering
 the message to an intended recipient, any review, disclosure,
 conversion to hard copy, dissemination, reproduction or other use
 of any part of this communication is strictly prohibited, as is the
 taking or omitting of any action in reliance upon this communication.
 If you receive this communication in error or without authorization
 please notify us immediately by return e-mail or otherwise and
 permanently delete the entire communication from any computer,
 disk drive, or other storage medium.

 If the above disclaimer is not properly readable, it can be found at
 www.td.com/legal

 AVERTISSEMENT DE CONFIDENTIALITE
 Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
 aux destinataires susmentionnés,  est confidentiel.  Si vous
 n'êtes pas le destinataire prévu ou un agent responsable de la
 livraison de ce courriel, tout examen, divulgation, copie, impression,
 reproduction, distribution, ou autre utilisation d'une partie de ce
 courriel est strictement interdit de même que toute intervention ou
 abstraction à cet égard.  Si vous avez reçu ce message par erreur ou
 sans autorisation, veuillez en aviser immédiatement l'expéditeur par
 retour de courriel ou par un autre moyen et supprimer immédiatement
 cette communication entière de tout système électronique.

 Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
 pouvez le consulter à www.td.com/francais/legale


 
 --
 View this message in context:
 http://www.nabble.com/How-do-I-call-alert%28%29--rather-than-using-.info-or-.error-of-Component-tp22789324p22789715.html
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 NOTICE OF CONFIDENTIALITY
 This communication including any information transmitted with it is 
 intended only for the use of the addressees and is confidential. 
 If you are not an intended recipient or responsible for delivering 
 the message to an intended recipient, any review, disclosure, 
 conversion to hard copy, dissemination, reproduction or other use 
 of any part of this communication is strictly prohibited, as is the 
 taking or omitting of any action in reliance upon this communication. 
 If you receive this communication in error or without authorization 
 please notify us immediately by return e-mail or otherwise and 
 permanently delete the entire communication from any computer, 
 disk drive, or other storage medium.
 
 If the above disclaimer is not properly readable, it can be found at 
 www.td.com/legal

 AVERTISSEMENT DE CONFIDENTIALITE   
 Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
 aux destinataires susmentionnés,  est confidentiel.  Si 

Annoying ModificationWatcher Task... debug log line

2009-03-30 Thread Thierry Leveque
Hi,

I am running my Wicket application in development mode and I am getting a
line like:
DEBUG ModificationWatcher Task org.apache.wicket.util.thread.Task - Run the
job: org.apache.wicket.util.watch.modificationwatche...@d31f85

Every second or 2 in my log file. This is really annoying. Is there a way to
remove that?

And what is this ModificationWatcher Task?

Thanks

Thierry
Sent from: Montreal Quebec Canada.


Re: Annoying ModificationWatcher Task... debug log line

2009-03-30 Thread Igor Vaynberg
On Mon, Mar 30, 2009 at 12:44 PM, Thierry Leveque tleve...@gmail.com wrote:
 Every second or 2 in my log file. This is really annoying. Is there a way to
 remove that?

change your logger configuration and set that package to info

 And what is this ModificationWatcher Task?

the thing that watches for file modifications and reloads them so you
dont have to restart the app every time you change your .html or
.properties file.

-igor


 Thanks

 Thierry
 Sent from: Montreal Quebec Canada.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Annoying ModificationWatcher Task... debug log line

2009-03-30 Thread Thierry Leveque
Thanks for the info!

I think I remember seeing somewhere that we can turn off this auto reload
feature...
I really don't need that for the moment.
Does anybody know how to do that?

Thierry
Sent from: Montreal Quebec Canada.

On Mon, Mar 30, 2009 at 16:18, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 On Mon, Mar 30, 2009 at 12:44 PM, Thierry Leveque tleve...@gmail.com
 wrote:
  Every second or 2 in my log file. This is really annoying. Is there a way
 to
  remove that?

 change your logger configuration and set that package to info

  And what is this ModificationWatcher Task?

 the thing that watches for file modifications and reloads them so you
 dont have to restart the app every time you change your .html or
 .properties file.

 -igor

 
  Thanks
 
  Thierry
  Sent from: Montreal Quebec Canada.
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Why should the programmer specify how a SingleSelectChoice looks?

2009-03-30 Thread T P D
What I really like about Wicket is that it -- much more than JSPs -- 
allows the separation of HTML markup from Java code. No c:ifing with a 
Domain Specific Language like JTSL (or Velocity macros) inside HTML 
markup and side-by-side with javascript. In Wicket, in contrast, HTML 
markup contains only HTML and Wicket tags, which look just like

HTML tags. That's it.

But I think this could be taken a bit farther, and I'd like the list's 
thoughts on a proposal.


Wicket imposes one constraint on markup: roughly, any HTML element with 
a wicket:id attribute must match a Wicket Component, a Java Object, in 
the Java code. More precisely, the HTML element tree (considering only 
wicket:id elements) must (with a few exceptions) match the Wicket 
Component tree rooted at the Wicket Page.


But -- in my opinion -- Wicket goes a bit too far in enforcing this. In 
particular, there are at least three ways to allow a web page user to 
select one thing from a list of several things:

A drop down list, like this:
selectoptionone/optionoptiontwo/option/select

A list that scrolls but doesn't drop down, as above but with the 
select tag given a size attribute.


   Or, a group of radio buttons, like this:
input type=radioone/inputinput type=radiotwo/input


To the application and its programmer, these are all the same 
functionality: present some choices, find out which SINGLE choice the 
user selects. How that looks on the page is immaterial to the 
application's functionality.


To the page designer, these are all different, presenting different 
looks, talking up different amounts of screen space, each with a 
slightly different learning curve for the user. In particular, novice 
web users may not even realize the drop down is a choice and can be 
clicked on, dropped down, and changed.


If the page designer decides that, say, he's dealing with a less 
web-savvy population, and wants to change the dropdown to a group of 
radio buttons, someone has to send a change request to the Java programmer.


Then the programmer has to change some or all instances of one class 
derived from AbstractSingleSelectChoice (e.g., DropDownChoice) to 
another (e.g., RadioChoice). Which shouldn't happen; the way the choice 
is rendered has nothing to do with the the page's functionality.


In Model-View-Controller terms, the rendered look is purely up to the 
Model; the functionality purely the domain of the Controller.


Would it be useful to have a Wicket Component that automatically 
rendered whichever type look the page designer wants, further decoupling 
  web page designer's View from Programmer's Controller, while 
providing a single uniform functional interface to the application?


Thanks or reading, and I hope to hear your feedback.
--Tom

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why should the programmer specify how a SingleSelectChoice looks?

2009-03-30 Thread Igor Vaynberg
there isnt anything really stopping you from doing this. afaict you
already have all the wicket hooks to do this.

-igor

On Mon, Mar 30, 2009 at 2:15 PM, T P D li...@diffenbach.org wrote:
 What I really like about Wicket is that it -- much more than JSPs -- allows
 the separation of HTML markup from Java code. No c:ifing with a Domain
 Specific Language like JTSL (or Velocity macros) inside HTML markup and
 side-by-side with javascript. In Wicket, in contrast, HTML markup contains
 only HTML and Wicket tags, which look just like
 HTML tags. That's it.

 But I think this could be taken a bit farther, and I'd like the list's
 thoughts on a proposal.

 Wicket imposes one constraint on markup: roughly, any HTML element with a
 wicket:id attribute must match a Wicket Component, a Java Object, in the
 Java code. More precisely, the HTML element tree (considering only
 wicket:id elements) must (with a few exceptions) match the Wicket
 Component tree rooted at the Wicket Page.

 But -- in my opinion -- Wicket goes a bit too far in enforcing this. In
 particular, there are at least three ways to allow a web page user to select
 one thing from a list of several things:
    A drop down list, like this:
        selectoptionone/optionoptiontwo/option/select

    A list that scrolls but doesn't drop down, as above but with the select
 tag given a size attribute.

   Or, a group of radio buttons, like this:
        input type=radioone/inputinput type=radiotwo/input


 To the application and its programmer, these are all the same functionality:
 present some choices, find out which SINGLE choice the user selects. How
 that looks on the page is immaterial to the application's functionality.

 To the page designer, these are all different, presenting different looks,
 talking up different amounts of screen space, each with a slightly different
 learning curve for the user. In particular, novice web users may not even
 realize the drop down is a choice and can be clicked on, dropped down, and
 changed.

 If the page designer decides that, say, he's dealing with a less web-savvy
 population, and wants to change the dropdown to a group of radio buttons,
 someone has to send a change request to the Java programmer.

 Then the programmer has to change some or all instances of one class derived
 from AbstractSingleSelectChoice (e.g., DropDownChoice) to another (e.g.,
 RadioChoice). Which shouldn't happen; the way the choice is rendered has
 nothing to do with the the page's functionality.

 In Model-View-Controller terms, the rendered look is purely up to the Model;
 the functionality purely the domain of the Controller.

 Would it be useful to have a Wicket Component that automatically rendered
 whichever type look the page designer wants, further decoupling  web page
 designer's View from Programmer's Controller, while providing a single
 uniform functional interface to the application?

 Thanks or reading, and I hope to hear your feedback.
 --Tom

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why should the programmer specify how a SingleSelectChoice looks?

2009-03-30 Thread T P D
Well, actually, I have done it, by abstracting out the rendering by 
having onTagComponent and onTagComponentBody, in a class derived from 
AbstractSingleSelectChoice, delegate to a GOF Strategy Pattern.


I then have four strategies: one each for dropdown, dropdownlist, and 
radiochoice, and a fourth strategy that delegates to one of the other 
three depending on the tag in the HTML markup file. (And of course other 
 programmers can derive from the AbstractStrategy to do whatever they 
want.)


Using any of the first three strategies essentially gives the user the 
functionality of the existing Wicket classes DropDownChoice, ListChoice, 
and RadioChoice, tying that instance of the Component to one strategy. 
Using the fourth allows the rendering to vary based on the HTML markup.


It renders nicely.

But I wanted to broach this as is this a good idea, and  only if 
people said yes, then talk about my implementation, and extending the 
same pattern to the multiple choice Components.


Thanks,
--Tom

Igor Vaynberg wrote:

there isnt anything really stopping you from doing this. afaict you
already have all the wicket hooks to do this.

-igor

On Mon, Mar 30, 2009 at 2:15 PM, T P D li...@diffenbach.org wrote:

What I really like about Wicket is that it -- much more than JSPs -- allows
the separation of HTML markup from Java code. No c:ifing with a Domain
Specific Language like JTSL (or Velocity macros) inside HTML markup and
side-by-side with javascript. In Wicket, in contrast, HTML markup contains
only HTML and Wicket tags, which look just like
HTML tags. That's it.

But I think this could be taken a bit farther, and I'd like the list's
thoughts on a proposal.

Wicket imposes one constraint on markup: roughly, any HTML element with a
wicket:id attribute must match a Wicket Component, a Java Object, in the
Java code. More precisely, the HTML element tree (considering only
wicket:id elements) must (with a few exceptions) match the Wicket
Component tree rooted at the Wicket Page.

But -- in my opinion -- Wicket goes a bit too far in enforcing this. In
particular, there are at least three ways to allow a web page user to select
one thing from a list of several things:
   A drop down list, like this:
   selectoptionone/optionoptiontwo/option/select

   A list that scrolls but doesn't drop down, as above but with the select
tag given a size attribute.

  Or, a group of radio buttons, like this:
   input type=radioone/inputinput type=radiotwo/input


To the application and its programmer, these are all the same functionality:
present some choices, find out which SINGLE choice the user selects. How
that looks on the page is immaterial to the application's functionality.

To the page designer, these are all different, presenting different looks,
talking up different amounts of screen space, each with a slightly different
learning curve for the user. In particular, novice web users may not even
realize the drop down is a choice and can be clicked on, dropped down, and
changed.

If the page designer decides that, say, he's dealing with a less web-savvy
population, and wants to change the dropdown to a group of radio buttons,
someone has to send a change request to the Java programmer.

Then the programmer has to change some or all instances of one class derived
from AbstractSingleSelectChoice (e.g., DropDownChoice) to another (e.g.,
RadioChoice). Which shouldn't happen; the way the choice is rendered has
nothing to do with the the page's functionality.

In Model-View-Controller terms, the rendered look is purely up to the Model;
the functionality purely the domain of the Controller.

Would it be useful to have a Wicket Component that automatically rendered
whichever type look the page designer wants, further decoupling  web page
designer's View from Programmer's Controller, while providing a single
uniform functional interface to the application?

Thanks or reading, and I hope to hear your feedback.
--Tom

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why should the programmer specify how a SingleSelectChoice looks?

2009-03-30 Thread Igor Vaynberg
i dont see anything wrong with it.

-igor

On Mon, Mar 30, 2009 at 3:07 PM, T P D li...@diffenbach.org wrote:
 Well, actually, I have done it, by abstracting out the rendering by having
 onTagComponent and onTagComponentBody, in a class derived from
 AbstractSingleSelectChoice, delegate to a GOF Strategy Pattern.

 I then have four strategies: one each for dropdown, dropdownlist, and
 radiochoice, and a fourth strategy that delegates to one of the other three
 depending on the tag in the HTML markup file. (And of course other
  programmers can derive from the AbstractStrategy to do whatever they want.)

 Using any of the first three strategies essentially gives the user the
 functionality of the existing Wicket classes DropDownChoice, ListChoice, and
 RadioChoice, tying that instance of the Component to one strategy. Using the
 fourth allows the rendering to vary based on the HTML markup.

 It renders nicely.

 But I wanted to broach this as is this a good idea, and  only if people
 said yes, then talk about my implementation, and extending the same
 pattern to the multiple choice Components.

 Thanks,
 --Tom

 Igor Vaynberg wrote:

 there isnt anything really stopping you from doing this. afaict you
 already have all the wicket hooks to do this.

 -igor

 On Mon, Mar 30, 2009 at 2:15 PM, T P D li...@diffenbach.org wrote:

 What I really like about Wicket is that it -- much more than JSPs --
 allows
 the separation of HTML markup from Java code. No c:ifing with a Domain
 Specific Language like JTSL (or Velocity macros) inside HTML markup and
 side-by-side with javascript. In Wicket, in contrast, HTML markup
 contains
 only HTML and Wicket tags, which look just like
 HTML tags. That's it.

 But I think this could be taken a bit farther, and I'd like the list's
 thoughts on a proposal.

 Wicket imposes one constraint on markup: roughly, any HTML element with a
 wicket:id attribute must match a Wicket Component, a Java Object, in
 the
 Java code. More precisely, the HTML element tree (considering only
 wicket:id elements) must (with a few exceptions) match the Wicket
 Component tree rooted at the Wicket Page.

 But -- in my opinion -- Wicket goes a bit too far in enforcing this. In
 particular, there are at least three ways to allow a web page user to
 select
 one thing from a list of several things:
   A drop down list, like this:
       selectoptionone/optionoptiontwo/option/select

   A list that scrolls but doesn't drop down, as above but with the select
 tag given a size attribute.

  Or, a group of radio buttons, like this:
       input type=radioone/inputinput type=radiotwo/input


 To the application and its programmer, these are all the same
 functionality:
 present some choices, find out which SINGLE choice the user selects. How
 that looks on the page is immaterial to the application's functionality.

 To the page designer, these are all different, presenting different
 looks,
 talking up different amounts of screen space, each with a slightly
 different
 learning curve for the user. In particular, novice web users may not even
 realize the drop down is a choice and can be clicked on, dropped down,
 and
 changed.

 If the page designer decides that, say, he's dealing with a less
 web-savvy
 population, and wants to change the dropdown to a group of radio buttons,
 someone has to send a change request to the Java programmer.

 Then the programmer has to change some or all instances of one class
 derived
 from AbstractSingleSelectChoice (e.g., DropDownChoice) to another (e.g.,
 RadioChoice). Which shouldn't happen; the way the choice is rendered has
 nothing to do with the the page's functionality.

 In Model-View-Controller terms, the rendered look is purely up to the
 Model;
 the functionality purely the domain of the Controller.

 Would it be useful to have a Wicket Component that automatically rendered
 whichever type look the page designer wants, further decoupling  web page
 designer's View from Programmer's Controller, while providing a single
 uniform functional interface to the application?

 Thanks or reading, and I hope to hear your feedback.
 --Tom

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Tree navigation panel

2009-03-30 Thread Christian Helmbold

Hello,

I'm looking for a tree navigation panel for wicket (1.4). I know the AJAX 
panel, but I'd like to have something that works without JavaScript. After 
consulting the API docs and looking for tree classes, I think to write my own 
navigation tree panel would cost a couple of hours. So is there an easy way to 
get a navigation tree?

What I need looks like this:

The structure 

* root
** FolderA
*** File1
*** File2
*** File3
** FolderB
*** File9
*** File8
** FolderC

should be converted to something like the following html (FolderA elapsed):

ul
  lia href=...root/abr/
lia href=...FolderA/abr/
   lia href=...File1/a/li
   lia href=...File2/a/li
   lia href=...File3/a/li
/li
lia href=...FolderB/a/li
lia href=...FolderC/a/li
  /li
/ul

Thanks for your help!

Christian





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Tree navigation panel

2009-03-30 Thread Igor Vaynberg
trees in wicket work with or without javascript. you can set the tree
mode to fallback and get the best of both worlds - ajax when
supported, regular links when not.

-igor

On Mon, Mar 30, 2009 at 3:30 PM, Christian Helmbold
christian.helmb...@yahoo.de wrote:

 Hello,

 I'm looking for a tree navigation panel for wicket (1.4). I know the AJAX 
 panel, but I'd like to have something that works without JavaScript. After 
 consulting the API docs and looking for tree classes, I think to write my own 
 navigation tree panel would cost a couple of hours. So is there an easy way 
 to get a navigation tree?

 What I need looks like this:

 The structure

 * root
 ** FolderA
 *** File1
 *** File2
 *** File3
 ** FolderB
 *** File9
 *** File8
 ** FolderC

 should be converted to something like the following html (FolderA elapsed):

 ul
  lia href=...root/abr/
    lia href=...FolderA/abr/
       lia href=...File1/a/li
       lia href=...File2/a/li
       lia href=...File3/a/li
    /li
    lia href=...FolderB/a/li
    lia href=...FolderC/a/li
  /li
 /ul

 Thanks for your help!

 Christian





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



how to display a BookmarkableLink so it can't be clicked

2009-03-30 Thread Jason Novotny


Hi,

I have a case where if some condition is met I don't want a link to be 
clickable... but I want it to display the link text (so overriding 
isVisible() is not an option). Any ideas on the most elegant approach?


Thanks, Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to display a BookmarkableLink so it can't be clicked

2009-03-30 Thread David Leangen


isEnabled()


Cheers,
=David



On Mar 31, 2009, at 9:34 AM, Jason Novotny wrote:



Hi,

I have a case where if some condition is met I don't want a link to  
be clickable... but I want it to display the link text (so  
overriding isVisible() is not an option). Any ideas on the most  
elegant approach?


Thanks, Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Form Validations

2009-03-30 Thread Jeremy Thomerson
What didn't work?

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Mar 30, 2009 at 2:31 AM, Ashis chettri.as...@gmail.com wrote:


 Hello all
 I have a problem with a form, I want to add a feedBackPanel for each fields
 added in my form.
 I used the custom FeedbackLabel i.e.
 http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket

 But it did not worked on AutoCompleteTextFields and RadioChoice.

 Any Help

 --
 View this message in context:
 http://www.nabble.com/Form-Validations-tp22777684p22777684.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org