Re: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Andrea Del Bene

On 11/27/2011 03:40 PM, Em wrote:

Hi Andrea,

thanks for sharing your information!

My answers are in the content.

Am 27.11.2011 14:52, schrieb Andrea Del Bene:

I already saw this Wiki-page yesterday.
Well, the point is, that I want to include the markup *in* the markup
(i.e. output it in some panel inside of a script-tag so that JavaScript
is able to get the markup).
So *while* you are rendering, you want to know the schema Wicket is
rendering on to include it in some places before outputting.

you should have a look to method Component.renderHead(IHeaderResponse
response).  If you override it you can write an arbitrary string to the
header section. For example you could do something like:

@Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);

 response.renderJavaScript(myUserView.getMarkup().toString(true),
"markupUser");
 }


This will put the markup of myUserView inside a script tag with
id="markupUser".


Without the Wicket-specific tags? Sounds great!


Yes, you should be able to strip out Wicket tags.  For example the 
output for a simple form with 2 text field is:



/*
Name 
Surname 

/*]]>*/


I saw that Velocity integration is possible with Wicket and as far as I
saw there are no problems or drawbacks with it - can you confirm that?

Have you seen this example
http://wicket.apache.org/learn/projects/velocity.html ? Maybe it could
help you.

I saw exactly this page but thought about whether there may be some
drawbacks (in terms of performance, security or something else) with
this approach.

Regards,
Em


Unfortunately I didn't have the chance to work with Velocity, so I can't 
tell anything about possible drawbacks. But I think you won't find big 
issues with it.




-
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: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Em
Hi Andrea,

thanks for sharing your information!

My answers are in the content.

Am 27.11.2011 14:52, schrieb Andrea Del Bene:
>> I already saw this Wiki-page yesterday.
>> Well, the point is, that I want to include the markup *in* the markup
>> (i.e. output it in some panel inside of a script-tag so that JavaScript
>> is able to get the markup).
>> So *while* you are rendering, you want to know the schema Wicket is
>> rendering on to include it in some places before outputting.
> 
> you should have a look to method Component.renderHead(IHeaderResponse
> response).  If you override it you can write an arbitrary string to the
> header section. For example you could do something like:
> 
> @Override
> public void renderHead(IHeaderResponse response) {
> super.renderHead(response);
> 
> response.renderJavaScript(myUserView.getMarkup().toString(true),
> "markupUser");
> }
> 
> 
> This will put the markup of myUserView inside a script tag with
> id="markupUser".
> 

Without the Wicket-specific tags? Sounds great!

>>
>> I saw that Velocity integration is possible with Wicket and as far as I
>> saw there are no problems or drawbacks with it - can you confirm that?
> 
> Have you seen this example
> http://wicket.apache.org/learn/projects/velocity.html ? Maybe it could
> help you.

I saw exactly this page but thought about whether there may be some
drawbacks (in terms of performance, security or something else) with
this approach.

Regards,
Em

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



Re: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Andrea Del Bene

Hi Em,



Hi Josh,

thanks for your feedback!

I already saw this Wiki-page yesterday.
Well, the point is, that I want to include the markup *in* the markup
(i.e. output it in some panel inside of a script-tag so that JavaScript
is able to get the markup).
So *while* you are rendering, you want to know the schema Wicket is
rendering on to include it in some places before outputting.


you should have a look to method Component.renderHead(IHeaderResponse 
response).  If you override it you can write an arbitrary string to the 
header section. For example you could do something like:


@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);


response.renderJavaScript(myUserView.getMarkup().toString(true), 
"markupUser");

}


This will put the markup of myUserView inside a script tag with 
id="markupUser".





I saw that Velocity integration is possible with Wicket and as far as I
saw there are no problems or drawbacks with it - can you confirm that?

Regards,
Em


Have you seen this example 
http://wicket.apache.org/learn/projects/velocity.html ? Maybe it could 
help you.



Am 27.11.2011 09:31, schrieb Josh Kamau:

Hi there,

Look for instructions on how to remove wicket tags here:
https://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html.
Also look around to learn how to do a thousand other things in wicket.

Kind regards.
Josh.

On Sun, Nov 27, 2011 at 3:42 AM, Em  wrote:


Hello list,

I am absolutely new to Apache Wicket (and new to writing
java-web-frontends instead of web-services) and not sure whether it is
right for my needs.

I got some questions regarding the rendering process.
For template sharing between client and server it would be great if I
can get a wicket-tag-free template-version at processing time.

The idea:
My Wicket-template looks like:

  

  $userNameTitle
  $lastLoginTitle



  $userName
  $lastLogin

  


When I am interested in the user's section, I want to do the following
(in pseudo-code):

myUserView.getTemplate();
//output is completely freed of Wicket-specific stuff:
  
$userName
$lastLogin
  


However I am even happy with this output:
  


  
NOTE: The inner wicket:id's were left. Maybe I have to call their
content seperately (and then getting their content together with the
corresponding placeholders).

What is the main idea behind that?
A collegue of mine comes from the PHP-corner. They were able to share
the template between server and backend, so that a client-side
JS-template-engine rendered the same HTML as the server's
template-engine (PHP).
On AJAX-requests they were saving a lot of traffic and ressources, since
they just needed to serialize their PHP-models to JSON and respond them
to the client.
Their JavaScript developers did not need to know about the PHP-backend.
Using Apache Wicket, I want to achieve the same with a Java-backend.

Another thing:
Using PHP and a placeholder-like template-engine that supports basic
logic (if, else, loops) their designers did not need to know about the
PHP-classes that are responsible for creating the placeholders as long
as they worked correctly.
So a designer without knowledge about the backend's language was able to
work on a template. He was able to give even and uneven rows in a table
different colours right from the template's logic.
Is this possible with Apache Wicket, too?

Any other suggestions, opinions, advices? :)

Regards,
Em

-
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: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Em
Hi Josh,

thanks for your feedback!

I already saw this Wiki-page yesterday.
Well, the point is, that I want to include the markup *in* the markup
(i.e. output it in some panel inside of a script-tag so that JavaScript
is able to get the markup).
So *while* you are rendering, you want to know the schema Wicket is
rendering on to include it in some places before outputting.

I saw that Velocity integration is possible with Wicket and as far as I
saw there are no problems or drawbacks with it - can you confirm that?

Regards,
Em

