Re: How to protect against Session Fixation attacks?

2008-08-07 Thread RUMikeP

My appologies for the run-around.  I was not able to see the updates on the
Jira log yesterday from the office, so only managed to read the updates when
I got home.  

I have implemented the latest suggestion (included below for other
interested readers, although I suggest they read the Jira log as well),
which works perfectly:

/**
 * Replaces the underlying HTTP Session, invalidating the current one and
 * creating a new one.
 * 
 * Call upon login to protect against session fixation.
 *
 * @see http://www.owasp.org/index.php/Session_Fixation
 */
public void invalidateHttpSession() {
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getSession().invalidate();
bind();
}

Many thanks once again for the great work!!


Johan Compagner wrote:
> 
> please make a jira issue for this
> 
> On Thu, Aug 7, 2008 at 2:52 PM, RUMikeP <[EMAIL PROTECTED]> wrote:
> 
>>
>> Many thanks for the quick response.
>>
>> The pre-login session files in the temp filestore directory are not
>> removed,
>> even after the session timeout.  All the new sessions are removed as they
>> expire, but the ones that are invalidated using the patch below remain
>> indefinitely.
>>
>>
>>
>>
>>
>>
>> no what you see is that by default the http session store has a new
>> window
>> browser detection (new pagemap)
>> It needs that because of the way pages are stored and rollbacked.
>>
>> The DiskPageStore doesnt need that it can get all the pages back that it
>> wants
>> so for that the new window detection is by default not enabled.
>>
>> Old sessions are not cleand up with the diskpagestore?
>> What is not cleaned up?
>>
>>
>> johan
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-protect-against-Session-Fixation-attacks--tp18734278p18869780.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/How-to-protect-against-Session-Fixation-attacks--tp18734278p18886157.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: 7th August London Wicket Event (6th August!)

2008-08-07 Thread jWeekend

Yiannis, Chris,

This is good to hear, thanks. We've been getting plenty of positive feedback
since we started this thing well over a year ago, albeit mostly verbally
until now. Perhaps your reviews here will make others aware of how much our
guests enjoy and look forward to these events.

The quality and variety of the presentations and the increasingly
interactive atmosphere we have been gently encouraging is definitely heading
in the direction I had envisaged from the start. There are a few more
improvements and unorthodox ideas that I want to gradually introduce in the
months to come which I think people would get into, especially now that we
seem to have established a healthy core group of regulars.

