Re: Chained dropdowns

2011-11-18 Thread anant . asty
Can you please past the code snippet here or at pastebin please?
--Original Message--
From: Tito
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: Chained dropdowns
Sent: Nov 18, 2011 11:36 AM

Hi, I'm trying to connect three drowpdowns.

For example.

combo1: Country
combo2: Province
combo3: City

I'm updating dropdowns by Ajax with
AjaxFormComponentUpdatingBehavior(onChange) and it works ok.
But if you choose a Country, then a Province, then a City and after that
you change the Country, the Province changes but not the city.

I'm doing everything with models and adding all dropdowns to
AjaxRequestTarget.

Regards

Norberto




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



Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread anant . asty
First ofc all I do not see any need to convince you you can take it or leave 
it. 1 there is an awesome set of examples if you search for wicket examples, 
also there are a lot of other extensions or plug ins in wicket extensions , 
wicket stuff, wi query j query that support all ajax functionality. This forum 
as you noticed is great to get place to get answers. As far as not having as 
extensive of documentation wicket is relatively newer so obviously it will take 
a bit.
--Original Message--
From: geraldkw
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: Re: Apache Wicket is a Flawed Framework
Sent: Nov 17, 2011 12:05 PM

This is not an april fool's day, it is just an opinion of an inexperienced
developer. 

This illustrates one of the traditional logical fallacies. If you can't
effectively attack the argument, attack the speaker.

My biggest problem with Wicket is that I haven't found any documentation on
the web that really lets me get a solid grasp on the key concepts. I read a
lot of poorly written documentation, weak examples and forum posts dealing
with something that is only vaguely related to my goals, maybe learn a
fragment of useful info, and then suffer while trying to apply it.

I haven't looked a Wicket in Action or other Wicket Books, but I have not
heard good things. Also, this is the Internet Age and this is web
programming. I have no problem finding documentation on other web
programming languages/frameworks like I do with Wicket. 

If I am wrong, point me to some solid learning materials, and you stand a
chance of changing my mind.

geraldkw


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-is-a-Flawed-Framework-tp4080411p4081206.html
Sent from the Users forum 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: Customizing Error / Validation messages

2011-11-15 Thread anant . asty
Thanks that workes perfectly
-Original Message-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 15 Nov 2011 07:20:44 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: Re: Customizing Error / Validation messages

the javadoc says the key to use is PatternValidator not pattern. to make it
specific to a field use fieldid.PatternValdiator, in your case you can see
from the log that one of the keys that is tried is  zip.PatternValidator

-igor

On Mon, Nov 14, 2011 at 12:03 PM, anantasthana anant.a...@gmail.com wrote:

 Here is the Log messages
 I am not sure what it is doing

 DEBUG - AbstractShiroFilter- No FilterChainResolver configured.
 Returning original FilterChain.
 DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
 zip]]'; key: 'zip.PatternValidator'
 DEBUG - ponentStringResourceLoader - key:
 'vendorPanel.vendorForm.zip.zip.PatternValidator'; class:
 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style: 'null';
 Variation: 'null'
 INFO  - PropertiesFactory  - Loading properties files from

 file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/classes/com/aspen/web/html/vendor/VendorEditPage.properties
 with loader
 org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style: 'null';
 Variation: 'null'
 DEBUG - ponentStringResourceLoader - key:
 'vendorForm.zip.zip.PatternValidator'; class:
 'com.aspen.web.html.vendor.VendorEditPage$1'; locale: 'en_US'; Style:
 'null'; Variation: 'null'
 INFO  - PropertiesFactory  - Loading properties files from

 file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/classes/com/aspen/web/html/vendor/VendorEditPanel.properties
 with loader
 org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'com.aspen.web.html.vendor.VendorEditPage$1'; locale: 'en_US'; Style:
 'null'; Variation: 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.zip.PatternValidator';
 class:
 'org.apache.wicket.markup.html.form.Form'; locale: 'en_US'; Style: 'null';
 Variation: 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'org.apache.wicket.markup.html.form.Form'; locale: 'en_US'; Style: 'null';
 Variation: 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'org.apache.wicket.markup.html.form.TextField'; locale: 'en_US'; Style:
 'null'; Variation: 'null'
 DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
 zip]]'; key: 'zip.PatternValidator'
 DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
 zip]]'; key: 'zip.PatternValidator'
 DEBUG - ponentStringResourceLoader - key:
 'vendorPanel.vendorForm.zip.zip.PatternValidator'; class:
 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
 Variation:
 'null'
 INFO  - PropertiesFactory  - Loading properties files from

 file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/classes/com/aspen/web/WebAppDescriptor.properties
 with loader
 org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
 INFO  - PropertiesFactory  - Loading properties files from

 jar:file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/lib/wicket-core-1.5.2.jar!/org/apache/wicket/Application.properties
 with loader
 org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
 Variation:
 'null'
 DEBUG - ponentStringResourceLoader - key:
 'vendorForm.zip.zip.PatternValidator'; class:
 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
 Variation:
 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
 Variation:
 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.zip.PatternValidator';
 class:
 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
 Variation:
 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
 Variation:
 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
 Variation:
 'null'
 DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
 'org.apache.wicket.validation.validator.PatternValidator'; locale: 'en_US';
 Style: 'null'; Variation: 'null'
 DEBUG - 