Am 27.11.2011 09:31, schrieb Josh Kamau:
> Hi there,
> 
> Look for instructions on how to remove wicket tags here:
> https://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html.
> Also look around to learn how to do a thousand other things in wicket.
> 
> Kind regards.
> Josh.
> 
> On Sun, Nov 27, 2011 at 3:42 AM, Em  wrote:
> 
>> Hello list,
>>
>> I am absolutely new to Apache Wicket (and new to writing
>> java-web-frontends instead of web-services) and not sure whether it is
>> right for my needs.
>>
>> I got some questions regarding the rendering process.
>> For template sharing between client and server it would be great if I
>> can get a wicket-tag-free template-version at processing time.
>>
>> The idea:
>> My Wicket-template looks like:
>>
>>  
>>
>>  $userNameTitle
>>  $lastLoginTitle
>>
>>
>>
>>  $userName
>>  $lastLogin
>>
>>  
>>
>>
>> When I am interested in the user's section, I want to do the following
>> (in pseudo-code):
>>
>> myUserView.getTemplate();
>> //output is completely freed of Wicket-specific stuff:
>>  
>>$userName
>>$lastLogin
>>  
>>
>>
>> However I am even happy with this output:
>>  
>>
>>
>>  
>> NOTE: The inner wicket:id's were left. Maybe I have to call their
>> content seperately (and then getting their content together with the
>> corresponding placeholders).
>>
>> What is the main idea behind that?
>> A collegue of mine comes from the PHP-corner. They were able to share
>> the template between server and backend, so that a client-side
>> JS-template-engine rendered the same HTML as the server's
>> template-engine (PHP).
>> On AJAX-requests they were saving a lot of traffic and ressources, since
>> they just needed to serialize their PHP-models to JSON and respond them
>> to the client.
>> Their JavaScript developers did not need to know about the PHP-backend.
>> Using Apache Wicket, I want to achieve the same with a Java-backend.
>>
>> Another thing:
>> Using PHP and a placeholder-like template-engine that supports basic
>> logic (if, else, loops) their designers did not need to know about the
>> PHP-classes that are responsible for creating the placeholders as long
>> as they worked correctly.
>> So a designer without knowledge about the backend's language was able to
>> work on a template. He was able to give even and uneven rows in a table
>> different colours right from the template's logic.
>> Is this possible with Apache Wicket, too?
>>
>> Any other suggestions, opinions, advices? :)
>>
>> Regards,
>> Em
>>
>> -
>> 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: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Josh Kamau
Hi there,

Look for instructions on how to remove wicket tags here:
https://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html.
Also look around to learn how to do a thousand other things in wicket.

Kind regards.
Josh.

On Sun, Nov 27, 2011 at 3:42 AM, Em  wrote:

> Hello list,
>
> I am absolutely new to Apache Wicket (and new to writing
> java-web-frontends instead of web-services) and not sure whether it is
> right for my needs.
>
> I got some questions regarding the rendering process.
> For template sharing between client and server it would be great if I
> can get a wicket-tag-free template-version at processing time.
>
> The idea:
> My Wicket-template looks like:
>
>  
>
>  $userNameTitle
>  $lastLoginTitle
>
>
>
>  $userName
>  $lastLogin
>
>  
>
>
> When I am interested in the user's section, I want to do the following
> (in pseudo-code):
>
> myUserView.getTemplate();
> //output is completely freed of Wicket-specific stuff:
>  
>$userName
>$lastLogin
>  
>
>
> However I am even happy with this output:
>  
>
>
>  
> NOTE: The inner wicket:id's were left. Maybe I have to call their
> content seperately (and then getting their content together with the
> corresponding placeholders).
>
> What is the main idea behind that?
> A collegue of mine comes from the PHP-corner. They were able to share
> the template between server and backend, so that a client-side
> JS-template-engine rendered the same HTML as the server's
> template-engine (PHP).
> On AJAX-requests they were saving a lot of traffic and ressources, since
> they just needed to serialize their PHP-models to JSON and respond them
> to the client.
> Their JavaScript developers did not need to know about the PHP-backend.
> Using Apache Wicket, I want to achieve the same with a Java-backend.
>
> Another thing:
> Using PHP and a placeholder-like template-engine that supports basic
> logic (if, else, loops) their designers did not need to know about the
> PHP-classes that are responsible for creating the placeholders as long
> as they worked correctly.
> So a designer without knowledge about the backend's language was able to
> work on a template. He was able to give even and uneven rows in a table
> different colours right from the template's logic.
> Is this possible with Apache Wicket, too?
>
> Any other suggestions, opinions, advices? :)
>
> Regards,
> Em
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Newbie Questions: Getting Plain HTML

2011-11-26 Thread Em
Hello list,

I am absolutely new to Apache Wicket (and new to writing
java-web-frontends instead of web-services) and not sure whether it is
right for my needs.

I got some questions regarding the rendering process.
For template sharing between client and server it would be great if I
can get a wicket-tag-free template-version at processing time.

The idea:
My Wicket-template looks like:

  

  $userNameTitle
  $lastLoginTitle



  $userName
  $lastLogin

  


When I am interested in the user's section, I want to do the following
(in pseudo-code):

myUserView.getTemplate();
//output is completely freed of Wicket-specific stuff:
  
$userName
$lastLogin
  


However I am even happy with this output:
  


  
NOTE: The inner wicket:id's were left. Maybe I have to call their
content seperately (and then getting their content together with the
corresponding placeholders).

What is the main idea behind that?
A collegue of mine comes from the PHP-corner. They were able to share
the template between server and backend, so that a client-side
JS-template-engine rendered the same HTML as the server's
template-engine (PHP).
On AJAX-requests they were saving a lot of traffic and ressources, since
they just needed to serialize their PHP-models to JSON and respond them
to the client.
Their JavaScript developers did not need to know about the PHP-backend.
Using Apache Wicket, I want to achieve the same with a Java-backend.

Another thing:
Using PHP and a placeholder-like template-engine that supports basic
logic (if, else, loops) their designers did not need to know about the
PHP-classes that are responsible for creating the placeholders as long
as they worked correctly.
So a designer without knowledge about the backend's language was able to
work on a template. He was able to give even and uneven rows in a table
different colours right from the template's logic.
Is this possible with Apache Wicket, too?

Any other suggestions, opinions, advices? :)

Regards,
Em

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



Re: Calendar Component [was Newbie Questions]

2010-01-19 Thread nino martinez wael
If you need something like that, I'd consider rolling an integration
towards this 
http://www.bloggingdeveloper.com/post/jQuery-Week-Calendar-An-Easy-to-Implement-Google-Calendar-like-jQuery-Calendar-Plugin.aspx
and if it's too complicated roll your own using panels and a mixture
of ajax etc.

I don't what features jeremys calendar have, but could be a very good
starting point.

2010/1/19 Peter Karich :
> Hi Nino, hi Reinout!
>>
>> hmm I have something here aswell:
>>
>> http://wheresmyevent.com/search
>>
>> if you click one of the little date icons it's month displayed in
>> days, is this not what you are looking for ?
>>
>
> Not really :-) I do not look for a datepicker ...  I thought more of a panel
> where the dates of one week are listed in the 'normal timetable-fashion'.
> Sth. like that what Reinout suggested in the top left screenshot.
>
> Here is a desktop library which has this what I mean:
> http://sourceforge.net/project/screenshots.php?group_id=157010&ssid=62278
>
> Regards,
> Peter.
>
> --
> Free your timetabling!
> http://timefinder.sourceforge.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