I'll talk to Al and we'll come back with some suggestions regarding the
frequency (if I get a chance I may set up a little Wicket component for our 
http://jweekend.com/dev/LWUGReg/ registration page  to gauge your feedback
so we don't swamp this mailing list). Several people have asked me about
this, so perhaps we could consider going back to "once a month", but I am
mindful that we do nothing to disturb the good balance and successful events
we are currently enjoying.

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk  

PS To those who were present on August _6th_ (I don't know what event on the
7th you got us mixed up with Yiannis, but we'll accept the compliments ;-) ,
don't forget to send  http://jweekend.com/dev/ContactUsBody/ jWeekend a note 
if you'd like to be entered in the draw for the pre-paid 
http://manning.com/dashorst/ Wicket In Action MEAPS edition , let's say by
the end of next week.




Chris Miller wrote:
> 
> I'd also like to pass on my thanks, I enjoyed meeting and chatting to you
> all and I learnt a lot in the course of the evening both through the
> presentations and just chatting informally. It's great to see such
> friendly and talented people involved in this project.
> 
> If anyone reading this happens to be in/near London when one of these
> events is on, I can say it's well worth heading along to regardless of
> your level of experience with Wicket.
> 
> Cheers,
> Chris
> 
> 
> Yiannis Mavroukakis-3 wrote:
>> 
>> Hi everyone,
>> 
>> Just wanted to say a quick thank you to Cemal, Al et al for organizing 
>> this event, last night was very informative,
>> especially the Terracotta presentation.
>> The only gripe I've got (besides warm beer :-P ) is the frequency of the 
>> event..I think bi-monthly is far too far apart for
>> such a fast paced framework as Wicket..Any chance this can be done on a 
>> monthly basis?
>> 
>> Thanks!
>> 
>> Ioannis
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/7th-August-London-Wicket-Event-tp18866803p18885954.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: Questions about wicket features

2008-08-07 Thread Chris Colman
> Hello
>
> I've browsed over the wicket documentation and examples. There are a
> couple of things I don't seem able to determine. So I would really
> appreciate your input on this questions.
>
> 1. Can I write a web application without coding any HTML
whatsoever?...
> I mean, is there some kind of "html" or "whole page" component which
> renders an entire HTML page?

You need to use something like Echo2 or Echo3 to write pure Java web
apps with no HTML whatsoever. All the HTML and all the AJAX is
completely transparent to the developer - it's more like writing a
desktop app than a web app which has benefits if you come from a
Java/C++ background and some disadvantages if you like having the power
to hack around with HTML and Javascript code.

With wicket you're still in control of the markup (HTML) which means you
have to write it but it's pretty straightforward. There is support for a
single section of markup to be overridden (inheritance) from a base page
markup to a derived page markup which means you can perform some level
of markup reusability at the page level. On some occasions I've found
the need to have multiple sections in a base markup to be 'overridable'
in a derived markup pages but this is not yet possible as far as I know.

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



Re: problems wicket and images, css

2008-08-07 Thread Al Maw
2008/8/7 oriana <[EMAIL PROTECTED]>:
> I want to put an image like background of a table and I could not it. Neither
> the aplication catch me the leaf of style.

table {
  background-image: url('foo.jpg');
}

I don't think that actually works in many (any?) browsers.

You probably need to put your  inside a  and style that instead.

Alastair

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



Re: Help!! TextField in ListView = NULL

2008-08-07 Thread Al Maw
Have you done any web development before using Wicket?

If so, you should be able to solve this problem by asking yourself the
following questions:

What happens if you click a link on a web page?
Do you think the browser sends the data in a text field on the page to
the server if you click a link?
What about if you put the  tag in a  and click a link?
What about if you put the  tag in a  and click a submit button?

In short, I'd suggest thinking a little more about the fundamentals
before playing around with user input in listviews. Have a look at the
examples.

Alastair

P.S.  There are ways to do what you're trying to do without needing to
put things in a form, etc., but they involve AJAX and therefore
probably aren't the best solution for whatever it is you're trying to
do.


2008/8/7 Alvin_my <[EMAIL PROTECTED]>:
>
>
> I have add testsListView.setReuseItems(true), but still doesn't work.
> :confused: Hope anyone able to give me hints and guide me to the correct
> implementation... thanks
>
> Refer to "HERE" below:
>
>
>ListView testsListView = new ListView("tests", tests) {
>  public void populateItem(final ListItem listItem) {
>  final Test myTest = (Test) listItem.getModelObject();
>
>
>  final Link editLink1;
>  listItem.add(editLink1 = new Link("editLink") {
>  public void onClick() {
>  Long test_id = myTest.getTest_id();
>  TestCanvas testCanvasPage = new TestCanvas(test_id);
>  setResponsePage(testCanvasPage);
>  }
>  });
>
>
>  editLink1.add(new Label("title", myTest.getTitle()));
>  String test_dateNow = df.format(myTest.getTest_date());
>  listItem.add(new Label("date", test_dateNow));
>  listItem.add(new Label("time", myTest.getTest_time()));
>  listItem.add(new Label("duration",
> myTest.getTest_duration()));
>  listItem.add(new Label("status", myTest.getStatus()));
>
> HERE -->testMeModel = new Model("");
>   testMeField = new TextField("testMe",testMeModel);
>   listItem.add(testMeField);
>
>  Lecturer lecturer =
> getQuestionnaireService().getLecturer(myTest.getLecturer().getLecturer_id());
>  String lecturerName = lecturer.getPrintableName();
>  listItem.add(new Label("creator",lecturerName));
>
>  final Link removeLink = new Link("remove"){
>  public void onClick() {
>  getQuestionnaireService().removeTest(myTest);
>  TestManager testManagerPage = new TestManager();
>  setResponsePage(testManagerPage);
>  }
>  };
>  listItem.add(removeLink);
>  removeLink.add(
>  new JavascriptEventConfirmation(
>  "onclick",
>  "Delete test of " +
>  myTest.getTitle() +
>  " on " +
>  myTest.getTest_date()+
>  ", time " +
>  myTest.getTest_time()+
>  " ? "
>  )
>  );
>
>
>  final Link testMeLink;
>  listItem.add(testMeLink = new Link("testMeLink") {
>  public void onClick() {
> HERE -->String test_Me2 = (String) testMeField.getModelObject();
>
>  System.out.println("#");
>  System.out.println("###  test_Me  = "+test_Me2);
>  System.out.println("#");
>  info("###  test_Me  = "+test_Me2);
>  }
>  });
>  }
>  };
> HERE -->   testsListView.setReuseItems(true);
>  border.add(testsListView);
>
>
>
> Martijn Dashorst wrote:
>>
>> 2 days without using google [1,2]?
>>
>> listview.setreuseitems(true);
>>
>> Martijn
>>
>> [1] http://www.google.com/search?q=wicket+form+component+listview
>> [2]
>> http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html#ListViewandotherrepeaters-Usingformcomponentsinarepeater
>>
>> On Thu, Aug 7, 2008 at 10:09 PM, Alvin_my <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Hi,
>>> I am very new with wicket and I have a problem with TextField within
>>> ListView , I try to getModelObject from the Textfield but return NULL ?
>>>
>>> I am trying my best to find the solution, unfortunately I am running out
>>> of
>>> time with my final project. Already spent 2 days dealing with this small
>>> problem :,(
>>>
>>> Hope you guys can help. Below is the some part of the codes:
>>>
>>>
>>>textfieldModel = new Model("");
>>>textField = new TextField("textfield",textfieldModel );
>>>listItem.add(textField);
>>>
>>>listItem.add(saveLink = new Link("saveLink") {

YUI DatePicker Changing default behavor

2008-08-07 Thread nanotech

Hi all,

I have multiple questions regarding YUI datepicker that I am using on my
project.

1. I have a from which has 6 DatePicker elements. Now it is possible that
user can open all of them opened which will make screen look bad. To prevent
that I would like to allow Only one calendar popup to remain open at a time.
So, as soon as user clicks on the other date picker icon (same form or same
Page)the first calendar popup disappears and re-appears at other place.

2. Also, The way YUI calendar works is that, when popup calendar comes up 
you have to either select a date or click on [x] icon to close. How can I
make calendar go away if user clicks anywhere on the form?



Thanks,
~R
-- 
View this message in context: 
http://www.nabble.com/YUI-DatePicker-Changing-default-behavor-tp18882233p18882233.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: AjaxButton does not work

2008-08-07 Thread Al Maw
This may be a client tag interpretation problem? Try using >>
instead of >>. I don't think ">" inside HTML attributes is valid HTML.

Use firebug and/or the wicket ajax debug window (link bottom right on
your page) to see what's going on.

Alastair

2008/8/5 Daniel Freitas <[EMAIL PROTECTED]>:
> Do you have any form validation going on? If yes implement the onError
> method on the ajax button. Example:
>
> form.add(new AjaxButton("order") {
>@Override
>protected void onError(AjaxRequestTarget target, Form form) {
>//Ops we got some errors, show them in a feedback panel
>target.addComponent(feedbackPanel);
>}
>
>@Override
>protected void onSubmit(AjaxRequestTarget target, Form form) {
>//Do whatever you need here :)
>setResponsePage(Index.class);
>}
>}.setOutputMarkupId(true));
>
>
> Hope that helps.
> 2008/8/5 Bertrand DATAS <[EMAIL PROTECTED]>
>
>> Hello All,
>>
>> I encounter a problem while I am using an AjaxButton.
>>
>> In my form page i create an Ajaxbutton that I attach to a markupContainer
>> and in my HTML I add the folowwing HTML code :
>> 
>>
>> The button is set default form processing to false.
>>
>> The problem is that when i click on this button nothing happens !!
>> I have the same problem with ana AjaxSubmitLink.
>>
>> I use the Wicket framework 1.3.4.
>>
>>
>> Can someone help me to see what is wrong with that button ??
>>
>> Thanks
>>
>> Bertrand
>>
>

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



Re: 7th August London Wicket Event

2008-08-07 Thread Al Maw
Thanks for the kind words. I really liked Carl's Terracotta stuff -
very cool. Wille's presentation on his WicketRAD framework was also
great. It's really cool to see people getting inspired by and building
on people's code from previous meet-ups! I can't begin to tell you how
rewarding that is. ;-)

Thanks very much to everyone who came along, asked such good questions
and gave the event such a nice feel. I'm definitely thinking about
increasing the frequency if people are keen (even if it's a less
formal gathering in a pub somewhere or something). It's somewhat
dependent on the number of people who'd like to give talks and things.
Who'd be up for a monthly event?

While we're on the subject, who might be up for doing a quick talk at
the next one? I was really impressed by the scope and preparation that
went into the talks this time around, but if you just want to do a
quick demo of your Wicket-based site, or give a five minute talk with
no slides and must arm-waving, that would be cool too.

Thanks again,

Alastair

P.S. Apologies for the slightly warm beer! It was cold at 6:15pm, but
the usual rooms next to a kitchen (with a fridge) weren't available
this time around. I promise we'll fix that for next time!

2008/8/7 Chris Miller <[EMAIL PROTECTED]>:
>
> I'd also like to pass on my thanks, I enjoyed meeting and chatting to you all
> and I learnt a lot in the course of the evening both through the
> presentations and just chatting informally. It's great to see such friendly
> and talented people involved in this project.
>
> If anyone reading this happens to be in/near London when one of these events
> is on, I can say it's well worth heading along to regardless of your level
> of experience with Wicket.
>
> Cheers,
> Chris
>
>
> Yiannis Mavroukakis-3 wrote:
>>
>> Hi everyone,
>>
>> Just wanted to say a quick thank you to Cemal, Al et al for organizing
>> this event, last night was very informative,
>> especially the Terracotta presentation.
>> The only gripe I've got (besides warm beer :-P ) is the frequency of the
>> event..I think bi-monthly is far too far apart for
>> such a fast paced framework as Wicket..Any chance this can be done on a
>> monthly basis?
>>
>> Thanks!
>>
>> Ioannis
>>
>
> --
> View this message in context: 
> http://www.nabble.com/7th-August-London-Wicket-Event-tp18866803p18867440.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]
>
>

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



Re: Comparing JSF and Wicket

2008-08-07 Thread Al Maw
2008/8/7 nlif <[EMAIL PROTECTED]>:
> While it is very good to know that it's relatively easy to develop Wicket
> components, bear in mind that management (at least mine) is more easily
> convinced when presented with a wide selection of 3rd party component
> libraries, since that provides an alternative to allocating time and
> resources of our own developers. Thus, for them, the issue is decided more
> an economical merits, then on its design/architectural ones.

Your company should concentrate on what it does as its core competency
as that will bring you the most value for time invested.

Based on past experience with many companies, I can most glibly and
universally sum this up as: Don't write a ticketing system unless you
sell ticketing systems.

You are presumably building web apps because you think you're quite
good at it (or perhaps will be), and you're worried about working at
the right level of abstraction to achieve good productivity.

You're concerned that Wicket might be at too low a level of
abstraction compared to JSF, because JSF has a plentiful array of
off-the-shelf components that you think will let you work at a higher
level of abstraction, and therefore you'll be more productive with it.
It's a nice idea. It certainly looks tempting. Unfortunately, it just
isn't the case.

Why is that? Go and read Joel Spolsky's article on leaky
abstractions[1]. Right now:

http://www.joelonsoftware.com/articles/LeakyAbstractions.html



Good to have you back.

Here are just a few reasons why pre-built components in JSF are not the answer.

At some point, normally just after you've completely wedded yourself
to a component, someone important will want you to change something
that on the surface should be trivial. At this point, you will need to
unpick the entire component and figure out how it works, and change
it. This will be hard. You will probably introduce bugs. Unless it's a
component with a lot of distinct regions of complexity, it will
probably be so hard that you may as well have developed the code
yourself from scratch (in either JSF or Wicket). Reading code is
harder than writing it.

Anything remotely complex will need to you restyle it all to make it
fit in with the rest of your web pages. This will likely be painful
unless the component developer has a clue.

Nine times out of ten, it will take you so long to find the component
you need, test it works in your environment, make sure it does what
you need, make sure it probably does what you might need, discover it
doesn't, find another component that does, sort out the licensing,
file a purchase order for it, etc. etc. that you could have developed
something in Wicket that did exactly what you wanted in half the time.

It seems to be the case that if the component is sufficiently complex
that you think you will save time/money by buying it in rather than
building it, it doesn't do what you want. There are only about five or
six truly universal components that are applicable to almost everyone.
These are: tree, tree but in a table, sortable & paginated data-driven
list, date picker, modal pop-up window, AJAX auto-complete drop-down.
I can't think of any others, but there might be a couple.

Wicket has all of these. Which you'd know if you'd bothered to look at
the examples, which are live and prominently linked from the site.

Sorry to sound harsh, but how much web development are you going to do? Hmmm?
Eight hours' worth? Go use PHP or JSP or DHTML or whatever. Your use
case isn't complex enough to be having this discussion.
Eight months' worth? What? You're going to make a decision without
investing a day in each option at least? Are you crazy?


> How many Wicket components are there, and how mature are there? Are there
> tables with sorting, filtering, scrolling, paging etc.? Are there
> tree-controls with all the typical tree-functions? Is there Ajax support, as
> well automatic fallback for non-javascript browsers (and what about comet)?

Come back here when you have real questions that you can't answer for
yourself in ten minutes.
http://www.justfuckinggoogleit.com/search.pl?query=wicket+tree
http://www.justfuckinggoogleit.com/search.pl?query=wicket+ajax
http://londonwicket.org/content/LondonWicket-ListEditor.pdf
etc. etc. etc.

Alastair

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



Re: Help!! TextField in ListView = NULL

2008-08-07 Thread Alvin_my


I have add testsListView.setReuseItems(true), but still doesn't work.
:confused: Hope anyone able to give me hints and guide me to the correct
implementation... thanks

Refer to "HERE" below:


ListView testsListView = new ListView("tests", tests) {
  public void populateItem(final ListItem listItem) {
  final Test myTest = (Test) listItem.getModelObject();


  final Link editLink1;
  listItem.add(editLink1 = new Link("editLink") {
  public void onClick() {
  Long test_id = myTest.getTest_id();
  TestCanvas testCanvasPage = new TestCanvas(test_id);
  setResponsePage(testCanvasPage);
  }
  });


  editLink1.add(new Label("title", myTest.getTitle()));
  String test_dateNow = df.format(myTest.getTest_date());
  listItem.add(new Label("date", test_dateNow));
  listItem.add(new Label("time", myTest.getTest_time()));
  listItem.add(new Label("duration",
myTest.getTest_duration()));
  listItem.add(new Label("status", myTest.getStatus()));

HERE -->testMeModel = new Model("");
   testMeField = new TextField("testMe",testMeModel);
   listItem.add(testMeField);

  Lecturer lecturer =
getQuestionnaireService().getLecturer(myTest.getLecturer().getLecturer_id());
  String lecturerName = lecturer.getPrintableName();
  listItem.add(new Label("creator",lecturerName));

  final Link removeLink = new Link("remove"){
  public void onClick() {
  getQuestionnaireService().removeTest(myTest);
  TestManager testManagerPage = new TestManager();
  setResponsePage(testManagerPage);
  }
  };
  listItem.add(removeLink);
  removeLink.add(
  new JavascriptEventConfirmation(
  "onclick",
  "Delete test of " +
  myTest.getTitle() +
  " on " +
  myTest.getTest_date()+
  ", time " +
  myTest.getTest_time()+
  " ? "
  )
  );


  final Link testMeLink;
  listItem.add(testMeLink = new Link("testMeLink") {
  public void onClick() {
HERE -->String test_Me2 = (String) testMeField.getModelObject();

  System.out.println("#");
  System.out.println("###  test_Me  = "+test_Me2);
  System.out.println("#");
  info("###  test_Me  = "+test_Me2);
  }
  });
  }
  };
HERE -->   testsListView.setReuseItems(true);
  border.add(testsListView);



Martijn Dashorst wrote:
>
> 2 days without using google [1,2]?
>
> listview.setreuseitems(true);
>
> Martijn
>
> [1] http://www.google.com/search?q=wicket+form+component+listview
> [2]
> http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html#ListViewandotherrepeaters-Usingformcomponentsinarepeater
>
> On Thu, Aug 7, 2008 at 10:09 PM, Alvin_my <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>> I am very new with wicket and I have a problem with TextField within
>> ListView , I try to getModelObject from the Textfield but return NULL ?
>>
>> I am trying my best to find the solution, unfortunately I am running out
>> of
>> time with my final project. Already spent 2 days dealing with this small
>> problem :,(
>>
>> Hope you guys can help. Below is the some part of the codes:
>>
>>
>>textfieldModel = new Model("");
>>textField = new TextField("textfield",textfieldModel );
>>listItem.add(textField);
>>
>>listItem.add(saveLink = new Link("saveLink") {
>>public void onClick() {
>>String myText = (String)
>> textField.getModelObject();
>>info("###  myText  = "+myText );
>>}
>>});
>>
>> Thanks!!
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Help%21%21-TextField-in-ListView-%3D-NULL-tp18878710p18878710.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]
>>
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional

Re: Browser Forward button issue - SOLVED

2008-08-07 Thread Ritesh Trivedi

Solved. 

CSSMenuPanel had incorrect serialVersionUID value of 0L hence it was not
serializing and hence the latest version of the page couldnt be constructed.


Ritesh Trivedi wrote:
> 
> Hi,
> 
> Here is the scenario 
> 
> 1. User on page 1 - bookmarkable page which is https. lets say
> https://localhost:8443/signIn
> 2. Submits the form on page 1 - gets validation error. The url now changes
> to something like https://localhost:8443/?wicket:interface=:8:1:::
> 3. Hit the back button - user goes back to the sign in page - obviously no
> validation errors displayed and the URL is https://localhost:8443/signIn
> 4. Hit forward button the URL in the browser now becomes the one with
> validation errors https://localhost:8443/?wicket:interface=:8:1::: but the
> server returns HTTP 500 with NoClassDefFountError
> 
> java.lang.NoClassDefFoundError: com/mycom/web/panels/CSSMenuPanel
>   java.lang.Class.getDeclaredFields0(Native Method)
>   java.lang.Class.privateGetDeclaredFields(Class.java:2259)
>   java.lang.Class.getDeclaredField(Class.java:1852)
>   java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1582)
>   java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
>   java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
>   java.security.AccessController.doPrivileged(Native Method)
>   java.io.ObjectStreamClass.(ObjectStreamClass.java:400)
>   java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
>   java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
>   java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
>   java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
>   java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
>   java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
>   
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
>   java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
>   java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
>   org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:393)
> 
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
> 
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
> 
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
>   org.apache.wicket.Session.getPage(Session.java:751)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Browser-Forward-button-issue---SOLVED-tp18878776p18880042.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: NPE

2008-08-07 Thread Uwe Schäfer

Igor Vaynberg schrieb:

i patched it in 1.3.x and trunk


thanks, igor!


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



Re: NPE

2008-08-07 Thread Igor Vaynberg
i patched it in 1.3.x and trunk

-igor

On Thu, Aug 7, 2008 at 10:30 AM, Uwe Schäfer <[EMAIL PROTECTED]> wrote:
> Igor Vaynberg schrieb:
>
>> whats the stacktrace for the npe?
>
> java.lang.NullPointerException
> at
> org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:129)
>
> so
>
> // Move to the next superclass
> clazz = clazz.getSuperclass();
>
> returns null because we use this method with an interface as the clazz
> parameter (maybe this is considered abuse of this class?)
>
> cu uwe
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Help!! TextField in ListView = NULL

2008-08-07 Thread Martijn Dashorst
2 days without using google [1,2]?

listview.setreuseitems(true);

Martijn

[1] http://www.google.com/search?q=wicket+form+component+listview
[2] 
http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html#ListViewandotherrepeaters-Usingformcomponentsinarepeater

On Thu, Aug 7, 2008 at 10:09 PM, Alvin_my <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I am very new with wicket and I have a problem with TextField within
> ListView , I try to getModelObject from the Textfield but return NULL ?
>
> I am trying my best to find the solution, unfortunately I am running out of
> time with my final project. Already spent 2 days dealing with this small
> problem :,(
>
> Hope you guys can help. Below is the some part of the codes:
>
>
>textfieldModel = new Model("");
>textField = new TextField("textfield",textfieldModel );
>listItem.add(textField);
>
>listItem.add(saveLink = new Link("saveLink") {
>public void onClick() {
>String myText = (String) textField.getModelObject();
>info("###  myText  = "+myText );
>}
>});
>
> Thanks!!
>
> --
> View this message in context: 
> http://www.nabble.com/Help%21%21-TextField-in-ListView-%3D-NULL-tp18878710p18878710.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]
>
>



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

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



Browser Forward button issue

2008-08-07 Thread Ritesh Trivedi

Hi,

Here is the scenario 

1. User on page 1 - bookmarkable page which is https. lets say
https://localhost:8443/signIn
2. Submits the form on page 1 - gets validation error. The url now changes
to something like https://localhost:8443/?wicket:interface=:8:1:::
3. Hit the back button - user goes back to the sign in page - obviously no
validation errors displayed and the URL is https://localhost:8443/signIn
4. Hit forward button the URL in the browser now becomes the one with
validation errors https://localhost:8443/?wicket:interface=:8:1::: but the
server returns HTTP 500 with NoClassDefFountError

java.lang.NoClassDefFoundError: com/mycom/web/panels/CSSMenuPanel
java.lang.Class.getDeclaredFields0(Native Method)
java.lang.Class.privateGetDeclaredFields(Class.java:2259)
java.lang.Class.getDeclaredField(Class.java:1852)
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1582)
java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
java.security.AccessController.doPrivileged(Native Method)
java.io.ObjectStreamClass.(ObjectStreamClass.java:400)
java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)

