[Wicket-user] Wicket Portlet Support? Examples and Documentation?

2007-06-20 Thread manuel barzi
Dear Sirs,

When we started using Wicket in our project one of the major
motivation was its support for Portlet implementation.

This week, we have migrated our wicket-implemented WebApp to
PortletApp, asuring there are no compilations errors, and everything
seems to go right.

Now we need to pack it in a portlet-war and deploy it in Liferay
Portal. The matter is now, at Wicket's Site, we cannot find the
wicket-portlet-examples, neither Wicket Portlet Documentation. It's
like if portlets have suddenly disappeared from Wicket's!

What happened with Wicket Portlet Support?

Please, dont mention it is not supported anymore... that would be a
disaster for us... ;)

Thank you.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Portlet Support? Examples and Documentation?

2007-06-20 Thread manuel barzi
Martijn,

Does threads are very nice, but also very tangled to understand What
is the actual situation of Wicket  Portlet  vs Currently
Those-Techs-Users!

Would you mind breafing, at least, what should we do to secure-test
and run our Wicket-Portleted application? I mean, should we move to
Wicket-1.3? Stay at Wicket-1.2? Leave away to Struts???

Our inputs are (the versions we are using):
JDK: 1.4.2
Wicket API  Extensions: 1.2.6
WebApplication completely migrated to PortletApplication and packaged in a WAR.

Thanks ;)


On 6/20/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 http://www.nabble.com/forum/Search.jtp?forum=13974local=yquery=portlet+support

 On 6/20/07, manuel barzi [EMAIL PROTECTED] wrote:
  Dear Sirs,
 
  When we started using Wicket in our project one of the major
  motivation was its support for Portlet implementation.
 
  This week, we have migrated our wicket-implemented WebApp to
  PortletApp, asuring there are no compilations errors, and everything
  seems to go right.
 
  Now we need to pack it in a portlet-war and deploy it in Liferay
  Portal. The matter is now, at Wicket's Site, we cannot find the
  wicket-portlet-examples, neither Wicket Portlet Documentation. It's
  like if portlets have suddenly disappeared from Wicket's!
 
  What happened with Wicket Portlet Support?
 
  Please, dont mention it is not supported anymore... that would be a
  disaster for us... ;)
 
  Thank you.
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FileUploadField clear after failed validation. Still a bug?

2007-05-28 Thread manuel barzi
   make a jira issue for this (if not already there) on the apache side 
   (wicket
   sourceforge bug list got a bit lost)
 http://issues.apache.org/jira/browse/WICKET

Ok, here it is ;)

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

 If you supply patches it'll be fixed more quickly in general. If
 you're unable to supply patches, that's ok. But we have limited time
 as well for a lot of issues/ support and other tasks around the
 framework.

Ok, I'll keep waiting for now... the matter for us is we are releasing
to production very soon (1 or 2 weeks) and the FileUploadField will be
an inconvinient for the customer. We'll have to wait...

Thanks ;)

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FileUploadField clear after failed validation. Still a bug?

2007-05-25 Thread manuel barzi
 make a jira issue for this (if not already there) on the apache side (wicket
 sourceforge bug list got a bit lost)

?

 And attach a patch then we will apply that asap.

?

I am a wicket-user... remember? I can try registering this issue at
JIRA (send me instructions), but for the patch I have no much time
right now to investigate inside wicket's... despite I would like to...

On 5/24/07, Johan Compagner [EMAIL PROTECTED] wrote:
 make a jira issue for this (if not already there) on the apache side (wicket
 sourceforge bug list got a bit lost)

 And attach a patch then we will apply that asap.

 johan



  On 5/24/07, manuel barzi [EMAIL PROTECTED] wrote:
 
  Nothing to say about this, right? the bug still there :(
 
  On 5/23/07, manuel barzi [EMAIL PROTECTED] wrote:
   Dear Sirs,
  
   I am registering exactly the bug registered here:
  
  
 http://www.nabble.com/--wicket-Bugs-1484321---FileUploadField-clear-after-failed-validation-tf1581602.html#a4292585
  
   Is this problem persisting yet?
  
   We need to solve it asap!
  
   Thanks ;)
  
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FileUploadField clear after failed validation. Still a bug?

2007-05-24 Thread manuel barzi
Nothing to say about this, right? the bug still there :(

On 5/23/07, manuel barzi [EMAIL PROTECTED] wrote:
 Dear Sirs,

 I am registering exactly the bug registered here:

 http://www.nabble.com/--wicket-Bugs-1484321---FileUploadField-clear-after-failed-validation-tf1581602.html#a4292585

 Is this problem persisting yet?

 We need to solve it asap!

 Thanks ;)


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread manuel barzi
Hi, Johan,

Switching all

... = (String)pageParam.get(...);

to

... = pageParam.getString(...);

made it work.

Why didnt you mention switching to getString before?

Nevertheless, should we understand that get does not behaves as
1.2.5, where String was returned, and not String[1] as 1.2.6.

That's the point, so we might be adviced to refactor our code and
avoid using old get, and use getString in its place.

I guess this clue-point is closing doubts, then ending the thread...

Thank you ;)


On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:

 
 http://localhost:8080/NT/front/?wicket:bookmarkablePage=:mypackage.EntryPointPageDATA=MOGToh0GbqF%7Et3MZzj8cLc9ruPY-ArazzQcA9%7EFO1e6ivBTv-2tSFD8gd4L0MAtXL2xnud0JujjIhjBUVpDHcE82KiBJ7PK-1T3BamoQyx9QnzEsz7PD1li0Wq%7EvOU87
 
 
  As you see there, the DATA parameter sent has been mysteriously
  transformed to String[1].



 that DATA thing you did encrypt it yourself?
 that it is String[1] is logical because it is a direct servlet param and
 those are all String[]
 but how do you get access to the DATA value?
 through the PageParameters?

 then call pp.getString(DATA)

 johan


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread manuel barzi
 for example if you did it through:
 request.getRequestParameters().getParameters()
 then we just return a map which i think we should fix.. (we should return a
 ValueMap there)
 so that you also can do getString()

