Re: OAuth in Wicket

2009-04-14 Thread nino martinez wael
Hi Bill

I dont have anything in regards to Oauth, but I have something thats
95% finished towards openID... I can paste it here if you like?

regards Nino

2009/4/15 David Leangen :
>
> Ok.
>
> So, what exactly do you mean by "Wicket specific code"?
>
> OAuth and Wicket seem to be orthogonal, IMO. Perhaps you're referring to
> something like a generic OpenID sign in page??
>
> In any case, there are a few tricks you could use. Again, if you have any
> specific questions, I'd be happy to share my experiences.
>
>
> Cheers,
> =David
>
>
>
> On Apr 15, 2009, at 11:15 AM, Brill Pappin wrote:
>
>> Yes I did see the implementation... just wondered if anyone had written
>> any wicket specific code.
>>
>> - Brill Pappin
>>
>>
>>
>>
>>
>> On 14-Apr-09, at 6:35 PM, David Leangen wrote:
>>
>>>
>>> Yes.
>>>
>>> There is a java library you can use:
>>>
>>>  http://code.google.com/p/oauth/
>>>
>>> Unfortunately, my stuff is not well generalized, so there's no point that
>>> I
>>> make it public. However, if you have any particular problems, please let
>>> me
>>> know.
>>>
>>> I think a few others have also done this before, too.
>>>
>>>
>>> Cheers,
>>> =David
>>>
>>>
>>>
 -Original Message-
 From: Brill Pappin [mailto:br...@pappin.ca]
 Sent: 15 April 2009 01:14
 To: users@wicket.apache.org
 Subject: OAuth in Wicket


 This looks very interesting.
 http://oauth.net/

 Has anyone integrated OAuth with wicket?


 - Brill Pappin






>>>
>>>
>>> -
>>> 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



how control user enter url error.

2009-04-14 Thread Joe
Hi All,
second error
We are using Sitemesh2.2.1 along with wicket1.3.1 in our product.
The sitemesh JSP page contains SCRIPT and LINK tags to include styles and 
functions that will determine the header and footer for the wicket pages.
When I use the URL like http://www.X.com/upgrade where as helpDetails is 
the page, it works fine.
But when I try using http://www.X.com/upgrade/asd, wicket throws error for 
all the entries like SCRIPT and LINK tags in the sitemesh jsp page.
We are using mountBookmarkablePage as the url stratergy.
i want url return to http://www.X.com/upgrade page when user try using 
http://localhost../helpDetails/topic/xyz/sd,
The error message is as follows
04 15,2009 14:09 ERROR - RequestCycle.logRuntimeException(1414) | URL fragment 
has unmatched key/value pair: sd
java.lang.IllegalStateException: URL fragment has unmatched key/value pair: sd
    at 
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
    at 
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
    at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
    at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
    at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.splashnote.util.JsessionIdUtil.doFilter(JsessionIdUtil.java:84)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at 
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    at 
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.splashnote.web.MessageFilter.doFilter(MessageFilter.java:42)


Thanks,
Joe


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

Re: URL error?

2009-04-14 Thread Joe
thanks johan 
   my js and css is relative urls.i will use  js and css file absolut urls.


--- 09年4月15日,周三, Johan Compagner  写道:

发件人: Johan Compagner 
主题: Re: URL error?
收件人: users@wicket.apache.org, huanghu...@yahoo.cn
日期: 2009,415,周三,1:37下午

Are your js and css files really also under that mount? I guess not
So you have to rewrite your links to those resources in your markup so
that they dont use relative urls

On 15/04/2009, Joe  wrote:
>
>
>
> Hi All,
> We are using Sitemesh2.2.1 along with wicket1.3.1 in our product.
> The sitemesh JSP page contains SCRIPT and LINK tags to include styles and
> functions that will determine the header and footer for the wicket pages.
> When I use the URL like http://localhost.../helpDetails?topic=xyz where as
> helpDetails is the page, it works fine.
> But when I try using http://localhost../helpDetails/topic/xyz/, wicket
> throws error for all the entries like SCRIPT and LINK tags in the sitemesh
> jsp page.
> We are using mountBookmarkablePage as the url stratergy.
> The error message is as follows
> ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has
unmatched
> key/value pair: subtopic/display_css/style.css
> java.lang.IllegalStateException: URL fragment has unmatched key/value
pair:
> subtopic/display_css/style.css
> at
>
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
> at
>
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
> at
>
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
> at
>
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
>
> ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has
unmatched
> key/value pair: subtopic/js/jquery-1.2.3.js
> java.lang.IllegalStateException: URL fragment has unmatched key/value
pair:
> subtopic/js/jquery-1.2.3.js
> at
>
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
> at
>
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
> at
>
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
> at
>
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
>
> Thanks,
> Joe
>
>
>   ___
>   好玩贺卡等你发,邮箱贺卡全新上线!
> http://card.mail.cn.yahoo.com/

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




  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

Re: URL error?

2009-04-14 Thread Johan Compagner
Are your js and css files really also under that mount? I guess not
So you have to rewrite your links to those resources in your markup so
that they dont use relative urls

On 15/04/2009, Joe  wrote:
>
>
>
> Hi All,
> We are using Sitemesh2.2.1 along with wicket1.3.1 in our product.
> The sitemesh JSP page contains SCRIPT and LINK tags to include styles and
> functions that will determine the header and footer for the wicket pages.
> When I use the URL like http://localhost.../helpDetails?topic=xyz where as
> helpDetails is the page, it works fine.
> But when I try using http://localhost../helpDetails/topic/xyz/, wicket
> throws error for all the entries like SCRIPT and LINK tags in the sitemesh
> jsp page.
> We are using mountBookmarkablePage as the url stratergy.
> The error message is as follows
> ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has unmatched
> key/value pair: subtopic/display_css/style.css
> java.lang.IllegalStateException: URL fragment has unmatched key/value pair:
> subtopic/display_css/style.css
> at
> org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
> at
> org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
> at
> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
> at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
>
> ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has unmatched
> key/value pair: subtopic/js/jquery-1.2.3.js
> java.lang.IllegalStateException: URL fragment has unmatched key/value pair:
> subtopic/js/jquery-1.2.3.js
> at
> org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
> at
> org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
> at
> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
> at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
>
> Thanks,
> Joe
>
>
>   ___
>   好玩贺卡等你发,邮箱贺卡全新上线!
> http://card.mail.cn.yahoo.com/

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



URL error?

2009-04-14 Thread Joe