java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:393)

org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)

org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)

org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
org.apache.wicket.Session.getPage(Session.java:751)

-- 
View this message in context: 
http://www.nabble.com/Browser-Forward-button-issue-tp18878776p18878776.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]



Help!! TextField in ListView = NULL

2008-08-07 Thread Alvin_my


Hi, 
I am very new with wicket and I have a problem with TextField within
ListView , I try to getModelObject from the Textfield but return NULL ?

I am trying my best to find the solution, unfortunately I am running out of
time with my final project. Already spent 2 days dealing with this small
problem :,( 

Hope you guys can help. Below is the some part of the codes:


textfieldModel = new Model("");
textField = new TextField("textfield",textfieldModel );
listItem.add(textField);

listItem.add(saveLink = new Link("saveLink") {
public void onClick() {
String myText = (String) textField.getModelObject();
info("###  myText  = "+myText );
}
});

Thanks!!

-- 
View this message in context: 
http://www.nabble.com/Help%21%21-TextField-in-ListView-%3D-NULL-tp18878710p18878710.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: Comparing JSF and Wicket

2008-08-07 Thread Timm Helbig
LOL! Great saying!

I was asked for something positive..

Regards,
Timm

Am Donnerstag, 7. August 2008 18:09:03 schrieb Peter Ertl:
> I don't need nearly as much extensions for wicket because
> it's such a no-brainer to write my own custom components...
>
> I think JSF is a big joke with nobody laughing :)
>
> my 2 %
>
> Cheers
> Peter
>
> Am 07.08.2008 um 17:59 schrieb Timm Helbig:
> > Sorry, not really.
> >
> > *) JSF doesn't consume less Memory over Wicket. But this is not
> > really an
> > Argument since Hardware isn't that expensive today.
> > *) Maybe the availability of Millions of extension Libraries for JSF.
> > *) EL Tags are quite useful, but IMHO just another way to do the same
> > thing.
> >
> > Regards,
> > Timm
> >
> > Am Donnerstag, 7. August 2008 08:44:22 schrieb nlif:
> >> Thanks Timm. This is valuable feedback. Nevertheless - can you
> >> point to any
> >> advantage JSF has over Wicket? Anything at all?
> >>
> >> Thanks
> >>
> >> Timm Helbig wrote:
> >>> Hi,
> >>>
> >>> I did one Project with JSF and two with Wicket.
> >>>
> >>> By far Wicket is much easier to handle, (nearly) everything works as
> >>> supposed,
> >>> which is not true for JSF, especially when it comes to external
> >>> Libraries
> >>> like Trinidad or other UI Extension Libraries.
> >>>
> >>> One other thing which is important for me is the Productivity.
> >>> And this
> >>> is
> >>> much higher with Wicket than with JSF.
> >>>
> >>> The Community support is suberb with Wicket, and somewhat
> >>> difficult when
> >>> you
> >>> check the JSF Forums, but this depends on the Manufactor of the
> >>> Library
> >>> you
> >>> use.
> >>>
> >>> I don't want to slash JSF here, but I find it is miles away from a
> >>> usable
> >>> Product. For me it looks more like a prototype of what could be
> >>> possible.
> >>> Just check what happened from 1.1  to 1.2, and you see, that even
> >>> Sun
> >>> seemed
> >>> to face this.
> >>>
> >>> Regards,
> >>> Timm
> >>>
> >>> Am Mittwoch, 6. August 2008 11:13:53 schrieb nlif:
>  Hi all,
> 
>  We are in the process of selecting a web-framework, and although
>  I am in
>  favor of Wicket, I was asked to provide an objective comparison of
>  Wicket with JSF. I have developed a few small apps in Wicket, but I
>  admit I am not
>  very familiar with JSF. Prior to posting here, I googled a bit, and
>  found a
>  few forum-threads and blog posts on this topic, but most are from
>  1-2
>  years
>  ago and in framework years, this may be considered obsolete.
> 
>  Although this is the Wicket forum, I expect there are people here
>  who
>  also
>  used (or at least evaluated) JSF at some point, so I'd be happy
>  if folks
>  here could share their experience. If anyone can point me to useful
>  links that would be great too.
> 
>  I really am not trying to provoke a flame war, just to gather
>  information.
> 
>  In your opinion, what are Wicket strengths? What are JSF's ?
>  (even if
>  you're a Wicket fan, surely there's something ;)
> 
>  I would be interested to hear people thoughts regarding the fact
>  the JSF
>  is
>  a standard, while Wicket is not. How important is that to you? In
>  what
>  ways
>  do you think this matters (if at all)?
> 
>  Also, supposedly JSF has a larger selection of 3rd party components
>  compared to Wicket. Is this true? how often do you find yourself
>  rolling
>  your own components and how hard is it to do so in Wicket (and I
>  mean
>  non-trivial-good-looking-Ajax-enabled stuff).
> 
>  Many thanks in advance.
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: wicket + spring + jpa reference example?

2008-08-07 Thread francisco treacy
i bought it last year :) and it's excellent, btw. i just wanted a
quick no-brainer example and wicket-lolite could have been the perfect
answer. thanks

francisco

On Thu, Aug 7, 2008 at 8:25 PM, shetc <[EMAIL PROTECTED]> wrote:
>
> Buy Wicket In Action from Manning Publishers -- it has a useful Wicket +
> Spring + Hibernate example. Replace Hibernate with the JPA equivalents.
> --
> View this message in context: 
> http://www.nabble.com/wicket-%2B-spring-%2B-jpa-reference-example--tp18859884p18876793.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]
>
>

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



Re: How to Embed PDF in a Web Page

2008-08-07 Thread Igor Vaynberg
the only way to embed within another page is to put it into an iframe

-igor

On Thu, Aug 7, 2008 at 11:22 AM, shetc <[EMAIL PROTECTED]> wrote:
>
> Ah ha! Actually, Igor, I'm using your
> http://www.nabble.com/Stream-Excel-to-the-client-td5363673.html#a5364044
> Stream-Excel-to-the-client  example. Indeed, commenting out the attachment
> header now stops the "save dialog" from appearing, and the plug-in plus PDF
> fills the browser. This is all good, thanks!
>
> Now is there any way to get the plug-in/PDF to appear as embedded in a
> larger page? Stream a page before and after the PDF?
> --
> View this message in context: 
> http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18876736.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]
>
>

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



Re: wicket + spring + jpa reference example?

2008-08-07 Thread shetc

Buy Wicket In Action from Manning Publishers -- it has a useful Wicket +
Spring + Hibernate example. Replace Hibernate with the JPA equivalents.
-- 
View this message in context: 
http://www.nabble.com/wicket-%2B-spring-%2B-jpa-reference-example--tp18859884p18876793.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: How to Embed PDF in a Web Page

2008-08-07 Thread shetc

Ah ha! Actually, Igor, I'm using your  
http://www.nabble.com/Stream-Excel-to-the-client-td5363673.html#a5364044
Stream-Excel-to-the-client  example. Indeed, commenting out the attachment
header now stops the "save dialog" from appearing, and the plug-in plus PDF
fills the browser. This is all good, thanks!

Now is there any way to get the plug-in/PDF to appear as embedded in a
larger page? Stream a page before and after the PDF?
-- 
View this message in context: 
http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18876736.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: NPE

2008-08-07 Thread Uwe Schäfer

Igor Vaynberg schrieb:


whats the stacktrace for the npe?


java.lang.NullPointerException
 at 
org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:129)


so

// Move to the next superclass
clazz = clazz.getSuperclass();

returns null because we use this method with an interface as the clazz 
parameter (maybe this is considered abuse of this class?)


cu uwe

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



Re: wicket + spring + jpa reference example?

2008-08-07 Thread francisco treacy
wicket phonebook, yes. i had some trouble yesterday checking it out
from the repo, so i used the download link. but that version (1.2
iirc) is outdated. anyway everything works now :)

i just stumbled upon this:
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite .
haven't tried it, though. but next time i will!

francisco

On Wed, Aug 6, 2008 at 11:34 PM, Ryan Gravener <[EMAIL PROTECTED]> wrote:
> Have you taken a look at wicket-phonebook?
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/
>
> I have a demo project for wicket+hibernate+spring+flex+blazeds in the works,
> but it is far from perfect:
> http://code.google.com/p/wicket-flex-blazeds/
>
> On Wed, Aug 6, 2008 at 5:25 PM, francisco treacy <[EMAIL PROTECTED]
>> wrote:
>
>> hi,
>>
>> i need to develop a project with wicket + spring + jpa. i'm not used
>> lately to this setup, so i tried to build it up, not without some
>> trouble.
>>
>> so my question here is: do you know a current good wicket + spring +
>> jpa reference/example?
>>
>> earlier today i checked out qwicket, but there's some really odd
>> problem that prevents the app to load (no exceptions thrown
>> whatsoever). also wicket in action, but it is not built with jpa (just
>> plain hibernate) and i cannot figure out the correct
>> applicationContext.xml...
>>
>> thanks!
>>
>> francisco
>>
>> ps. argh, i just love my normal setup with wicket + guice + salve +
>> warp-persist, no xml, works like a charm :)
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Ryan Gravener
> http://twitter.com/ryangravener
>

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



Re: How to Embed PDF in a Web Page

2008-08-07 Thread Igor Vaynberg
as far as i know, just dont set the attachment header

-igor

On Thu, Aug 7, 2008 at 10:54 AM, shetc <[EMAIL PROTECTED]> wrote:
>
> According to the DownloadLink JavaDoc:
>
> "When clicked this link will prompt the save as dialog in the browser."
>
> Is there a way to stream a PDF so it is embedded in a page?
> --
> View this message in context: 
> http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18876162.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]
>
>

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



Re: How to Embed PDF in a Web Page

2008-08-07 Thread shetc

According to the DownloadLink JavaDoc:

"When clicked this link will prompt the save as dialog in the browser."

Is there a way to stream a PDF so it is embedded in a page?
-- 
View this message in context: 
http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18876162.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: modify an arbitrary dom element

2008-08-07 Thread sander v F
If you want to do in serverside (with wicked), you should add a wicket tag
to the 'li'.
 Home

the java/wicket code should look something like:

WebMarkupContainer listItem=new WebMarkupContainer("listItem");
listItem.add(new AttributeModifier("class",  new
Model("notSelectedItem")));
listItem.add(new PageLink("homePageLink", HomePage.class)));
add(listItem);

or as igor suggested, you could do it client side:
document.getElementById(link).parentNode.className="notSelectedItem";



2008/8/7 Igor Vaynberg <[EMAIL PROTECTED]>

> you have to make it a component if you want to do it on serverside
>
> if you want to do it on clientside you would do something like
> document.getelementbyid(link).parentnode.style.foo=bar
>
> -igor
>
> On Thu, Aug 7, 2008 at 10:15 AM, Brill Pappin <[EMAIL PROTECTED]> wrote:
> > I have a case where I want to modify the css class of the dom element
> that
> > contains the component I'm working with.
> >
> > I found the wiki page:
> >
> http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
> > but that will allow me to modify the component only.
> >
> > Specifically what I'm doing is something like:
> >
> >
> > > wicket:id="homePageLink">Home
> >
> >
> > so I actually want to modify the css class of the containing li element
> (not
> > the a element).
> > Is it possible to do it that way, and if not, does anyone have any
> > suggestions on how this might be done better?
> >
> >
> >  - Brill
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to Embed PDF in a Web Page

2008-08-07 Thread Igor Vaynberg
see DownloadLink for how to stream stuff to the client

-igor

On Thu, Aug 7, 2008 at 10:45 AM, shetc <[EMAIL PROTECTED]> wrote:
>
> Hi Igor,
>
> Let me rephrase:
>
> I am working with an Acrobat Form, which is a PDF with extensions to add
> fields and buttons. These extensions include a button to submit an HTTP POST
> to an URL. This all takes place within the Adobe Reader browser plug-in.
>
> One of the features of an Acrobat Form is that a PDF can be built on the fly
> to merge values with the form fields, and then streamed out from the server
> to the client browser.
>
> I would like to be able in a Wicket WebPage class to perform the merger and
> then stream the PDF to the Adobe Reader browser plug-in. Ideally, I also
> would like the plug-in to be embedded on the page in some fashion so that I
> can put branding, navigation links, etc. around the PDF.
>
> Thanks,
> Steve
> --
> View this message in context: 
> http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18876000.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]
>
>

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



Re: How to Embed PDF in a Web Page

2008-08-07 Thread shetc

Hi Igor,

Let me rephrase:

I am working with an Acrobat Form, which is a PDF with extensions to add
fields and buttons. These extensions include a button to submit an HTTP POST
to an URL. This all takes place within the Adobe Reader browser plug-in.

One of the features of an Acrobat Form is that a PDF can be built on the fly
to merge values with the form fields, and then streamed out from the server
to the client browser.