Yes, that's the point. Sometimes I was doing this in 1.2.5:

public class the-page extends WebPage {
private Map pageParam = null;
public page-constructor() {
pageParam = this.getRequestCycle().getRequest().getParameterMap();
...
}
private a-method() {
String dataParam = (String)pageParam.get(DATA);
}
...
}

by inertia, I also was doing the same with PageParameters, I mean,
using get instead of getString... and so on...

So, I agree, to avoid misunderstandings, it might be fixed, likely by
returning a ValueMap, instead, as you say.

Cheers

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-14 Thread manuel barzi
Hi, Al,

 Construct your page with:
 public MyPage(PageParams params) {

Yes, I already do this in all my pages...

 You can then go:
 String[] colors = params.getStringArray(color);
 (Which obviously returns the whole array.)
 Or:
 String color = params.getString(color);
 (Which just returns the first (likely the only) instance.)

Unfortunatelly, I have to confirm you this is actually not true in
1.2.6 (I guess the link provided by Jean-Baptiste Quenot is explaining
it all).

In my case I just transfer independent key-values (never repeated),
and when recovering them at the parameters receiver-page, I have to
cast to String[], and all of them are of the size 1. So, really,
what's happening inside is a String to String[1] conversion. Which is
not actually following the mentioned spec.

Thanks ;)

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-14 Thread manuel barzi
Hi, Jean-Baptiste,

 See:
 ClassCastException in WebRequestCodingStrategy
 https://issues.apache.org/jira/browse/WICKET-524

This link is about Apache Wicket Project, but not the Wicket
Standalone Project, which is the currently I am using in my
development. Or is that link valid for both cases?

Please, would you mind confirming we the developers where should we
check for mailing lists?

Cause I always understood that wicketOnApache is already in
incubation, with differences in comparison to the original wicketFW.

Thanks, again ;)

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-14 Thread manuel barzi
 You may  want to try  the patch attached  to the Jira  issue.  But
 note  that this  is a  workaround, not  really a  solution to  the
 problem as I don't know where those String arrays come from.

So, should I better switch back to wicket-1.2.5???

Please, confirm to me what's the best decision in this case. It's
important for me, as my development is to be tested in production
quite soon...

Cheers

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-13 Thread manuel barzi
Hi, Eelco,

I did a short example, a simple (without much complexity, as the
original page has)  page2page flow by bookmarkable link, passing 2
parameters, but it's working the right way!? it's not converting
String to String[] parameters.

Strange behaviour...  because the phenomenon is actually happening in
the original page I developed at work...

May I send you the whole original page? but I am afraid it won't be
easy in time for me to provide you a unit test

Saludos!

On 5/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yep. Something like that. Manu, could you please provide me with a
 unit test showing your problem? I'd be happy to fix if I have one. I'm
 currently waiting on someone else sending us a test for a related
 problem.

 Cheers!

 Eelco

 On 5/8/07, Gerolf Seitz [EMAIL PROTECTED] wrote:
  i don't know exactly, but i think the change was made because returning a
  String[] is how it's in the spec.
  please correct me if i'm wrong or have the wrong conversation in mind.
 
  gerolf
 
 
 
   On 5/8/07, manu [EMAIL PROTECTED] wrote:
   Dear Sirs,
  
   I updated to Wicket 1.2.6 and I have found the following behavior when
   using BookmarkablePageLink (which was not happening before in Wicket
   1.2.5). The code example is:
  
   private class Link1 extends BookmarkablePageLink {
   private static final long serialVersionUID = 1L;
   public Link1(String linkId, String labelId, String
  labelValue,
   PageParameters params) {
   super(linkId, Page1.class ,
  params);
   this.add(new Label(labelId, labelValue));
   }
   }
  
   When clicking on this link the error on Page1 (target page that
   recovers params) is:
  
   Caused by: java.lang.ClassCastException
  
   After debugging it, I found that the page parameters (Strings added to
   params) were converted to String[1], id est, all arrays, when
   creating the BookmarkablePageLink. So it seems that there inside
   happens this String2String[] transformation.
  
   To jump over this issue, for the moment, I had to switch to standard
   Link class, avoiding the use of BookmarkablePageLink.
  
   What's the solution to this?
  
   Thanks ;)
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SortableDataProvider, size() iterator(int first, int count), Correct execution order?

2006-12-07 Thread Manuel Barzi
Well, I just do two queries the first time... retrieving total count
on size() call (just once), and then retrieve iteration on
iterator(...) call (every navigation event)... so, in steady-state is
only one call...

On 12/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well in the example i gave you there should only be one query to the
 database

 -igor



 On 12/5/06, Manuel Barzi  [EMAIL PROTECTED] wrote:
 
  Yes, I have already followed your sample, doing two queries to database...
  ;)
 
  On 12/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   no its not possible there is logic that ties the return call of size()
 to a
   few things that need to happen before the call to iterator()
  
   all it takes is your own subclass that i have shown you, i dont think
 its a
   big deal.
  
   -igor
  
  
  
  
  
   On 12/5/06, Manuel Barzi  [EMAIL PROTECTED] wrote:
   