Hi All, 
We are using Sitemesh2.2.1 along with wicket1.3.1 in our product. 
The sitemesh JSP page contains SCRIPT and LINK tags to include styles and 
functions that will determine the header and footer for the wicket pages. 
When I use the URL like http://localhost.../helpDetails?topic=xyz where as 
helpDetails is the page, it works fine. 
But when I try using http://localhost../helpDetails/topic/xyz/, wicket throws 
error for all the entries like SCRIPT and LINK tags in the sitemesh jsp page. 
We are using mountBookmarkablePage as the url stratergy. 
The error message is as follows 
ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has unmatched 
key/value pair: subtopic/display_css/style.css 
java.lang.IllegalStateException: URL fragment has unmatched key/value pair: 
subtopic/display_css/style.css 
    at 
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
 
    at 
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
 
    at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
 
    at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
 
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224) 
 
ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has unmatched 
key/value pair: subtopic/js/jquery-1.2.3.js 
java.lang.IllegalStateException: URL fragment has unmatched key/value pair: 
subtopic/js/jquery-1.2.3.js 
    at 
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
 
    at 
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
 
    at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
 
    at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
 
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224) 

Thanks, 
Joe


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

Re: OAuth in Wicket

2009-04-14 Thread David Leangen


Ok.

So, what exactly do you mean by "Wicket specific code"?

OAuth and Wicket seem to be orthogonal, IMO. Perhaps you're referring  
to something like a generic OpenID sign in page??


In any case, there are a few tricks you could use. Again, if you have  
any specific questions, I'd be happy to share my experiences.



Cheers,
=David



On Apr 15, 2009, at 11:15 AM, Brill Pappin wrote:

Yes I did see the implementation... just wondered if anyone had  
written any wicket specific code.


- Brill Pappin





On 14-Apr-09, at 6:35 PM, David Leangen wrote:



Yes.

There is a java library you can use:

  http://code.google.com/p/oauth/

Unfortunately, my stuff is not well generalized, so there's no  
point that I
make it public. However, if you have any particular problems,  
please let me

know.

I think a few others have also done this before, too.


Cheers,
=David




-Original Message-
From: Brill Pappin [mailto:br...@pappin.ca]
Sent: 15 April 2009 01:14
To: users@wicket.apache.org
Subject: OAuth in Wicket


This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin









-
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: OAuth in Wicket

2009-04-14 Thread Brill Pappin
Yes I did see the implementation... just wondered if anyone had  
written any wicket specific code.


- Brill Pappin





On 14-Apr-09, at 6:35 PM, David Leangen wrote:



Yes.

There is a java library you can use:

   http://code.google.com/p/oauth/

Unfortunately, my stuff is not well generalized, so there's no point  
that I
make it public. However, if you have any particular problems, please  
let me

know.

I think a few others have also done this before, too.


Cheers,
=David




-Original Message-
From: Brill Pappin [mailto:br...@pappin.ca]
Sent: 15 April 2009 01:14
To: users@wicket.apache.org
Subject: OAuth in Wicket


This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin









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





smime.p7s
Description: S/MIME cryptographic signature


Re: Changing form validation depending on submit button.

2009-04-14 Thread Ian MacLarty
On Tue, Apr 14, 2009 at 1:59 AM, Igor Vaynberg  wrote:
> form#validate is final.
>

Not according to the 1.3.2 docs.  Also there is no Form#onValidate
method in 1.3.2.  I'm looking here:
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/form/Form.html.

In any case I don't see how I could use this to do different
validation depending on which submit button was pressed.  The only way
I can see to do it is to put the validation in the onSubmit for each
button.  Is that right?

Cheers,
Ian.

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



Informal Wicket "meeting" in London

2009-04-14 Thread jWeekend

Due to popular demand, especially from our London Wicket Event guests,
we're arranging an informal get together (AKA drink) in London. This will
probably be on Monday 20th April, either close to our office (NW6), in
W2 or the West End, all TBC.

Drop me a line [1] if you can make it.

Regards - Cemal
http://jWeekend.com

[1] http://jweekend.com/dev/ContactUs

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



RE: OAuth in Wicket

2009-04-14 Thread David Leangen

Yes.

There is a java library you can use:

http://code.google.com/p/oauth/

Unfortunately, my stuff is not well generalized, so there's no point that I
make it public. However, if you have any particular problems, please let me
know.

I think a few others have also done this before, too.


Cheers,
=David



> -Original Message-
> From: Brill Pappin [mailto:br...@pappin.ca]
> Sent: 15 April 2009 01:14
> To: users@wicket.apache.org
> Subject: OAuth in Wicket
>
>
> This looks very interesting.
> http://oauth.net/
>
> Has anyone integrated OAuth with wicket?
>
>
> - Brill Pappin
>
>
>
>
>
>


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



Re: Retrieving/serializing the javascript for an AjaxLink

2009-04-14 Thread Jeremy Thomerson
I think you'd be a lot better off doing urlFor(new
SomeLinkThatRedirectsToCarPage) rather than creating potentially many pages
per request.

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



On Tue, Apr 14, 2009 at 4:45 PM, mallet  wrote:

>
> Figured it out Basically no need to use AjaxLink since I have to
> construct the javascript redirect manually.
>
> I ended up doing this:
> chart.setOnClick("window.location='" + RequestCycle.get().urlFor(new
> CarPage(make, model, year)) + "'");
>
>
> mallet wrote:
> >
> > I am trying to embed javascript links in some JSON which I pass to Open
> > Flash Chart.  I am able to test this by giving the "on-click" attribute
> of
> > a
> > chart element the value of "alert('testing')" and it pops up the alert as
> > I
> > expect.  Now I need to create links to a Wicket page.  All the links will
> > go
> > to the same page but I need to have different parameters depending on
> > which
> > element of my chart was clicked.
> >
> > I tried something like this but got null for the markup stream:
> >
> > AjaxLink lateLink = new AjaxLink ("late")  {
> >   public void onClick(AjaxRequestTarget target) {
> > setResponsePage(new CarPage(make, model, year));
> > return;
> >   }
> > };
> > chart.setOnClick(lateLink.getMarkupStream());
> >
> > How can I go about building a dynamic javascript link to a wicket page
> > which
> > I can pass into the flash object?  The chart object is just a bean which
> I
> > run through a converter to seralizize its attributes to JSON.
> >
> > Thanks for any help.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Retrieving-serializing-the-javascript-for-an-AjaxLink-tp23047799p23048696.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: Retrieving/serializing the javascript for an AjaxLink

2009-04-14 Thread mallet

Figured it out Basically no need to use AjaxLink since I have to
construct the javascript redirect manually.

I ended up doing this:
chart.setOnClick("window.location='" + RequestCycle.get().urlFor(new
CarPage(make, model, year)) + "'");