I would like to be able in a Wicket WebPage class to perform the merger and
then stream the PDF to the Adobe Reader browser plug-in. Ideally, I also
would like the plug-in to be embedded on the page in some fashion so that I
can put branding, navigation links, etc. around the PDF.

Thanks,
Steve
-- 
View this message in context: 
http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18876000.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]



SecureMarkupContainer

2008-08-07 Thread Ryan O'Hara
I created a SecureMarkupContainer following Maurice's example (http:// 
www.nabble.com/Swarm%3A-Authorization--for-WebMarkupContainer- 
td17206272.html#a17219441), with the only difference being it's its  
own class (not subclass).  For some reason, the component doesn't  
seem to be added to the page after authenticating.  The correct  
values are returned by typeOfData.isAuthenticated().  However, it  
seems whatever hides/displays the component is not getting executed  
or executed correctly.  Below are some snippets of code:



Search:

SecureMarkupContainer typeOfData = new SecureMarkupContainer 
("typeOfData");

add(typeOfData);

Search.html:

security works!

cnv.hive:

	permission  
org.apache.wicket.security.hive.authorization.permissions.ComponentPermi 
ssion "${cnv}.Search:typeOfData", "inherit, render, enable";



Also, I have a few other secure components working fine (ie  
SecureLink).  Any ideas?


Thanks,
Ryan


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



Re: modify an arbitrary dom element

2008-08-07 Thread Igor Vaynberg
you have to make it a component if you want to do it on serverside

if you want to do it on clientside you would do something like
document.getelementbyid(link).parentnode.style.foo=bar

-igor

On Thu, Aug 7, 2008 at 10:15 AM, Brill Pappin <[EMAIL PROTECTED]> wrote:
> I have a case where I want to modify the css class of the dom element that
> contains the component I'm working with.
>
> I found the wiki page:
> http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
> but that will allow me to modify the component only.
>
> Specifically what I'm doing is something like:
>
>
> wicket:id="homePageLink">Home
>
>
> so I actually want to modify the css class of the containing li element (not
> the a element).
> Is it possible to do it that way, and if not, does anyone have any
> suggestions on how this might be done better?
>
>
>  - Brill
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



modify an arbitrary dom element

2008-08-07 Thread Brill Pappin
I have a case where I want to modify the css class of the dom element  
that contains the component I'm working with.


I found the wiki page:
http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
but that will allow me to modify the component only.

Specifically what I'm doing is something like:


		Homea>



so I actually want to modify the css class of the containing li  
element (not the a element).
Is it possible to do it that way, and if not, does anyone have any  
suggestions on how this might be done better?



 - Brill

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



Re: NPE

2008-08-07 Thread Igor Vaynberg
whats the stacktrace for the npe?

-igor

2008/8/7 Uwe Schäfer <[EMAIL PROTECTED]>:
> Hi
>
> the current (1.4-m3) impl of
>
> ComponentStringResourceLoader.loadStringResource(Class,String,Locale,String)
>
> throws an NPE, that i am not sure of.
>
> I´d suggest:
>
> public String loadStringResource(Class clazz, final String key, final Locale
> locale,
>final String style)
>{
>if (clazz == null)
>{
>return null;
>}
>
>// Load the properties associated with the path
>IPropertiesFactory propertiesFactory =
> Application.get().getResourceSettings()
>.getPropertiesFactory();
>
>while (true)
>{
>
> // new lines here:
>
> if (clazz == null)
> {
>return null;
> }
>
> right ?
>
>
> --
>
> THOMAS DAILY GmbH
> Adlerstraße 19
> 79098 Freiburg
> Deutschland
> T  + 49 761 3 85 59 0
> F  + 49 761 3 85 59 550
> E  [EMAIL PROTECTED]
> www.thomas-daily.de
>
> Geschäftsführer/Managing Directors:
> Wendy Thomas, Susanne Larbig
> Handelsregister Freiburg i.Br., HRB 3947
>
> Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
> kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
> morgens um 9:00 in Ihrer Mailbox.
>
> Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
> 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00
> Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
> lautet [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: ListView in Forms

2008-08-07 Thread Igor Vaynberg
On Thu, Aug 7, 2008 at 1:36 AM, Markus Haspl <[EMAIL PROTECTED]> wrote:
> no, there aren't any errors.
>
> but i don't understand why i have to use propertiesName.getModelObject(); in
> the onSubmit() method. Because there may be hundrets of propertiesName in
> the ListView/Form.

well, it is the way you setup the model by doing new model(value), so
the model acts as the container for the value rather then some glue
between value and some other container such as a class field. see the
models page on the wiki.

-igor


>
> Would it be better to make a Forms in a ListView? But then i need for every
> Form a submit-button. that wouldn't be so nice...
>
> thanks
>
> On Wed, Aug 6, 2008 at 7:01 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:
>
>> if there are no errors then you are not using your models properly
>>
>>  TextField propertiesName = new TextField("name",new
>> Model(pluginProperties.getName()));
>>
>> to get a value back with a model like that you would have to call
>> propertiesName.getModelObject()
>>
>> -igor
>>
>> On Wed, Aug 6, 2008 at 8:27 AM, Markus Haspl <[EMAIL PROTECTED]> wrote:
>> > there are no valiation errors. with info() i get the old values.
>> >  info(""+property.getName()+": "+property.getValue()+" ==
>> > "+property.isDefaultProperty());
>> >
>> >
>> > On Wed, Aug 6, 2008 at 5:03 PM, Igor Vaynberg <[EMAIL PROTECTED]
>> >wrote:
>> >
>> >> add a feedbackpanel and see if there are any validation errors
>> >>
>> >> -igor
>> >>
>> >> On Wed, Aug 6, 2008 at 7:19 AM, Markus Haspl <[EMAIL PROTECTED]> wrote:
>> >> > hi,
>> >> >
>> >> > first, i'm a very newbie to wicket... I want to add a ListView in a
>> Form.
>> >> > The ListView has two Texfields and one Checkbox each row. When i
>> submit
>> >> the
>> >> > form the values are still the old ones.
>> >> >
>> >> > here the code:
>> >> >
>> >> > private class InputForm extends Form {
>> >> >
>> >> >
>> >> >
>> >> >  IModel pluginPropertiesModel;
>> >> >
>> >> >  public InputForm(String id, IPlugin plugin){
>> >> >super(id);
>> >> >
>> >> >
>> >> >
>> >> >final IPlugin Iplugin = plugin;
>> >> >
>> >> >pluginPropertiesModel = new LoadableDetachableModel(){
>> >> >public Object load()
>> >> >{
>> >> >log.debug("load the Model");
>> >> >Iplugin.loadPluginProperties();
>> >> >return pluginProperties;
>> >> >}
>> >> >};
>> >> >
>> >> >ListView propertiesList = new ListView("pluginRepeater",
>> >> > pluginPropertiesModel) {
>> >> >
>> >> >@Override
>> >> >public void populateItem(ListItem item)
>> >> >{
>> >> >PluginProperties pluginProperties =
>> >> > (PluginProperties)item.getModelObject();
>> >> >TextField propertiesName = new TextField("name",new
>> >> > Model(pluginProperties.getName()));
>> >> >TextField propertiesValue = new
>> TextField("value",new
>> >> > Model(pluginProperties.getValue()));
>> >> >CheckBox propertiesDefault = new
>> >> > CheckBox("defaultProperty",new
>> >> Model(pluginProperties.isDefaultProperty()));
>> >> >item.add(propertiesName);
>> >> >item.add(propertiesValue);
>> >> >item.add(propertiesDefault);
>> >> >}
>> >> >};
>> >> >propertiesList.setReuseItems(true);
>> >> >add(propertiesList);
>> >> >
>> >> >add(new Button("saveButton"));
>> >> >
>> >> >
>> >> >}
>> >> >
>> >> >public void onSubmit()
>> >> >{
>> >> >List pluginProperties =
>> >> > (List)pluginPropertiesModel.getObject();
>> >> >for(PluginProperties property:pluginProperties){
>> >> >info(""+property.getName()+": "+property.getValue()+"
>> ==
>> >> > "+property.isDefaultProperty());
>> >> >log.debug(""+property.getName()+":
>> "+property.getValue()+"
>> >> > == "+property.isDefaultProperty());
>> >> >}
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >}
>> >> >}
>> >> >
>> >> >
>> >> > thanks in advance
>> >> > markus
>> >> >
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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



NPE

2008-08-07 Thread Uwe Schäfer

Hi

the current (1.4-m3) impl of

ComponentStringResourceLoader.loadStringResource(Class,String,Locale,String)

throws an NPE, that i am not sure of.

I´d suggest:

public String loadStringResource(Class clazz, final String key, final 
Locale locale,

final String style)
{
if (clazz == null)
{
return null;
}

// Load the properties associated with the path
		IPropertiesFactory propertiesFactory = 
Application.get().getResourceSettings()

.getPropertiesFactory();

while (true)
{

// new lines here:

if (clazz == null)
{
return null;
}

right ?


--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



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



Re: Comparing JSF and Wicket

2008-08-07 Thread Scott Swank
If you can find JSF components that do exactly what you want then JSF
is more compact.  If, however, you find JSF components that do nearly
what you want, but you have to add a bit of functionality, well then
you're into the lovely world of phase listeners and the
request/response life cycle.  Dante located JSF phase listeners within
the 4th circle of hell if I remember correctly.

One of the first "ah ha" moments I had with Wicket was when I needed
to copy customer names from one field to another.  If a customer
purchases several items (tickets to shows, books a tour, reserves a
hotel room) then the guest name associated with one item is typically,
but not always, the guest name for all of the items.  With a nominal
amount of reasonably clear code I was able to create a behavior that I
simply attach to all of the first names and last names.  It copies the
value of one field to all of the matching fields that are empty and
updates all of these fields via ajax.  It's 22 lines if you don't
count whitespace & braces and it is completely reusable.  It can be
attached to any two or more form components and it just works.

public class ModelPropagationBehavior extends AjaxFormComponentUpdatingBehavior
{
private static final long serialVersionUID = -451063727688504933L;

public enum PREBUILT
{
FIRST_NAME, LAST_NAME;

public ModelPropagationBehavior getBehavior()
{
return new ModelPropagationBehavior(name());
}
}

private final String name;

public ModelPropagationBehavior(String n)
{
super("onblur");
this.name = n;
}

private String getName()
{
return name;
}

private boolean hasMatchingBehavior(Component component)
{
for (Object behavior : component.getBehaviors())
{
if (behavior instanceof ModelPropagationBehavior
&& ((ModelPropagationBehavior) 
behavior).getName().equals(this.name))
return true;
}

return false;
}

@Override
protected void onUpdate(final AjaxRequestTarget target)
{
final FormComponent thisComponent = getFormComponent();

thisComponent.getForm().visitChildren(new IVisitor()
{
public Object component(Component otherComponent)
{
if (otherComponent.equals(thisComponent))
return 
CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;

if (hasMatchingBehavior(otherComponent)
&& 
otherComponent.getModelObjectAsString().isEmpty())
{

otherComponent.setModelObject(thisComponent.getModelObject());
target.addComponent(otherComponent);
return 
CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;

}
return CONTINUE_TRAVERSAL;
}
});
}
}

On Wed, Aug 6, 2008 at 11:44 PM, nlif <[EMAIL PROTECTED]> wrote:
>
> Thanks Timm. This is valuable feedback. Nevertheless - can you point to any
> advantage JSF has over Wicket? Anything at all?
>
> Thanks
>
>
>
>
>
> Timm Helbig wrote:
>>
>> Hi,
>>
>> I did one Project with JSF and two with Wicket.
>>
>> By far Wicket is much easier to handle, (nearly) everything works as
>> supposed,
>> which is not true for JSF, especially when it comes to external Libraries
>> like Trinidad or other UI Extension Libraries.
>>
>> One other thing which is important for me is the Productivity.  And this
>> is
>> much higher with Wicket than with JSF.
>>
>> The Community support is suberb with Wicket, and somewhat difficult when
>> you
>> check the JSF Forums, but this depends on the Manufactor of the Library
>> you
>> use.
>>
>> I don't want to slash JSF here, but I find it is miles away from a usable
>> Product. For me it looks more like a prototype of what could be possible.
>> Just check what happened from 1.1  to 1.2, and you see, that even Sun
>> seemed
>> to face this.
>>
>> Regards,
>> Timm
>>
>> Am Mittwoch, 6. August 2008 11:13:53 schrieb nlif:
>>> Hi all,
>>>
>>> We are in the process of selecting a web-framework, and although I am in
>>> favor of Wicket, I was asked to provide an objective comparison of Wicket
>>> with JSF. I have developed a few small apps in Wicket, but I admit I am
>>> not
>>> very familiar with JSF. Prior to posting here, I googled a bit, and found
>>> a
>>> few forum-threads and blog posts on this topic, but most are from 1-2
>>> years
>>> ago and in framework 

Re: Comparing JSF and Wicket

2008-08-07 Thread Peter Ertl

I don't need nearly as much extensions for wicket because
it's such a no-brainer to write my own custom components...

I think JSF is a big joke with nobody laughing :)

my 2 %

Cheers
Peter


Am 07.08.2008 um 17:59 schrieb Timm Helbig:


Sorry, not really.

*) JSF doesn't consume less Memory over Wicket. But this is not  
really an

Argument since Hardware isn't that expensive today.
*) Maybe the availability of Millions of extension Libraries for JSF.
*) EL Tags are quite useful, but IMHO just another way to do the same
thing.

Regards,
Timm

Am Donnerstag, 7. August 2008 08:44:22 schrieb nlif:
Thanks Timm. This is valuable feedback. Nevertheless - can you  
point to any

advantage JSF has over Wicket? Anything at all?

Thanks

Timm Helbig wrote:

Hi,

I did one Project with JSF and two with Wicket.

By far Wicket is much easier to handle, (nearly) everything works as
supposed,
which is not true for JSF, especially when it comes to external  
Libraries

like Trinidad or other UI Extension Libraries.

One other thing which is important for me is the Productivity.   
And this

is
much higher with Wicket than with JSF.

The Community support is suberb with Wicket, and somewhat  
difficult when

you
check the JSF Forums, but this depends on the Manufactor of the  
Library

you
use.

I don't want to slash JSF here, but I find it is miles away from a  
usable
Product. For me it looks more like a prototype of what could be  
possible.
Just check what happened from 1.1  to 1.2, and you see, that even  
Sun

seemed
to face this.

Regards,
Timm

Am Mittwoch, 6. August 2008 11:13:53 schrieb nlif:

Hi all,

We are in the process of selecting a web-framework, and although  
I am in

favor of Wicket, I was asked to provide an objective comparison of
Wicket with JSF. I have developed a few small apps in Wicket, but I
admit I am not
very familiar with JSF. Prior to posting here, I googled a bit, and
found a
few forum-threads and blog posts on this topic, but most are from  
1-2

years
ago and in framework years, this may be considered obsolete.

Although this is the Wicket forum, I expect there are people here  
who

also
used (or at least evaluated) JSF at some point, so I'd be happy  
if folks

here could share their experience. If anyone can point me to useful
links that would be great too.

I really am not trying to provoke a flame war, just to gather
information.

In your opinion, what are Wicket strengths? What are JSF's ?  
(even if

you're a Wicket fan, surely there's something ;)

I would be interested to hear people thoughts regarding the fact  
the JSF

is
a standard, while Wicket is not. How important is that to you? In  
what

ways
do you think this matters (if at all)?

Also, supposedly JSF has a larger selection of 3rd party components
compared to Wicket. Is this true? how often do you find yourself  
rolling
your own components and how hard is it to do so in Wicket (and I  
mean

non-trivial-good-looking-Ajax-enabled stuff).

Many thanks in advance.


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




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



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



Re: How to Embed PDF in a Web Page

2008-08-07 Thread igor . vaynberg
What does wicket have to do with this?

-igor

On 8/7/08, shetc <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I'm looking for some advice on how to embed a PDF into a web page using
> Wicket.
> Any help would be most appreciated.
>
> Thanks,
> Steve
> --
> View this message in context:
> http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18872998.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]
>
>

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



Re: Comparing JSF and Wicket

2008-08-07 Thread Timm Helbig
Sorry, not really.

*) JSF doesn't consume less Memory over Wicket. But this is not really an 
Argument since Hardware isn't that expensive today. 
*) Maybe the availability of Millions of extension Libraries for JSF.
*) EL Tags are quite useful, but IMHO just another way to do the same
thing.