My question is, nevertheless, would it be a significant implementation
change to swap calls order from to current to iterator(...) first and
size() later? then adding support for both cases in a
SortableDataProvider (Case 1: Big databases - 2 Calls, Case 2: Small
databases - 1 Call)...
   
From my point of view, if supporting both cases, just by swapping
those method calls (if so easy is it...), then it would be great, no
worries to look for another impl... all-in-one...
   
Just wondering... ;)
   
Thank you for all your answers...
   
   
  
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net 's Techsay panel and you'll get the chance to
 share
   your
opinions on IT  business topics through brief surveys - and earn cash
   
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys - and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




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


Re: [Wicket-user] SortableDataProvider, size() iterator(int first, int count), Correct execution order?

2006-12-05 Thread Manuel Barzi
My question is, nevertheless, would it be a significant implementation
change to swap calls order from to current to iterator(...) first and
size() later? then adding support for both cases in a
SortableDataProvider (Case 1: Big databases - 2 Calls, Case 2: Small
databases - 1 Call)...

From my point of view, if supporting both cases, just by swapping
those method calls (if so easy is it...), then it would be great, no
worries to look for another impl... all-in-one...

Just wondering... ;)

Thank you for all your answers...

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


Re: [Wicket-user] SortableDataProvider, size() iterator(int first, int count), Correct execution order?

2006-12-05 Thread Manuel Barzi
Yes, I have already followed your sample, doing two queries to database...  ;)

On 12/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 no its not possible there is logic that ties the return call of size() to a
 few things that need to happen before the call to iterator()

 all it takes is your own subclass that i have shown you, i dont think its a
 big deal.

 -igor





 On 12/5/06, Manuel Barzi [EMAIL PROTECTED] wrote:
 
  My question is, nevertheless, would it be a significant implementation
  change to swap calls order from to current to iterator(...) first and
  size() later? then adding support for both cases in a
  SortableDataProvider (Case 1: Big databases - 2 Calls, Case 2: Small
  databases - 1 Call)...
 
  From my point of view, if supporting both cases, just by swapping
  those method calls (if so easy is it...), then it would be great, no
  worries to look for another impl... all-in-one...
 
  Just wondering... ;)
 
  Thank you for all your answers...
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net 's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




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


[Wicket-user] SortableDataProvider, size() iterator(int first, int count), Correct execution order?

2006-11-23 Thread Manuel Barzi
Hi, there,

I have the following composition:

WebPage ...

... DataView  CustomProvider extends SortableDataProvider

... PagingNavigator  DataView

The ERROR? I found is this:

When clicking on any of the navigation buttons (PagingNavigator), my
CustomProvider implementation is managed by Wicket FW calling its
implemented (abstract in SortableDataProvider) in the following order:

1 size()
2 iterator(int first, int count)

That causes wrong results, because it calls first the size() to check
the results obtained when I havent called the iterator(...) yet, and
inside my implementation of iterator(int first, int count) I obviously
do the call to the API that accesses to my persistent layer obtaining
the results according to the specified (first, count) pair...

So, what happens in practice... that when navigating the size() method
retrieves the before obtained iterator.size(), and not the new one
that will be obtained immediatly after it, when calling to
iterator(...).

So, if the order was this:

1 iterator(...)
2 size()

The problem would be solved...

Please, would you mind explaining my how to resolve this issue?

Thank you!

M

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


[Wicket-user] Re: [Wicket-user] 希望合作!

2006-10-17 Thread Manuel Barzi

:?

On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote:

   您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供;

互惠互益以解贵司业务运作`补帐`作帐的燃眉之急;提供如下票据服务:★普通商品/运输/广

告/建筑安装/服务业等各种发票可以向外提供,税率为1-2%;并可上网查询或税务验证后付

款的方式与贵司合作!

联系人:陈小姐
电话 :13510678960



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: [Wicket-user] Re: [Wicket -user] Re: [Wicket-user] 希望合作!

2006-10-17 Thread Manuel Barzi

hon! da isu zu mit su bi shi kawa zaki dae wo! ya ta... ;)

On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

That's our localization test of the email list ;)

Eelco

On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote:
 :?

 On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote:
 您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供;

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Confirming Gmail Issues

2006-10-06 Thread Manuel Barzi
...

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


[Wicket-user] Portlet Problem? Page Panel Form DataPicker

2006-10-05 Thread Manuel Barzi
Dear Sirs, Janne,

I have a PortletPage with the following composition:

PortletPage  Panel  Form  DataPicker

When testing this View in standalone mode (Wicket WebApp - WebPage),
it works. But when testing it as a portlet in LifeRay Portal, I get
the following error:


WicketMessage: Unable to find the markup for the component. That may
be due to transparent containers or components implementing
IComponentResolver: [MarkupContainer [Component id =
_DatePickernullHeader1, page =
es.tsystems.nt.web.view.consulta.ConsultaDadesPage, path =
4:auto_header:_DatePickernullHeader1.WebMarkupContainerWithAssociatedMarkup$HeaderPartContainer,
isVisible = true, isVersioned = false]]Root
cause:wicket.WicketRuntimeException: Unable to find the markup for the
component. That may be due to transparent containers or components
implementing IComponentResolver: [MarkupContainer [Component id =
_DatePickernullHeader1, page =
es.tsystems.nt.web.view.consulta.ConsultaDadesPage, path =
4:auto_header:_DatePickernullHeader1.WebMarkupContainerWithAssociatedMarkup$HeaderPartContainer,
isVisible = true, isVersioned = false]] at
wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:111) at
wicket.Component.renderComponent(Component.java:1599) at
wicket.protocol.http.portlet.PortletRenderResponseStrategy$2.component(PortletRenderResponseStrategy.java:102)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:744)
   at wicket.MarkupContainer.visitChildren(MarkupContainer.java:784)
  at 