mallet wrote:
> 
> I am trying to embed javascript links in some JSON which I pass to Open
> Flash Chart.  I am able to test this by giving the "on-click" attribute of
> a
> chart element the value of "alert('testing')" and it pops up the alert as
> I
> expect.  Now I need to create links to a Wicket page.  All the links will
> go
> to the same page but I need to have different parameters depending on
> which
> element of my chart was clicked.
> 
> I tried something like this but got null for the markup stream:
> 
> AjaxLink lateLink = new AjaxLink ("late")  {
>   public void onClick(AjaxRequestTarget target) {
> setResponsePage(new CarPage(make, model, year));
> return;
>   }
> };
> chart.setOnClick(lateLink.getMarkupStream());
> 
> How can I go about building a dynamic javascript link to a wicket page
> which
> I can pass into the flash object?  The chart object is just a bean which I
> run through a converter to seralizize its attributes to JSON.
> 
> Thanks for any help.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Retrieving-serializing-the-javascript-for-an-AjaxLink-tp23047799p23048696.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: wicketsuff commit access

2009-04-14 Thread Maarten Bosteels
Thanks Igor.

Maarten

On Tue, Apr 14, 2009 at 2:42 AM, Igor Vaynberg  wrote:
> done
>
> -igor
>
> On Mon, Apr 13, 2009 at 1:47 PM, Maarten Bosteels
>  wrote:
>> Hello,
>>
>> I have some small fixes for ki-security under wicketstuff-core.
>>
>> Could someone grant me commit access ?
>> My sourceforge account is maartenbosteels.
>>
>> Thanks,
>> Maarten
>>
>> -
>> 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



Retrieving/serializing the javascript for an AjaxLink

2009-04-14 Thread Ryan LaHue
I am trying to embed javascript links in some JSON which I pass to Open
Flash Chart.  I am able to test this by giving the "on-click" attribute of a
chart element the value of "alert('testing')" and it pops up the alert as I
expect.  Now I need to create links to a Wicket page.  All the links will go
to the same page but I need to have different parameters depending on which
element of my chart was clicked.

I tried something like this but got null for the markup stream:

AjaxLink lateLink = new AjaxLink ("late")  {
  public void onClick(AjaxRequestTarget target) {
setResponsePage(new CarPage(make, model, year));
return;
  }
};
chart.setOnClick(lateLink.getMarkupStream());

How can I go about building a dynamic javascript link to a wicket page which
I can pass into the flash object?  The chart object is just a bean which I
run through a converter to seralizize its attributes to JSON.

Thanks for any help.


Possible 1.3.6 release?

2009-04-14 Thread Clint Popetz
Hi,

The WebBeans reference implementation is getting ready to be released
as a 1.0-Preview, and my integration with wicket is based on this fix:

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

which is in the branch, but not yet released.  It can't be released
with a snapshot dependency, so I'll have to roll my own 1.3.5-webbeans
wicket release for the jboss maven repository unless it would be
possible to get 1.3.6 out, even in alpha/beta/cr/whatever.

So, out of curiousity...is 1.3.6 feasible RSN?

Many thanks,
-Clint

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



When should you use DefaultDataTable vs. ListView ?

2009-04-14 Thread Phillip Rhodes
I am writing an application and have used both the DefaultDataTable and 
ListView to display paged data.
Besides the feature that DefaultDataTable allows you to sort columns easily, is 
there any reason to choose one over the other?

Thanks!



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



Re: wicket:link behavior changed in 1.4r2

2009-04-14 Thread Jeremy Thomerson
I'm pretty sure this change is a result of WICKET-1513 [1].  Please file a
JIRA that explains your behavior below.

[1] https://issues.apache.org/jira/browse/WICKET-1513

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



On Mon, Apr 13, 2009 at 4:17 PM, Jeremy Thomerson  wrote:

> I haven't had a chance to look back, but you could search JIRA for an issue
> that I fixed that had to do with AutoLinkResolver.  It would have been about
> in that time frame, and some things were being left our of AutoLinkResolver
> (like embed, etc).  I can't remember if I modified img tags or not.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Mon, Apr 13, 2009 at 4:14 PM, Mike Comb  wrote:
>
>> Does anyone have any hints on this other than digging into the source?  I
>> found a couple of references to the same sort of request in the email
>> archives but no answers.
>>
>>
>>
>> On Apr 9, 2009, at 5:42 PM, Mike Comb wrote:
>>
>>  Hi, I'm trying to upgrade several sites from 1.4m3 to 1.4r2 and have hit
>>> an issue with the AutoLinkResolver.  We have lots of html with linked images
>>> that look like this:
>>>
>>> >> />
>>>
>>> This used to work fine, but with the last couple of releases (r1 and r2)
>>> clicking on the image directs the user to a blank page with the image on it
>>> rather than the intended page link through a javascript onclick action.
>>>  Ideally I'd like to turn off processing of img tags by the AutoLinkResolver
>>> and only have it process href's, but I can't figure out how to do that from
>>> the javadocs.  Can someone point me in the right direction?  Going back and
>>> setting each of these up as a BookmarkablePageLink is not an option, we need
>>> the auto linking behavior.
>>>
>>> Thanks,
>>> -Mike
>>>
>>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: Possible to retrieve previous page from PageMap

2009-04-14 Thread Igor Vaynberg
search this forum for pagereference

-igor

On Tue, Apr 14, 2009 at 9:28 AM, Daniele Dellafiore  wrote:
> Here is my "return to last page" problem.
>
> A "detail" page has multiple tabs, an AjaxTabbedPanel. Swithing
> between tabs does not put another page in browser history, so
> history.back() is fine.
> I have also a checkbox that trigger enable/disable state of all the
> input of the form. Is an AjaxCheckBox that in the callback refresh the
> form component after changing the "enable" property. The
> history.back() works, again.
>
> But, I have a "reset" button that:
> 1. reload the old values in the fields
> 2. put the form in a disable state, like at the beginning.
>
> Now, to achieve this result, the Reset button actually calls a
> setResponsePage(getPage(), getPage().getPageParameters())
>
> so reloads the current page with original parameters.
> That calls actually make the history grow, so the history.back() is no
> longer useful becouse, in fact, goes to the last version of the actual
> page instead of the previous page.
>
> Any suggestion?
>
> I should simply use a document.form.reset() making that the Reset
> button is not a submit button... sounds fine?
>
> In general, what is the best solution "wicket-like"? Is something
> REST-like a la gmail, that returns to the /search/myFilter ? Or
> something statefull, so I suppose it should be easy to recover the
> last rendered page with the right version and so on...
>
> On Fri, Mar 13, 2009 at 5:18 PM, francisco treacy
>  wrote:
>> igor, i would agree with you if i wanted to mimic the browser back
>> button functionality.
>>
>> but i do not. we intensively use panel swapping and we're only
>> interested in registering when users click on certain pages (we can
>> fine-tune pages which pages should be "back-clickable").
>>
>> we actually considered using history.go(-1), but if you want your app
>> to seriously take into account usability / user experience, it's
>> useless -- for instance think panel swapping, or rendering links such
>> as "back to your search for ice-cream". personally i'm not someone who
>> likes complexity just for the sake of it.
>>
>> francisco
>>
>>
>> On Fri, Mar 13, 2009 at 3:43 PM, Igor Vaynberg  
>> wrote:
>>> its really a lot of work to duplicate what the back button in the
>>> browser already does. or a simple >> onclick="history.go(-1)">back will do as well.
>>>
>>> -igor
>>>
>>> On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy
>>>  wrote:
 to be honest i haven't read the whole thread, but we are also trying
 to achieve roughly the same thing.

 as of wicket 1.4-m1 there is a class called PageId that you may want
 to consider.

 i created a "back state holder" class that holds a PageId and an
 IModel for the text of the back link. so for every visited
 page (in the onBeforeRender - could be placed in the base page), we
 set a holder in the session and in our base page we call
 Session.get.getHolder.  pretty simple really.
 as the PageId class is a unique identifier of the page you can use it
 to distinguish between pagemaps, etc. (so navigation doesn't interfere
 between tabs / windows)

 this fulfills our usecase, as this is just a helper link to "go back
 where you were". we don't completely rely on this link because we also
 do keep traditional navigation links in our pages.

 however i still need to solve the double click problem, i.e. if a user
 clicks twice on a link, the last rendered page will be the same as the
 one he is in. thus, the back link points to the same page.  it is
 actually quite tricky to get it right, yet i believe possible. i will
 definitely try to avoid the link handing over pageparams in the url
 "like in the good old days" :)

 i will post it once i get everything working together.

 francisco





 On Fri, Mar 13, 2009 at 10:29 AM, pixologe  wrote:
>
> Just a thought which I did not think about when implementing this (thus I 
> had
> to change this stuff all over afterwards), perhaps it helps someone 
> avoiding
> the same mistake:
>
> The latest rendered page is not neccessarily the page that lead the user 
> to
> the current page.
> I.e. retrieving the last page this way might result in strange behavior if
> the user uses two browser windows or tabs simulaneously. Same applies for
> clicking the browser's back button.
>
> Thus I had to go back to a rather old-fashioned solution, where every link
> hands over a page param :-/ like in the good old days ;-)
>
>
>
>
>
> rolandpeng wrote:
>>
>> great! after delare a ineer class below:
>>       class PageIdVersion {
>>               public int id;
>>               public int version;
>>               public PageIdVersion last;
>>       }
>> then the track function works.
>>
>>
>

Re: Possible to retrieve previous page from PageMap

2009-04-14 Thread Daniele Dellafiore
Here is my "return to last page" problem.

A "detail" page has multiple tabs, an AjaxTabbedPanel. Swithing
between tabs does not put another page in browser history, so
history.back() is fine.
I have also a checkbox that trigger enable/disable state of all the
input of the form. Is an AjaxCheckBox that in the callback refresh the
form component after changing the "enable" property. The
history.back() works, again.

But, I have a "reset" button that:
1. reload the old values in the fields
2. put the form in a disable state, like at the beginning.

Now, to achieve this result, the Reset button actually calls a
setResponsePage(getPage(), getPage().getPageParameters())

so reloads the current page with original parameters.
That calls actually make the history grow, so the history.back() is no
longer useful becouse, in fact, goes to the last version of the actual
page instead of the previous page.

Any suggestion?

I should simply use a document.form.reset() making that the Reset
button is not a submit button... sounds fine?

In general, what is the best solution "wicket-like"? Is something
REST-like a la gmail, that returns to the /search/myFilter ? Or
something statefull, so I suppose it should be easy to recover the
last rendered page with the right version and so on...

On Fri, Mar 13, 2009 at 5:18 PM, francisco treacy
 wrote:
> igor, i would agree with you if i wanted to mimic the browser back
> button functionality.
>
> but i do not. we intensively use panel swapping and we're only
> interested in registering when users click on certain pages (we can
> fine-tune pages which pages should be "back-clickable").
>
> we actually considered using history.go(-1), but if you want your app
> to seriously take into account usability / user experience, it's
> useless -- for instance think panel swapping, or rendering links such
> as "back to your search for ice-cream". personally i'm not someone who
> likes complexity just for the sake of it.
>
> francisco
>
>
> On Fri, Mar 13, 2009 at 3:43 PM, Igor Vaynberg  
> wrote:
>> its really a lot of work to duplicate what the back button in the
>> browser already does. or a simple > onclick="history.go(-1)">back will do as well.
>>
>> -igor
>>
>> On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy
>>  wrote:
>>> to be honest i haven't read the whole thread, but we are also trying
>>> to achieve roughly the same thing.
>>>
>>> as of wicket 1.4-m1 there is a class called PageId that you may want
>>> to consider.
>>>
>>> i created a "back state holder" class that holds a PageId and an
>>> IModel for the text of the back link. so for every visited
>>> page (in the onBeforeRender - could be placed in the base page), we
>>> set a holder in the session and in our base page we call
>>> Session.get.getHolder.  pretty simple really.
>>> as the PageId class is a unique identifier of the page you can use it
>>> to distinguish between pagemaps, etc. (so navigation doesn't interfere
>>> between tabs / windows)
>>>
>>> this fulfills our usecase, as this is just a helper link to "go back
>>> where you were". we don't completely rely on this link because we also
>>> do keep traditional navigation links in our pages.
>>>
>>> however i still need to solve the double click problem, i.e. if a user
>>> clicks twice on a link, the last rendered page will be the same as the
>>> one he is in. thus, the back link points to the same page.  it is
>>> actually quite tricky to get it right, yet i believe possible. i will
>>> definitely try to avoid the link handing over pageparams in the url
>>> "like in the good old days" :)
>>>
>>> i will post it once i get everything working together.
>>>
>>> francisco
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Mar 13, 2009 at 10:29 AM, pixologe  wrote:

 Just a thought which I did not think about when implementing this (thus I 
 had
 to change this stuff all over afterwards), perhaps it helps someone 
 avoiding
 the same mistake:

 The latest rendered page is not neccessarily the page that lead the user to
 the current page.
 I.e. retrieving the last page this way might result in strange behavior if
 the user uses two browser windows or tabs simulaneously. Same applies for
 clicking the browser's back button.

 Thus I had to go back to a rather old-fashioned solution, where every link
 hands over a page param :-/ like in the good old days ;-)





 rolandpeng wrote:
>
> great! after delare a ineer class below:
>       class PageIdVersion {
>               public int id;
>               public int version;
>               public PageIdVersion last;
>       }
> then the track function works.
>
>
> John Patterson wrote:
>>
>>
>>      // must declare hash map because meta data must be serializable
>>      private MetaDataKey> 
>> lastPageIdVersionKey
>> = new MetaDataKey>() {};
>>
>>
>
>

 --
 View this me

Re: encoding issue on ajax form post (portlet)

2009-04-14 Thread Vivek Kumar

Hi 

Did that solve your problem in portlet ?

Regards
Vivek