Regards,
Timm

Am Donnerstag, 7. August 2008 08:44:22 schrieb nlif:
> Thanks Timm. This is valuable feedback. Nevertheless - can you point to any
> advantage JSF has over Wicket? Anything at all?
>
> Thanks
>
> Timm Helbig wrote:
> > Hi,
> >
> > I did one Project with JSF and two with Wicket.
> >
> > By far Wicket is much easier to handle, (nearly) everything works as
> > supposed,
> > which is not true for JSF, especially when it comes to external Libraries
> > like Trinidad or other UI Extension Libraries.
> >
> > One other thing which is important for me is the Productivity.  And this
> > is
> > much higher with Wicket than with JSF.
> >
> > The Community support is suberb with Wicket, and somewhat difficult when
> > you
> > check the JSF Forums, but this depends on the Manufactor of the Library
> > you
> > use.
> >
> > I don't want to slash JSF here, but I find it is miles away from a usable
> > Product. For me it looks more like a prototype of what could be possible.
> > Just check what happened from 1.1  to 1.2, and you see, that even Sun
> > seemed
> > to face this.
> >
> > Regards,
> > Timm
> >
> > Am Mittwoch, 6. August 2008 11:13:53 schrieb nlif:
> >> Hi all,
> >>
> >> We are in the process of selecting a web-framework, and although I am in
> >> favor of Wicket, I was asked to provide an objective comparison of
> >> Wicket with JSF. I have developed a few small apps in Wicket, but I
> >> admit I am not
> >> very familiar with JSF. Prior to posting here, I googled a bit, and
> >> found a
> >> few forum-threads and blog posts on this topic, but most are from 1-2
> >> years
> >> ago and in framework years, this may be considered obsolete.
> >>
> >> Although this is the Wicket forum, I expect there are people here who
> >> also
> >> used (or at least evaluated) JSF at some point, so I'd be happy if folks
> >> here could share their experience. If anyone can point me to useful
> >> links that would be great too.
> >>
> >> I really am not trying to provoke a flame war, just to gather
> >> information.
> >>
> >> In your opinion, what are Wicket strengths? What are JSF's ? (even if
> >> you're a Wicket fan, surely there's something ;)
> >>
> >> I would be interested to hear people thoughts regarding the fact the JSF
> >> is
> >> a standard, while Wicket is not. How important is that to you? In what
> >> ways
> >> do you think this matters (if at all)?
> >>
> >> Also, supposedly JSF has a larger selection of 3rd party components
> >> compared to Wicket. Is this true? how often do you find yourself rolling
> >> your own components and how hard is it to do so in Wicket (and I mean
> >> non-trivial-good-looking-Ajax-enabled stuff).
> >>
> >> Many thanks in advance.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]



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



problems wicket and images, css

2008-08-07 Thread oriana

I want to put an image like background of a table and I could not it. Neither
the aplication catch me the leaf of style.
-- 
View this message in context: 
http://www.nabble.com/problems-wicket-and-images%2C-css-tp18873143p18873143.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]



How to Embed PDF in a Web Page

2008-08-07 Thread shetc

Hello All,

I'm looking for some advice on how to embed a PDF into a web page using
Wicket.
Any help would be most appreciated.

Thanks,
Steve
-- 
View this message in context: 
http://www.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp18872998p18872998.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]



How to include some parameters in template? Custom tag? Component?

2008-08-07 Thread kan
I have some page template which I want to include some blocks which
look same but some minor differences. Something like this
...

Please try our apple and play on our
cool apple computers.



So, after rendering my:productInfo could be replaced by some html
which may contain given product description, image, link to buy, etc.

I cannot to use  because it less obvious
and cannot give me structured parameters (like category, id) and I
have to add each wicket:id in .java-file, which could be annoying to
change two places.

I found wicket:component tag, but it's experimental and not recommended to use.

I think to implement own IComponentResolver to handle my:productInfo
tags. Is it the best way? Or is there other way to do it?

-- 
WBR, kan.

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



Re: Javascript in onBeforeRender

2008-08-07 Thread Sarkast

Wow, that's simple. Wish I would have stumbled over this earlier, might have
a couple more brain cells now.
-- 
View this message in context: 
http://www.nabble.com/Javascript-in-onBeforeRender-tp18868357p18872322.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: Questions about wicket features

2008-08-07 Thread Erik van Oosten
I was talking about the case where you are silly enough to code an
action in the constructor of a bookmarkable page. (Really, I have seen
it happen.)

Regards,
Erik.


Martijn Dashorst wrote:
> but all actions on bookmarkable pages have session relative urls,
> which makes guessing the correct URL still problematic.
>
> Martijn
>
>   
--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: MathML in wicket

2008-08-07 Thread mdossing

Update -

After some reading i realised that wicket was overwriting my utf-8 header. I
managed to get it to work by changing
getResponse().setContentType("text/html"); to
getResponse().setContentType("utf-8"); There are now a number of display
errors, but certainly nothing unfixable.

Regards,
Martin



Brill Pappin wrote:
> 
> Check the char encoding... it might actually be working properly but  
> somewhere along the line the wrong encoding is being used.
> 
> - Brill
> 
> On 6-Aug-08, at 1:51 PM, mdossing wrote:
> 
>>
>> Hi,
>>
>> I am undergoing a project that involves outputting MathML to wicket  
>> pages.
>>
>> I use a custom label that outputs my string directly in to a body  
>> tag so
>> that it isn't escaped. The problem comes when I change the page to  
>> be of the
>> type xhtml with the following code:
>>
>>public final String getMarkupType() {
>>return "xhtml";
>>}
>>
>>protected final void configureResponse() {
>>super.configureResponse();
>>getResponse().setContentType("text/html");
>>}
>>
>> With some example mathml of:
>> http://www.w3.org/1998/Math/MathML";
>>  xmlns:mml="http://www.w3.org/1998/Math/MathML";>
>>   
>>  
>> 
>> ⁡
>> 
>>
>>   
>>   ⁡
>>   
>>  X
>>   
>>
>> 
>>  
>>  =
>>  ∅
>>   
>> 
>>
>> Ran in a normal xhtml page i get something along the lines of ((X))  
>> = ∅ but
>> instead wicket throws out∅   =  0  and longer mathml just  
>> throws out
>> more random characters.
>>
>> Any help would be appreciated,
>> Martin
>> -- 
>> View this message in context:
>> http://www.nabble.com/MathML-in-wicket-tp18856345p18856345.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]
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MathML-in-wicket-tp18856345p18870915.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: Questions about wicket features

2008-08-07 Thread Martijn Dashorst
but all actions on bookmarkable pages have session relative urls,
which makes guessing the correct URL still problematic.

Martijn

On Thu, Aug 7, 2008 at 3:16 PM, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>
> Johan Compagner wrote:
>> ...Which is pretty random. Only if all users would go over the same path
>> always to the same page then the id could be guessed.
>>
> Actually, I do not think that is completely far fetched. In my banking
> applications I mostly follow the same path. In some applications there
> may be a high change that the guessed path is correct.
> Then again, it is easily fixed by starting at a random page version number.
>
> In addition, many Wicket applications use bookmarkable pages. Easily
> avoided if you're worried about CSRF of course.
>
> Regards,
>Erik.
>
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

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



Re: Questions about wicket features

2008-08-07 Thread Erik van Oosten

Johan Compagner wrote:
> ...Which is pretty random. Only if all users would go over the same path
> always to the same page then the id could be guessed.
>   
Actually, I do not think that is completely far fetched. In my banking
applications I mostly follow the same path. In some applications there
may be a high change that the guessed path is correct.
Then again, it is easily fixed by starting at a random page version number.

In addition, many Wicket applications use bookmarkable pages. Easily
avoided if you're worried about CSRF of course.

Regards,
Erik.

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: Questions about wicket features

2008-08-07 Thread Erik van Oosten
Arthur Ahiceh write:
> Erik, if you did not mean that I feel it, I understood that. ;-)
>
> Arthur
>   
Okay, thanks. (I didn't.)


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



Re: Questions about wicket features

2008-08-07 Thread Arthur Ahiceh


Martijn, this solution is correct but I tell that I said in post [1]...
Wicket is a framework where you can implement an easy solution but I prefer
that these types of solutions were distributed by default!

[1]
http://www.nabble.com/Security-Features-offered-by-Wicket-to15738864.html#a15738864
 

Arthur


Martijn Dashorst wrote:
> 
> This assumes that the hacker correctly guesses the application key
> (which you of course changed from the default setting), or has access
> to your application to harvest URLs.
> 
> Making the SunJceCrypt user specific is as simple as:
> 
> new SunJceCrypt() {
> @Override public String getKey() {
>return MySession.get().getUserKey();
> }
> }
> 
> And all you have to do is implement your own user key generation that
> generates a key based on some random information and is constant
> throughout the session (e.g. md5 sum of a salt + Random.nextInt).
> 
> Martijn
> 
> On Thu, Aug 7, 2008 at 11:28 AM, Arthur Ahiceh <[EMAIL PROTECTED]>
> wrote:
>>
>>
>> ok! you have not used the word "easily" but only saying "There are more
>> hardening options such as encrypting urls" it only seems that encrypting
>> urls  the problem is solved and it is not the case! The user has to
>> implement a custom security factory, one different than provided by
>> Wicket
>> (SunJceCrypt), to resolve CSRF.
>>
>>
>> Erik van Oosten wrote:
>>>
>>>
>>> Arthur Ahiceh wrote:
>> 4. Yes. See mailing list for earlier answers. There are more
>> hardening
>> options such as encrypting urls.
>>

 Even encrypting the urls Wicket is vulnerable to CSRF because the key
 used
 to encrypt is shared by all users of application. Wicket is an
 extensible
 framework where you to add some new functionallity "easily" but it
 doesn't
 provide any secure solution by default to protect you against CSRF
 attacks!
>>> Correct indeed. Also note, I did not use the word 'easily' :)
>>>
>>> Regards,
>>> Erik.
>>>
>>> --
>>> Erik van Oosten
>>> http://day-to-day-stuff.blogspot.com/
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Questions-about-wicket-features-tp18857860p18866928.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]
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Questions-about-wicket-features-tp18857860p18870094.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: Questions about wicket features