Re: Calendar Component [was Newbie Questions]

2010-01-19 Thread Peter Karich

Hi Nino, hi Reinout!

hmm I have something here aswell:

http://wheresmyevent.com/search

if you click one of the little date icons it's month displayed in
days, is this not what you are looking for ?
   


Not really :-) I do not look for a datepicker ...  I thought more of a panel
where the dates of one week are listed in the 'normal timetable-fashion'.
Sth. like that what Reinout suggested in the top left screenshot.

Here is a desktop library which has this what I mean:
http://sourceforge.net/project/screenshots.php?group_id=157010&ssid=62278

Regards,
Peter.

--
Free your timetabling!
http://timefinder.sourceforge.net/


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



Re: Newbie Questions

2010-01-19 Thread nino martinez wael
I think I used this one:
http://developer.yahoo.com/yui/examples/calendar/popup.html in
conjunction with the wicket integration.

2010/1/19 nino martinez wael :
> Whatever can be done here : http://developer.yahoo.com/yui/calendar/
>
> You should be able todo with wicket integration. It might be a older
> release of yui though.
>
> 2010/1/19 Peter Karich :
>> Hi Nino,
>>
>> hmmh I studied the link a lot but I couldn't find a link or
>> a source snippet to see how this calendar view might be created.
>> I only see monthly views of the yui calendar. Do you mean this can be
>> changed to a week-view?
>>
>> Would you mind helping me again here?
>>
>> Regards,
>> Peter.
>>
>>> Hi Peter
>>>
>>> Theres should be something in regards to a calendar here:
>>>
>>>
>>> http://mail-archives.apache.org/mod_mbox/wicket-users/200710.mbox/%3c47021d97.6010...@jayway.dk%3e
>>>
>>> Im not sure what state it are in now, I used it for week view, with
>>> filled days a special colour and clickable.
>>>
>>> regards Nino
>>>
>>> 2010/1/15 Peter Karich:
>>>

 Dear fellow wicketers!

 I am now new to wicket and would like to say: wow + thanks for this great
 framework!
 I never see such a good separation of view and code. and making a small
 solr+wicket example working was really fun (like in good old desktop
 eras).

 Now I have the following questions:

 1. Is there a scheduling or calendar component like the one from the
 tomahawk project  [1] ? I especially look for a "week"-view.

 2. Which setup (e.g. IDE) do you use to reduce the time from "code
 change"
 to "site view"?
 I am using netbeans 6.8 and 7 seconds out of the box seems to be okay,
 but
 is it possible to get it even faster with wicket? (preferable without
 commercial solutions aka JRebel)

 3. For the persistence layer I need a rather simple solution (odb?) e.g.
 for
 CRUD.
 I found a databinder project [2] and wicketrad [3], but they seems to be
 out
 of date!?
 Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be used
 as
 a starting point or which *simple* persistent solutions do you use?

 4. Is there a way to create a component without any html?

 5. Is there a way to bind several components to *one* html file? I am
 thinking of a template which I'll receive from the designer.
 After this I only need to specify the wicket:ids within this html file
 and my components will hook into it. Or is there another solution?

 6. The usage of the Link class is a bit counter intuitive:
 Link link = new Link("hrefId") { public void onClick() {..} };
 link.add(new Label("titleId", new Model("myTitle") {...}));
 why is there no such constructor for the easiest case like it is the case
 in
 ExternalLink ala
 new Link("hrefid", hrefModel, titleModel) ?

 Regards,
 Peter.

 [1]

 http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_schedule.html

 [2]
 http://databinder.net/wicket/show/overview/

 [3]
 http://sites.google.com/site/wicketrad/

 [4]
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite

 [5]
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook

 --
 Free your timetabling!
 http://timefinder.sourceforge.net/



>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>>
>> --
>> Free your timetabling!
>> http://timefinder.sourceforge.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



Re: Newbie Questions

2010-01-19 Thread nino martinez wael
Whatever can be done here : http://developer.yahoo.com/yui/calendar/

You should be able todo with wicket integration. It might be a older
release of yui though.

2010/1/19 Peter Karich :
> Hi Nino,
>
> hmmh I studied the link a lot but I couldn't find a link or
> a source snippet to see how this calendar view might be created.
> I only see monthly views of the yui calendar. Do you mean this can be
> changed to a week-view?
>
> Would you mind helping me again here?
>
> Regards,
> Peter.
>
>> Hi Peter
>>
>> Theres should be something in regards to a calendar here:
>>
>>
>> http://mail-archives.apache.org/mod_mbox/wicket-users/200710.mbox/%3c47021d97.6010...@jayway.dk%3e
>>
>> Im not sure what state it are in now, I used it for week view, with
>> filled days a special colour and clickable.
>>
>> regards Nino
>>
>> 2010/1/15 Peter Karich:
>>
>>>
>>> Dear fellow wicketers!
>>>
>>> I am now new to wicket and would like to say: wow + thanks for this great
>>> framework!
>>> I never see such a good separation of view and code. and making a small
>>> solr+wicket example working was really fun (like in good old desktop
>>> eras).
>>>
>>> Now I have the following questions:
>>>
>>> 1. Is there a scheduling or calendar component like the one from the
>>> tomahawk project  [1] ? I especially look for a "week"-view.
>>>
>>> 2. Which setup (e.g. IDE) do you use to reduce the time from "code
>>> change"
>>> to "site view"?
>>> I am using netbeans 6.8 and 7 seconds out of the box seems to be okay,
>>> but
>>> is it possible to get it even faster with wicket? (preferable without
>>> commercial solutions aka JRebel)
>>>
>>> 3. For the persistence layer I need a rather simple solution (odb?) e.g.
>>> for
>>> CRUD.
>>> I found a databinder project [2] and wicketrad [3], but they seems to be
>>> out
>>> of date!?
>>> Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be used
>>> as
>>> a starting point or which *simple* persistent solutions do you use?
>>>
>>> 4. Is there a way to create a component without any html?
>>>
>>> 5. Is there a way to bind several components to *one* html file? I am
>>> thinking of a template which I'll receive from the designer.
>>> After this I only need to specify the wicket:ids within this html file
>>> and my components will hook into it. Or is there another solution?
>>>
>>> 6. The usage of the Link class is a bit counter intuitive:
>>> Link link = new Link("hrefId") { public void onClick() {..} };
>>> link.add(new Label("titleId", new Model("myTitle") {...}));
>>> why is there no such constructor for the easiest case like it is the case
>>> in
>>> ExternalLink ala
>>> new Link("hrefid", hrefModel, titleModel) ?
>>>
>>> Regards,
>>> Peter.
>>>
>>> [1]
>>>
>>> http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_schedule.html
>>>
>>> [2]
>>> http://databinder.net/wicket/show/overview/
>>>
>>> [3]
>>> http://sites.google.com/site/wicketrad/
>>>
>>> [4]
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite
>>>
>>> [5]
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
>>>
>>> --
>>> Free your timetabling!
>>> http://timefinder.sourceforge.net/
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
>
> --
> Free your timetabling!
> http://timefinder.sourceforge.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