wicket.protocol.http.portlet.PortletRenderResponseStrategy.respondHeaderContribution(PortletRenderResponseStrategy.java:97)
at 
wicket.protocol.http.portlet.PortletRenderResponseStrategy.respond(PortletRenderResponseStrategy.java:55)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:858)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
at wicket.RequestCycle.step(RequestCycle.java:966) at
wicket.RequestCycle.steps(RequestCycle.java:1040) at
wicket.RequestCycle.request(RequestCycle.java:454) at
wicket.protocol.http.portlet.WicketPortlet.render(WicketPortlet.java:250)
at com.liferay.portal.servlet.PortletServlet.service(PortletServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802
... blah, blah, blah...


I have revised both View implementation versions: WebPage 
PortletPage, and everything is correctly applied. They are both almost
the same, except to the markup, that in PortletPage is just the
original HTML BODY inner code (excluding BODY) and there are no wicket
references outside BODY.

So, what can be happening here?

Thank you.

Regards,

M

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


Re: [Wicket-user] Portlet Problem? Page Panel Form DataPicker

2006-10-05 Thread Manuel Barzi
Watching the markup generated by the WebPage version, I find that
Wicket does automatically inserts the following scripts to the Page,
in order to provide html-side support for the DatePicker:


head
... blah ...
link href=/nt/caoc.css type=text/css rel=stylesheet

script type=text/javascript wicket:id=calendarMain
src=/nt/ntapplication/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js/script
script type=text/javascript wicket:id=calendarSetup
src=/nt/ntapplication/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar-setup.js/script
script type=text/javascript wicket:id=calendarLanguage
src=/nt/ntapplication/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/lang/calendar-es.js/script
link 
href=/nt/ntapplication/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/theme.css
rel=stylesheet type=text/css wicket:id=calendarStyle/
script type=text/javascript !--/*--![CDATA[/*!--*/
if (window.name=='') {
window.location=/nt/ntapplication?wicket:interface=:1::INewBrowserWindowListener;
}
/*--]]*//script
/head


I guess that including this script directives not in the HEAD element,
but in the BODY element would help, as in the PortletPage version of
this View I have no HEAD element, but  BODY inner code.

How do I specify Wicket where to provide this SCRIPT directives
without worrying about the HEAD element, so to adapt the View to the
PortletPage version?

Regards,

M

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


[Wicket-user] Portlet Problem? Page TabbedPanel Panel[4]

2006-10-05 Thread Manuel Barzi
Dear Janne,

I have detected another issue, and I am not quite sure if it has to be
with Wicket or LifeRay, as I see no exceptions, but I can see a little
detail. I tell you:

I have the following View composition:

Page  TabbedPanel  Panel[4]

When testing this View in standalone WebPage impl it works perfect,
but when testing it as a PortletPage in LifeRay (3.6.1 - requirement),
suddenly the View changes to a standard LifeRay View (I guess),
outputing the following message:

---
Portlet Expired
The portlet you requested has expired.

Return to home
---

This happens when I click on one of the 4 tabs I have in the View
(TabbedPane links), and some other links I don't remember right now.

Then, clicking to the Return to home link (above) it goes back to my
Portlet Application Main Page. So, the portlet hasn't really
desappeared, it just lost the View when clicked on whatever of the
tabbedPane links (tabbedPane).

Comparing the tab-links between both implementations I can see the following:

WebPage impl  tabbedPane link =
http://localhost:8080/nt/ntapplication?wicket:interface=:2:TabsConsulta:tabs:0:link:6:ILinkListener

PortletPage impl  tabbedPane link =
http://localhost/c/portal/layout?p_l_id=1p_p_id=NTPortlet_WAR_es.tsystems.nt.webp_p_action=1p_p_state=normalp_p_mode=viewp_p_col_order=w1p_p_col_pos=2p_p_col_count=3_NTPortlet_WAR_es.tsystems.nt.web_wicket:path=107%3ATabsConsulta%3Atabs%3A0%3Alink_NTPortlet_WAR_es.tsystems.nt.web_wicket:interface=ILinkListener#p_NTPortlet_WAR_es.tsystems.nt.web

If we check the Wicket portion of both links all this fragment
:2:TabsConsulta:tabs:0:link:6: has desappeared in the PortletPage
impl. May be this is because LifeRay Portal does supresses that
fragment by some reason when parsing and filtering the outputs
generated by my Portlet Application. But I understand that this
fragment is unconditional necessary for the Wicket FW to work properly
when tabbing... careless we are in a Portlet or not...

I tried inserting that fragment at the URL of the Portlet in LifeRay,
but didnt work, as ids may change... I guess.

So, at the end, the TabbedPane links are not working properly in my
PortletPage impl.
Have any idea to solve it?

I can remove the tabbedPane out the PortletPage, and multiply to 4
Views (simulating tabs), but this is not quite smart and does not face
the problem directly.

Thank you.

Regards,

M

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


[Wicket-user] Fwd: Can we totally separate styles?

2006-10-02 Thread Manuel Barzi
Dear Sirs,

Have data list with navigation  sortable columns  radio buttons to
select - exclusively - rows... as follows:

RadioSel   SortRow1 SortRow2
===
(o)  data...  data...
(o)  data...  data

the original html has its styles, but when handling this view at
Wicket's java-side, had no other choice than hard-coding the style as
following (example) by means of OrderByLink.CssProvider:

radioGroup.add(new
OrderByBorder(CaocMantenimentRolsCertficatsCiutadaPage-order-2,
CaocMantenimentRolsCertficatsCiutadaPage-field-2, provider, new
OrderByLink.CssProvider(celdaTablaRoja, celdaTablaRoja,
celdaTablaRoja)) { ... blah, blah, blah... }

This is not very good for us, as styles would depend on customer
preferences when this webapp will be in production...

What other alternatives do I have to correctly separate html-css-side
from java-side?

Thank you, in advance.

Regards.

M

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


[Wicket-user] Big-Before Now-Fast Wicketed-Companies Samples? (follows: Wicket arguments for big slow companies)

2006-09-26 Thread Manuel Barzi
Sirs,

Just for curiosity, wouldn't it be nice to see Work in Progress
samples at Wicket's site, where some of those big slow companies are
brain-gaining to Wicket's productivity?

Haven't seen much information... maybe there's some hidden link there
at wicket's :?

For the moment, if it's of your interest, I can report the project I
am involved myself in T-Sys... doing my best to promote Wicket by
PoC... now deeply involved 2 developers... hope to win!

Beers,

M

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
 and where we just do this .equals(value) without testing for null
 i will not rewrite those by first testing null to be able to call for
 length.

This is wrong, we never said so. Just meant switching from
[nullability-check]  !.equals(value) to [nullability-check] 
value.length() != 0... ONLY THOSE DUETS!

Re-read it, you will see.

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
 He is just saying he doesn't want to rewrite the cases that do not have
 a null check.

Very weill, but the question is: whoever promoted that idea? Seems to
be auto-promoted and auto-rejected... ;)

Anyway, have a nice day!

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
 There's also wicket.util.string.Strings#isEmpty
 (http://wicket.sourceforge.net/apidocs/wicket/util/string/Strings.html#isEmpty(java.lang.CharSequence)
 to consider...

Just FYI, what people from Apache does (matching Erik's optimization
proposal ;)... I guess wicket does the same.

[org.apache.commons.lang.StringUtils]

// Empty checks
//---
/**
 * pChecks if a String is empty () or null./p
 *
 * pre
 * StringUtils.isEmpty(null)  = true
 * StringUtils.isEmpty()= true
 * StringUtils.isEmpty( )   = false
 * StringUtils.isEmpty(bob) = false
 * StringUtils.isEmpty(  bob  ) = false
 * /pre
 *
 * pNOTE: This method changed in Lang version 2.0.
 * It no longer trims the String.
 * That functionality is available in isBlank()./p
 *
 * @param str  the String to check, may be null
 * @return codetrue/code if the String is empty or null
 */
public static boolean isEmpty(String str) {
return (str == null || str.length() == 0);
}

(http://www.koders.com/java/fidB29436EC634995BA0A41C5DC97C3F97F549D54B9.aspx?s=apache+%22StringUtils%22)

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
Sirs... WicketUsersMailingListStackOverflowException: discussion has
branched interesting, but to the infinite ;)

 i just checked an 1.3 String implementation and there the same thing was
 ...
 ...

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
 what can i say :) i like performance discussions.. :)