Re: Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread anant . asty
That's interesting I was trying to do some thing similar n eariler and just 
dropped it. Is it possible to use wicket shiro instead?
-Original Message-
From: David Berkman david.berk...@glu.com
Date: Tue, 15 Nov 2011 11:09:10 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: RE: Creating a Wicket Session outside of a Wicket request

You can integrate Shiro with auth-roles very easily. Just create
ShiroAuthenticatedWebSession.

package com.wicketized.extension.security;

import java.util.LinkedList;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import
org.apache.wicket.authroles.authentication.AuthenticatedWebSession;
import org.apache.wicket.authroles.authorization.strategies.role.Roles;
import org.apache.wicket.request.Request;

public class ShiroWebSession extends AuthenticatedWebSession {

  private static final Roles NO_ROLES = new Roles();

  public ShiroWebSession (Request request) {

super(request);
  }

  @Override
  public boolean authenticate (String username, String password) {

Subject currentUser;

if (!(currentUser = SecurityUtils.getSubject()).isAuthenticated()) {

  UsernamePasswordToken token = new UsernamePasswordToken(username,
password);

  token.setRememberMe(true);
  try {
currentUser.login(token);
  }
  catch (Exception exception) {

return false;
  }
}

return true;
  }

  @Override
  public Roles getRoles () {

Subject subject;

if (((subject = SecurityUtils.getSubject()) != null) 
subject.isAuthenticated()) {

  LinkedListString codeList;
  String[] codes;

  codeList = new LinkedListString();
  for (RoleType roleType : RoleType.values()) {
if (subject.hasRole(roleType.getCode())) {
  codeList.add(roleType.getCode());
}
  }

  codes = new String[codeList.size()];
  codeList.toArray(codes);

  return new Roles(codes);
}

return NO_ROLES;
  }

  @Override
  public void signOut () {

SecurityUtils.getSubject().logout();
super.signOut();
  }
}

-Original Message-
From: Thomas Heigl [mailto:tho...@umschalt.com] 
Sent: Tuesday, November 15, 2011 11:06 AM
To: users@wicket.apache.org
Subject: Re: Creating a Wicket Session outside of a Wicket request

Hey David,

Thanks for your reply! I have thought about using Spring Security or
Shire, but at the moment the minimal wicket-auth-roles is enough for my
requirements. I'd prefer to just create the session myself when I need
it.

Any other ideas?

Cheers,

THomas

On Tue, Nov 15, 2011 at 8:02 PM, David Berkman
david.berk...@glu.comwrote:

 Apache Shiro, and create a shiro version of WebSession. Then wicket 
 can ask for the Shio Session from the Http context, and you can get it

 outside the context.

 David

 -Original Message-
 From: Thomas Heigl [mailto:tho...@umschalt.com]
 Sent: Tuesday, November 15, 2011 10:57 AM
 To: users@wicket.apache.org
 Subject: Creating a Wicket Session outside of a Wicket request

 Hey all,

 I have a requirement where I'd like to create a Wicket Session outside

 of a Wicket request:

 My application runs stand-alone (no problem here) and as a Facebook 
 application. Facebook calls my REST authentication service with a 
 user's credentials if they open my application in facebook. At this 
 point I don't have a Wicket session, but want to signin the user in my

 AuthenticatedWebSession from wicket-auth-roles. I'm using the 
 WicketSessionFilter in front of my REST service to get access to the 
 session, which works fine if the session already exists. If there is 
 no session, as in this case, the filter throws an