Re: Newbie Questions

2010-01-19 Thread Reinout van Schouwen
Op dinsdag 19-01-2010 om 15:16 uur [tijdzone +0100], schreef Peter
Karich:

> hmmh I studied the link a lot but I couldn't find a link or
> a source snippet to see how this calendar view might be created.
> I only see monthly views of the yui calendar. Do you mean this can be 
> changed to a week-view?

For what it's worth, eHour is a wicket-based webapp and it features a
week view: http://ehour.nl/about/screenshots.phtml

regards,

-- 
Reinout van Schouwen


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



Re: Newbie Questions

2010-01-19 Thread Peter Karich

Hi Nino,

hmmh I studied the link a lot but I couldn't find a link or
a source snippet to see how this calendar view might be created.
I only see monthly views of the yui calendar. Do you mean this can be 
changed to a week-view?


Would you mind helping me again here?

Regards,
Peter.


Hi Peter

Theres should be something in regards to a calendar here:

http://mail-archives.apache.org/mod_mbox/wicket-users/200710.mbox/%3c47021d97.6010...@jayway.dk%3e

Im not sure what state it are in now, I used it for week view, with
filled days a special colour and clickable.

regards Nino

2010/1/15 Peter Karich:
   

Dear fellow wicketers!

I am now new to wicket and would like to say: wow + thanks for this great
framework!
I never see such a good separation of view and code. and making a small
solr+wicket example working was really fun (like in good old desktop eras).

Now I have the following questions:

1. Is there a scheduling or calendar component like the one from the
tomahawk project  [1] ? I especially look for a "week"-view.

2. Which setup (e.g. IDE) do you use to reduce the time from "code change"
to "site view"?
I am using netbeans 6.8 and 7 seconds out of the box seems to be okay, but
is it possible to get it even faster with wicket? (preferable without
commercial solutions aka JRebel)

3. For the persistence layer I need a rather simple solution (odb?) e.g. for
CRUD.
I found a databinder project [2] and wicketrad [3], but they seems to be out
of date!?
Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be used as
a starting point or which *simple* persistent solutions do you use?

4. Is there a way to create a component without any html?

5. Is there a way to bind several components to *one* html file? I am
thinking of a template which I'll receive from the designer.
After this I only need to specify the wicket:ids within this html file
and my components will hook into it. Or is there another solution?

6. The usage of the Link class is a bit counter intuitive:
Link link = new Link("hrefId") { public void onClick() {..} };
link.add(new Label("titleId", new Model("myTitle") {...}));
why is there no such constructor for the easiest case like it is the case in
ExternalLink ala
new Link("hrefid", hrefModel, titleModel) ?

Regards,
Peter.

[1]
http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_schedule.html

[2]
http://databinder.net/wicket/show/overview/

[3]
http://sites.google.com/site/wicketrad/

[4]
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite

[5]
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook

--
Free your timetabling!
http://timefinder.sourceforge.net/


 

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


   



--
Free your timetabling!
http://timefinder.sourceforge.net/


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



Re: Newbie Questions

2010-01-17 Thread nino martinez wael
Hi Peter

Theres should be something in regards to a calendar here:

http://mail-archives.apache.org/mod_mbox/wicket-users/200710.mbox/%3c47021d97.6010...@jayway.dk%3e

Im not sure what state it are in now, I used it for week view, with
filled days a special colour and clickable.

regards Nino

2010/1/15 Peter Karich :
> Dear fellow wicketers!
>
> I am now new to wicket and would like to say: wow + thanks for this great
> framework!
> I never see such a good separation of view and code. and making a small
> solr+wicket example working was really fun (like in good old desktop eras).
>
> Now I have the following questions:
>
> 1. Is there a scheduling or calendar component like the one from the
> tomahawk project  [1] ? I especially look for a "week"-view.
>
> 2. Which setup (e.g. IDE) do you use to reduce the time from "code change"
> to "site view"?
> I am using netbeans 6.8 and 7 seconds out of the box seems to be okay, but
> is it possible to get it even faster with wicket? (preferable without
> commercial solutions aka JRebel)
>
> 3. For the persistence layer I need a rather simple solution (odb?) e.g. for
> CRUD.
> I found a databinder project [2] and wicketrad [3], but they seems to be out
> of date!?
> Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be used as
> a starting point or which *simple* persistent solutions do you use?
>
> 4. Is there a way to create a component without any html?
>
> 5. Is there a way to bind several components to *one* html file? I am
> thinking of a template which I'll receive from the designer.
> After this I only need to specify the wicket:ids within this html file
> and my components will hook into it. Or is there another solution?
>
> 6. The usage of the Link class is a bit counter intuitive:
> Link link = new Link("hrefId") { public void onClick() {..} };
> link.add(new Label("titleId", new Model("myTitle") {...}));
> why is there no such constructor for the easiest case like it is the case in
> ExternalLink ala
> new Link("hrefid", hrefModel, titleModel) ?
>
> Regards,
> Peter.
>
> [1]
> http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_schedule.html
>
> [2]
> http://databinder.net/wicket/show/overview/
>
> [3]
> http://sites.google.com/site/wicketrad/
>
> [4]
> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite
>
> [5]
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
>
> --
> Free your timetabling!
> http://timefinder.sourceforge.net/
>
>

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



Re: Newbie Questions

2010-01-16 Thread Jeremy Thomerson
Answers inline.

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



On Sat, Jan 16, 2010 at 8:09 AM, Peter Karich  wrote:

> Dear Jeremy,
>
> thanks for your prompt response!
>
>
>  WicketStuff - see http://www.texashuntfish.com/app/calendar to see an
>> example.  The WS code also has an example app.
>>
>>
>
> I found this one:
>
> http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-calendar/
>
> Is this what you mean? I will take a look at the source to see how they did
> it ...
>
>
No, this one:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/calendarviews-parent/