2008-08-07 Thread Arthur Ahiceh


Erik, if you did not mean that I feel it, I understood that. ;-)

Arthur




Erik van Oosten wrote:
> 
> Arthur Ahiceh wrote:
>> ok! you have not used the word "easily" but only saying "There are more
>> hardening options such as encrypting urls" it only seems that encrypting
>> urls  the problem is solved and it is not the case! The user has to
>> implement a custom security factory, one different than provided by
>> Wicket
>> (SunJceCrypt), to resolve CSRF.
>>   
> Come on, I did not (intend to) suggest that URL encryption solves CSRF
> attacks. It is *another* hardening strategy.
> 
> Erik.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Questions-about-wicket-features-tp18857860p18870076.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: How to protect against Session Fixation attacks?

2008-08-07 Thread Johan Compagner
please make a jira issue for this

On Thu, Aug 7, 2008 at 2:52 PM, RUMikeP <[EMAIL PROTECTED]> wrote:

>
> Many thanks for the quick response.
>
> The pre-login session files in the temp filestore directory are not
> removed,
> even after the session timeout.  All the new sessions are removed as they
> expire, but the ones that are invalidated using the patch below remain
> indefinitely.
>
>
>
>
>
>
> no what you see is that by default the http session store has a new window
> browser detection (new pagemap)
> It needs that because of the way pages are stored and rollbacked.
>
> The DiskPageStore doesnt need that it can get all the pages back that it
> wants
> so for that the new window detection is by default not enabled.
>
> Old sessions are not cleand up with the diskpagestore?
> What is not cleaned up?
>
>
> johan
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-protect-against-Session-Fixation-attacks--tp18734278p18869780.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: How to protect against Session Fixation attacks?

2008-08-07 Thread RUMikeP

Many thanks for the quick response. 

The pre-login session files in the temp filestore directory are not removed,
even after the session timeout.  All the new sessions are removed as they
expire, but the ones that are invalidated using the patch below remain
indefinitely.






no what you see is that by default the http session store has a new window
browser detection (new pagemap)
It needs that because of the way pages are stored and rollbacked.

The DiskPageStore doesnt need that it can get all the pages back that it
wants
so for that the new window detection is by default not enabled.

Old sessions are not cleand up with the diskpagestore?
What is not cleaned up?


johan


-- 
View this message in context: 
http://www.nabble.com/How-to-protect-against-Session-Fixation-attacks--tp18734278p18869780.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: Javascript in onBeforeRender

2008-08-07 Thread Michael Sparer

Let your component implement IHeaderContributor and add the line of
javascript in the renderHeader method

regards
Michael


Sarkast wrote:
> 
> Hello everyone,
> 
> I have a small problem. I have a wicket component and the idea is that the
> programmer can add numerous messages to it and whenever the component is
> rendered (is added to a requesttarget probably) some javascript is
> executed to iterate over the messages and displays them.
> 
> I thought that I could simply override onBeforeRender(), or
> onAfterRender(), but I simply can't figure out how to append javascript.
> Basically I just want to have a line of javascript executed, like
> "messagebox.displayMessage('asdasdasd')". 
> 
> Before someone asks why I just don't add a label with the message, the
> messagebox is dragable, fades after a while and should display messages
> for a set amount of time (before the next message is displayed) and should
> also be used on client side without requests.
> 
> Any thoughts? Help would be appreciated.
> 
> The last resort would be to give the requesttarget to the component and
> append javascript directly, but that seems more complicated then
> necessary.
> 
> Tom
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Javascript-in-onBeforeRender-tp18868357p18869581.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: Questions about wicket features

2008-08-07 Thread Marcelo Morales
Thank you all

Marcelo Morales

On Thu, Aug 7, 2008 at 2:44 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Hello Marcelo,
>
> 1. No. The flip side of having full control of the HTML is that you need
> to write it yourself.
>
> 2. In Wicket it is trivial to keep state (read the conversation state)
> on the server, local to the dialog/panel you are working with. No
> official conversation support is therefore needed.
>
> 3. Yes. See WicketTester.
>
> 4. Yes. See mailing list for earlier answers. There are more hardening
> options such as encrypting urls.
>
> Regards,
>   Erik.
>
>
> Marcelo Morales wrote:
>> Hello
>>
>> I've browsed over the wicket documentation and examples. There are a
>> couple of things I don't seem able to determine. So I would really
>> appreciate your input on this questions.
>>
>> 1 Can I write a web application without coding any HTML whatsoever?...
>> I mean, is there some kind of "html" or "whole page" component which
>> renders an entire HTML page?
>> 2 Is there a way to work on dialogs (also known as conversations) as
>> opposed to sessions?... maybe this question is nonsense and I didn't
>> understand the whole page version management mechanism.
>> 3 Does it come with some kind of integration testing?
>> 4 Is it possible (or feasible) to implement some kind of "page
>> hardening"? I am seeking something to protect victims of CSRF attacks
>> from other sites. A input name randomizer comes to mind (which would
>> make it impossible to selenium test it)
>>
>> Regads
>>
>> Marcelo Morales
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> --
>
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: How to protect against Session Fixation attacks?

2008-08-07 Thread Johan Compagner
no what you see is that by default the http session store has a new window
browser detection (new pagemap)
It needs that because of the way pages are stored and rollbacked.

The DiskPageStore doesnt need that it can get all the pages back that it
wants
so for that the new window detection is by default not enabled.

Old sessions are not cleand up with the diskpagestore?
What is not cleaned up?


johan



On Thu, Aug 7, 2008 at 1:05 PM, RUMikeP <[EMAIL PROTECTED]> wrote:

>
> Hi
>
> Still busy looking into it, but using the suggested fix posted by Enes
> Fazli
> I notice two strange behaviours:
>
> If I use the default FileSessionStore, the URLs are as per normal, e.g.
> wicket:2 but if I change to HttpSessionStore then I get an additional "-0"
> appended, e.g. wicket-0:2
>
> In addition, it appears that the old sessions get invalidated at login time
> are not cleaned up.
>
> Any suggestions/starting points would be most welcome
>
> Many thanks
> Mike
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-protect-against-Session-Fixation-attacks--tp18734278p18868111.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]
>
>


Javascript in onBeforeRender

2008-08-07 Thread Sarkast

Hello everyone,

I have a small problem. I have a wicket component and the idea is that the
programmer can add numerous messages to it and whenever the component is
rendered some javascript is executed to iterate over the messages and
displays them.

I thought that I could simply override onBeforeRender(), or onAfterRender(),
but I simply can't figure out to append javascript. Basically I just want to
have a line of javascript executed, like
"messagebox.displayMessage('asdasdasd')". 

Before someone asks why I just don't add a label with the message, the
messagebox is dragable, fades after a while and should display messages for
a set amount of time (before the next message is displayed) and should also
be used on client side without requests.

Any thoughts? Help would be appreciated.

Tom
-- 
View this message in context: 
http://www.nabble.com/Javascript-in-onBeforeRender-tp18868357p18868357.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: How to protect against Session Fixation attacks?

2008-08-07 Thread RUMikeP

Hi 

Still busy looking into it, but using the suggested fix posted by Enes Fazli
I notice two strange behaviours:

If I use the default FileSessionStore, the URLs are as per normal, e.g.
wicket:2 but if I change to HttpSessionStore then I get an additional "-0"
appended, e.g. wicket-0:2

In addition, it appears that the old sessions get invalidated at login time
are not cleaned up.

Any suggestions/starting points would be most welcome

Many thanks 
Mike


-- 
View this message in context: 
http://www.nabble.com/How-to-protect-against-Session-Fixation-attacks--tp18734278p18868111.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: Questions about wicket features

2008-08-07 Thread Johan Compagner
CSRF uses urls to do something on another side right?
for example

http://bank.example/withdraw?account=bob&amount=100&for=mallory";>

How would that work in a default wicket application?
Is it really so stupid developed that these kind of things uses client side
state?

So this cant be done with just an url. So you have to have real scripting..
So for this to work in wicket you have to know upfront so many things..
First the page id of the bank transfer page.. Which is pretty random. Only
if all users would go over the same path always to the same page
then the id could be guessed.
Then it has to get the right form, fill in the right values and do the
submit

And do modern browsers allow js script like that?

johan

On Thu, Aug 7, 2008 at 10:54 AM, Arthur Ahiceh <[EMAIL PROTECTED]>wrote:

>
> >> 4. Yes. See mailing list for earlier answers. There are more hardening
> options such as encrypting urls.
>
> Even encrypting the urls Wicket is vulnerable to CSRF because the key used
> to encrypt is shared by all users of application. Wicket is an extensible
> framework where you to add some new functionallity "easily" but it doesn't
> provide any secure solution by default to protect you against CSRF attacks!
>
>
>
>
> Erik van Oosten wrote:
> >
> > Hello Marcelo,
> >
> > 1. No. The flip side of having full control of the HTML is that you need
> > to write it yourself.
> >
> > 2. In Wicket it is trivial to keep state (read the conversation state)
> > on the server, local to the dialog/panel you are working with. No
> > official conversation support is therefore needed.
> >
> > 3. Yes. See WicketTester.
> >
> > 4. Yes. See mailing list for earlier answers. There are more hardening
> > options such as encrypting urls.
> >
> > Regards,
> >Erik.
> >
> >
> > Marcelo Morales wrote:
> >> Hello
> >>
> >> I've browsed over the wicket documentation and examples. There are a
> >> couple of things I don't seem able to determine. So I would really
> >> appreciate your input on this questions.
> >>
> >> 1 Can I write a web application without coding any HTML whatsoever?...
> >> I mean, is there some kind of "html" or "whole page" component which
> >> renders an entire HTML page?
> >> 2 Is there a way to work on dialogs (also known as conversations) as
> >> opposed to sessions?... maybe this question is nonsense and I didn't
> >> understand the whole page version management mechanism.
> >> 3 Does it come with some kind of integration testing?
> >> 4 Is it possible (or feasible) to implement some kind of "page
> >> hardening"? I am seeking something to protect victims of CSRF attacks
> >> from other sites. A input name randomizer comes to mind (which would
> >> make it impossible to selenium test it)
> >>
> >> Regads
> >>
> >> Marcelo Morales
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > --
> >
> > --
> > Erik van Oosten
> > http://day-to-day-stuff.blogspot.com/
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Questions-about-wicket-features-tp18857860p18866486.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: Questions about wicket features

2008-08-07 Thread Erik van Oosten
Arthur Ahiceh wrote:
> ok! you have not used the word "easily" but only saying "There are more
> hardening options such as encrypting urls" it only seems that encrypting
> urls  the problem is solved and it is not the case! The user has to
> implement a custom security factory, one different than provided by Wicket
> (SunJceCrypt), to resolve CSRF.
>   
Come on, I did not (intend to) suggest that URL encryption solves CSRF
attacks. It is *another* hardening strategy.

Erik.


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



Re: 7th August London Wicket Event

2008-08-07 Thread Chris Miller

I'd also like to pass on my thanks, I enjoyed meeting and chatting to you all
and I learnt a lot in the course of the evening both through the
presentations and just chatting informally. It's great to see such friendly
and talented people involved in this project.

If anyone reading this happens to be in/near London when one of these events
is on, I can say it's well worth heading along to regardless of your level
of experience with Wicket.

Cheers,
Chris


Yiannis Mavroukakis-3 wrote:
> 
> Hi everyone,
> 
> Just wanted to say a quick thank you to Cemal, Al et al for organizing 
> this event, last night was very informative,
> especially the Terracotta presentation.
> The only gripe I've got (besides warm beer :-P ) is the frequency of the 
> event..I think bi-monthly is far too far apart for
> such a fast paced framework as Wicket..Any chance this can be done on a 
> monthly basis?
> 
> Thanks!
> 
> Ioannis
> 

-- 
View this message in context: 
http://www.nabble.com/7th-August-London-Wicket-Event-tp18866803p18867440.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]



PageParameters

2008-08-07 Thread Uwe Schäfer

hi

coming from 1.3.x i stumbled upon

public PageParameters(final Map parameterMap).

shouldn´t this be:

public PageParameters(final Map parameterMap)
or
public PageParameters(final Map parameterMap)

sorry, if this was discussed alreadys, but i did not follow the generics 
discussions so far.


my usecase is something like:

new PageParameters(Maps.create(someString, someInt))
where
Maps.create is defined like:

public static  Map create(final 
KS k, final VS v)


cu uwe

--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



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



Re: Questions about wicket features

2008-08-07 Thread Martijn Dashorst
This assumes that the hacker correctly guesses the application key
(which you of course changed from the default setting), or has access
to your application to harvest URLs.