IllegalArgumentException.

 Since I have access to the Wicket Application I thought about calling 
 Application.get().newSession(), but this method only accepts Wicket's 
 WebRequest and WebResponse objects. Is it somehow possible to bind a 
 new session in a non-wicket request?

 Kind regards,

 Thomas

 -
 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: Customizing Error / Validation messages

2011-11-14 Thread anant . asty
Thanks I will try that. 
--Original Message--
From: Martin Grigorov
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: Re: Customizing Error / Validation messages
Sent: Nov 14, 2011 1:09 AM

Hi,

On Mon, Nov 14, 2011 at 8:50 AM, anantasthana anant.a...@gmail.com wrote:
 I am using pattern validator and i on a page named VendorPage and have a
 properties file with keys
 pattern= Zip
 I am using the pattern validator to validate zip code so i want the message
 to say ... is not a valid zip
 I dont know if i am doing smoe thing wrong or missing some thing but i can
 not get the message to display correctly.
 Thanks

Create file VendorPage.properties and put it next to VendorPage.html
(make sure it is copied next to VendorPage.class at build time) and
put a line like:
pattern = ${label} is not a valid zip




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Customizing-Error-Validation-messages-tp4038582p4038582.html
 Sent from the Users forum 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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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




Re: Customizing Error / Validation messages

2011-11-14 Thread anant . asty
I tried that it still does not work for some reason I have VendorPage.class 
VendorPage.html and VendorPage.properties
Containing pattern = ${label} is invalid zip. It still shows me the default 
message. Am I missing a step or doing some thing wrong?
--Original Message--
From: Martin Grigorov
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: Re: Customizing Error / Validation messages
Sent: Nov 14, 2011 1:09 AM

Hi,

On Mon, Nov 14, 2011 at 8:50 AM, anantasthana anant.a...@gmail.com wrote:
 I am using pattern validator and i on a page named VendorPage and have a
 properties file with keys
 pattern= Zip
 I am using the pattern validator to validate zip code so i want the message
 to say ... is not a valid zip
 I dont know if i am doing smoe thing wrong or missing some thing but i can
 not get the message to display correctly.
 Thanks

Create file VendorPage.properties and put it next to VendorPage.html
(make sure it is copied next to VendorPage.class at build time) and
put a line like:
pattern = ${label} is not a valid zip




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Customizing-Error-Validation-messages-tp4038582p4038582.html
 Sent from the Users forum 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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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




Re: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread anant . asty
Can you please show the code? Iv been trying to do something similar
--Original Message--
From: wholalotta
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: Re: AW: DropDownChoice model is not updated when 
wantOnSelectionChangedNotifications is overriden
Sent: Nov 11, 2011 6:55 AM

Thanks for the quick response Sven...But eclipse gives error for the code you
suggested
I changed it as below;

   @Override
protected void onSelectionChanged(Object criteria) {
criteriaMap.put(user,((Criteria) criteria).getUserCriteria());
}

But using onSelectionChanged does not render the page..I need to reload
table data from database
according to the choice is made in selectBox..Because of that I used
wantOnSelectionChangedNotifications


final LoadableDetachableModel data= new LoadableDetachableModel() {
@Override
protected Object load() {
ListData dataArrayList =  dataDao.findAll();
return dataArrayList;
}
};

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-model-is-not-updated-when-wantOnSelectionChangedNotifications-is-overriden-tp4031368p4031416.html
Sent from the Users forum 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: replacing parent panel how to

2011-11-11 Thread anant . asty
So if you are doing Panel panel = new LeftPanel(panel);
add(panel);