>
>
>  2. Which setup (e.g. IDE) do you use to reduce the time from "code change"
>>> to "site view"?
>>> I am using netbeans 6.8 and 7 seconds out of the box seems to be okay,
>>> but
>>> is it possible to get it even faster with wicket? (preferable without
>>> commercial solutions aka JRebel)
>>>
>>>
>>>
>> I use the Wicket quickstart (or you can now use jWeekend's LegUp
>> archetypes)
>> and run the Start.java class to run an embedded Jetty container.  Run this
>> in debug mode in your IDE and you can debug your app easily, and changes
>> to
>> classes and HTML files are picked up generally within a second (typically
>> by
>> the time you can alt-tab to the browser and hit f5).
>>
>>
>
> That sounds nice!
> You point me in the correct direction. I couldn't get it working with this
> start class (jetty didn't auto restart if I changed sth).
> But if I enabled compile on save in NetBeans and configured the jetty
> plugin as follows and it works. Nice!
>
> 
> org.mortbay.jetty
> maven-jetty-plugin
> 6.1.22
> 
> 
> target/classes/
> 
> 2
> 
> 
>
>
>
>  3. For the persistence layer I need a rather simple solution (odb?) e.g.
>>> for CRUD.
>>> I found a databinder project [2] and wicketrad [3], but they seems to be
>>> out of date!?
>>> Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be used
>>> as a starting point or which *simple* persistent solutions do you use
>>>
>> Simple quick start with a couple different configurations:
>> http://www.jweekend.com/dev/LegUp
>>
>>
>
> Thanks!
>
>
>
>  4. Is there a way to create a component without any html
>>>
>> Sure.  See TextField or many others for examples of how to do so.
>>
>>
>
> Ah, I will take a look at them!
>
>
>
>  5. Is there a way to bind several components to *one* html file? I am
>>> thinking of a template which I'll receive from the designer.
>>> After this I only need to specify the wicket:ids within this html file
>>> and my components will hook into it. Or is there another solution?
>>>
>>>
>> Create a panel.  It can be placed in a page or other panels, etc, and can
>> contain multiple components and has its own HTML.
>>
>>
>
> Hmmh, maybe I need an example here too :-)
>
> I thought of the following scenario: I have a MainPanel which uses an
> embedded NavigatorPanel.
> As a newbie I only know the way to bind the MainPanel to MainPanel.html and
> NavigatorPanel to NavigatorPanel.html
> Now within the MainPanel.html there is a wicket:id which will be used for
> the NavigatorPanel to be injected. Sth. like
> innerHtml
>
> But all of the inner html is replaced, right? So I cannot write:
>
> 
> 
> "Go to SubMenu1"
> "Go to SubMenu2"
> 
>
> because the inner html stuff is removed and instead the html of
> NavigatorPanel.html is used for the NavigatorPanel, or did I misunderstand
> this?
> Can I tell wicket that the inner html instead of the html within
> NavigatorPanel.html should be used?
>
>
>
>  6. The usage of the Link class is a bit counter intuitive:
>>> Link link = new Link("hrefId") { public void onClick() {..} };
>>> link.add(new Label("titleId", new Model("myTitle") {...}));
>>> why is there no such constructor for the easiest case like it is the case
>>> in ExternalLink ala
>>> new Link("hrefid", hrefModel, titleModel)
>>>
>> There are a bunch of examples on the list of how you can create a custom
>> link that outputs a model or plain string within its open and close tags.
>> Or look at ExternalLink as an example.  But links don't always have just a
>> string in them - many times they are around other components.
>>
>>
>
> Ok. true. Thought it could be only a bit easier :-)
>
> Regards,
> Peter.
>
>
> --
> Free your timetabling!
> http://timefinder.sourceforge.net/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Newbie Questions

2010-01-16 Thread Peter Karich

Dear Jeremy,

thanks for your prompt response!


WicketStuff - see http://www.texashuntfish.com/app/calendar to see an
example.  The WS code also has an example app.
   


I found this one:
http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-calendar/

Is this what you mean? I will take a look at the source to see how they 
did it ...




2. Which setup (e.g. IDE) do you use to reduce the time from "code change"
to "site view"?
I am using netbeans 6.8 and 7 seconds out of the box seems to be okay, but
is it possible to get it even faster with wicket? (preferable without
commercial solutions aka JRebel)

 

I use the Wicket quickstart (or you can now use jWeekend's LegUp archetypes)
and run the Start.java class to run an embedded Jetty container.  Run this
in debug mode in your IDE and you can debug your app easily, and changes to
classes and HTML files are picked up generally within a second (typically by
the time you can alt-tab to the browser and hit f5).
   


That sounds nice!
You point me in the correct direction. I couldn't get it working with 
this start class (jetty didn't auto restart if I changed sth).
But if I enabled compile on save in NetBeans and configured the jetty 
plugin as follows and it works. Nice!



org.mortbay.jetty
maven-jetty-plugin
6.1.22


target/classes/

2





3. For the persistence layer I need a rather simple solution (odb?) e.g.
for CRUD.
I found a databinder project [2] and wicketrad [3], but they seems to be
out of date!?
Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be used
as a starting point or which *simple* persistent solutions do you use

Simple quick start with a couple different configurations:
http://www.jweekend.com/dev/LegUp
   


Thanks!



4. Is there a way to create a component without any html

Sure.  See TextField or many others for examples of how to do so.
   


Ah, I will take a look at them!



5. Is there a way to bind several components to *one* html file? I am
thinking of a template which I'll receive from the designer.
After this I only need to specify the wicket:ids within this html file
and my components will hook into it. Or is there another solution?
 

Create a panel.  It can be placed in a page or other panels, etc, and can
contain multiple components and has its own HTML.
   


Hmmh, maybe I need an example here too :-)

I thought of the following scenario: I have a MainPanel which uses an 
embedded NavigatorPanel.
As a newbie I only know the way to bind the MainPanel to MainPanel.html 
and NavigatorPanel to NavigatorPanel.html
Now within the MainPanel.html there is a wicket:id which will be used 
for the NavigatorPanel to be injected. Sth. like

innerHtml

But all of the inner html is replaced, right? So I cannot write:



"Go to SubMenu1"
"Go to SubMenu2"


because the inner html stuff is removed and instead the html of 
NavigatorPanel.html is used for the NavigatorPanel, or did I 
misunderstand this?
Can I tell wicket that the inner html instead of the html within 
NavigatorPanel.html should be used?




6. The usage of the Link class is a bit counter intuitive:
Link link = new Link("hrefId") { public void onClick() {..} };
link.add(new Label("titleId", new Model("myTitle") {...}));
why is there no such constructor for the easiest case like it is the case
in ExternalLink ala
new Link("hrefid", hrefModel, titleModel)

There are a bunch of examples on the list of how you can create a custom
link that outputs a model or plain string within its open and close tags.
Or look at ExternalLink as an example.  But links don't always have just a
string in them - many times they are around other components.
   


Ok. true. Thought it could be only a bit easier :-)

Regards,
Peter.

--
Free your timetabling!
http://timefinder.sourceforge.net/


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



Re: Newbie Questions

2010-01-15 Thread Jeremy Thomerson
See inline answers.

Hope this helps.

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



On Fri, Jan 15, 2010 at 4:49 PM, Peter Karich  wrote:

> Dear fellow wicketers!
>
> I am now new to wicket and would like to say: wow + thanks for this great
> framework!
> I never see such a good separation of view and code. and making a small
> solr+wicket example working was really fun (like in good old desktop eras).
>
> Now I have the following questions:
>
> 1. Is there a scheduling or calendar component like the one from the
> tomahawk project  [1] ? I especially look for a "week"-view.
>

Not that I know of, although I created a monthly calendar view, available in
WicketStuff - see http://www.texashuntfish.com/app/calendar to see an
example.  The WS code also has an example app.


> 2. Which setup (e.g. IDE) do you use to reduce the time from "code change"
> to "site view"?
> I am using netbeans 6.8 and 7 seconds out of the box seems to be okay, but
> is it possible to get it even faster with wicket? (preferable without
> commercial solutions aka JRebel)
>

I use the Wicket quickstart (or you can now use jWeekend's LegUp archetypes)
and run the Start.java class to run an embedded Jetty container.  Run this
in debug mode in your IDE and you can debug your app easily, and changes to
classes and HTML files are picked up generally within a second (typically by
the time you can alt-tab to the browser and hit f5).


>
> 3. For the persistence layer I need a rather simple solution (odb?) e.g.
> for CRUD.
> I found a databinder project [2] and wicketrad [3], but they seems to be
> out of date!?
> Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be used
> as a starting point or which *simple* persistent solutions do you use?
>

Simple quick start with a couple different configurations:
http://www.jweekend.com/dev/LegUp


> 4. Is there a way to create a component without any html?
>

Sure.  See TextField or many others for examples of how to do so.


>
> 5. Is there a way to bind several components to *one* html file? I am
> thinking of a template which I'll receive from the designer.
> After this I only need to specify the wicket:ids within this html file
> and my components will hook into it. Or is there another solution?
>

Create a panel.  It can be placed in a page or other panels, etc, and can
contain multiple components and has its own HTML.


>
> 6. The usage of the Link class is a bit counter intuitive:
> Link link = new Link("hrefId") { public void onClick() {..} };
> link.add(new Label("titleId", new Model("myTitle") {...}));
> why is there no such constructor for the easiest case like it is the case
> in ExternalLink ala
> new Link("hrefid", hrefModel, titleModel) ?
>

There are a bunch of examples on the list of how you can create a custom
link that outputs a model or plain string within its open and close tags.
Or look at ExternalLink as an example.  But links don't always have just a
string in them - many times they are around other components.


>
> Regards,
> Peter.
>
> [1]
> http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_schedule.html
>
> [2]
> http://databinder.net/wicket/show/overview/
>
> [3]
> http://sites.google.com/site/wicketrad/
>
> [4]
> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite
>
> [5]
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
>
> --
> Free your timetabling!
> http://timefinder.sourceforge.net/
>
>


Newbie Questions

2010-01-15 Thread Peter Karich

Dear fellow wicketers!

I am now new to wicket and would like to say: wow + thanks for this 
great framework!
I never see such a good separation of view and code. and making a small 
solr+wicket example working was really fun (like in good old desktop eras).


Now I have the following questions:

1. Is there a scheduling or calendar component like the one from the 
tomahawk project  [1] ? I especially look for a "week"-view.


2. Which setup (e.g. IDE) do you use to reduce the time from "code 
change" to "site view"?
I am using netbeans 6.8 and 7 seconds out of the box seems to be okay, 
but is it possible to get it even faster with wicket? (preferable 
without commercial solutions aka JRebel)


3. For the persistence layer I need a rather simple solution (odb?) e.g. 
for CRUD.
I found a databinder project [2] and wicketrad [3], but they seems to be 
out of date!?
Then I found Wicket-Iolite [4] and wicket-phonebook [5]. Can this be 
used as a starting point or which *simple* persistent solutions do you use?


4. Is there a way to create a component without any html?

5. Is there a way to bind several components to *one* html file? I am 
thinking of a template which I'll receive from the designer.

After this I only need to specify the wicket:ids within this html file
and my components will hook into it. Or is there another solution?

6. The usage of the Link class is a bit counter intuitive:
Link link = new Link("hrefId") { public void onClick() {..} };
link.add(new Label("titleId", new Model("myTitle") {...}));
why is there no such constructor for the easiest case like it is the 
case in ExternalLink ala

new Link("hrefid", hrefModel, titleModel) ?

Regards,
Peter.

[1]
http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_schedule.html

[2]
http://databinder.net/wicket/show/overview/

[3]
http://sites.google.com/site/wicketrad/

[4]
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite

[5]
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook

--
Free your timetabling!
http://timefinder.sourceforge.net/



Re: Newbie questions regarding wicket and presentation

2009-10-23 Thread Lester Chua

Thanks!

Regards,

Lester

Jeremy Thomerson wrote:

Answers inline.

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



On Fri, Oct 23, 2009 at 3:48 AM, Lester Chua  wrote:

  

Hi,

I've read the preliminary materials on the site and I'm also reading

Manning's Wicket in Action. I like Wicket's programming model a lot and is
considering my next project using wicket. But before that I am doing an
evaluation project to convert an part of an existing application using
wicket.

Question1:
Applications that I work with typically feature girds. My past approach had
been to use ExtJS+JSON Servlets and more recently JQuery+DWR. Although we
are quite productive, my main gripe was that there are too much work done
wiring HTML and Server Side (which is why I much prefer Wicket's approach).

Is there a robust implementation on Wicket that I can use that offers
similar functionality to things like Ext's grids or JqGrid? Or must I create
my own grid component from scratch in Wicket? I can't seem to find it?

I think the Inmethod Grid is the most robust grid implementation available


for Wicket.  Check it out.


  

Question 2:
In my environment, security is the most important issue. In fact a proxy
server sits between users and the servers, it changes requests ips and make
it look like all requests originate from some ip addresses (this hits the
web layer). Will this interfere with Wicket's state management? Sorry I'm
very new to Wicket and may be asking a silly question, apologies if this has
been answered on the wiki.




Wicket relies on the servlet container for sessions - the servlet container
uses jsessionid cookies just like any other servlet.  So, no, IPs will not
effect Wicket sessions.


  

Question  3:
DWR prevent XSS on Ajax exploits by implementing secret-key mechanism. Is
there a similar implementation in Wicket? Is there any best practice or
techniques that we should use to avoid inadvertently exposing our ajax code
to hijacking?

It's very hard to hijack Wicket URLs at all (ajax or not) because they are


all session relative.  Especially ajax URLs are not action oriented (i.e.
/posts/delete?id=foo) but are session path oriented.


  

Thanks in advance.

Lester








-
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: Newbie questions regarding wicket and presentation

2009-10-23 Thread Jeremy Thomerson
Answers inline.

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



On Fri, Oct 23, 2009 at 3:48 AM, Lester Chua  wrote:

> Hi,
>
> I've read the preliminary materials on the site and I'm also reading
> Manning's Wicket in Action. I like Wicket's programming model a lot and is
> considering my next project using wicket. But before that I am doing an
> evaluation project to convert an part of an existing application using
> wicket.
>
> Question1:
> Applications that I work with typically feature girds. My past approach had
> been to use ExtJS+JSON Servlets and more recently JQuery+DWR. Although we
> are quite productive, my main gripe was that there are too much work done
> wiring HTML and Server Side (which is why I much prefer Wicket's approach).
>
> Is there a robust implementation on Wicket that I can use that offers
> similar functionality to things like Ext's grids or JqGrid? Or must I create
> my own grid component from scratch in Wicket? I can't seem to find it?
>
> I think the Inmethod Grid is the most robust grid implementation available
for Wicket.  Check it out.


> Question 2:
> In my environment, security is the most important issue. In fact a proxy
> server sits between users and the servers, it changes requests ips and make
> it look like all requests originate from some ip addresses (this hits the
> web layer). Will this interfere with Wicket's state management? Sorry I'm
> very new to Wicket and may be asking a silly question, apologies if this has
> been answered on the wiki.
>
>
Wicket relies on the servlet container for sessions - the servlet container
uses jsessionid cookies just like any other servlet.  So, no, IPs will not
effect Wicket sessions.


> Question  3:
> DWR prevent XSS on Ajax exploits by implementing secret-key mechanism. Is
> there a similar implementation in Wicket? Is there any best practice or
> techniques that we should use to avoid inadvertently exposing our ajax code
> to hijacking?
>
> It's very hard to hijack Wicket URLs at all (ajax or not) because they are
all session relative.  Especially ajax URLs are not action oriented (i.e.
/posts/delete?id=foo) but are session path oriented.


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


Newbie questions regarding wicket and presentation

2009-10-23 Thread Lester Chua

Hi,

I've read the preliminary materials on the site and I'm also reading 
Manning's Wicket in Action. I like Wicket's programming model a lot and 
is considering my next project using wicket. But before that I am doing 
an evaluation project to convert an part of an existing application 
using wicket.


Question1:
Applications that I work with typically feature girds. My past approach 
had been to use ExtJS+JSON Servlets and more recently JQuery+DWR. 
Although we are quite productive, my main gripe was that there are too 
much work done wiring HTML and Server Side (which is why I much prefer 
Wicket's approach).


Is there a robust implementation on Wicket that I can use that offers 
similar functionality to things like Ext's grids or JqGrid? Or must I 
create my own grid component from scratch in Wicket? I can't seem to 
find it?


Question 2:
In my environment, security is the most important issue. In fact a proxy 
server sits between users and the servers, it changes requests ips and 
make it look like all requests originate from some ip addresses (this 
hits the web layer). Will this interfere with Wicket's state management? 
Sorry I'm very new to Wicket and may be asking a silly question, 
apologies if this has been answered on the wiki.


Question  3:
DWR prevent XSS on Ajax exploits by implementing secret-key mechanism. 
Is there a similar implementation in Wicket? Is there any best practice 
or techniques that we should use to avoid inadvertently exposing our 
ajax code to hijacking?


Thanks in advance.

Lester








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



Re: A few more newbie questions

2008-09-13 Thread walnutmon

Yes, that's exactly what I was looking for.  Thanks!


jwcarman wrote:
> 
> Are you basically wanting each users' browser to be notified of some
> change in state on the server?  Well, there are a couple of ways to go
> about this.  You can either implement server "push" or you can have
> your application "poll" via Ajax.
> 
> On Fri, Sep 12, 2008 at 8:52 PM, walnutmon <[EMAIL PROTECTED]>
> wrote:
>>
>> Because a wicket application runs on a server, could you have an internet
>> application has a listener that responds to messages sent from another
>> instance of the web app in another browser through a static object that
>> can
>> send targeted "announcements", or messages?
>>
>>
>> A little psuedo...
>>
>>
>> class MyWebApp extends WicketWebApp{
>>private static UserInstances;
>>getHomePage()
>>{
>>Page freshHomePageInstance = new
>> FreshPageClass(UserInstances.getMessageSender());
>>UserInstances.add(freshHomePageInstance);
>>return freshHomePageInstance;
>>}
>>}
>>
>>class FreshPageClass{
>>
>>onMessage(messageContents)
>>{
>>//does something with the message, make ajax call
>>}
>>}
>>
>>class UserInstances
>>{
>>private final static messageSender;
>>static getMessageSender()
>>{
>>return messageSender;
>>}
>>sendMessageToAllUsers(message){...}
>>sendMessageToSomeUser(userInstance, message){...}
>>}
>>
>>
>> Hopefully that makes some sense, it's a kind of half baked idea, just
>> wondering if it's feasible.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/A-few-more-newbie-questions-tp19466367p19466367.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-few-more-newbie-questions-tp19466367p19471503.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A few more newbie questions

2008-09-12 Thread James Carman
Are you basically wanting each users' browser to be notified of some
change in state on the server?  Well, there are a couple of ways to go
about this.  You can either implement server "push" or you can have
your application "poll" via Ajax.

On Fri, Sep 12, 2008 at 8:52 PM, walnutmon <[EMAIL PROTECTED]> wrote:
>
> Because a wicket application runs on a server, could you have an internet
> application has a listener that responds to messages sent from another
> instance of the web app in another browser through a static object that can
> send targeted "announcements", or messages?
>
>
> A little psuedo...
>
>
> class MyWebApp extends WicketWebApp{
>private static UserInstances;
>getHomePage()
>{
>Page freshHomePageInstance = new
> FreshPageClass(UserInstances.getMessageSender());
>UserInstances.add(freshHomePageInstance);
>return freshHomePageInstance;
>}
>}
>
>class FreshPageClass{
>
>onMessage(messageContents)
>{
>//does something with the message, make ajax call
>}
>}
>
>class UserInstances
>{
>private final static messageSender;
>static getMessageSender()
>{
>return messageSender;
>}
>sendMessageToAllUsers(message){...}
>sendMessageToSomeUser(userInstance, message){...}
>}
>
>
> Hopefully that makes some sense, it's a kind of half baked idea, just
> wondering if it's feasible.
>
>
> --
> View this message in context: 
> http://www.nabble.com/A-few-more-newbie-questions-tp19466367p19466367.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket portlet newbie questions

2007-11-08 Thread Thijs

Yeah I know
Read
http://www.liferay.com/web/guest/community/forums/message_boards/message/249501
Then there also is:
https://issues.apache.org/jira/browse/WICKET-1132
So your not out of the woods jet...

Thijs


justment wrote:
> 
> Ok now I already add wicket portlet page to liferay.But i have new problem
> :-)
> when i click in some wicket example i have error.
> 
> 02:42:45,572 ERROR [jsp:52]
> java.lang.NullPointerException
> at
> org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:35
> 5)
> at
> org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWeb
> Response.java:74)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
> 330)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
> va:169)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:188)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:691)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> ispatcher.java:594)
>  
> Can you pls help me.
> Thk you.
> 
> 
> Thijs wrote:
>> 
>> Just download the source from SVN and build it. You'll have to change the
>> portlet.xml anyway
>> 
>> 
>> justment wrote:
>>> 
>>> Hi Thijs,Please tell me about version of portlet wicket-exemples.war
>>> I can't find it on wicket site .Thank you
>>> 
>>> 
>>> Thijs wrote:
>>>> 
>>>> Check out http://www.nabble.com/Portlet-howto-tf4587073.html#a13093514
>>>> 
>>>> justment wrote:
>>>>> I want to implements wicket portlet on liferay
>>>>> but I can't get any demo,documents from google :p
>>>>> Thanks in advance for any pointers and explanations
>>>>>
>>>>> thank you.
>>>>>   
>>>> 
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-portlet-newbie-questions-tf4751827.html#a13653300
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket portlet newbie questions