:) That's fine, at the end it's very nutritive...

 Yourkit is running constantly on all my java programs that i run/debug on my
 laptop..

Good! should try it...

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


[Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Manuel Barzi
Sirs,

Trying to get all WebPages and inner components correctly and
univocally identified (wicket:id), I am using landing in a domain of
long-named wicket:ids as, for instance, CaocAdminPage-checkg-1, to
identify a CheckGroup...

My question is: does long-named wicket:ids affect performance, or
there's an inner wicket's optimization strategy mapping them to
faster-inner-numerical ids?

Thanks.

(May Johan Compagner answer this... ;)

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


Re: [Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Manuel Barzi
Glad to learn it ;! Thanks, Johan.

 I will try to answer it then ;)

 i don't think it will affect performance that much but it will increase
 memory consumption a bit
 and then on both sides with that i mean the static heap (because your html
 size is bigger in the markup cache)
 and the garbage created because the wicket id's can be used to generate urls
 See Component.getPath() implementation for that.

 So in the end you create a little more garbage (the response buffer) and the
 html pages to the client can be bigger
 and uglier.

 But to say that that would be a thing you can really measure.. I dont think
 so.
 (or you must have very big id's everywhere that the page is almost twice the
 size :))

 but that is only the rendering/response part. The request part when a
 repsonse comes in we need
 to walk the component path

 verylongverylongverylongverylong1:verylongverylongverylongverylongverylong2:verylongverylongverylongverylongverylong3:verylongverylongverylong4

 so first we have to split that then compare it with a component. String
 compare is also pretty quick because it runs ofcourse only over the shortest
 string
 and if the first char is already different it already know what it can
 return.. Only a hit (or near hit) has to walk over the completely string

 But that is the penalty you get of long id's also again i dont think you
 will notice it. if your wicket id's are 5 or 15 chars. That is just still
 nothing..

 But we do have a url compressor build in in wicket:

 wicket.protocol.http.request.urlcompressing.URLCompressor
 and
 wicket.protocol.http.request.urlcompressing.WebURLCompressingTargetResolverStrategy

 By using those we don't generate the full path for urls. We only map the
 component to a uid.
 and when the request comes in we don't have to parse and walk the full
 component path because we just lookup the component directly for that uid.

 But ofcourse this does cost some additional memory for registering that
 stuff..

 johan

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
;) ha! never give up...

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