Francisco Diaz Trepat - gmail wrote:
> 
> Aha.
> Thanks eike. I'll try it right away.
> 
> On Sat, Mar 14, 2009 at 4:10 PM, Eike Kettner  wrote:
> 
>> Hi Francisco,
>>
>> i ran into a similiar problem with ajax and umlauts. in my case i had
>> a tomcat running the webapp. and for the ajax requests, i had to
>> configure the tomcat connector with useBodyEncodingForURI="true". then
>> the content of ajax requests got correctly encoded (using utf8). since
>> i didn't use porltlets i don't know if this is of any help for you...
>>
>> eike
>>
>>
>>
>> On [Wed, 11.03.2009 11:00], Francisco Diaz Trepat - gmail wrote:
>> > Hi all, I have a wicket project that suddenly required to support
>> portlets.
>> > I traveled through a lot of (I guess) normal issues from not being
>> familiar
>> > with portlets technology. But now I am at a  cross rode (quoting 
>> obama)
>> :-)
>> >
>> > I have an encoding issue in which, for as much  as I could investigate,
>> > begins something like this:
>> >
>> > 1- type  [Hómer] in a textfield
>> > 2- wicket javascript functions to handle post encode the field value to
>> > H%C3%D3 (or similar)
>> > 3-portlet handles the request and redireccionates it to wicket.
>> > 4-on wicket side H\ufffd is the resulting string.
>> > 5- when ajax returns H?omer is the resulting string.
>> > I have ISO-8859-1 in the main page (and only page) of my wicket
>> application.
>> > All the rest is ajax.
>> > With my application inside the portlet container the UTF-8 is the
>> encoding
>> > but this doesn't seam to be because I change the encoding for the
>> > portlet-driver and it didn't work at all.
>> > Any Ideas?
>> > f(t)
>>
>> --
>> email: e...@eknet.org   https://www.eknet.org  pgp: 481161A0
>>
>> -
>> 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/encoding-issue-on-ajax-form-post-%28portlet%29-tp22454650p23042717.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



OAuth in Wicket

2009-04-14 Thread Brill Pappin

This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin







smime.p7s
Description: S/MIME cryptographic signature


Problem with AbstractAjaxTimerBehavior for periodic content update

2009-04-14 Thread Tom Wollert
Hello there,

I have a website which needs quite frequent updating. I was using the
AbstractAjaxTimerBehavior for quite some time, with 1 second duration.
Worked fine on my working machine (dual core) but now on my home PC I
realized some problems. Firefox uses up a lot of CPU power apparently,
making other applications unresponsive (the working machine had apparently
only one coreused up, that's why I didnt notice the problem. My home PC only
has one core).