2007-11-07 Thread justment

Ok now I already add wicket portlet page to liferay.But i have new problem
:-)
when i click in some wicket example i have error.

02:42:45,572 ERROR [jsp:52]
java.lang.NullPointerException
at
org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:35
5)
at
org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWeb
Response.java:74)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
330)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
va:169)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:691)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:594)
 
Can you pls help me.
Thk you.


Thijs wrote:
> 
> Just download the source from SVN and build it. You'll have to change the
> portlet.xml anyway
> 
> 
> justment wrote:
>> 
>> Hi Thijs,Please tell me about version of portlet wicket-exemples.war
>> I can't find it on wicket site .Thank you
>> 
>> 
>> Thijs wrote:
>>> 
>>> Check out http://www.nabble.com/Portlet-howto-tf4587073.html#a13093514
>>> 
>>> justment wrote:
>>>> I want to implements wicket portlet on liferay
>>>> but I can't get any demo,documents from google :p
>>>> Thanks in advance for any pointers and explanations
>>>>
>>>> thank you.
>>>>   
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-portlet-newbie-questions-tf4751827.html#a13640491
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket portlet newbie questions

2007-11-06 Thread Thijs

Just download the source from SVN and build it. You'll have to change the
portlet.xml anyway


justment wrote:
> 
> Hi Thijs,Please tell me about version of portlet wicket-exemples.war
> I can't find it on wicket site .Thank you
> 
> 
> Thijs wrote:
>> 
>> Check out http://www.nabble.com/Portlet-howto-tf4587073.html#a13093514
>> 
>> justment wrote:
>>> I want to implements wicket portlet on liferay
>>> but I can't get any demo,documents from google :p
>>> Thanks in advance for any pointers and explanations
>>>
>>> thank you.
>>>   
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-portlet-newbie-questions-tf4751827.html#a13622399
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket portlet newbie questions