Re: [Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Manuel Barzi
 you do know that the ids have to be unique only within the same parent
 right?
 this is perfectly legal
 MyPage() {
   add(new CheckGroup(group);
   WebMarkupContainer c=new WebMarkupContainer(container);
   container.add(new CheckGroup(group);
 -Igor

Already learnt-by-example, yes. Thank you.

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
Hi, Igor

 what do you mean act as a link when clicked? a button submits the form -
 that is its purpose. if you dont want it to submit the form then instead of
 using type=submit use type=button and dont use Button but a
 webmarkupcontainer that sets the onclick attr to whatever you want.

Yes, I've already tried it. In fact, before adding I18N I was using
Link class attached to INPUT to fill onclick, as described
following:

[java]
add(new Link(MainMenuPage-link-1) {
public void onClick() {
setResponsePage(new CaocAdminPage());
}
});
[html]
input name=nou wicket:id=MainMenuPage-link-1
class=buttonEditar type=button

And the resulting output when processed by wicket, is:

[html-output]
input type=button wicket:id=MainMenuPage-link-1
class=buttonEditar
onclick=location.href='/nt/ntapplication?wicket:interface=:1:MainMenuPage-link-1::ILinkListener';
name=nou

So, this accomplishes what we need in respect to linking
(navigation), making a button html element to act as a link. But,
the obstacle comes when trying to add I18N to this buttoned-link...
watching Wicket API I found Button class as a good choice to provide
I18N to the INPUT-type=button, and also to add the act as a link
capability. But, as you confirmed to me, Button class is not the
correct solution.

Then you recommend me to use other WebMarkupContainer based class...
ok, that's still glass while not finding the right component...

What WebMarkupContainer does accomplish this functionality I am looking for?

Thank you.

Regards,

Manu

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
Note that I am using the INPUT(type=button) / BUTTON html element as a
standalone component, not inside a form...

Wait for your answer... hope to come soon. Thanks.

On 9/21/06, Manuel Barzi [EMAIL PROTECTED] wrote:
 Hi, Igor

  what do you mean act as a link when clicked? a button submits the form -
  that is its purpose. if you dont want it to submit the form then instead of
  using type=submit use type=button and dont use Button but a
  webmarkupcontainer that sets the onclick attr to whatever you want.

 Yes, I've already tried it. In fact, before adding I18N I was using
 Link class attached to INPUT to fill onclick, as described
 following:

 [java]
 add(new Link(MainMenuPage-link-1) {
 public void onClick() {
 setResponsePage(new CaocAdminPage());
 }
 });
 [html]
 input name=nou wicket:id=MainMenuPage-link-1
 class=buttonEditar type=button

 And the resulting output when processed by wicket, is:

 [html-output]
 input type=button wicket:id=MainMenuPage-link-1
 class=buttonEditar
 onclick=location.href='/nt/ntapplication?wicket:interface=:1:MainMenuPage-link-1::ILinkListener';
 name=nou

 So, this accomplishes what we need in respect to linking
 (navigation), making a button html element to act as a link. But,
 the obstacle comes when trying to add I18N to this buttoned-link...
 watching Wicket API I found Button class as a good choice to provide
 I18N to the INPUT-type=button, and also to add the act as a link
 capability. But, as you confirmed to me, Button class is not the
 correct solution.

 Then you recommend me to use other WebMarkupContainer based class...
 ok, that's still glass while not finding the right component...

 What WebMarkupContainer does accomplish this functionality I am looking for?

 Thank you.

 Regards,

 Manu


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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
Ok, Igor, I already solved this issue by re-implementing Link class in
my custom LinkButton class, just adding the following snippet
extracted from Button class, and added to the original
onComponentTag Link in this new LinkButton class:

---
// Default handling for tag
super.onComponentTag(tag);

// manuelbarzi {
// setting the value property to the tag
try {
String value = getModelObjectAsString();
if (value != null  !.equals(value)) {
tag.put(value, value);
}
} catch (Exception e) {
// ignore.
}
// }

// Set href to link to this link's linkClicked method
---

It works fine now. May this simple addition be interesting for other
people needing this functionality, you'll judge according to
statistics...

Thank you and regards,

Manu

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
Hi, Erik,

 If this gets accepted, may I humbly suggest to replace
   value != null  !.equals(value)
 with
   value != null  value.length() != 0
 The latter performs considerably faster (though it is of course still a
 micro optimization).

You're right... already updated! Thanks.

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
Hi, Frank,

 You are welcome to submit a patch :)

Yeah, why not... should I enroll wicket-devel to submit this patch,
you tell me...

Thanks.

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
I know, I know, you were addressing to Erik... just told you as I have
the hot-code here updated...

On 9/21/06, Frank Bille [EMAIL PROTECTED] wrote:
 Sry I was talking to Erik that if he's got a better way to do such checks in
 Wicket.

 Since I haven't been following this discussion I can't really say if what
 your doing is something that can be used :)

 Frank


 On 9/21/06, Manuel Barzi [EMAIL PROTECTED] wrote:
 
  Hi, Frank,
 
   You are welcome to submit a patch :)
 
  Yeah, why not... should I enroll wicket-devel to submit this patch,
  you tell me...
 
  Thanks.
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys -- and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
(Btw, SRY is the s---e---x determining Y chromosome... meaning that :?)

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
:) so trivial? then, let it be...

I guess with a global search  replace tool, you may
micro-optimize likely a lot of portions of code containing that
non-optimized comparison...

(will try, nevertheless, to submit that patch...)

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
Submitted and CLOSED.
https://sourceforge.net/tracker/index.php?func=detailaid=1562907group_id=119783atid=684975

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
 If you could do the actual change and then submit a patch for that change it
 will be even faster for us to handle it.

Done...

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


Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-21 Thread Manuel Barzi
 And submit a patch just means attaching the patch to that bug report you
 have opened.

Sí, chabón, ya te había entendido... ;)

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


[Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-20 Thread Manuel Barzi
Hi, there,

I am working with I18N and I have an HTML INPUT that has its value
property to be updated to the current locale, but also has to react as
a link when clicking, by means of onClick property.

I do this in wicket-java-side:
--
labelModel = new StringResourceModel(CaocAdminPage-lit-8, this, null);
add(new Button(CaocAdminPage-link-1, labelModel) {
public void onSubmit() {
setResponsePage(new 
CaocMantenimentRolsCertficatsCiutadaPage());
}
});
--

And the html-side:
--
input value=Veure / Editar name=nou class=buttonEditar
wicket:id=CaocAdminPage-link-1 type=submit
--

When testing the page it shows with the correct locale, but the LINK
DOESNT WORK - onClick overriden method does not make the button to
work as link. The html-output obtained does not provide the onclick
correctly filled up by Wicket, as show here:
--
input value=Ver / Editar type=submit class=buttonEditar
wicket:id=CaocAdminPage-link-1 name=CaocAdminPage-link-1
--

I guess I should not use Button by some wicket-reason, then my question is:

to achieve this goal of providing an INPUT with I18N and onClick
(link capability), what would you recommend?

Grazie.

Manu

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


[Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
Hi, Janne,

After satisfactory testing the wicket-portlet-examples (1.x), I
decided to test a part of my webapp, just a few linked pages to test
navigation. So, what I did is just extending from PortletPage, instead
of WebPage. No compilation errors, and also no errors when deploying
the WAR in LifeRay (Tomcat jdk14), but... when loading the portlet -
add it to the window layout - I get the following exception onscreen
(the portlet frame seems to be correctly loaded, but no view inside,
just a Wicket exception output as follows):

---
Unexpected RuntimeException
WicketMessage: Programming error: 'parent' should be a Page or a
Border implementing IHeaderRendererRoot
cause:wicket.WicketRuntimeException: Programming error: 'parent'
should be a Page or a Border implementing IHeaderRenderer at
wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:147)
at wicket.Component.renderComponent(Component.java:1696) at
wicket.MarkupContainer.onRender(MarkupContainer.java:927) at
wicket.Component.render(Component.java:1532) at
wicket.Component.render(Component.java:1498) at
wicket.MarkupContainer.autoAdd(MarkupContainer.java:196) at
wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1361)
 at wicket.MarkupContainer.renderAll(MarkupContainer.java:944) at
wicket.Page.onRender(Page.java:861) at
wicket.Component.render(Component.java:1532) at
wicket.Page.renderPage(Page.java:410) at
wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
at 
wicket.protocol.http.portlet.PortletRenderResponseStrategy.respond(PortletRenderResponseStrategy.java:56)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:858)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
at wicket.RequestCycle.step(RequestCycle.java:966) at
wicket.RequestCycle.steps(RequestCycle.java:1040) at
wicket.RequestCycle.request(RequestCycle.java:454) at
wicket.protocol.http.portlet.WicketPortlet.render(WicketPortlet.java:250)
at 
com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:295)
at com.liferay.portlet.CachePortlet.render(CachePortlet.java:155)
   at 
org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:685)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:963)
at 
com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:65)
at 
com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:135)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:189)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at 
com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:437)
at 

Re: [Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
Ok, checking the markup I can see - following the rules - shouldn't I
use parent html element body, neither elements updwards (head, html,
etc...). Wicket-portlet-examples, ExamplePortlet.html and
ExamplePortlet2.html just contain inner-body html code, so I should do
the same... will check!

On 9/19/06, Manuel Barzi [EMAIL PROTECTED] wrote:
 Hi, Janne,

 After satisfactory testing the wicket-portlet-examples (1.x), I
 decided to test a part of my webapp, just a few linked pages to test
 navigation. So, what I did is just extending from PortletPage, instead
 of WebPage. No compilation errors, and also no errors when deploying
 the WAR in LifeRay (Tomcat jdk14), but... when loading the portlet -
 add it to the window layout - I get the following exception onscreen
 (the portlet frame seems to be correctly loaded, but no view inside,
 just a Wicket exception output as follows):

 ---
 Unexpected RuntimeException
 WicketMessage: Programming error: 'parent' should be a Page or a
 Border implementing IHeaderRendererRoot
 cause:wicket.WicketRuntimeException: Programming error: 'parent'
 should be a Page or a Border implementing IHeaderRenderer at
 wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:147)
 at wicket.Component.renderComponent(Component.java:1696) at
 wicket.MarkupContainer.onRender(MarkupContainer.java:927) at
 wicket.Component.render(Component.java:1532) at
 wicket.Component.render(Component.java:1498) at
 wicket.MarkupContainer.autoAdd(MarkupContainer.java:196) at
 wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82)
 at wicket.MarkupContainer.renderNext(MarkupContainer.java:1361)
  at wicket.MarkupContainer.renderAll(MarkupContainer.java:944) at
 wicket.Page.onRender(Page.java:861) at
 wicket.Component.render(Component.java:1532) at
 wicket.Page.renderPage(Page.java:410) at
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
 at 
 wicket.protocol.http.portlet.PortletRenderResponseStrategy.respond(PortletRenderResponseStrategy.java:56)
 at 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
 at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:858)
 at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
 at wicket.RequestCycle.step(RequestCycle.java:966) at
 wicket.RequestCycle.steps(RequestCycle.java:1040) at
 wicket.RequestCycle.request(RequestCycle.java:454) at
 wicket.protocol.http.portlet.WicketPortlet.render(WicketPortlet.java:250)
 at 
 com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:89)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
 at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
 at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:295)
 at com.liferay.portlet.CachePortlet.render(CachePortlet.java:155)
at 
 org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:685)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
 at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
 at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:963)
 at 
 com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:65)
 at 
 com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:135)
 at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236