Anyway, I thought the AbstractAjaxTimerBehaviour was a stupid idea anyway,
but I need frequent updates (actually updates might be several seconds or
minutes apart, but if there are updates, they need to be displayed fast.

I had an idea to just answer the response whenever there is actually
something to update and then send the request back (or after a short
timeout, like 10 seconds). However I ran into another problem that ajax
calls from that website will be postponed, due to the ajax channel being
used. In effect, since my timeout is 10 seconds, resulting in a behaviour
similar to an AbstractAjaxTimerBehaviour with 10 seconds duration

Anyone has any ideas how to solve this problem?

- Tom


Re: google maps in wicket

2009-04-14 Thread Jeremy Thomerson
Okay - the rc2 release is now on wicketstuff.org repo as well, so you can
use the following dependency:


org.wicketstuff
gmap2
1.4-rc2



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



On Tue, Apr 14, 2009 at 9:58 AM, Jeremy Thomerson  wrote:

> There is an RC2 release at my repo [1].  I am actually working on merging
> this with the wicketstuff repo that you have in your pom this morning.  I'll
> send a note when it's done.
>
> [1] http://www.wickettraining.com/ws-repo/
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Tue, Apr 14, 2009 at 9:22 AM, Martin Funk wrote:
>
>> as far as I can tell
>> there is no wicketstuff-core or gma2 module on maven.
>>
>> You need to compile it yourself.
>>
>> svn checkout
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
>> cd wicketstuff-core
>> mvn clean install
>>
>> should just do that.
>>
>> mf
>> Am 14.04.2009 um 15:29 schrieb shiraz memon:
>>
>>
>>  Thanks Martin for your quick reply,
>>>
>>> I have tried to fetch dependencies using maven, but seems like
>>> dependencies
>>> could not be downloaded.
>>>
>>> below is the repository if I am adding to my pom
>>>
>>> 
>>>  
>>>  wicket-snaps
>>>  http://wicketstuff.org/maven/repository
>>>  
>>>  true
>>>  
>>>  
>>>  true
>>>  
>>>  
>>> 
>>>
>>> and the declaring dependency as follows:
>>>
>>> 
>>>  org.wicketstuff
>>>  wicketstuff-core
>>>  1.4-SNAPSHOT
>>>  
>>>
>>> Best regards,
>>>
>>> Shiraz
>>>
>>>
>>>
>>>
>>> On Tue, Apr 14, 2009 at 2:31 PM, Martin Funk >> >wrote:
>>>
>>>  Hi Shiraz,

 gmap2-contrib has moved



 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

 mf

 2009/4/14 shiraz memon 

  Hi
>
> I am a newbie to wicket and stumbled upon it via several websites and
> blogs,
> even I managed to run simple examples with in couple of minutes. Also
>
 very

> amazed about its elegance and simplicity, which really pushes me to use
> this
> framework in my application.
>
> I am using maven for dependency management and implicity got wicket
> v1.4-rc2
> dep's without any problems, but did not see any GoogleMap classes which
>
 are

> explained in gmap(2)-contrib's. Are they deployed on any maven repos or
> downloadable from any website as seperate source/binary bundle?
>
> Thanks for any help in advance,
>
> Shiraz
>
>

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


problem to display a panel via an ajax refresh

2009-04-14 Thread Albert, Michael (LU - Luxembourg)
Hi All,

 

I would like to have a panel in the footer part of my page. This panel should 
contain a panel with a form. But, as I have several types of information 
displayed on the page, the form would depends on what piece of information must 
be modified.

 

The data is represented as a tree:

-  loi

oamendement

§  microchangement

 

So, in my page, I have several nested panels, each of them containing a 
different level of information.

I have put an ajaxfallbacklink on the microchangement level for now.

I have initialized the footerpanel as an webmarkupcontainer.

 

The call is correctly processed but the footer panel isn't modified.

 

Here is my code :

 

In the microchangement panel constructor, the ajax link to display the form 
inside a panel :

add(new AjaxFallbackLink("addNewMicrochange") {

@Override

public void onClick(AjaxRequestTarget target) {

if(target != null) {

super.onClick();

LawMicrochangeFormPanel microchangeFormPanel = new 
LawMicrochangeFormPanel("footerPanel", null, lawId, amendement.getId());

microchangeFormPanel.setOutputMarkupId(true);

target.addComponent(microchangeFormPanel);

 

}

}

});

 

The main page html for the footer:

 

 

footerPanel 

 



 

The main page constructor for the footer:

footer = new WebMarkupContainer("footer");

WebMarkupContainer footerpanel = new WebMarkupContainer("footerPanel");

footerpanel.setOutputMarkupId(true);

footer.add(new WebMarkupContainer("footerPanel"));

footer.setOutputMarkupId(true);

add(footer);

 

MICHAEL ALBERT 
Senior Consultant
SO-System Integration
Deloitte S.A.

Direct: +352 45145 2212
Main: +352 451 451
Mobile: +352 621370647
malb...@deloitte.lu  
www.deloitte.lu  

Deloitte
560, rue de Neudorf
L-2220 Luxembourg
Grand-Duchy of Luxembourg

This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law. If you 
are not the intended recipient, you should delete this message and are hereby 
notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on it, is strictly prohibited.

 



Re: google maps in wicket

2009-04-14 Thread Jeremy Thomerson
There is an RC2 release at my repo [1].  I am actually working on merging
this with the wicketstuff repo that you have in your pom this morning.  I'll
send a note when it's done.

[1] http://www.wickettraining.com/ws-repo/

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



On Tue, Apr 14, 2009 at 9:22 AM, Martin Funk wrote:

> as far as I can tell
> there is no wicketstuff-core or gma2 module on maven.
>
> You need to compile it yourself.
>
> svn checkout
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
> cd wicketstuff-core
> mvn clean install
>
> should just do that.
>
> mf
> Am 14.04.2009 um 15:29 schrieb shiraz memon:
>
>
>  Thanks Martin for your quick reply,
>>
>> I have tried to fetch dependencies using maven, but seems like
>> dependencies
>> could not be downloaded.
>>
>> below is the repository if I am adding to my pom
>>
>> 
>>  
>>  wicket-snaps
>>  http://wicketstuff.org/maven/repository
>>  
>>  true
>>  
>>  
>>  true
>>  
>>  
>> 
>>
>> and the declaring dependency as follows:
>>
>> 
>>  org.wicketstuff
>>  wicketstuff-core
>>  1.4-SNAPSHOT
>>  
>>
>> Best regards,
>>
>> Shiraz
>>
>>
>>
>>
>> On Tue, Apr 14, 2009 at 2:31 PM, Martin Funk > >wrote:
>>
>>  Hi Shiraz,
>>>
>>> gmap2-contrib has moved
>>>
>>>
>>>
>>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
>>>
>>> mf
>>>
>>> 2009/4/14 shiraz memon 
>>>
>>>  Hi

 I am a newbie to wicket and stumbled upon it via several websites and
 blogs,
 even I managed to run simple examples with in couple of minutes. Also

>>> very
>>>
 amazed about its elegance and simplicity, which really pushes me to use
 this
 framework in my application.

 I am using maven for dependency management and implicity got wicket
 v1.4-rc2
 dep's without any problems, but did not see any GoogleMap classes which

>>> are
>>>
 explained in gmap(2)-contrib's. Are they deployed on any maven repos or
 downloadable from any website as seperate source/binary bundle?

 Thanks for any help in advance,

 Shiraz


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


Re: google maps in wicket

2009-04-14 Thread Martin Funk

as far as I can tell
there is no wicketstuff-core or gma2 module on maven.

You need to compile it yourself.

svn checkout 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
cd wicketstuff-core
mvn clean install

should just do that.

mf
Am 14.04.2009 um 15:29 schrieb shiraz memon:


Thanks Martin for your quick reply,

I have tried to fetch dependencies using maven, but seems like  
dependencies

could not be downloaded.

below is the repository if I am adding to my pom


 
 wicket-snaps
 http://wicketstuff.org/maven/repository
 
 true
 
 
 true
 
 


and the declaring dependency as follows:


 org.wicketstuff
 wicketstuff-core
 1.4-SNAPSHOT
 

Best regards,

Shiraz




On Tue, Apr 14, 2009 at 2:31 PM, Martin Funk >wrote:



Hi Shiraz,

gmap2-contrib has moved


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

mf

2009/4/14 shiraz memon 


Hi

I am a newbie to wicket and stumbled upon it via several websites  
and

blogs,
even I managed to run simple examples with in couple of minutes.  
Also

very
amazed about its elegance and simplicity, which really pushes me  
to use

this
framework in my application.

I am using maven for dependency management and implicity got wicket
v1.4-rc2
dep's without any problems, but did not see any GoogleMap classes  
which

are
explained in gmap(2)-contrib's. Are they deployed on any maven  
repos or

downloadable from any website as seperate source/binary bundle?

Thanks for any help in advance,

Shiraz






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



Re: wicket:Interface TabbedPanel and INewBrowserWindowListener

2009-04-14 Thread Daniele Dellafiore
It seems to be related to TabbedPanel in fact when I switch to
AjaxTabbedPanel, the parameter is no longer added.

I did some debug and what happens is that in the method
RequestCycle.urlFor(Component, RequestListenerIntercface, ValueMap)
the process goes into the first if branch and the line

target = new BookmarkableListenerInterfaceRequestTarget(...) is called
and the parameters added.

AjaxTabbedPanel solved this.

And also solved another issue I had. In the page with the TabbedPanel
I have a link that executes js history.back();
The intended behavior is to go back to the previous page but with the
TabbedPanel it goes back to the previous tab.
AjaxTAbbedPanel seems to be "fully ajaxified" so the history.back
returns to the previous rendered Page.

I think that this behavior is also related to the way we mount pages,
with a HybridUrlCodingStrategy. In fact on the location bar we have
the version number of the page and with AjaxTabbedPanel it does not
change while it changes with the TabbedPanel

Related to this I have some other issues but I open a new thread,
leaving this to understand the wicket:interface problem.

I am using wicket 1.3.3.

On Fri, Apr 10, 2009 at 5:44 PM, Igor Vaynberg  wrote:
> that parameter is only added when wicket thinks you opened a new
> browser window or tab. it has nothing to do with tabbed panel. have
> you done that? this code is based on window.name attribute so if you
> have some js that changes the value it may confuse wicket.
>
> -igor
>
> On Fri, Apr 10, 2009 at 8:38 AM, Daniele Dellafiore  wrote:
>> Hi everyone, I have this situation: a TabbedPanel with 2 panels each
>> containing a form.
>> Each panel have aa checkbox that trigger the enable/disable status of
>> each component of the form. So I enter the panel, click the "enable"
>> checkbox and then I can edit and save and press a discard button.
>>
>> The discard button execute a:
>>
>> setResponsePage(getPage().getClass(), getPage().getPageParameters());
>>
>> becouse I need to reload the same entity I was editing and tipically I
>> have a single parameters that is the ID of the entity.
>>
>> The effect is that the page is still in the initial situation, with
>> editing disabled and every modification, of course, has not been
>> saved.
>>
>> This works in the first Tab of the TabbedPanel. In the second, what
>> happens is that fields values are reset but they do not go back to
>> disabled status. The reason I think is that instead of just the entity
>> ID I also found this pageParameter:
>>
>> wicket:interface = "wicket-7:0:7:INewBrowserWindowListener::"
>>
>> I am pretty sure that is related to the TabbedPanel but cannot
>> understand how. If I remove that parameter, the behavior is what
>> expected: page is restarted and I am back to the first tab with fields
>> disabled.
>>
>> Two question:
>> 1. when and why that parameter is added? I would like to read more
>> about wicket:interface and friends, can you point me to some doc?
>> 2. What if I would like to reload the page on the same tab I was
>> before? You think is better to call a setSelectedTab before the
>> setResponsePage or to pass a pageParameter with the number of the
>> selected tab? Or what else?
>>
>> Thanks.
>>
>> --
>> Daniele Dellafiore
>> http://blog.ildella.net/
>>
>> -
>> 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
>
>



-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: google maps in wicket

2009-04-14 Thread shiraz memon
Thanks Martin for your quick reply,

I have tried to fetch dependencies using maven, but seems like dependencies
could not be downloaded.

below is the repository if I am adding to my pom


  
  wicket-snaps
  http://wicketstuff.org/maven/repository
  
  true
  
  
  true
  
  
 

and the declaring dependency as follows:


  org.wicketstuff
  wicketstuff-core
  1.4-SNAPSHOT
  

Best regards,

Shiraz




On Tue, Apr 14, 2009 at 2:31 PM, Martin Funk wrote:

> Hi Shiraz,
>
> gmap2-contrib has moved
>
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
>
> mf
>
> 2009/4/14 shiraz memon 
>
> > Hi
> >
> > I am a newbie to wicket and stumbled upon it via several websites and
> > blogs,
> > even I managed to run simple examples with in couple of minutes. Also
> very
> > amazed about its elegance and simplicity, which really pushes me to use
> > this
> > framework in my application.
> >
> > I am using maven for dependency management and implicity got wicket
> > v1.4-rc2
> > dep's without any problems, but did not see any GoogleMap classes which
> are
> > explained in gmap(2)-contrib's. Are they deployed on any maven repos or
> > downloadable from any website as seperate source/binary bundle?
> >
> > Thanks for any help in advance,
> >
> > Shiraz
> >
>


Re: Getting localized string in constructor.

2009-04-14 Thread Srikanth.NT

We use a static method to make this work without warning.

public static String getResourceString(final Class clazz, final String
propertyName) {
List loaderList =
Application.get().getResourceSettings().getStringResourceLoaders();
for (IStringResourceLoader loader : loaderList) {
String value = loader.loadStringResource(clazz, propertyName, null,
MyOwnSession.get().getStyle());
if (StringUtils.isNotBlank(value)) {
return value;
}
}
return null;
}




Michał Letyński wrote:
> 
> Hi.
> When im getting localized string in constructor via getString method the 
> warning message is dispalyed: "Tried to retrieve a localized string for 
> a component that has not yet been added to the page. "
> 
> I know that one possible way to "fix" this is to use 
> ResourceModel("key'). But what if i cant use ResourceModel ? for e.g 
> some component want String directly. Is there a better solution then 
> using: 
> "Application.get().getResourceSettings().getLocalizer().getString(resourceKey,
> (Component)null, defaultValue);
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 


-
http://ntsrikanth.blogspot.com/
-- 
View this message in context: 
http://www.nabble.com/Getting-localized-string-in-constructor.-tp23035847p23038671.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: google maps in wicket

2009-04-14 Thread Martin Funk
Hi Shiraz,

gmap2-contrib has moved

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

mf

2009/4/14 shiraz memon 

> Hi
>
> I am a newbie to wicket and stumbled upon it via several websites and
> blogs,
> even I managed to run simple examples with in couple of minutes. Also very
> amazed about its elegance and simplicity, which really pushes me to use
> this
> framework in my application.
>
> I am using maven for dependency management and implicity got wicket
> v1.4-rc2
> dep's without any problems, but did not see any GoogleMap classes which are
> explained in gmap(2)-contrib's. Are they deployed on any maven repos or
> downloadable from any website as seperate source/binary bundle?
>
> Thanks for any help in advance,
>
> Shiraz
>


google maps in wicket

2009-04-14 Thread shiraz memon
Hi

I am a newbie to wicket and stumbled upon it via several websites and blogs,
even I managed to run simple examples with in couple of minutes. Also very
amazed about its elegance and simplicity, which really pushes me to use this
framework in my application.

I am using maven for dependency management and implicity got wicket v1.4-rc2
dep's without any problems, but did not see any GoogleMap classes which are
explained in gmap(2)-contrib's. Are they deployed on any maven repos or
downloadable from any website as seperate source/binary bundle?

Thanks for any help in advance,

Shiraz


Re: Getting localized string in constructor.

2009-04-14 Thread Jonas
Just checked the code again, the message seems to be shown always (not
just in development mode). To work around this, you can either call
the localizer
without component (as you originally proposed), or you can configure your
logging not to log warnings from the localizer. Just remember that
those warnings
might be useful if you decide later to have per page resource bundles
after all...


2009/4/14 Jonas :
> Hi,
>
> I don't think createing a ResourceModel instance makes sense, because
> all ResourceModel
> does is using the localizer...
>
> Regarding the original question, if I remember correctly the warning
> message only shows
> up in development mode to give you a heads up that resource lookup
> will not work as
> expected if the component is not yet added to a page.
> See: 
> 
> section 'Finding the message'
> If the resource string isn't located in the page's resource file, it's
> probably safe to ignore the warning.
>
> Besides, if you're in a Component, you can use Component#getString as
> shortcut (instead
> of Application.get().getResourceSettings().getLocalizer().getString(...))
>
> cheers,
> Jonas
>
> 2009/4/14 Witold Czaplewski :
>> Hi Michał,
>>
>> if you need the string of a ResourceModel you may want to call: new
>> ResourceModel("key").getObject().toString().
>>
>> cheers,
>> Witold
>>
>> Am Tue, 14 Apr 2009 11:07:05 +0200
>> schrieb Michał Letyński :
>>
>>> Hi.
>>> When im getting localized string in constructor via getString method the
>>> warning message is dispalyed: "Tried to retrieve a localized string for
>>> a component that has not yet been added to the page. "
>>>
>>> I know that one possible way to "fix" this is to use
>>> ResourceModel("key'). But what if i cant use ResourceModel ? for e.g
>>> some component want String directly. Is there a better solution then
>>> using:
>>> "Application.get().getResourceSettings().getLocalizer().getString(resourceKey,
>>>             (Component)null, defaultValue);
>>>
>>>
>>> -
>>> 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: Getting localized string in constructor.

2009-04-14 Thread Jonas
Hi,

I don't think createing a ResourceModel instance makes sense, because
all ResourceModel
does is using the localizer...

Regarding the original question, if I remember correctly the warning
message only shows
up in development mode to give you a heads up that resource lookup
will not work as
expected if the component is not yet added to a page.
See: 

section 'Finding the message'
If the resource string isn't located in the page's resource file, it's
probably safe to ignore the warning.

Besides, if you're in a Component, you can use Component#getString as
shortcut (instead
of Application.get().getResourceSettings().getLocalizer().getString(...))

cheers,
Jonas

2009/4/14 Witold Czaplewski :
> Hi Michał,
>
> if you need the string of a ResourceModel you may want to call: new
> ResourceModel("key").getObject().toString().
>
> cheers,
> Witold
>
> Am Tue, 14 Apr 2009 11:07:05 +0200
> schrieb Michał Letyński :
>
>> Hi.
>> When im getting localized string in constructor via getString method the
>> warning message is dispalyed: "Tried to retrieve a localized string for
>> a component that has not yet been added to the page. "
>>
>> I know that one possible way to "fix" this is to use
>> ResourceModel("key'). But what if i cant use ResourceModel ? for e.g
>> some component want String directly. Is there a better solution then
>> using:
>> "Application.get().getResourceSettings().getLocalizer().getString(resourceKey,
>>             (Component)null, defaultValue);
>>
>>
>> -
>> 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



class files disappered while deployment

2009-04-14 Thread Altuğ B . Altıntaş
Hi all;
I have very interesting problem.

I am using netbeans 6.5 + tomcat 6.x + wicket 1.3.5..

My problem is java.lang.NoClassDefFoundError but not a standard one.

I have a wicket page Buy.java and Buy.html. When java files are compiled
below class files are generated

Buy$1.class --> inner class - ok
Buy$FileListView.class -- > inner class - ok
Buy.class --> main class - ok
Buy.html --> template html file -ok

Here is the most interesting part;

When i deploy my application using Netbeans (simply press run button on
Netbeans), it gives
java.lang.NoClassDefFoundError : com/shop/web/enter/Buy

When i inspect directory, I see that Buy.class is disappeared but other
inner classes are there (Buy$1.class ...etc). Something is wrong but i
couldn't understand.

Any suggestion ?

Thanks.

-- 
Altuğ.


Re: Fail to close ModalWindow on top of ModalWindow

2009-04-14 Thread freak182


I mean the modal window is not appearing inside iframe in IE7.


freak182 wrote:
> 
> Hello,
> 
> My problem is the ModalWindow is not appearing in IE..any resources?... 
> Is the issue already resolved? 
> 
> Thanks a lot.
> Cheers.
> 
> 
> 
> Mr Mean wrote:
>> 
>> Could you open up an issue for this?
>> 
>> Maurice
>> 
>> On Wed, Apr 9, 2008 at 10:16 AM, Nili Adoram  wrote:
>>> Hi all,
>>>  I have a ModalWindow "A" containing a page  i.e. opened as an iframe.
>>>  This modal opens another ModalWindow "B" containing a panel.
>>>  Window "B" contains a simple AjaxLink that should close "B".
>>>
>>>  add(new AjaxLink("cancel") {
>>>
>>>@Override
>>>public void onClick(AjaxRequestTarget target) {
>>>
>>>ModalWindow.closeCurrent(target);
>>>}
>>>
>>>});
>>>
>>>  However, when I click this AjaxLink in order to close "B" the following
>>> message is displayed:
>>>  'You can\'t close this modal window. Close the top-level modal window
>>> first.'
>>>
>>>  This message is displayed since isIframe() returns true, which is
>>> problematic since "B" is not an iframe but a div.
>>>
>>>  Is there a workaround for this issue ?
>>>
>>>  --
>>>  Best,
>>>  Nili
>>>  ===
>>>  Nili Adoram
>>>  GRM Team, R&D, Qlusters Inc.
>>>  nili.ado...@qlusters.com
>>>  +972-3-6236636
>>>
>>>
>>>
>>>
>>>  -
>>>  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
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Fail-to-close-ModalWindow-on-top-of-ModalWindow-tp16581875p23036123.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: Fail to close ModalWindow on top of ModalWindow

2009-04-14 Thread freak182

Hello,

My problem is the ModalWindow is not appearing in IE..any resources?... 
Is the issue already resolved? 

Thanks a lot.
Cheers.



Mr Mean wrote:
> 
> Could you open up an issue for this?
> 
> Maurice
> 
> On Wed, Apr 9, 2008 at 10:16 AM, Nili Adoram  wrote:
>> Hi all,
>>  I have a ModalWindow "A" containing a page  i.e. opened as an iframe.
>>  This modal opens another ModalWindow "B" containing a panel.
>>  Window "B" contains a simple AjaxLink that should close "B".
>>
>>  add(new AjaxLink("cancel") {
>>
>>@Override
>>public void onClick(AjaxRequestTarget target) {
>>
>>ModalWindow.closeCurrent(target);
>>}
>>
>>});
>>
>>  However, when I click this AjaxLink in order to close "B" the following
>> message is displayed:
>>  'You can\'t close this modal window. Close the top-level modal window
>> first.'
>>
>>  This message is displayed since isIframe() returns true, which is
>> problematic since "B" is not an iframe but a div.
>>
>>  Is there a workaround for this issue ?
>>
>>  --
>>  Best,
>>  Nili
>>  ===
>>  Nili Adoram
>>  GRM Team, R&D, Qlusters Inc.
>>  nili.ado...@qlusters.com
>>  +972-3-6236636
>>
>>
>>
>>
>>  -
>>  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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Fail-to-close-ModalWindow-on-top-of-ModalWindow-tp16581875p23036099.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: Getting localized string in constructor.

2009-04-14 Thread Witold Czaplewski
Hi Michał,

if you need the string of a ResourceModel you may want to call: new
ResourceModel("key").getObject().toString().

cheers,
Witold

Am Tue, 14 Apr 2009 11:07:05 +0200
schrieb Michał Letyński :

> Hi.
> When im getting localized string in constructor via getString method the 
> warning message is dispalyed: "Tried to retrieve a localized string for 
> a component that has not yet been added to the page. "
> 
> I know that one possible way to "fix" this is to use 
> ResourceModel("key'). But what if i cant use ResourceModel ? for e.g 
> some component want String directly. Is there a better solution then 
> using: 
> "Application.get().getResourceSettings().getLocalizer().getString(resourceKey,
> (Component)null, defaultValue);
> 
> 
> -
> 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



Getting localized string in constructor.

2009-04-14 Thread Michał Letyński

Hi.
When im getting localized string in constructor via getString method the 
warning message is dispalyed: "Tried to retrieve a localized string for 
a component that has not yet been added to the page. "


I know that one possible way to "fix" this is to use 
ResourceModel("key'). But what if i cant use ResourceModel ? for e.g 
some component want String directly. Is there a better solution then 
using: 
"Application.get().getResourceSettings().getLocalizer().getString(resourceKey,

   (Component)null, defaultValue);


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