Then to replace it you can do 
panel.replaceWith(new RightPanel(panel);

If u want to replace through an ajav request make sure you do target.add(panel);
--Original Message--
From: pen
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: replacing parent panel how to
Sent: Nov 11, 2011 1:15 PM

Hi All,

I have two panels left and right panels. I have two Ajax links on the left
panel, page1 and page2. clicking on either of them i can replace the right
panels. 
But now I have some link on the right panel, I need to replace the whole
right panel itself, without changing the rest of the page.
I tried lot of things but didn't work. Any help would be greatly
appreciated.  

`Pen

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/replacing-parent-panel-how-to-tp4032603p4032603.html
Sent from the Users forum 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: Google Charts

2011-11-10 Thread anant . asty
Martin, I think I should just contribute to the existing google charts project. 
Instead of reinventing the wheel.
-Original Message-
From: Martin Grigorov mgrigo...@apache.org
Date: Thu, 10 Nov 2011 10:20:17 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: Re: Google Charts

I'd recommend you to put your project in GitHub or any other similar
service so other people can see your work and contribute.
Why didn't you contribute to
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/googlecharts-parent
? You say it is out of date but it is much better to update it than
start it from scratch. Unless you have a clear idea how to do it and
it is completely different than the old one but you said that you use
it as example 

On Wed, Nov 9, 2011 at 10:21 PM, anantasthana anant.a...@gmail.com wrote:
 I just recently have started trying to implement a an integration with google
 charts. It is at a very basic stage . I am doing this for a project that I
 am working on but i want to implement it in a very flexible and extendable
 manner so that as an end result we have some thing every one else could use.
 Any advice or pointers? i did look at the existing google charts project and
 i am using that for samples and as a starting point but that project is
 really out of date.



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Google-Charts-tp4021237p4021237.html
 Sent from the Users forum 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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: wicket-dojo wrappers (correction)

2011-11-10 Thread anant . asty
David, 
I would love to help you manage/maintain this project if you need help.
-Original Message-
From: David Berkman david.berk...@glu.com
Date: Thu, 10 Nov 2011 11:50:12 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: RE: wicket-dojo wrappers (correction)

Sorry. I guess I can't get away with putting up the code and walking away. I've 
translated the code into a complete, and building (at least locally), maven 
project. Anyone interested can fork it from GitHub, alter the poms, and get it 
rolling. I've put it on a new namespace I've bought for the purpose, and 
changed the project name to match.

https://github.com/zenbones/Wicketized

David

-Original Message-
From: James Stewart [mailto:james.stewart...@gmail.com] 
Sent: Thursday, November 10, 2011 7:33 AM
To: users@wicket.apache.org
Subject: Re: wicket-dojo wrappers (correction)

Hi David,

Would it be possible to put up the jar that contains or the java file: 
org.smallmind.nutsnbolts.util.DotNotationComparator? I get a compile error with 
this and I don't understand what it does in terms of dot notation.

Thanks,
James.

On 10/11/2011 3:15 AM, David Berkman wrote:
 Sorry for the repost, but this list doesn't take attachments I guess, 
 so I've upload the code at https://github.com/zenbones/WicketDojo


 I've had a number of requests, so I'll upload this bit of code here so people 
 can have a look. I know there's room for improvement in the code that exists, 
 and a ton that needs to be done. There's a wicket-dojo project on GitHub 
 https://github.com/vijaykiran/wicketstuff-dojo that's much cleaner, with many 
 more advanced integrations. However, that project lacked implemented wrappers 
 for Dojo Dijits, which is what I wanted most. The code there also seemed a 
 bit daunting, so I began a project to make wrappers I could understand, and 
 extend, and learn both Wicket and Dojo in the process. This is the results so 
 far. The few advantages it has over the GitHub code I've linked to are...

 1) A bunch of useful Dijits wrapped in a way I hope is fairly clear and 
 extensible (it's getting better).
 2) All the wrappers use fluent APIs
 3) You can generally set a field, or your own model, interchangeably. For 
 instance, if you want to set a Title, you can usually setTitle(String title) 
 or setTitleModel(IModelString  titleModel). Being able to control the model 
 is extremely useful.
 4) You can generally set attributes in your HTML and these values will 
 initialize the fields/models in the wrappers on a non-Ajax render. Values can 
 then be dynamically altered from there via Ajax (as with user interaction).
 5) Using setIntermediateChanges(true) will generally update the wrappers' 
 fields/models upon user interactions with the Dijit, via Ajax (you can also 
 add DojoAjaxUpdatingBehaviors to get your own callbacks). This extends to 
 things like stack container updating its models for selected child index and 
 id.

 There's still much to do. It's not the cleanest code yet. It doesn't handle 
 animations or fx or anything but presenting widgets. It's part of a larger 
 project so I haven't presented a real build, just the code. If people are 
 interested, I can cleave this off and provide a true maven build.

 David


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



Re: wicket-dojo wrappers (correction)

2011-11-10 Thread anant . asty
I do have a github account my username is anantasty I would be happy to help 
and would really like to write documentation etc. So it would be great if you 
add me as a coloborator
-Original Message-
From: David Berkman david.berk...@glu.com
Date: Thu, 10 Nov 2011 12:03:33 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: RE: wicket-dojo wrappers (correction)

All help appreciated. You can either fork the project and submit back to it, 
or, if you have a GitHub account, I can add you as a collaborator.

David

-Original Message-
From: anant.a...@gmail.com [mailto:anant.a...@gmail.com] 
Sent: Thursday, November 10, 2011 11:53 AM
To: users@wicket.apache.org
Subject: Re: wicket-dojo wrappers (correction)

David,
I would love to help you manage/maintain this project if you need help.
-Original Message-
From: David Berkman david.berk...@glu.com
Date: Thu, 10 Nov 2011 11:50:12
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: RE: wicket-dojo wrappers (correction)

Sorry. I guess I can't get away with putting up the code and walking away. I've 
translated the code into a complete, and building (at least locally), maven 
project. Anyone interested can fork it from GitHub, alter the poms, and get it 
rolling. I've put it on a new namespace I've bought for the purpose, and 
changed the project name to match.

https://github.com/zenbones/Wicketized

David

-Original Message-
From: James Stewart [mailto:james.stewart...@gmail.com]
Sent: Thursday, November 10, 2011 7:33 AM
To: users@wicket.apache.org
Subject: Re: wicket-dojo wrappers (correction)

Hi David,

Would it be possible to put up the jar that contains or the java file: 
org.smallmind.nutsnbolts.util.DotNotationComparator? I get a compile error with 
this and I don't understand what it does in terms of dot notation.

Thanks,
James.

On 10/11/2011 3:15 AM, David Berkman wrote:
 Sorry for the repost, but this list doesn't take attachments I guess, 
 so I've upload the code at https://github.com/zenbones/WicketDojo


 I've had a number of requests, so I'll upload this bit of code here so people 
 can have a look. I know there's room for improvement in the code that exists, 
 and a ton that needs to be done. There's a wicket-dojo project on GitHub 
 https://github.com/vijaykiran/wicketstuff-dojo that's much cleaner, with many 
 more advanced integrations. However, that project lacked implemented wrappers 
 for Dojo Dijits, which is what I wanted most. The code there also seemed a 
 bit daunting, so I began a project to make wrappers I could understand, and 
 extend, and learn both Wicket and Dojo in the process. This is the results so 
 far. The few advantages it has over the GitHub code I've linked to are...

 1) A bunch of useful Dijits wrapped in a way I hope is fairly clear and 
 extensible (it's getting better).
 2) All the wrappers use fluent APIs
 3) You can generally set a field, or your own model, interchangeably. For 
 instance, if you want to set a Title, you can usually setTitle(String title) 
 or setTitleModel(IModelString  titleModel). Being able to control the model 
 is extremely useful.
 4) You can generally set attributes in your HTML and these values will 
 initialize the fields/models in the wrappers on a non-Ajax render. Values can 
 then be dynamically altered from there via Ajax (as with user interaction).
 5) Using setIntermediateChanges(true) will generally update the wrappers' 
 fields/models upon user interactions with the Dijit, via Ajax (you can also 
 add DojoAjaxUpdatingBehaviors to get your own callbacks). This extends to 
 things like stack container updating its models for selected child index and 
 id.

 There's still much to do. It's not the cleanest code yet. It doesn't handle 
 animations or fx or anything but presenting widgets. It's part of a larger 
 project so I haven't presented a real build, just the code. If people are 
 interested, I can cleave this off and provide a true maven build.

 David


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



Re: Advice wanted about polished component set with Wicket

2011-11-09 Thread anant . asty
Yeah I have tried learning from some stuff in wicketstuff and Wiquery so 
someday I will be ready to contribute.
-Original Message-
From: Ernesto Reinaldo Barreiro reier...@gmail.com
Date: Wed, 9 Nov 2011 18:48:17 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: Re: Advice wanted about polished component set with Wicket

Hi,

There are at least two projects out there that already do some
integration with jquery... So, it might be a good idea to take a look
at them:-)

On Wed, Nov 9, 2011 at 6:15 PM, anantasthana anant.a...@gmail.com wrote:
 I tried to integrate the JCaurosel and Ajax Vertical slider which is
 basically a lazy load scroll bar.

We have integrated a vertical slider on [1].

I have also integrated a component similar to jCarousel in one of my
applications, if you want I can share the code with you. You can see
the component at work in [2]... This is just a prototype... So be kind
with the design and so for... Just click on the magnifying glass icon
and go to the  images tab.

Regards,

Ernesto

References,

1-http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.SlideDeckPage
2-http://infomar.javaprovider.net/infomaresme/

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



Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread anant . asty
I do think it would be extremely. Helpful if there was a plugi n to generate 
html from wicket code or I'm not aware of it. There is a plugin that gives me 
the option generate wicket form code but it never worked. Its not a show 
stopper by any means though.
-Original Message-
From: Martin Grigorov mgrigo...@apache.org
Date: Wed, 26 Oct 2011 20:42:15 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: Re: An extensive RIA technology comparison matrix including Wicket

After the inconsistencies mentioned by Igor and the fact: Backed up
by a corporation - nothing in Wicket column
I still think we are doing fine :-)

On Wed, Oct 26, 2011 at 8:24 PM, Josh Kamau joshnet2...@gmail.com wrote:
 Looks like crap to me..

 On Wed, Oct 26, 2011 at 9:08 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 missing a green dot in Framework extensions are done in Java - what
 else are the done in?

 missing a green dot in Application oriented - wicket is both page
 and application oriented - depends on how you want to build your
 app...

 not sure why in the IDE department we get only two stars...you dont
 need any plugins to make it easier to work with wicket other then some
 very minor things.

 why is there nothing in Number of downloadable add-ons? are they
 saying there are zero addons available to download?
 https://github.com/wicketstuff/core alone contains plenty of addons
 downloadable from the maven repo. and there are lots of other
 libraries published by people.

 my two cents.

 -igor


 On Wed, Oct 26, 2011 at 11:02 AM, shetc sh...@bellsouth.net wrote:
  https://vaadin.com/comparison An extensive RIA technology comparison
 matrix
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/An-extensive-RIA-technology-comparison-matrix-including-Wicket-tp3941573p3941573.html
  Sent from the Users forum 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






-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: reverse engineering a wicket application

2011-10-24 Thread anant . asty
Check the webApplication file you should be able to find the mounted pages there
--Original Message--
From: roncking
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: reverse engineering a wicket application
Sent: Oct 24, 2011 9:32 AM

Hi ,

I found an 'abandoned' wicket project that I want to use, but I don't know
how
to determine what urls are valid to access it from my jetty instance. I
built it with no errors,
and I can start the jetty server, but I don't know what url to use to access
it.

For example, I assume it would be of the form
http://localhost:8080/something.
I don't know how to determine what the value 'something' might be.
Is there a configuration file or entry that I can look at to figure out what
to enter
for a url?

Regards,

Ron

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/reverse-engineering-a-wicket-application-tp3933538p3933538.html
Sent from the Users forum 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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread anant . asty
So how long after going to page2 are you hitting the back button? The page is 
expired means that the session has been destroyed. You could possibly seT a 
longer session time out in your webApplication

--Original Message--
From: MattyDE
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
Sent: Oct 21, 2011 12:37 AM

Hi community,

i have a big Problem:


In my application i use BookmarkabePageLinks to browse through different
Pages and AjaxLinks to Open a Div box for Example.

If the user now browse from Site A to B with the BookmarkablePageLink, use
than the back button of the Browser and now clicked a AjaxLink on Site A a
/org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error appears.

Can anyone explain me why this happend and how i can prevent this issue? 
Its not really userfriendly in my situation to throw exception if the user
used the back-button.

I'm using wicket 1.4.8. 

Thanks in Advance for any help.


Iam sorry for my English is not my mothers tongue!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924428.html
Sent from the Users forum 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: Drilling Application.getHomePage()

2011-10-21 Thread anant . asty
This is very similar to what I am trying to do. Martin just replied to my post 
with a great example. Check it out..
-Original Message-
From: Chris Colman chr...@stepaheadsoftware.com
Date: Fri, 21 Oct 2011 16:44:53 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: RE: Drilling Application.getHomePage()

We do something similar but use 

/content/value

Then you can mount the single page at /content and then treat what
follows as a parameter which determines how that page is rendered.

-Original Message-
From: Arjun Dhar [mailto:dhar...@yahoo.com]
Sent: Friday, 21 October 2011 5:20 PM
To: users@wicket.apache.org
Subject: Re: Drilling Application.getHomePage()

Ah, sorry was trying to use as less words as possible :)

Q / Problem) Since Application.getHomePage() returns Class? extends
Page
and in my case Multiple pages are mounted to point to the same WebPage.
How
to I specify the Home Page.

In other words: CLASS to Mounted Pages is a one to many relation. By
returning the class name, there is no way logically for the system to
determine which page I'm asking it to goto as Home.

-
Software documentation is like sex: when it is good, it is very, very
good;
and when it is bad, it is still better than nothing!
--
View this message in context: http://apache-
wicket.1842946.n4.nabble.com/Drilling-Application-getHomePage-
tp3924262p3924407.html
Sent from the Users forum 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