Re: [Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
:? it already works, since this morning! the issue was auto-solved...

Thank you.

On 9/19/06, Janne Hietamäki [EMAIL PROTECTED] wrote:


 What version of Wicket are you using? There should work with the current
 version from svn?

 Janne

 On 19.9.2006, at 13.08, Manuel Barzi wrote:


 Ok, checking the markup I can see - following the rules - shouldn't I
 use parent html element body, neither elements updwards (head, html,
 etc...). Wicket-portlet-examples, ExamplePortlet.html and
 ExamplePortlet2.html just contain inner-body html code, so I should do
 the same... will check!

 On 9/19/06, Manuel Barzi [EMAIL PROTECTED] wrote:
 Hi, Janne,

 After satisfactory testing the wicket-portlet-examples (1.x), I
 decided to test a part of my webapp, just a few linked pages to test
 navigation. So, what I did is just extending from PortletPage, instead
 of WebPage. No compilation errors, and also no errors when deploying
 the WAR in LifeRay (Tomcat jdk14), but... when loading the portlet -
 add it to the window layout - I get the following exception onscreen
 (the portlet frame seems to be correctly loaded, but no view inside,
 just a Wicket exception output as follows):

 ---
 Unexpected RuntimeException
 WicketMessage: Programming error: 'parent' should be a Page or a
 Border implementing IHeaderRendererRoot
 cause:wicket.WicketRuntimeException: Programming error: 'parent'
 should be a Page or a Border implementing IHeaderRenderer at
 wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:147)
 at
 wicket.Component.renderComponent(Component.java:1696)
 at
 wicket.MarkupContainer.onRender(MarkupContainer.java:927) at
 wicket.Component.render(Component.java:1532) at
 wicket.Component.render(Component.java:1498) at
 wicket.MarkupContainer.autoAdd(MarkupContainer.java:196) at
 wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82)
 at
 wicket.MarkupContainer.renderNext(MarkupContainer.java:1361)
  at
 wicket.MarkupContainer.renderAll(MarkupContainer.java:944)
at
 wicket.Page.onRender(Page.java:861) at
 wicket.Component.render(Component.java:1532) at
 wicket.Page.renderPage(Page.java:410) at
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
 at
 wicket.protocol.http.portlet.PortletRenderResponseStrategy.respond(PortletRenderResponseStrategy.java:56)
 at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
 at
 wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:858)
 at
 wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
 at wicket.RequestCycle.step(RequestCycle.java:966) at
 wicket.RequestCycle.steps(RequestCycle.java:1040) at
 wicket.RequestCycle.request(RequestCycle.java:454) at
 wicket.protocol.http.portlet.WicketPortlet.render(WicketPortlet.java:250)
 at
 com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:89)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
 at
 com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:295)
 at
 com.liferay.portlet.CachePortlet.render(CachePortlet.java:155)
at
 org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:685)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
 at
 com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:963)
 at
 com.liferay.portal.action.RenderPortletAction.execute

Re: [Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
Forgot to answer this... here it is:

 What version of Wicket are you using? There should work with the current
 version from svn?

wicket-1.2-SNAPSHOT.jar

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


Re: [Wicket-user] what mail client to you use?

2006-09-14 Thread Manuel Barzi
Agree with Gustavo, Thunderbird is without question a great
thread-oriented mail client, and it's for free. Moreover, you can
carry it all in your memory stick, as achieved with this version:
http://portableapps.com/portablethunderbird

;)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] what mail client to you use?

2006-09-14 Thread Manuel Barzi
 With gmail I can read all responses in one thread by just scrolling my
 mousewheel.

That's a good proposal to forward to Mozilla Thunderbird ORG

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] PortletPage vs. WebPage

2006-09-13 Thread Manuel Barzi
Dear Janne,

Currently, while starting up with wicket-portlets-exapmles
(successfully running now on LifeRay + Tomcat), the initial webapp we
are developing was started using WebPage, following the reference of
wicket-examples.

But, what about that webapp - based on WebPage - to be integrated in a
portlet by means of PortletPage?

I mean, does PortletPage offer the same flexibility WebPage does? I
guess we'll find some limitations, have to test yet, but all
information learnt in advance might help.

Following this doubt: will it be so easy to create the portlet from
the webapp as translating from WebPage to PortletPage?

And last, why doesn't PortletPage extends WebPage? Has it any sense,
you tell me.

Manu

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket-portlet inside LifeRay + Tomcat?

2006-09-12 Thread Manuel Barzi
Has anyone successfully runned a simple Wicket-portlet inside LifeRay + Tomcat?

I have downloaded the Wicket-portlet-samples from the repository, and
when I try to load the portlet.war with LifeRay + Tomcat I get the
following error:

---
14:59:36,520 ERROR [HotDeployUtil:52] com.liferay.portal.kernel.deploy.HotDeploy
Exception: Error registering portlets for es.tsystems.nt.web
at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDe
ployPortletListener.java:284)
at com.liferay.portal.kernel.deploy.HotDeployUtil._fireDeployEvent(HotDe
ployUtil.java:82)
at com.liferay.portal.kernel.deploy.HotDeployUtil.fireDeployEvent(HotDep
loyUtil.java:43)
at com.liferay.portal.kernel.servlet.PortletContextListener.contextIniti
alized(PortletContextListener.java:41)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
187)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java
:1089)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1187)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:292)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBas
e.java:1305)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
rocessChildren(ContainerBase.java:1569)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
rocessChildren(ContainerBase.java:1578)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r
un(ContainerBase.java:1558)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.ClassCastException
at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDe
ployPortletListener.java:142)
... 14 more
---

Need help! Thank you, in advance!

Regards.

Manu

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user