2007-11-06 Thread justment

Hi Thijs,Please tell me about version of portlet wicket-exemples.war
I can't find it on wicket site .Thank you


Thijs wrote:
> 
> Check out http://www.nabble.com/Portlet-howto-tf4587073.html#a13093514
> 
> justment wrote:
>> I want to implements wicket portlet on liferay
>> but I can't get any demo,documents from google :p
>> Thanks in advance for any pointers and explanations
>>
>> thank you.
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-portlet-newbie-questions-tf4751827.html#a13620712
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket portlet newbie questions

2007-11-05 Thread Thijs

Check out http://www.nabble.com/Portlet-howto-tf4587073.html#a13093514

justment wrote:

I want to implements wicket portlet on liferay
but I can't get any demo,documents from google :p
Thanks in advance for any pointers and explanations

thank you.
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket portlet newbie questions

2007-11-05 Thread justment

I want to implements wicket portlet on liferay
but I can't get any demo,documents from google :p
Thanks in advance for any pointers and explanations

thank you.
-- 
View this message in context: 
http://www.nabble.com/Wicket-portlet-newbie-questions-tf4751819.html#a13587441
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie questions

2007-08-26 Thread Eelco Hillenius
On 8/26/07, Otan <[EMAIL PROTECTED]> wrote:
> I hope that chapter on Models be free to download as well for the benefits
> of newbies.

Sorry, I'm afraid we can't do that. Only chapter 1 is free to download.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie questions

2007-08-26 Thread Otan
I hope that chapter on Models be free to download as well for the benefits
of newbies.

On 26/08/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 8/24/07, Alex Shneyderman <[EMAIL PROTECTED]> wrote:
> >  I have been reading and re-reading the
> > getting started manual, unfortunately it is an extremely incomplete
> > document, so it is of a very limited use, although I appreciate the
> > intention.
>
> Wicket In Action is available through MEAP now, and chapter 2
> (available since yesterday) explains how the different concepts in
> Wicket work together. On top of that, Martijn wrote a separate chapter
> solely on models which will be available in a few weeks.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Newbie questions

2007-08-25 Thread Eelco Hillenius
On 8/24/07, Alex Shneyderman <[EMAIL PROTECTED]> wrote:
>  I have been reading and re-reading the
> getting started manual, unfortunately it is an extremely incomplete
> document, so it is of a very limited use, although I appreciate the
> intention.

Wicket In Action is available through MEAP now, and chapter 2
(available since yesterday) explains how the different concepts in
Wicket work together. On top of that, Martijn wrote a separate chapter
solely on models which will be available in a few weeks.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie questions

2007-08-24 Thread Igor Vaynberg
On 8/24/07, Alex Shneyderman <[EMAIL PROTECTED]> wrote:
>
> I wonder if there is any documentation as to how the rendering process
> works
>
> How do I go from Component graph -> html associated with the page?


the basic answer is that wicket traverses the component graph and calls
various render methods on the components, which then output the markup.


> And
> what is the model's role there.


i assume you are referring to component.get/setmodel(). this is a default
model slot that all components have. its use varies per component. for
example label uses the default model slot to get the string it will replace
its body with. listview uses it to retrieve a list of items it will use to
populate itself. link doesnt use it at all - allowing the user to put their
own model into it which is then easy to retrieve inside the onclick event.

as your questions get more specific so will the answers :)

I have been reading and re-reading the
> getting started manual, unfortunately it is an extremely incomplete
> document, so it is of a very limited use, although I appreciate the
> intention.


we depend on our users to make it better.

Thanks in advance for any pointers and explanations.


-igor


--
> Thanks,
> Alex.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Newbie questions

2007-08-24 Thread Alex Shneyderman
I wonder if there is any documentation as to how the rendering process works

How do I go from Component graph -> html associated with the page? And
what is the model's role there. I have been reading and re-reading the
getting started manual, unfortunately it is an extremely incomplete
document, so it is of a very limited use, although I appreciate the
intention.

Thanks in advance for any pointers and explanations.

-- 
Thanks,
Alex.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]