Making the SunJceCrypt user specific is as simple as:

new SunJceCrypt() {
@Override public String getKey() {
   return MySession.get().getUserKey();
}
}

And all you have to do is implement your own user key generation that
generates a key based on some random information and is constant
throughout the session (e.g. md5 sum of a salt + Random.nextInt).

Martijn

On Thu, Aug 7, 2008 at 11:28 AM, Arthur Ahiceh <[EMAIL PROTECTED]> wrote:
>
>
> ok! you have not used the word "easily" but only saying "There are more
> hardening options such as encrypting urls" it only seems that encrypting
> urls  the problem is solved and it is not the case! The user has to
> implement a custom security factory, one different than provided by Wicket
> (SunJceCrypt), to resolve CSRF.
>
>
> Erik van Oosten wrote:
>>
>>
>> Arthur Ahiceh wrote:
> 4. Yes. See mailing list for earlier answers. There are more hardening
> options such as encrypting urls.
>
>>>
>>> Even encrypting the urls Wicket is vulnerable to CSRF because the key
>>> used
>>> to encrypt is shared by all users of application. Wicket is an extensible
>>> framework where you to add some new functionallity "easily" but it
>>> doesn't
>>> provide any secure solution by default to protect you against CSRF
>>> attacks!
>> Correct indeed. Also note, I did not use the word 'easily' :)
>>
>> Regards,
>> Erik.
>>
>> --
>> Erik van Oosten
>> http://day-to-day-stuff.blogspot.com/
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Questions-about-wicket-features-tp18857860p18866928.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]
>
>



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

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



Re: Questions about wicket features

2008-08-07 Thread Arthur Ahiceh


ok! you have not used the word "easily" but only saying "There are more
hardening options such as encrypting urls" it only seems that encrypting
urls  the problem is solved and it is not the case! The user has to
implement a custom security factory, one different than provided by Wicket
(SunJceCrypt), to resolve CSRF.


Erik van Oosten wrote:
> 
> 
> Arthur Ahiceh wrote:
 4. Yes. See mailing list for earlier answers. There are more hardening 
 options such as encrypting urls.
   
>>
>> Even encrypting the urls Wicket is vulnerable to CSRF because the key
>> used
>> to encrypt is shared by all users of application. Wicket is an extensible
>> framework where you to add some new functionallity "easily" but it
>> doesn't
>> provide any secure solution by default to protect you against CSRF
>> attacks!
> Correct indeed. Also note, I did not use the word 'easily' :)
> 
> Regards,
> Erik.
> 
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Questions-about-wicket-features-tp18857860p18866928.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]



7th August London Wicket Event

2008-08-07 Thread Yiannis Mavroukakis

Hi everyone,

Just wanted to say a quick thank you to Cemal, Al et al for organizing 
this event, last night was very informative,

especially the Terracotta presentation.
The only gripe I've got (besides warm beer :-P ) is the frequency of the 
event..I think bi-monthly is far too far apart for
such a fast paced framework as Wicket..Any chance this can be done on a 
monthly basis?


Thanks!

Ioannis

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



Re: Questions about wicket features

2008-08-07 Thread Erik van Oosten

Arthur Ahiceh wrote:
>>> 4. Yes. See mailing list for earlier answers. There are more hardening 
>>> options such as encrypting urls.
>>>   
>
> Even encrypting the urls Wicket is vulnerable to CSRF because the key used
> to encrypt is shared by all users of application. Wicket is an extensible
> framework where you to add some new functionallity "easily" but it doesn't
> provide any secure solution by default to protect you against CSRF attacks!
Correct indeed. Also note, I did not use the word 'easily' :)

Regards,
Erik.

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: Questions about wicket features

2008-08-07 Thread Arthur Ahiceh

>> 4. Yes. See mailing list for earlier answers. There are more hardening
options such as encrypting urls.

Even encrypting the urls Wicket is vulnerable to CSRF because the key used
to encrypt is shared by all users of application. Wicket is an extensible
framework where you to add some new functionallity "easily" but it doesn't
provide any secure solution by default to protect you against CSRF attacks!




Erik van Oosten wrote:
> 
> Hello Marcelo,
> 
> 1. No. The flip side of having full control of the HTML is that you need
> to write it yourself.
> 
> 2. In Wicket it is trivial to keep state (read the conversation state)
> on the server, local to the dialog/panel you are working with. No
> official conversation support is therefore needed.
> 
> 3. Yes. See WicketTester.
> 
> 4. Yes. See mailing list for earlier answers. There are more hardening
> options such as encrypting urls.
> 
> Regards,
>Erik.
> 
> 
> Marcelo Morales wrote:
>> Hello
>>
>> I've browsed over the wicket documentation and examples. There are a
>> couple of things I don't seem able to determine. So I would really
>> appreciate your input on this questions.
>>
>> 1 Can I write a web application without coding any HTML whatsoever?...
>> I mean, is there some kind of "html" or "whole page" component which
>> renders an entire HTML page?
>> 2 Is there a way to work on dialogs (also known as conversations) as
>> opposed to sessions?... maybe this question is nonsense and I didn't
>> understand the whole page version management mechanism.
>> 3 Does it come with some kind of integration testing?
>> 4 Is it possible (or feasible) to implement some kind of "page
>> hardening"? I am seeking something to protect victims of CSRF attacks
>> from other sites. A input name randomizer comes to mind (which would
>> make it impossible to selenium test it)
>>
>> Regads
>>
>> Marcelo Morales
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>   
> 
> -- 
> 
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Questions-about-wicket-features-tp18857860p18866486.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: Turn off SWARM

2008-08-07 Thread Johan Compagner
then you should really look around so that you can use the hotcode/swap of
the jvm
Tomcat shouldnt rebuild/redeploy constantly on every change in development
thats quite annoying if you ask me

If you use eclipse and you want to use tomcat use the sysdeo plugin
else just use jetty (see our quickstart)

johan


On Thu, Aug 7, 2008 at 1:20 AM, insom <[EMAIL PROTECTED]> wrote:

>
>
> Johan Compagner wrote:
> >
> > Why do you need to relogin?
> >
>
> It happens whenever I change a Java file and rebuild. Even if I just change
> one of the HTML files, Tomcat notices that and rebuilds. Then when I try to
> navigate to a secure page in the application, I get redirected to the login
> page.
> --
> View this message in context:
> http://www.nabble.com/Turn-off-SWARM-tp18860819p18861491.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: ListView in Forms

2008-08-07 Thread Markus Haspl
no, there aren't any errors.

but i don't understand why i have to use propertiesName.getModelObject(); in
the onSubmit() method. Because there may be hundrets of propertiesName in
the ListView/Form.

Would it be better to make a Forms in a ListView? But then i need for every
Form a submit-button. that wouldn't be so nice...

thanks

On Wed, Aug 6, 2008 at 7:01 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:

> if there are no errors then you are not using your models properly
>
>  TextField propertiesName = new TextField("name",new
> Model(pluginProperties.getName()));
>
> to get a value back with a model like that you would have to call
> propertiesName.getModelObject()
>
> -igor
>
> On Wed, Aug 6, 2008 at 8:27 AM, Markus Haspl <[EMAIL PROTECTED]> wrote:
> > there are no valiation errors. with info() i get the old values.
> >  info(""+property.getName()+": "+property.getValue()+" ==
> > "+property.isDefaultProperty());
> >
> >
> > On Wed, Aug 6, 2008 at 5:03 PM, Igor Vaynberg <[EMAIL PROTECTED]
> >wrote:
> >
> >> add a feedbackpanel and see if there are any validation errors
> >>
> >> -igor
> >>
> >> On Wed, Aug 6, 2008 at 7:19 AM, Markus Haspl <[EMAIL PROTECTED]> wrote:
> >> > hi,
> >> >
> >> > first, i'm a very newbie to wicket... I want to add a ListView in a
> Form.
> >> > The ListView has two Texfields and one Checkbox each row. When i
> submit
> >> the
> >> > form the values are still the old ones.
> >> >
> >> > here the code:
> >> >
> >> > private class InputForm extends Form {
> >> >
> >> >
> >> >
> >> >  IModel pluginPropertiesModel;
> >> >
> >> >  public InputForm(String id, IPlugin plugin){
> >> >super(id);
> >> >
> >> >
> >> >
> >> >final IPlugin Iplugin = plugin;
> >> >
> >> >pluginPropertiesModel = new LoadableDetachableModel(){
> >> >public Object load()
> >> >{
> >> >log.debug("load the Model");
> >> >Iplugin.loadPluginProperties();
> >> >return pluginProperties;
> >> >}
> >> >};
> >> >
> >> >ListView propertiesList = new ListView("pluginRepeater",
> >> > pluginPropertiesModel) {
> >> >
> >> >@Override
> >> >public void populateItem(ListItem item)
> >> >{
> >> >PluginProperties pluginProperties =
> >> > (PluginProperties)item.getModelObject();
> >> >TextField propertiesName = new TextField("name",new
> >> > Model(pluginProperties.getName()));
> >> >TextField propertiesValue = new
> TextField("value",new
> >> > Model(pluginProperties.getValue()));
> >> >CheckBox propertiesDefault = new
> >> > CheckBox("defaultProperty",new
> >> Model(pluginProperties.isDefaultProperty()));
> >> >item.add(propertiesName);
> >> >item.add(propertiesValue);
> >> >item.add(propertiesDefault);
> >> >}
> >> >};
> >> >propertiesList.setReuseItems(true);
> >> >add(propertiesList);
> >> >
> >> >add(new Button("saveButton"));
> >> >
> >> >
> >> >}
> >> >
> >> >public void onSubmit()
> >> >{
> >> >List pluginProperties =
> >> > (List)pluginPropertiesModel.getObject();
> >> >for(PluginProperties property:pluginProperties){
> >> >info(""+property.getName()+": "+property.getValue()+"
> ==
> >> > "+property.isDefaultProperty());
> >> >log.debug(""+property.getName()+":
> "+property.getValue()+"
> >> > == "+property.isDefaultProperty());
> >> >}
> >> >
> >> >
> >> >
> >> >
> >> >}
> >> >}
> >> >
> >> >
> >> > thanks in advance
> >> > markus
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Can You Use A Taglib In Wicket?

2008-08-07 Thread Lee Theobald

Cheers for the link - Just what I needed to see :)

Jon Stockdill wrote:
> I suppose you could include the jsp.
> http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/

-- 
View this message in context: 
http://www.nabble.com/Can-You-Use-A-Taglib-In-Wicket--tp18854034p18865852.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: Comparing JSF and Wicket

2008-08-07 Thread Igor Vaynberg
On Thu, Aug 7, 2008 at 12:12 AM, nlif <[EMAIL PROTECTED]> wrote:
>
> Thanks Igor,
>
> While it is very good to know that it's relatively easy to develop Wicket
> components, bear in mind that management (at least mine) is more easily
> convinced when presented with a wide selection of 3rd party component
> libraries, since that provides an alternative to allocating time and
> resources of our own developers. Thus, for them, the issue is decided more
> an economical merits, then on its design/architectural ones.

well, if we are talking in purely managerial/economical terms then i
would definately go with jsf.
a) it is always easy to find very high-paid consultants to rescue a
project that is running late or is totally broken, lots of companies
out there offer jsf consulting services
b) it is much easier to find someone to replace you when you screw up,
there are many more job postings for jsf then for wicket
c) it is much easier to find someone to replace you when you ask for a
raise, see above

> This is a classic advantage a standard solution usually offers - a thriving
> ecosystem. (than again, I've got to admit, I don't really know that much
> about JSF's ecosystem...).

i havent seen an ecosystem yet, but maybe im not looking very hard.

> How many Wicket components are there, and how mature are there? Are there
> tables with sorting, filtering, scrolling, paging etc.? Are there
> tree-controls with all the typical tree-functions? Is there Ajax support, as
> well automatic fallback for non-javascript browsers (and what about comet)?

if you cannot find this on your own then i dont think you will enjoy
wicket at all. wicket is not about serving up everything on a silver
platter. the answers to these questions are only a short trip away
from looking at wicket-examples.

-igor
>
> Thanks again,
> Naaman
>
>
> igor.vaynberg wrote:
>>
>> On Wed, Aug 6, 2008 at 2:13 AM, nlif <[EMAIL PROTECTED]> wrote:
>>> Prior to posting here, I googled a bit, and found a
>>> few forum-threads and blog posts on this topic, but most are from 1-2
>>> years
>>> ago and in framework years, this may be considered obsolete.
>>
>> actually, imho, this is one of wicket's biggest advantages over jsf.
>> jsf is a standard so it moves very slowly. wicket is a much more agile
>> project and moves much faster.
>>
>>> Also, supposedly JSF has a larger selection of 3rd party components
>>> compared
>>> to Wicket. Is this true? how often do you find yourself rolling your own
>>> components and how hard is it to do so in Wicket (and I mean
>>> non-trivial-good-looking-Ajax-enabled stuff).
>>
>> actually i find myself creating components all the time, because it is
>> so damn easy. trivial and non trivial, because wicket uses composition
>> it is not that much harder to create components with complex
>> interactions.
>>
>> sure, jsf has plenty of components out there that offer high level
>> things like data grids, etc, but so does wicket. the difference with
>> wicket is this:
>>
>> the other day i created a productlink component for our application.
>> it is a simple component that builds an anchor that takes the user to
>> the product page. it also adds proper css class based on whether the
>> product is for sale or not and whether it is in or out of stock.
>>
>> so now anytime someone needs to link to a product they simply do
>>
>> add(new ProductLink("link", product)); and attach it to  whatever . the
>> productlink can be embedded inside
>> any other component just as easily and have any other component
>> embedded in it as well.
>>
>> i dont think jsf folks would bother creating anything so fine-grained,
>> because although it is very useful there would be too much overhead
>> and pain involved.
>>
>> the problem is that jsf approaches web application development with a
>> few roles in mind: the application developer and the component
>> developer. the component developer is a smarter person that
>> understands the intricacies of jsf. in wicket we do not assume the
>> separation of roles, so our programming model is consistent and is
>> optimized towards component creation.
>>
>> my two cents
>>
>> -igor
>>
>>
>>>
>>> Many thanks in advance.
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Comparing-JSF-and-Wicket-tp18847208p18847208.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]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Comparing-JSF-and-Wicket-tp18847208p18865282.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -

Re: Comparing JSF and Wicket

2008-08-07 Thread Eelco Hillenius
> While it is very good to know that it's relatively easy to develop Wicket
> components, bear in mind that management (at least mine) is more easily
> convinced when presented with a wide selection of 3rd party component
> libraries, since that provides an alternative to allocating time and
> resources of our own developers. Thus, for them, the issue is decided more
> an economical merits, then on its design/architectural ones.

Always look at the facts, never just go on a hunch. What may sound
like common sense, especially from a managerial point of view, not
always is that sensible. In this case, while having a whole bunch of
standard components might sound good and sell well, you have to wonder
how much time it actually saves you. Very often you'll have to
customize components to exactly fit your needs. How hard is that, and
is it possible at all is something you need to look at. The fact that
component lib X has a datagrid component doesn't mean it fits your
needs. It might be inflexible or - when it is flexible - hard to use
because the API is big and clumsy.

The great thing about custom components is that extending a base
component often is just as easy or even easier than having to figure
out an of the shelf component that does it all but needs to be
configured for a specific use case. Also, because you'll make it fit
to your needs without having to do lots of configuration, you'll
likely avoid a lot of code duplication, and it might be easier to
optimize for specific cases because you can access internals more
easily.

> This is a classic advantage a standard solution usually offers - a thriving
> ecosystem. (than again, I've got to admit, I don't really know that much
> about JSF's ecosystem...).

And again, look at the facts. If you look past the marketing slogans
en count the available high quality components for the two frameworks,
I honestly don't think the difference is that huge. I actually expect
Wicket's community to do a bit better. And we don't need as many
components because extending a baseclass is very often a more
efficient way of customizing than designing complex components upfront
and guiding them through configuration.

> How many Wicket components are there, and how mature are there? Are there
> tables with sorting, filtering, scrolling, paging etc.? Are there
> tree-controls with all the typical tree-functions? Is there Ajax support, as
> well automatic fallback for non-javascript browsers (and what about comet)?

You'll have to do your homework here. It's simple, just check out the
Wicket core projects, and a bunch of wicket-stuff projects in your IDE
of choice, and look for an inheritance view (F4 in Eclipse) of the
Component class and see what components there are. We can't really
give meaningful numbers imho, because many components gradually go
from covering just base functionality to supporting very specific
functions (like TreeTable or tables with sorters and filter fields).
You should also consider doing the same thing for the IBehavior
interface, because often you can add behavior to a component through
behaviors.

Final remark... it seems that many people are always looking for
'winners' and 'losers'. Why don't you just take the projects you're
thinking off, see what you really need and match that with the
frameworks you're evaluating, and try to get a hunch of what it would
be like to actually do these projects with the frameworks so that you
can decide whether it would fit your needs?

Eelco

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



Re: Remove underline in OrderByBorder link

2008-08-07 Thread Igor Vaynberg
afaik it already does that :)

-igor

On Wed, Aug 6, 2008 at 11:38 PM, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> I think his problem is how to set add the class attribute. In addition,
> he probably want another class for each sort direction.
>
> Erik.
>
> [EMAIL PROTECTED] wrote:
>> td.mycss a { text-decoration: none;}
>>
>> -Igor
>>
>>
>> On 8/6/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>>> Erik:
>>>
>>> Thx, I agree.but how do I set the CSS for the link in the border and
>>> have that CSS changed when the sort changes?   By default the link has a
>>> void CSS while the Border CSS manages the sort changes, and I am not sure
>>> how to manage the link CSS.  The OrderByBorder hieracharchy is:
>>>
>>> Border (with CSS modifier)
>>>   --link (void CSS modifier)
>>>
>>> Which renders as
>>>
>>>  
>>>  .
>>>
>>> I haven't found an easy way to get to and manager the link part.
>>>
>>> If you have any ideas, let me know.
>>>
>>> Thx again,
>>>
>>> Joe C
>>>
>>>
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: why does ExternalLink generate instead of a simple

2008-08-07 Thread dukehoops



igor.vaynberg wrote:
> 
> you can add the link to a fragment, and then add the fragment to the
> column.
> 

I did the above and it worked like a charm. Thanks and -again - nice job on
the framework!

-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/why-does-ExternalLink-generate-%3Cspan%3E-instead-of-a-simple-%3Ca%3E-tp18841070p18865401.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: why does ExternalLink generate instead of a simple

2008-08-07 Thread Ladislav Thon
> I see, but in this case I didn't provide any markup. ExternalLink is being
> added in a PropertyColumn.populateItem method to a (cell) Item of
> PropertyColumn of a DataTable.



So see the markup of DataTable -- you are gonna see those spans there :-) As
Igor said, the easiest way is to use a Fragment (or Panel, as you wish).

LT


Re: Comparing JSF and Wicket

2008-08-07 Thread Eelco Hillenius
> Actually, when I said I googled a bit and found some material, I was in fact
> referring to your blog post and the slides :) This is very useful
> information, and your comparison was done, IMHO, very fairly and skillfully.
> However, as I said, this is from 2006, and I figured things may have
> changed. Obviously, Wicket has matured and improved, but for all I know - so
> did JSF probably.
>
> Are you still up-to-date with JSF nowadays? Would you still hold to the same
> opinion based on current offering of both frameworks?

If you really want to find out, nothing beats looking at it yourself.
Those articles could provide you with a framework, and you just have
to check whether the arguments hold today and whether you agree in the
first place. Or take a few evenings/ weekend and set up a little hobby
project yourself to see how the two frameworks 'feel' when you work
with them.

Eelco

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



Re: Comparing JSF and Wicket

2008-08-07 Thread nlif

Thanks Igor,

While it is very good to know that it's relatively easy to develop Wicket
components, bear in mind that management (at least mine) is more easily
convinced when presented with a wide selection of 3rd party component
libraries, since that provides an alternative to allocating time and
resources of our own developers. Thus, for them, the issue is decided more
an economical merits, then on its design/architectural ones.

This is a classic advantage a standard solution usually offers - a thriving
ecosystem. (than again, I've got to admit, I don't really know that much
about JSF's ecosystem...).

How many Wicket components are there, and how mature are there? Are there
tables with sorting, filtering, scrolling, paging etc.? Are there
tree-controls with all the typical tree-functions? Is there Ajax support, as
well automatic fallback for non-javascript browsers (and what about comet)?

Thanks again,
Naaman


igor.vaynberg wrote:
> 
> On Wed, Aug 6, 2008 at 2:13 AM, nlif <[EMAIL PROTECTED]> wrote:
>> Prior to posting here, I googled a bit, and found a
>> few forum-threads and blog posts on this topic, but most are from 1-2
>> years
>> ago and in framework years, this may be considered obsolete.
> 
> actually, imho, this is one of wicket's biggest advantages over jsf.
> jsf is a standard so it moves very slowly. wicket is a much more agile
> project and moves much faster.
> 
>> Also, supposedly JSF has a larger selection of 3rd party components
>> compared
>> to Wicket. Is this true? how often do you find yourself rolling your own
>> components and how hard is it to do so in Wicket (and I mean
>> non-trivial-good-looking-Ajax-enabled stuff).
> 
> actually i find myself creating components all the time, because it is
> so damn easy. trivial and non trivial, because wicket uses composition
> it is not that much harder to create components with complex
> interactions.
> 
> sure, jsf has plenty of components out there that offer high level
> things like data grids, etc, but so does wicket. the difference with
> wicket is this:
> 
> the other day i created a productlink component for our application.
> it is a simple component that builds an anchor that takes the user to
> the product page. it also adds proper css class based on whether the
> product is for sale or not and whether it is in or out of stock.
> 
> so now anytime someone needs to link to a product they simply do
> 
> add(new ProductLink("link", product)); and attach it to  whatever . the
> productlink can be embedded inside
> any other component just as easily and have any other component
> embedded in it as well.
> 
> i dont think jsf folks would bother creating anything so fine-grained,
> because although it is very useful there would be too much overhead
> and pain involved.
> 
> the problem is that jsf approaches web application development with a
> few roles in mind: the application developer and the component
> developer. the component developer is a smarter person that
> understands the intricacies of jsf. in wicket we do not assume the
> separation of roles, so our programming model is consistent and is
> optimized towards component creation.
> 
> my two cents
> 
> -igor
> 
> 
>>
>> Many thanks in advance.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Comparing-JSF-and-Wicket-tp18847208p18847208.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]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Comparing-JSF-and-Wicket-tp18847208p18865282.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: Facebook Wicket Integration

2008-08-07 Thread Benny Weingarten

Thanks Cao, but I don't see how this helps me.

Let me further explain my situation. 
1) I need to display links to the users of my facebook application. These
links are DYNAMIC, so I can't put them in the markup. I have to use some
sort of wicket Link component.

2) In your example, the URLs are relative URLs, as opposed to the absolute
URLs that I want to display to the user.

In my application, all the links (currently) are relative links, i.e. when I
hover over the link when the application is running in facebook, the URL
displayed at the bottom left corner of the screen is:
http:///
But I would want them to be:
http://apps.facebook.com//

My trouble with achieving this is described at my previous post on this
thread. Any further assistance on this matter would be appreciated.

thanks,
Benny.


caoanhkiet wrote:
> 
> I think you had come to
> http://wiki.developers.facebook.com/index.php/FBML.
> My demo use FBML's tab, for example:
> 
>   
>title='Invite' />
> 
> my package is src\reno that include all my page.
> 
> Sender
> Cao Anh Kiet
> website: http://www.renovationsoft.com
> 
> 
> Benny Weingarten wrote:
>> 
>> I am also trying to have restful URLs for my facebook application.
>> 
>> I have tried to follow the instruction here, but I got to a dead end.
>> Here is my declaration inside MyApp.java.init():
>> 
>>  QueryStringUrlCodingStrategy page1URLS = new
>> QueryStringUrlCodingStrategy(
>>  "page1",
>> Page1.class
>> );
>> mount(page1URLS);
>> 
>> QueryStringUrlCodingStrategy page2URLS = new
>> QueryStringUrlCodingStrategy(
>>  "http://apps.facebook.com/myapp/page2";,
>> Page2.class
>> );
>>  mount(page1URL2);
>> 
>> 
>> my application is run in an IFrame in facebook. when I use a
>> BookmarkablePageLink to link to page1 and page2, I get the following
>> urls:
>> page1: http://localhost:8080/some-directory/page1?some_param=29
>> page2: http://apps.facebook.com/bennyworkbook/page2?some_param=2
>> 
>> clicking page1 link works perfectly. however, If the link is bookmarked
>> or saved by the user, and accessed later, the application is loaded
>> outside the facebook realm. I would like the links to all point to
>> facebook, so bookmarking them would link to my application's page ON
>> FACEBOOK.
>> 
>> page2 link looks perfect, because it links to facebook. However, it
>> doesn't work. I get a 4040 with the following error:
>> "The requested resource (/page2) is not available."
>> 
>> any ideas how I can have all the links look like page2 link but work good
>> (link page1 link)?
>> 
>> thanks,
>> Benny.
>> 
>> 
>> caoanhkiet wrote:
>>> 
>>> Hi,
>>> I have been following
>>> http://cwiki.apache.org/WICKET/facebook-integration.html and version
>>> tomcat 5.5.25. and ran NullPointerException.
>>> 
>>> error at: client.friends_get();
>>> 
>>> SEVERE: Can't instantiate page using constructor public Login()
>>> org.apache.wicket.WicketRuntimeException: Can't instantiate page using
>>> constructor public Login()
>>> at
>>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:168)
>>> at
>>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
>>> at
>>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:92)
>>> at
>>> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:268)
>>> at
>>> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283)
>>> at
>>> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
>>> at
>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
>>> at
>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
>>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
>>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>>> at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
>>> at
>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11