[Wicket-user] cannot find wicket-fvalidate

2007-05-22 Thread Alex Objelean

I am very curious to analyze the existing wicket-fvalidate project.. but all
the reference to it are not valid.
Can somebody help me to find it?

Thank you! 
-- 
View this message in context: 
http://www.nabble.com/cannot-find-wicket-fvalidate-tf3794524.html#a10732301
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread Maurice Marrink
As far as i know the wicket session is mandatory in wicket but that
does not mean you have to use it to store information. Other then that
i see no reason why your proposed strategy should not work.

Maurice

On 5/22/07, craigdd [EMAIL PROTECTED] wrote:

 Basically what I want to do is set the internal error page to my own internal
 page, i.e. my login page, and add a message from the a resource bundle,
 .properties file, that includes an error code that is generated from an
 internal RuntimeException.  Another requirement is that a Session is
 optional, meaning that this should work with or without a Session.

 -Craig


 craigdd wrote:
 
  What is the best way to implement your own exception strategy in wicket
  1.3?  I want to add some added logic to my application when an unexcepted
  exception occurs.  During this added logic I want a handle on the page
  that is being redirected to, ie the internal error page.
 
  Thanks
  Craig
 

 --
 View this message in context: 
 http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Lec

Hie,

Apart from this suggested workaround - moving the API version to 1.3, is
there any other temporary way to give a component focus in the
AjaxRequestTarget. I realise if I replace the 1.2.6 version with 1.3.0  
API, there is alot of changes I need to make in the code and I prefer not to
trouble myself for now. Any other workaround to this? 


Johan Compagner wrote:
 
 AjaxRequestTarget has an own method now for giving a component focus:
 http://wicketstuff.org/wicket13doc/org/apache/wicket/ajax/AjaxRequestTarget.html
 
 
 On 5/21/07, Lec [EMAIL PROTECTED] wrote:


 That's what I did, but after clicking, I can't seems to link it to the
 component i want to

add( new AjaxSubmitButton(sendemail, this)
 {
 protected void onSubmit(AjaxRequestTarget
 target, Form form)
 {



 target.appendJavascript(document.getElementById(' +
 topCompoent.getMarkupId() + ').focus(););


 }
 });

 Tracing back the error, it said has no properties. what does that mean?


 Timo Rantalaiho wrote:
 
  On Mon, 21 May 2007, Lec wrote:
  component. But the thing now is that, button doesn't provide any
 method
  to
  set an anchor. How do we do that?
 
  Override Button.onSubmit()
 
  - Timo
 
  --
  Timo Rantalaiho   +358-45-6709709
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10715599
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10732457
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] [Fwd: Re: Wicket-Kronos-CMS repository locked on startup]

2007-05-22 Thread Daniel Stoch
Deleting the repository directory doesn't help. I have tried this
earlier, I think that a new repository is created by KronosApplication
and is immediately started and locked, so later a KronosSession cannot
start it again.

Best regards,
Daniel Stoch

On 5/21/07, Daniel Stoch [EMAIL PROTECTED] wrote:

 It's possible to delete the repository directory.
 When this is done it should work.

 best regards,

 Ted Roeloffzen


 2007/5/16, Daniel Stoch [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:

 Hi,

 I want to run a Wicket-Kronos-CMS on Tomcat. When I try to enter a
 home page I have an error:
 WicketMessage: Can't instantiate page using constructor public
 wicket.kronos.frontpage.Frontpage(wicket.PageParameters) and argument
 
 which is caused by:
 javax.jcr.RepositoryException: The repository home at repository
 appears to be in use since the file at repository\.lock is locked by
 another process.
 at
 
 org.apache.jackrabbit.core.RepositoryImpl.acquireRepositoryLock(RepositoryImpl.java:323)
 at org.apache.jackrabbit.core.RepositoryImpl
 .init(RepositoryImpl.java:198)
 at
 org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:484)
 at
 
 org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:241)

 at
 
 org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:261)
 at
 
 org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:329)
 at org.apache.jackrabbit.core.TransientRepository.login
 (TransientRepository.java:359)
 at wicket.kronos.KronosSession.getJCRSession(KronosSession.java:145)
 at wicket.kronos.frontpage.Frontpage.init(Frontpage.java:43)
 at java.lang.reflect.Constructor.newInstance (Constructor.java:494)

 At KronosApplication class there is a line 44:
 DataProcessor.repositoryStartup();
 which starts repository and makes a .lock. When I want to enter a
 Kronos home page in web browser then KronosSession.getJCRSession() is
 called and it wants to start a repository once again.

 Is it a bug or what do I wrong?
 Is there any documentation about this project?

 Best regards,
 Daniel Stoch

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


Re: [Wicket-user] Recommended way to localize messages with positional parameters?

2007-05-22 Thread Johan Compagner

see the method with the model param:

* @param model
*The model to use for property substitutions in the strings
*(optional)
   public String getString(final String key, final Component component,
final IModel model)
   throws MissingResourceException

johan

On 5/21/07, Dimitrio [EMAIL PROTECTED] wrote:


Hi All,

I need to display localized messages that use the standard Java approach
to message parameterization. What is the best way to achieve that in Wicket
by using Wicket's Localizer class?

For example, my resource file may look like this:

WelcomePage.properties:

message=Welcome back, {0}! You last logged in at {1,time} on {1,date}.

The resulting message needs to look somewhat like this:

Welcome back, Bob! You last logged in at 15:45 on 03.05.2007.


Thanks!
Dimitrio

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


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


Re: [Wicket-user] Add feedback message to internal error page.

2007-05-22 Thread Johan Compagner

there is always a Wicket Session.
That that session is stored or not in the http session is another question
(so yes the next request you could get a new one, if not stored previously)

johan


On 5/22/07, craigdd [EMAIL PROTECTED] wrote:



What if there is no Session available though?  Plus I need to make sure
there
is a Localizer available for internationalized messages.

-Craig


Eelco Hillenius wrote:

 I think using a flash message (add direcly to session, e.g.
 Session.get().info(hello)) and then an error page with a
 feedbackpanel should work.

 Eelco


 On 5/17/07, craigdd [EMAIL PROTECTED] wrote:

 In my application I'm overriding the default internal error page to my
 application's login page, however, I want to supply the user with a
 feedback
 panel message starting that something bad happened and include an error
 code
 from my internal runtime exception.

 What would be the proper way to go about this?  I was thinking about
 extending my login page but want to keep the same markup(.html), but I
 don't
 think that is possible.  I'm also looking into the various things you
can
 do
 with overriding or implementing IExceptionResponseStrategy but in the
end
 I
 don't really want to get rid of 90% of that default logic.

 Thanks
 Craig
 --
 View this message in context:

http://www.nabble.com/Add-feedback-message-to-internal-error-page.-tf3769482.html#a10657238
 Sent from the Wicket - User mailing list archive at Nabble.com.



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



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



--
View this message in context:
http://www.nabble.com/Add-feedback-message-to-internal-error-page.-tf3769482.html#a10729967
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Updating formComponents on round trip

2007-05-22 Thread Johan Compagner

if you call form.process() then all the values of the form are processed and
stored to the model
(if the onselectionchange was done with a hidden form submit)
but only form.clear() should clear all input that was stored as a temp
variable in the form components
and then when you rerender it the real model values are rendered.

johan


On 5/21/07, kubino [EMAIL PROTECTED] wrote:



I tried form.clear() also, but it did not do anything. I can see strange
behaviour in my example :

I put process(); in onselectionChanged method.

Now when I start the page, first model is set and selected.

Now, when I update the textfield and click the other radio button, screen
is
refreshed , first model is updated.

But the textfields are not refreshed, and when I change the textfields
again
the first model is updated again.

I cannot understand it, becouse the selectedModel property is updated well
and both textfields have a selectedModel property as nested object model.

Thanks.


Johan Compagner wrote:

 you need to clear the input of the fields:  Form.clearInput()



 On 5/19/07, kubino [EMAIL PROTECTED] wrote:


 Yes Igor, i tried, right in this example , I have added
 getForm().process();
 , but nothing happend. :-(

 Kubino



 igor.vaynberg wrote:
 
  have you tried:
 
  onselectionchanged() { form.process(); } ?
 
  -igor
 
 
  On 5/18/07, kubino [EMAIL PROTECTED] wrote:
 
 
  I made a functional code, so everyone can test it. What I want is
 that,
  when
  I click on radio button to automatically update textfields according
 to
  their model. I do NOT want to use method
 textField.setModelValue(String
  d)
  in onSelectionChanged method...
 
  Thanks for help.
 
 
  ///html
 
  html
  head
  /head
  body
 
  form wicket:id=myForm
 
  table
 
 
 
  tr wicket:id=table
  tdinput type=radio
  wicket:id=sys_radio //td
  td wicket:id=sys_name /td
  td wicket:id=sys_desc /td
  /tr
 
 
 
  /table
 
  input type=text wicket:id=textFieldName /
  input type=text wicket:id=textFieldDesc /
 
  /form
 
  /body
  /html
 
 
  // Wicket page
 
 
  import java.io.Serializable;
  import java.util.Arrays;
  import java.util.List;
 
  import wicket.markup.html.basic.Label;
  import wicket.markup.html.form.Form;
  import wicket.markup.html.form.Radio;
  import wicket.markup.html.form.RadioGroup;
  import wicket.markup.html.form.TextField;
  import wicket.markup.html.list.ListItem;
  import wicket.markup.html.list.ListView;
  import wicket.model.PropertyModel;
 
 
  public class TestPage extends WebPage {
 
 
private ListSystemM systems = Arrays.asList(new
  SystemM(aa,aa),new
  SystemM(bb,bb),new SystemM(cc,cc));
 
 
private SystemM selectedSystem;
 
 
public TestPage() {
 
  Form myForm = new Form(myForm);
 
  selectedSystem = systems.get(0);
 
 
  RadioGroup radioGroup = new RadioGroup(radioGroup,new
  PropertyModel(this,selectedSystem)) {
 
 
@Override
protected boolean wantOnSelectionChangedNotifications() {
  return true;
}
 
@Override
protected void onModelChanging() {
 
}
 
@Override
protected void onSelectionChanged(Object arg0) {
 
}
  };
 
ListView table = new ListView(table, systems) {
 
 
@Override
protected void populateItem(final ListItem item) {
 
  final SystemM model = (SystemM)item.getModelObject();
 
item.add(new Radio(sys_radio,item.getModel()));
item.add(new Label(sys_name,model.getName()));
item.add(new Label(sys_desc,model.getDesc()));
 
  }
  };
 
 
  TextField nameTextField = new TextField(textFieldName,new
  PropertyModel(selectedSystem,name));
  TextField descTextField = new TextField(textFieldDesc,new
  PropertyModel(selectedSystem,desc));
 
  radioGroup.add(table);
 
  myForm.add(radioGroup);
 
  myForm.add(nameTextField);
  myForm.add(descTextField);
 
  add(myForm);
 
  }
 
public class SystemM implements Serializable{
 
  private String name;
  private String desc;
 
  /**
   *
   */
  public SystemM(String n, String d) {
 
this.name = n;
this.desc = d;
 
  }
 
  public String getName() {
return name;
  }
  public void setName(String name) {
this.name = name;
  }
  public String getDesc() {
return desc;
  }
  public void setDesc(String desc) {
this.desc = desc;
  }
 
 
 
}
 
public SystemM getSelectedSystem() {
  return selectedSystem;
}
 
public void setSelectedSystem(SystemM selectedSystem) {
  this.selectedSystem = selectedSystem;
}
 
 
  }
  --
  View this message in context:
 

http://www.nabble.com/Updating-formComponents-on-round-trip-tf3770603.html#a10677724
  Sent from the Wicket - User 

[Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Florian Hehlen
Hi all,

I am looking for help presenting wicket to my development team.

1-Has anyone out there had to defend wicket vs. struts and would you 
have any resources/links/presentations to pass this way to help in 
presenting wicket to our group?

2-Has anyone made any measurements/analysis of the code-base needed for 
identical application in wicket vs. struts(or any other framework)

3-Objectively, I am also looking for what wicket is weak at.

florian

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


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-22 Thread Martin Funk
Hi Jonathan,

developing against a recent trunk I made a strange obeservation which 
might be connected to this.

I have a page with several wicketAjaxGet calls. Some of em work fine. 
The others behave strange, if clicked/called right after the page was 
loaded they are answered with a Page Expired. If called after some other 
fine working ones were called, those strange ones behaved just as expected.

Loading the page wicket complained with a:
ERROR org.apache.wicket.RequestCycle - the requested resource was not found
org.apache.wicket.WicketRuntimeException: the requested resource was not 
found
at 
org.apache.wicket.util.resource.WebExternalResourceStream.getInputStream(WebExternalResourceStream.java:99)

The page was delivered to the client without any warnings on the client 
side.

The missing resource was a 'style.css'.

After I took care of that the Page worked fine, all wicketAjaxGet calls 
worked as expected.
BTW, could someone please take care of: 
https://issues.apache.org/jira/browse/WICKET-582

Debugging the problem I noticed that Page Expired was given cause of 
line 114 in WebRequestCycleProcessor:
// the page is no longer the active page
// - ignore this request
processRequest = false;
Beyond this a breakpoint on AccessStackPageMap [line: 284] - put(Page) 
showed that on initial load of the page the page itself was put on the 
AccessStack and right after this an ExceptionErrorPage was put on that 
stack.
The ExceptionErrorPage.id was the page.id incremented by one.

And this is the point were I got lost. Maybe someone else has a better 
overview.

Martin

Jonathan Locke schrieb:
 Did we find a resolution for this yet?  We are having the same problem in
 Wicket 1.3 trunk and I'm about to start investigating.  Any definite
 information or conclusions (whether complete or not) would be very much
 appreciated.


 Andrew Berman wrote:
   
 I am having a strange issue.  If I access my site for the first time (I
 clear all cookies, sessions, and cache before going to the site), the page
 comes up fine.  However, if I click one of the AJAX links, I get a page
 expired error.  Any thoughts why this is happening?  I see it create a new
 session and the cookie, but it looks like the Ajax link is not valid for
 some reason.  I am using Wicket 1.2.6.  Any thoughts?

 Thanks for any help,

 Andrew

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


 

   


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


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Gerolf Seitz

you could try to invoke the click eventhandler, that is onclick(). i tried
it on a simple example and got the same error with click() in firefox.
onclick() worked like a charm.

hth,
 gerolf

On 5/22/07, Lec [EMAIL PROTECTED] wrote:



This portion of code works in IE

public void onClick( AjaxRequestTarget target )
{
target.appendJavascript(document.getElementById
('paragraph').click();)
}

but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it said
ERROR: Exception evaluating javascript: TypeError:
document.getElementById(paragraph).click is not a function

Is this a bug?


igor.vaynberg wrote:

 you do this using javascript, no roundtrip to the server is required.
see
 some smooth scroll javascripts on the net.

 -igor


 On 5/21/07, Lec [EMAIL PROTECTED] wrote:


 Im trying to figure out a way to make button behave as if it's like a
 link
 component upon clicked. I want a button to archieve the same behaviour
as
 link, and upon clicked, a particular html region will be focused or
 displayed, just like the same behaviour when you setAnchor in link
 component. But the thing now is that, button doesn't provide any method
 to
 set an anchor. How do we do that?

 --
 View this message in context:

http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10714844
 Sent from the Wicket - User mailing list archive at Nabble.com.



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



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



--
View this message in context:
http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10733403
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Johan Compagner

can't you make 2 prototypes of the same application with your team and then
see how it works?




3-Objectively, I am also looking for what wicket is weak at.




hope you have a magnifying glass with you then because that is ofcourse hard
to find ;)
But most people would say i guess use of session memory. But we manage that
for you
and in 1.3 this is much lighter then before. And i have seen struts apps
that did take
1MB of session memory and most of the time that where also leaks because of
session objects
that wheren't cleaned correctly because the developer needed some state from
Page X to Page Y.
but forgot to clean it up or the user never got to Page Y.

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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Florian Hehlen

Hi,

Thanks for the feedback. We are contemplating doing some prototyping. I 
am currently implementing a small application within the group with 
wicket but it is not clear weather we will have the time to do the same 
for struts. On the other hand most people in the group have some level 
of experience with struts.


When is 1.3 being released?

regards,
florian

Johan Compagner wrote:
can't you make 2 prototypes of the same application with your team and 
then see how it works?




3-Objectively, I am also looking for what wicket is weak at.



hope you have a magnifying glass with you then because that is 
ofcourse hard to find ;)
But most people would say i guess use of session memory. But we manage 
that for you
and in 1.3 this is much lighter then before. And i have seen struts 
apps that did take
1MB of session memory and most of the time that where also leaks 
because of session objects
that wheren't cleaned correctly because the developer needed some 
state from Page X to Page Y.

but forgot to clean it up or the user never got to Page Y.

johan



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


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


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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Erik van Oosten

Hi Florian,

1- I am surprised you want to compare against Struts. Almost any modern web
framework will kick ass compared to Struts.

2- I know only of one. It is the first article on this page on the wiki:
http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a very
nice comparison of Wicket and JSF listings. Its a simple application, you
can easily image how to do it in Struts.

3- Wicket is weak at sites that need to handle millions of hits per minute
(not many frameworks are good at this). Wicket is also not very good if you
need absolute and complete control on the format of your URLs. These are
both extremes. I think Wicket will do very well for at least 90% of the web
applications.

Good luck,
Erik. 


Florian Hehlen-2 wrote:
 
 Hi all,
 
 I am looking for help presenting wicket to my development team.
 
 1-Has anyone out there had to defend wicket vs. struts and would you 
 have any resources/links/presentations to pass this way to help in 
 presenting wicket to our group?
 
 2-Has anyone made any measurements/analysis of the code-base needed for 
 identical application in wicket vs. struts(or any other framework)
 
 3-Objectively, I am also looking for what wicket is weak at.
 
 florian
 

-- 
View this message in context: 
http://www.nabble.com/wicket-vs.-struts-presentation-tf3795289.html#a10735587
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Upayavira
Florian Hehlen wrote:
 Hi all,
 
 I am looking for help presenting wicket to my development team.
 
 1-Has anyone out there had to defend wicket vs. struts and would you 
 have any resources/links/presentations to pass this way to help in 
 presenting wicket to our group?
 
 2-Has anyone made any measurements/analysis of the code-base needed for 
 identical application in wicket vs. struts(or any other framework)
 
 3-Objectively, I am also looking for what wicket is weak at.

Check out:

http://static.raibledesigns.com/repository/presentations/ComparingJavaWebFrameworks.pdf

It gives a reasonable analysis of the frameworks out there. Note that 
Matt had only been using wicket for a weekend when writing this, and he 
admitted that the wicket cons that he mentioned there were actually 
pros, but he had to put some 'con's down!

As to what I wouldn't use wicket for? Wicket is a tool for building 
sites with complex user interfaces, to manage user interaction. If you 
needed to serve large amounts of content from a backend store to 
anonymous users, Wicket wouldn't seem the obvious choice (however it 
might be for the app that manages that content).

Regards, Upayavira

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


[Wicket-user] newbie - getting a null AjaxRequestTarget

2007-05-22 Thread sf

Hi,

When I try to deploy my wicket application in Liferay, ajax doesnt seem to
work.
eventhough the default value of ajaxable in Liferay is true, I get a null
AjaxRequestTarget on the onclick event of my AjaxFallbackLink.

can anyone advise what to do?

Thanks,

-- 
View this message in context: 
http://www.nabble.com/newbie---getting-a-null-AjaxRequestTarget-tf3795611.html#a10735611
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Florian Hehlen

Hi,

the reason we are comparing to Struts is that that's one of the 
contender. We are not a web-app shop. We need a general purpose toolkit 
for intranet development. But since struts is so popular it's being 
pitted against wicket.


Florian

Erik van Oosten wrote:

Hi Florian,

1- I am surprised you want to compare against Struts. Almost any modern web
framework will kick ass compared to Struts.

2- I know only of one. It is the first article on this page on the wiki:
http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a very
nice comparison of Wicket and JSF listings. Its a simple application, you
can easily image how to do it in Struts.

3- Wicket is weak at sites that need to handle millions of hits per minute
(not many frameworks are good at this). Wicket is also not very good if you
need absolute and complete control on the format of your URLs. These are
both extremes. I think Wicket will do very well for at least 90% of the web
applications.

Good luck,
Erik. 



Florian Hehlen-2 wrote:
  

Hi all,

I am looking for help presenting wicket to my development team.

1-Has anyone out there had to defend wicket vs. struts and would you 
have any resources/links/presentations to pass this way to help in 
presenting wicket to our group?


2-Has anyone made any measurements/analysis of the code-base needed for 
identical application in wicket vs. struts(or any other framework)


3-Objectively, I am also looking for what wicket is weak at.

florian




  


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


[Wicket-user] Feedbackmessages: extend by new type ALERT ?

2007-05-22 Thread Harald Gruber
hi all,

i was just wondering, if other users might have thought about the usefulness of 
extending FeedbackMessages by a new type ALERT
(and the according classes (Component.alert(message)...).

The reason for this would be, to provide the user special feedback shown 
through a javascript alert (or popup window)
and still have feedbackpanels for errorreporting in a page.

a simple component for showing alertmessages using javascript-alert is included 
in this message.

opinions welcome,

harald

--- FeedbackAlertPanel.java 
package rd.wicket;

import java.util.Iterator;
import java.util.List;

import org.apache.wicket.feedback.FeedbackMessage;
import org.apache.wicket.feedback.FeedbackMessagesModel;
import org.apache.wicket.feedback.IFeedbackMessageFilter;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.AbstractReadOnlyModel;

public class FeedbackAlertPanel extends Panel {
private static final long serialVersionUID = 1L;

public FeedbackAlertPanel(String id) {
this(id, new AlertFeedbackMessageFilter());
}

public FeedbackAlertPanel(String id, final IFeedbackMessageFilter 
feedbackMessageFilter) {
super(id);
FeedbackMessagesModel model = new FeedbackMessagesModel(this);
model.setFilter(feedbackMessageFilter);
setModel(model);
Label script = new Label(script, new AbstractReadOnlyModel() {

private static final long serialVersionUID = 1L;

@Override
public Object getObject() {
return getScriptBody();
}

});
script.setEscapeModelStrings(false);
add(script);
}

public boolean isVisible() {
return !((List) getModelObject()).isEmpty();
}

private String getScriptBody() {
StringBuffer sb = new StringBuffer();
sb.append(Wicket.Event.add(window, \load\, function() { 
showFeedbackAlert(); });\n);
sb.append(function showFeedbackAlert() { alert(');
List messages = (List) getModelObject();
for (Iterator it = messages.iterator(); it.hasNext();) {
FeedbackMessage message = (FeedbackMessage) it.next();
message.markRendered();
sb.append(message.getMessage());
sb.append(\\n);
}
sb.append('););
sb.append(};);
return sb.toString();
}

}


-- FeedbackAlertPanel.html 
wicket:panel
script type=text/javascript wicket:id=script/script
/wicket:panel

-- AlertFeedbackMessageFilter.java 

import org.apache.wicket.feedback.FeedbackMessage;
import org.apache.wicket.feedback.IFeedbackMessageFilter;

public class AlertFeedbackMessageFilter implements IFeedbackMessageFilter {

private static final long serialVersionUID = 1L;

public boolean accept(FeedbackMessage message) {
return message.getLevel() == FeedbackMessage.ALERT;
}

}



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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Upayavira
Florian Hehlen wrote:
 Hi,
 
 the reason we are comparing to Struts is that that's one of the 
 contender. We are not a web-app shop. We need a general purpose toolkit 
 for intranet development. But since struts is so popular it's being 
 pitted against wicket.

The thing I took from Matt's talk was that even if you are going to use 
Struts, you shouldn't use Struts 1 - Struts 2 is a much better framework.

Thus, compared against struts itself, struts 1 is itself outdated.

Upayavira

 Erik van Oosten wrote:
 Hi Florian,

 1- I am surprised you want to compare against Struts. Almost any modern web
 framework will kick ass compared to Struts.

 2- I know only of one. It is the first article on this page on the wiki:
 http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a very
 nice comparison of Wicket and JSF listings. Its a simple application, you
 can easily image how to do it in Struts.

 3- Wicket is weak at sites that need to handle millions of hits per minute
 (not many frameworks are good at this). Wicket is also not very good if you
 need absolute and complete control on the format of your URLs. These are
 both extremes. I think Wicket will do very well for at least 90% of the web
 applications.

 Good luck,
 Erik. 


 Florian Hehlen-2 wrote:
   
 Hi all,

 I am looking for help presenting wicket to my development team.

 1-Has anyone out there had to defend wicket vs. struts and would you 
 have any resources/links/presentations to pass this way to help in 
 presenting wicket to our group?

 2-Has anyone made any measurements/analysis of the code-base needed for 
 identical application in wicket vs. struts(or any other framework)

 3-Objectively, I am also looking for what wicket is weak at.

 florian

 

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


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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Johan Compagner

wicket is a very good fit for intranet development.
I think it is mostly used in that kind of webapps.

johan


On 5/22/07, Florian Hehlen [EMAIL PROTECTED] wrote:


 Hi,

the reason we are comparing to Struts is that that's one of the contender.
We are not a web-app shop. We need a general purpose toolkit for intranet
development. But since struts is so popular it's being pitted against
wicket.

Florian

Erik van Oosten wrote:

Hi Florian,

1- I am surprised you want to compare against Struts. Almost any modern web
framework will kick ass compared to Struts.

2- I know only of one. It is the first article on this page on the wiki:
http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a very
nice comparison of Wicket and JSF listings. Its a simple application, you
can easily image how to do it in Struts.

3- Wicket is weak at sites that need to handle millions of hits per minute
(not many frameworks are good at this). Wicket is also not very good if you
need absolute and complete control on the format of your URLs. These are
both extremes. I think Wicket will do very well for at least 90% of the web
applications.

Good luck,
Erik.


Florian Hehlen-2 wrote:

 Hi all,

I am looking for help presenting wicket to my development team.

1-Has anyone out there had to defend wicket vs. struts and would you
have any resources/links/presentations to pass this way to help in
presenting wicket to our group?

2-Has anyone made any measurements/analysis of the code-base needed for
identical application in wicket vs. struts(or any other framework)

3-Objectively, I am also looking for what wicket is weak at.

florian



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


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


[Wicket-user] Problem with wicket's WebSession objects. Memory leakage?

2007-05-22 Thread -Vlad-

Hi,all.
I've just noted the fact that after the session timeout time there is a call
to the MyWebApplication.sessionDestroyed(String sessionId) method, as it is
supposed to be. 
This method removes data from responce buffer, and that is all.
WebSession object remains in the JVM heap(Tested by means of JProfiler). And
the number of these objects grows as users' http sessions expire. How can I
remove all references to the wicket's webSession object when it expires?
-- 
View this message in context: 
http://www.nabble.com/Problem-with-wicket%27s-WebSession-objects.-Memory-leakage--tf3796071.html#a10736960
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread severian

I'm not sure that what I describe here is possible, but if it is, I'd be
grateful if someone could point me in the right direction.

I'd like to allow template designers to give some default text for a lable,
e.g.:
label wicket:id=myLabelDefaultValue/label

And I'd then like to be able to either leave that text untouched, or append
it with a * character, depending on some other criteria that I can query
in the Page class.  But I can't find a way to make wicket retain the
template value (DefaultValue), never mind let me append other characters.

I was hoping (for example) that I could derive a class from Label and play
some tricks with onComponentTagBody/replaceComponentTagBody.  But it looks
like the templateValue (DefaultValue) is not available to me.

Am I missing something?  Or does Wicket throw away the Label text set in
the template before I have a chance to do anything with it?
-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10737105
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Problem with wicket's WebSession objects. Memory leakage?

2007-05-22 Thread Johan Compagner

who does keep the websessions? Can't you see that in your profiler?
we don't hold reference to the object itself anywhere in the code except
when handling a request itself.

johan


On 5/22/07, -Vlad- [EMAIL PROTECTED] wrote:



Hi,all.
I've just noted the fact that after the session timeout time there is a
call
to the MyWebApplication.sessionDestroyed(String sessionId) method, as it
is
supposed to be.
This method removes data from responce buffer, and that is all.
WebSession object remains in the JVM heap(Tested by means of JProfiler).
And
the number of these objects grows as users' http sessions expire. How can
I
remove all references to the wicket's webSession object when it expires?
--
View this message in context:
http://www.nabble.com/Problem-with-wicket%27s-WebSession-objects.-Memory-leakage--tf3796071.html#a10736960
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread Erik van Oosten

You can change the template to:

DefaultValue label wicket:id=marked*/label

In the java code you do something like:

add(new WebMarkupContainer(marked).setVisible(condition));

Regards,
Erik.



severian wrote:
 
 I'm not sure that what I describe here is possible, but if it is, I'd be
 grateful if someone could point me in the right direction.
 
 I'd like to allow template designers to give some default text for a
 lable, e.g.:
 label wicket:id=myLabelDefaultValue/label
 
 And I'd then like to be able to either leave that text untouched, or
 append it with a * character, depending on some other criteria that I
 can query in the Page class.  But I can't find a way to make wicket retain
 the template value (DefaultValue), never mind let me append other
 characters.
 
 I was hoping (for example) that I could derive a class from Label and play
 some tricks with onComponentTagBody/replaceComponentTagBody.  But it looks
 like the templateValue (DefaultValue) is not available to me.
 
 Am I missing something?  Or does Wicket throw away the Label text set in
 the template before I have a chance to do anything with it?
 

-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10737326
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Lec

How do you invoke the eventhandler onclick() within  public void onClick(
AjaxRequestTarget target ) and why would you want to do that for? 


Gerolf Seitz wrote:
 
 you could try to invoke the click eventhandler, that is onclick(). i tried
 it on a simple example and got the same error with click() in firefox.
 onclick() worked like a charm.
 
 hth,
   gerolf
 
 On 5/22/07, Lec [EMAIL PROTECTED] wrote:


 This portion of code works in IE

 public void onClick( AjaxRequestTarget target )
 {
 target.appendJavascript(document.getElementById
 ('paragraph').click();)
 }

 but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it said
 ERROR: Exception evaluating javascript: TypeError:
 document.getElementById(paragraph).click is not a function

 Is this a bug?


 igor.vaynberg wrote:
 
  you do this using javascript, no roundtrip to the server is required.
 see
  some smooth scroll javascripts on the net.
 
  -igor
 
 
  On 5/21/07, Lec [EMAIL PROTECTED] wrote:
 
 
  Im trying to figure out a way to make button behave as if it's like a
  link
  component upon clicked. I want a button to archieve the same behaviour
 as
  link, and upon clicked, a particular html region will be focused or
  displayed, just like the same behaviour when you setAnchor in link
  component. But the thing now is that, button doesn't provide any
 method
  to
  set an anchor. How do we do that?
 
  --
  View this message in context:
 
 http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10714844
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10733403
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10737393
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread severian

Thanks for that Erik, I may well have to go with that if there are no other
suggestions.  But I'm still keen to learn if I can keep the Label text once
I add a wicket:id attribute to the label markup.

I may, for example, have to change (later in development) the label-marking
mechanism.  So, instead of adding a * character, I may have to colour the
label red, or add a border, or whatever.  So I was looking for a way to
centralise the label-marking mechanism in java, with no impact on the
markup, to make such a change as easy as possible.

I figured the best way to do this was just to make the whole label a wicket
component, so that I could manipulate it however I liked in java.  But doing
that seems to lose the label text altogether...
-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10737498
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread severian

Thanks again Erik.  Using WebMarkupContainer rather than Label certainly
seems to help in terms of retaining the template text.  Butusing your
specified markup:
Default Label

Is there a way (without further altering the markup) to end up with output
which looks like:
Default Label*

I'd be happy with any non-DHTML mechanism at all (adding style as behaviour,
over-riding onComponentTagBody etc)!  Your original suggestion (having
another component whose visibility I control) means further markup
modification, which I'd like to avoid if possible.

Severian.
-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10738421
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread severian

OK Erik, it seems like the following works:

class MyContainer extends WebMarkupContainer {
public MyContainer(String id) {
super(id);
}

@Override
protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag) {
super.onComponentTagBody(markupStream, openTag);
getResponse().write(*);
}
}

I'm happy with this solution, unless anyone tells me otherwise.  I can
easily change MyContainer to add a style (or whatever) as my requirements
change, without touching the markup.

Thanks again,
Severian.
-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10738690
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread Erik van Oosten

Well, actually, I like that solution.

 Erik.


severian wrote:
 
 OK Erik, it seems like the following works:
 
 class MyContainer extends WebMarkupContainer {
 public MyContainer(String id) {
 super(id);
 }
 
 @Override
 protected void onComponentTagBody(final MarkupStream markupStream,
 final ComponentTag openTag) {
 super.onComponentTagBody(markupStream, openTag);
 getResponse().write(*);
 }
 }
 
 I'm happy with this solution, unless anyone tells me otherwise.  I can
 easily change MyContainer to add a style (or whatever) as my requirements
 change, without touching the markup.
 
 Thanks again,
 Severian.
 

-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10738893
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread Johan Compagner

in 1.3 you could if you want use a IComponentBorder for that.

johan

On 5/22/07, severian [EMAIL PROTECTED] wrote:



OK Erik, it seems like the following works:

class MyContainer extends WebMarkupContainer {
public MyContainer(String id) {
super(id);
}

@Override
protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag) {
super.onComponentTagBody(markupStream, openTag);
getResponse().write(*);
}
}

I'm happy with this solution, unless anyone tells me otherwise.  I can
easily change MyContainer to add a style (or whatever) as my requirements
change, without touching the markup.

Thanks again,
Severian.
--
View this message in context:
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10738690
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread Jean-Baptiste Quenot
* craigdd:

 I'm wondering if there are any  other hooks that I can implement
 that leaves the respond method  alone but have the exception and
 internal page available.

Have a look at ExceptionErrorPage and IExceptionSettings
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread Martijn Dashorst
This seems more like a stylesheet problem than a text generation
problem. Do /you/ need to change the way things are presented or your
designer?

In stylesheets you can add a * before or after some markup tag, or
make the border red, or have a line under it, or make the text larger.

Martijn

On 5/22/07, severian [EMAIL PROTECTED] wrote:

 OK Erik, it seems like the following works:

 class MyContainer extends WebMarkupContainer {
 public MyContainer(String id) {
 super(id);
 }

 @Override
 protected void onComponentTagBody(final MarkupStream markupStream,
 final ComponentTag openTag) {
 super.onComponentTagBody(markupStream, openTag);
 getResponse().write(*);
 }
 }

 I'm happy with this solution, unless anyone tells me otherwise.  I can
 easily change MyContainer to add a style (or whatever) as my requirements
 change, without touching the markup.

 Thanks again,
 Severian.
 --
 View this message in context: 
 http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10738690
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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

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


Re: [Wicket-user] Problem with wicket's WebSession objects. Memory leakage?

2007-05-22 Thread -Vlad-

Thanks for the help, Johan.
I know that you stores wicket session in HttpSession(as atribute), provided
by container.
JProfiler shows that some PageMap keeps this. I've tried to get the root of
reference chain but failed due to constant JProfiler error. 
Can it be possible that some pagemap instance is stored not in the wicket
Session?
I have my custom transient object in wicket session, it is detached and
attached when the corresponing methods of the session is called. This object
contains some components(extends Component) and models(extends Model), which
I use on different pages (Is it a good practice?). 

And I also mentioned that 'sessionDestroyed' method doesn't involve calling
to 'session.invalidate()' method!

But...
I've overriden SessionStore, and I call session.invalidate() forcedly when
my SessionStore.onUnbind(String sessionId) method is invoked. After that
session is GC-ed. But I don't understand why?
-- 
View this message in context: 
http://www.nabble.com/Problem-with-wicket%27s-WebSession-objects.-Memory-leakage--tf3796071.html#a10739385
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread severian

Martijn

In principle, I agree.  In practise, however, I understand that the css
selector that lets you append text is not supported by all browsers, and
specifically not by IE6 (I'd be delighted if I was wrong about this).  Which
is why I've been trying to find a maintainable Java solution...

Severian.
-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10739409
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] cannot find wicket-fvalidate

2007-05-22 Thread Eelco Hillenius
It should be in sourceforge's wicket-stuff repository somewhere.

Eelco

On 5/22/07, Alex Objelean [EMAIL PROTECTED] wrote:

 I am very curious to analyze the existing wicket-fvalidate project.. but all
 the reference to it are not valid.
 Can somebody help me to find it?

 Thank you!
 --
 View this message in context: 
 http://www.nabble.com/cannot-find-wicket-fvalidate-tf3794524.html#a10732301
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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


Re: [Wicket-user] Problem with wicket's WebSession objects. Memory leakage?

2007-05-22 Thread Johan Compagner

pagemaps are also stored in the httpsession (not in the wicket session)

if the httpsession is destroyed then invalidate on the wicket session
shouldn't be called
because invalidate call on the wicket session does invalidate on the http
session, thats its purpose
but the http session is already invalidated (or it is busy
invalidating/destroying itself)

that call back is purely so that we can cleanup something that we store by
the session id
(the response buffers but that is very unlikely that they are kept around
and the request logger is notified)

use yourkit to profile:http://www.yourkit.com/


On 5/22/07, -Vlad- [EMAIL PROTECTED] wrote:



Thanks for the help, Johan.
I know that you stores wicket session in HttpSession(as atribute),
provided
by container.
JProfiler shows that some PageMap keeps this. I've tried to get the root
of
reference chain but failed due to constant JProfiler error.
Can it be possible that some pagemap instance is stored not in the wicket
Session?
I have my custom transient object in wicket session, it is detached and
attached when the corresponing methods of the session is called. This
object
contains some components(extends Component) and models(extends Model),
which
I use on different pages (Is it a good practice?).

And I also mentioned that 'sessionDestroyed' method doesn't involve
calling
to 'session.invalidate()' method!

But...
I've overriden SessionStore, and I call session.invalidate() forcedly when
my SessionStore.onUnbind(String sessionId) method is invoked. After that
session is GC-ed. But I don't understand why?
--
View this message in context:
http://www.nabble.com/Problem-with-wicket%27s-WebSession-objects.-Memory-leakage--tf3796071.html#a10739385
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Feedbackmessages: extend by new type ALERT ?

2007-05-22 Thread Eelco Hillenius
I see it's a nice idea, but I'm afraid Wicket gets too messy if we'd
support two distinct message models like that. I don't know... maybe
you can open up a feature request for it and we can have it open for
discussion there? I think that the proper class to build something
like this in would be Session btw.

Eelco


On 5/22/07, Harald Gruber [EMAIL PROTECTED] wrote:
 hi all,

 i was just wondering, if other users might have thought about the usefulness 
 of extending FeedbackMessages by a new type ALERT
 (and the according classes (Component.alert(message)...).

 The reason for this would be, to provide the user special feedback shown 
 through a javascript alert (or popup window)
 and still have feedbackpanels for errorreporting in a page.

 a simple component for showing alertmessages using javascript-alert is 
 included in this message.

 opinions welcome,

 harald

 --- FeedbackAlertPanel.java 
 package rd.wicket;

 import java.util.Iterator;
 import java.util.List;

 import org.apache.wicket.feedback.FeedbackMessage;
 import org.apache.wicket.feedback.FeedbackMessagesModel;
 import org.apache.wicket.feedback.IFeedbackMessageFilter;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.panel.Panel;
 import org.apache.wicket.model.AbstractReadOnlyModel;

 public class FeedbackAlertPanel extends Panel {
 private static final long serialVersionUID = 1L;

 public FeedbackAlertPanel(String id) {
 this(id, new AlertFeedbackMessageFilter());
 }

 public FeedbackAlertPanel(String id, final IFeedbackMessageFilter 
 feedbackMessageFilter) {
 super(id);
 FeedbackMessagesModel model = new FeedbackMessagesModel(this);
 model.setFilter(feedbackMessageFilter);
 setModel(model);
 Label script = new Label(script, new 
 AbstractReadOnlyModel() {

 private static final long serialVersionUID = 1L;

 @Override
 public Object getObject() {
 return getScriptBody();
 }

 });
 script.setEscapeModelStrings(false);
 add(script);
 }

 public boolean isVisible() {
 return !((List) getModelObject()).isEmpty();
 }

 private String getScriptBody() {
 StringBuffer sb = new StringBuffer();
 sb.append(Wicket.Event.add(window, \load\, function() { 
 showFeedbackAlert(); });\n);
 sb.append(function showFeedbackAlert() { alert(');
 List messages = (List) getModelObject();
 for (Iterator it = messages.iterator(); it.hasNext();) {
 FeedbackMessage message = (FeedbackMessage) it.next();
 message.markRendered();
 sb.append(message.getMessage());
 sb.append(\\n);
 }
 sb.append('););
 sb.append(};);
 return sb.toString();
 }

 }


 -- FeedbackAlertPanel.html 
 wicket:panel
 script type=text/javascript wicket:id=script/script
 /wicket:panel

 -- AlertFeedbackMessageFilter.java 

 import org.apache.wicket.feedback.FeedbackMessage;
 import org.apache.wicket.feedback.IFeedbackMessageFilter;

 public class AlertFeedbackMessageFilter implements IFeedbackMessageFilter {

 private static final long serialVersionUID = 1L;

 public boolean accept(FeedbackMessage message) {
 return message.getLevel() == FeedbackMessage.ALERT;
 }

 }

 

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


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


Re: [Wicket-user] Accessing Template Value of a Label

2007-05-22 Thread Martijn Dashorst
On 5/22/07, severian [EMAIL PROTECTED] wrote:
 specifically not by IE6 (I'd be delighted if I was wrong about this).

Not having touched IE in over a year I am of no use in this regard :).

 Which is why I've been trying to find a maintainable Java solution...

In the very least I would make it a custom component, so you don't
have that functionality spread across your whole app. Then when IE6
finally dies and withers away you only have to change one component
:).

Martijn


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

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


Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Eelco Hillenius
 1-Has anyone out there had to defend wicket vs. struts and would you
 have any resources/links/presentations to pass this way to help in
 presenting wicket to our group?

Yeah, a million times now :) Seriously, I think you can find quite a
bit googling (use model 2 vs wicket or something) or searching the
mailing list.

In a nutshell, imho disadvantages of Struts (and all model 2
frameworks like SpringMVC etc) are:
* no reuse
* no state management (making things like pageable lists etc and self
contained components tedious)
* no good abstractions (just actions in the scope of requests)
* no clean separation of presentation and logic (as with Struts you'd
use JSP or something similar)
* encourages bad coding practices (lots of hacks needed to get
something of any complexity done and coding with actions and page
flows is basically back to procedural programming again).

etc etc

 3-Objectively, I am also looking for what wicket is weak at.

It depends on how familiar you are with Wicket and whether you think
the alternatives are better. If you like to script in pages (like
you'd do with JSPs) Wicket is probably not for you. More of a taste
matter though. Then there's the fact that by default it uses server
memory. But that's easy to get around, and imho even if you use
stateless pages, forms and links for your whole application with
Wicket, which is a less nice and limited way to use Wicket, you'd
still have a nicer programming model than, say, Struts.

My2c (I can go on for a bit, but out of time now ;) )

Eelco

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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread RĂ¼diger Schulz
Make a subclass of WebRequestCycle, and override onRuntimeException().
Works like a charm for me.

2007/5/22, craigdd [EMAIL PROTECTED]:

 True the wicket session is mandatory, thanks for pointing that out.

 As for my question though, I'm looking for the best way to implement this
 strategy.  I could override the respond method in RequestCycle, but I'd have
 to rewrite the given logic, which most of it I want.  I'm wondering if there
 are any other hooks that I can implement that leaves the respond method
 alone but have the exception and internal page available.

 -Craig



 Mr Mean wrote:
 
  As far as i know the wicket session is mandatory in wicket but that
  does not mean you have to use it to store information. Other then that
  i see no reason why your proposed strategy should not work.
 
  Maurice
 
  On 5/22/07, craigdd [EMAIL PROTECTED] wrote:
 
  Basically what I want to do is set the internal error page to my own
  internal
  page, i.e. my login page, and add a message from the a resource bundle,
  .properties file, that includes an error code that is generated from an
  internal RuntimeException.  Another requirement is that a Session is
  optional, meaning that this should work with or without a Session.
 
  -Craig
 
 
  craigdd wrote:
  
   What is the best way to implement your own exception strategy in wicket
   1.3?  I want to add some added logic to my application when an
  unexcepted
   exception occurs.  During this added logic I want a handle on the page
   that is being redirected to, ie the internal error page.
  
   Thanks
   Craig
  
 
  --
  View this message in context:
  http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10737906
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



-- 
greetings from Berlin,

RĂ¼diger Schulz

www.2rue.de

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


Re: [Wicket-user] Pattern for seperation of Java and Html - Comments Welcome

2007-05-22 Thread Eelco Hillenius
Well, it's something you can quite easily do yourself. See
org.apache.wicket.examples.customresourceloading. Unless I don't
understand what you mean, it doesn't sound like something that should
be a generic facility in Wicket to me.

Eelco


On 5/22/07, mchack [EMAIL PROTECTED] wrote:

 I know this is topic has been discussed frequently and I fully agree with the
 current packaging methodology. There are many case where it would be nice to
 have content easily included that was produced by the HTML designer without
 having to associate a corresponding java class. I think I have a solution
 that is workable and doesn't violate the current best practices. Let me know
 if I am missing something.

 In certain cases for content such as press releases or other user generated
 content I would like to enable inclusion of pure content as a component in
 a Wicket page. I am contemplating a component that would do the following.

 - Extend one of the existing containers such as WebComponent.
 - This component when inserted in a page would get the actual source html
 from a Page Parameter such as http://host/wicketapp?RealPage.html or
 http://host/wicketapp?content=RealPage.html .
 - RealPage.html identifies the location of the content to be inserted.

 In this way I can create a wicket template for the main containment page and
 then use it typically to insert the user generated content. This gives me
 the flexibility I want without having to generate a class for all included
 content.

 Am I missing something here?

 Thanks
 --
 View this message in context: 
 http://www.nabble.com/Pattern-for-seperation-of-Java-and-Html---Comments-Welcome-tf3796132.html#a10737158
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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


Re: [Wicket-user] xsd or dtd

2007-05-22 Thread Martijn Dashorst
Could you file an issue with this please? It would be nice to make the
dtd work better.

Martijn

On 5/17/07, Timo Rantalaiho [EMAIL PROTECTED] wrote:
 On Thu, 17 May 2007, Florian Hehlen wrote:
  the wicket documentation recommends that a namespace be declared in all
  xhtml pages like so:
 
  html xmlns=http://www.w3.org/1999/xhtml;
xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en

 This is indeed weird, as there is no declaration at that URL.

  But no xsd can be found there so my IDE highlights all wicket markup as
  invalid. Is there an actual resource available somewhere? I have noticed
  that there is a DTD in the doc/ dir of the distribution. Is this what
  should be used instead?

 I'm not sure of the location, but at least in the discontinued
 2.0 trunk there was a DTD that I used with success.

 I had to tweak it a bit though, in these bits

 !ENTITY % HTMLlat1 PUBLIC
 -//W3C//ENTITIES Latin 1 for XHTML//EN
 xhtml-lat1.ent
 %HTMLlat1;

 !ENTITY % HTMLsymbol PUBLIC
 -//W3C//ENTITIES Symbols for XHTML//EN
 xhtml-symbol.ent
 %HTMLsymbol;

 !ENTITY % HTMLspecial PUBLIC
 -//W3C//ENTITIES Special for XHTML//EN
 xhtml-special.ent
 %HTMLspecial;

 i prepended http://www.w3.org/TR/xhtml1/DTD/ in the front of
 the filename.

 Maybe it would be useful to fix these directly in the
 repository, if they are more or less correct :)


 Then I just added wicket: attributes to custom attributes
 with quick fix as I went and voilĂ¡!

 - Timo

 --
 Timo Rantalaiho   +358-45-6709709
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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



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

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


Re: [Wicket-user] Pattern for seperation of Java and Html - Comments Welcome

2007-05-22 Thread mchack

Thanks for the reply. Not suggesting it should be part of the main
distribution. I am new to the framework and was trying to see if what I
proposed made sense. I want to make sure that I don't hinder or create
barriers to content creation on our portal and wanted to do it in a manner
that made sense. Maybe there are other ways to manage separation of
concerns. 

In general are their recommended best practices regarding coordination and
workflow between the pure HTML designers and Java coders? In the component
model, seems like an HTML designer will come up with basic look and feel,
CSS, etc. and then the people on the framework side will
refactor/componentize the markup. At this point the original markup may
now be generated by an OO refactoring involving a number of new
pages/components to insert dynamic content/behavior. The original design is
now split into a variety of new pages and will no longer be readily
accessible to the original designer as they now have to work on a variety of
fragments. Any references to how to keep the HTML development happy would be
appreciated.

Thanks


Eelco Hillenius wrote:
 
 Well, it's something you can quite easily do yourself. See
 org.apache.wicket.examples.customresourceloading. Unless I don't
 understand what you mean, it doesn't sound like something that should
 be a generic facility in Wicket to me.
 
 Eelco
 
 
 On 5/22/07, mchack [EMAIL PROTECTED] wrote:

 I know this is topic has been discussed frequently and I fully agree with
 the
 current packaging methodology. There are many case where it would be nice
 to
 have content easily included that was produced by the HTML designer
 without
 having to associate a corresponding java class. I think I have a solution
 that is workable and doesn't violate the current best practices. Let me
 know
 if I am missing something.

 In certain cases for content such as press releases or other user
 generated
 content I would like to enable inclusion of pure content as a component
 in
 a Wicket page. I am contemplating a component that would do the
 following.

 - Extend one of the existing containers such as WebComponent.
 - This component when inserted in a page would get the actual source html
 from a Page Parameter such as http://host/wicketapp?RealPage.html or
 http://host/wicketapp?content=RealPage.html .
 - RealPage.html identifies the location of the content to be inserted.

 In this way I can create a wicket template for the main containment page
 and
 then use it typically to insert the user generated content. This gives me
 the flexibility I want without having to generate a class for all
 included
 content.

 Am I missing something here?

 Thanks
 --
 View this message in context:
 http://www.nabble.com/Pattern-for-seperation-of-Java-and-Html---Comments-Welcome-tf3796132.html#a10737158
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/Pattern-for-seperation-of-Java-and-Html---Comments-Welcome-tf3796132.html#a10741195
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Updating item range for ajax pager

2007-05-22 Thread Tremelune

That appears to be a timer-based solution. I would like the panel to update
once and only once when a user clicks on a paging link. Also, to clarify,
the list is getting updated by the click, but the viewed range is not. So
you have this:

---
* George Michael
* Ezra Lusk
* T-Bone

Viewing items 1-3 of 25
prev NEXT
---


[user clicks NEXT]


---
* Invader Zim
* Seven and a Switchblade
* Valentino Rossi

Viewing items 1-3 of 25
PREV next
---




I dont exactly see from your code the error, but the wiki has a page related
to this
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html

if you use ajax, then you need to be sure that there is already a markupID
on the output wich is usually not existent in a listview (you could add a
WebMarkupContainer for example however) and that the target is then updated
accordingly...

regards
 
-- 
View this message in context: 
http://www.nabble.com/Updating-item-range-for-ajax-pager-tf3797101.html#a10741207
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Updating item range for ajax pager

2007-05-22 Thread Korbinian Bachl
oh, provided the wrong link, sorry;

that one is likely to be your answer:
http://cwiki.apache.org/WICKET/how-to-use-ajax-paging-with-dataview.html

what do you mean with the viewed range ?? - maybe you didnt put all into a
spanning web-container?

 -UrsprĂ¼ngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von Tremelune
 Gesendet: Dienstag, 22. Mai 2007 18:06
 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] Updating item range for ajax pager
 
 
 That appears to be a timer-based solution. I would like the 
 panel to update once and only once when a user clicks on a 
 paging link. Also, to clarify, the list is getting updated by 
 the click, but the viewed range is not. So you have this:
 
 ---
 * George Michael
 * Ezra Lusk
 * T-Bone
 
 Viewing items 1-3 of 25
 prev NEXT
 ---
 
 
 [user clicks NEXT]
 
 
 ---
 * Invader Zim
 * Seven and a Switchblade
 * Valentino Rossi
 
 Viewing items 1-3 of 25
 PREV next
 ---
 
 
 
 
 I dont exactly see from your code the error, but the wiki has 
 a page related to this 
 http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
 
 if you use ajax, then you need to be sure that there is 
 already a markupID on the output wich is usually not existent 
 in a listview (you could add a WebMarkupContainer for example 
 however) and that the target is then updated accordingly...
 
 regards
  
 --
 View this message in context: 
 http://www.nabble.com/Updating-item-range-for-ajax-pager-tf379
7101.html#a10741207
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 --
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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


Re: [Wicket-user] FireFox 1.5 macos, ajax fails..

2007-05-22 Thread Matej Knopp
What kind of errors?

-Matej

On 5/22/07, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hi

 any had trouble with this. My Ajax calls fails with FF 1.5 on macos.
 Also following the wiki any trying the wicket examples fails or gives
 aleast a couple of errors.

 regards Nino

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


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


Re: [Wicket-user] newbie - getting a null AjaxRequestTarget

2007-05-22 Thread Igor Vaynberg

if you are using ajaxfallbacklink and get a null target then that means the
fallback was used, so the browser doesnt support ajax/javascript. that is
the whole point of ajaxfallbacklink, your impl should look like this

onclick(target) {
 dosomething();
 if (target!=null) {
   // ajax
   processajaxtarget(target);
  } else {
 //falback
 processregularroundtrip();
  }
}

-igor


On 5/22/07, sf [EMAIL PROTECTED] wrote:



Hi,

When I try to deploy my wicket application in Liferay, ajax doesnt seem to
work.
eventhough the default value of ajaxable in Liferay is true, I get a null
AjaxRequestTarget on the onclick event of my AjaxFallbackLink.

can anyone advise what to do?

Thanks,

--
View this message in context:
http://www.nabble.com/newbie---getting-a-null-AjaxRequestTarget-tf3795611.html#a10735611
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread craigdd

Overriding the onRuntimeException does not work because you don't have access
to the page that you are directing to.  The page parameter in this method if
the context from where the exception was thrown.

-Craig



RĂ¼diger_Schulz wrote:
 
 Make a subclass of WebRequestCycle, and override onRuntimeException().
 Works like a charm for me.
 
 2007/5/22, craigdd [EMAIL PROTECTED]:

 True the wicket session is mandatory, thanks for pointing that out.

 As for my question though, I'm looking for the best way to implement this
 strategy.  I could override the respond method in RequestCycle, but I'd
 have
 to rewrite the given logic, which most of it I want.  I'm wondering if
 there
 are any other hooks that I can implement that leaves the respond method
 alone but have the exception and internal page available.

 -Craig



 Mr Mean wrote:
 
  As far as i know the wicket session is mandatory in wicket but that
  does not mean you have to use it to store information. Other then that
  i see no reason why your proposed strategy should not work.
 
  Maurice
 
  On 5/22/07, craigdd [EMAIL PROTECTED] wrote:
 
  Basically what I want to do is set the internal error page to my own
  internal
  page, i.e. my login page, and add a message from the a resource
 bundle,
  .properties file, that includes an error code that is generated from
 an
  internal RuntimeException.  Another requirement is that a Session is
  optional, meaning that this should work with or without a Session.
 
  -Craig
 
 
  craigdd wrote:
  
   What is the best way to implement your own exception strategy in
 wicket
   1.3?  I want to add some added logic to my application when an
  unexcepted
   exception occurs.  During this added logic I want a handle on the
 page
   that is being redirected to, ie the internal error page.
  
   Thanks
   Craig
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10737906
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

 
 
 -- 
 greetings from Berlin,
 
 RĂ¼diger Schulz
 
 www.2rue.de
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10742036
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Updating item range for ajax pager

2007-05-22 Thread Igor Vaynberg

see how NavigatorLabel in extensions works

-igor


On 5/22/07, Tremelune [EMAIL PROTECTED] wrote:



I've got an ajax pager in a custom panel. Part of this panel displays the
page range (ie, Viewing items 11-20 of 500). The panel is constructed
once
when the page is loaded:

  public AwesomePanel(final String id) {
...

container.add(pageListView);
container.add(new PagerPanel(pagerPanel, pageListView));

add(container);
  }



  PagerPanel(final String id, final PageableListView view) {
super(id);

final int first = view.getStartIndex();

add(new Label(firstItem, String.valueOf(first + 1))); //Start at 1,
not zero.
add(new Label(lastItem, String.valueOf(first +
view.getRowsPerPage(;
add(new Label(totalItems, String.valueOf(view.getList().size(;
add(new PagingNavigator(pager, view));
  }



When a paging link is clicked, the PagerPanel is not reconstructed, so
firstItem and lastItem do not get updated. Is there an appropriate event I
should be looking for to update the first/last items? The pager may not
always be ajaxy, and I would like to tie the update to a more general
event,
if possible.
--
View this message in context:
http://www.nabble.com/Updating-item-range-for-ajax-pager-tf3797101.html#a10740479
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] problem with Ajax and rendering on trunk version

2007-05-22 Thread Xavier Hanin
Hi,

I've just upgraded my 1.3 beta 1 version to a personnally build
snapshot version based on revision xxx to fix a problem related to
Ajax and Page Expired, and the problem I had before is gone. Great!

But now I've another strange problem. I get the following error message:
18:49:19.245 [btpool0-2] ERROR org.apache.wicket.RequestCycle - The
component(s) below failed to render. A common problem is that you have
added a component in code but forgot to reference it in the markup
(thus the component will never be rendered).

1. [MarkupContainer [Component id = progressBarStylesheet, page =
org.xoocode.xooctory.web.pages.dashboard.Dashboard, path =
2:projects-panel:projects:6:leftTimePanel:progressBar:progressBarStylesheet.StyleSheetReference,
isVisible = true, isVersioned = false]]

The problem is that the component is properly added, and it worked
before upgrading, so...

So I've tried to track down the problem, and I've not found the source
of the problem. As a workaround I disable check rendering with:
getDebugSettings().setComponentUseCheck(false);
Then everything works properly, and the component (a style sheet) is
properly rendered.

Let me explain a little bit more the situation in which the problem occurs.
The component which is causing the problem is a StyleSheetReference
added to a panel. The markup contains the corresponding link in a
wicket:head section.
The panel is invisible when the page is loaded, but then I use an ajax
link to trigger an action, which later triggers the visibility of this
component to true. Then this component is refreshed by an AjaxTimer
(actually I use wicket-contrib-push, but I don't think it really makes
a difference, since it's using a simple AbstractAjaxTimerBehavior
underneath). And that's when the component is rendered that the check
rendering is failing. Some analysis shown that there's a
StyleSheetReference with the good id in the renderedComponent
attribute of Page, but it isn't the exact same StyleSheetReference
instance as the one checked by the checkRendering method. For the
moment I haven't managed to really see why I have two instances, what
doesn't help is that it seems that when I debug, the problem goes away
depending on the occurence of other timer based ajax requests.

Do any of you have already faced this problem, or has any idea of how
it could come from?

Xavier

-- 
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/

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


Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-22 Thread craigdd

Hey Ravi, just out of curiosity, is the application you provided a link for
written in wicket?

-Craig
 

RW wrote:
 
 
 
 
   
 
 
 
 Go to... 
 http://www.celoxis.com/psa/user.do?bxn=umyhomeamp;p_auth_authenticate=trueamp;p_auth_login=markamp;p_auth_password=celoxis1
  
 
 On this page click the Pick Columns link in the top right corner of
 the My Projects table. 
 
 Thanks 
 Ravi 
 
 
 Igor Vaynberg wrote:
 got a screenshot? dont really understand what you are
 describing. maybe something like our palette component in extensions? 
   
 -igor 
   
   
   On 5/21/07, Ravindra Wankar
lt; [EMAIL PROTECTED] gt;
 wrote:
   
 In order to allow users to pick columns they wish to see in a table, we
 
 open/close a div layer that has 2 selectors to move columns to/from 
 Available to Selected and a submit/cancel button. We also position 
 this div layer close to the Pick Columns link.
 
 
 Is there a component in Wicket I can use to create a similar effect? 
 I've seen the ModalDialog but I'd like a slight variation because the 
 placement of this div layer needs to be controlled + the main window
 
 need not be greyed out when showing the layer. 
 
 Thanks 
 Ravi. 
 
 - 
 This SF.net email is sponsored by DB2 Express 
 Download DB2 Express C - the FREE version of DB2 express and take
 
 control of your XML. No limits. Just data. Click to get it now. 
 http://sourceforge.net/powerbar/db2/ 
 ___ 
 Wicket-user mailing list
 
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user 
 
   
   
   
   
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
   
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user 
   
 
 
 
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Component-for-opening-closing-an-arbitrary-div-layer-in-Wicket.-tf3794225.html#a10743267
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Gerolf Seitz

i meant you should rather call
document.getElementById('paragraph').onclick()
than
document.getElementById('paragraph').click()


On 5/22/07, Lec [EMAIL PROTECTED] wrote:



How do you invoke the eventhandler onclick() within  public void onClick(
AjaxRequestTarget target ) and why would you want to do that for?


Gerolf Seitz wrote:

 you could try to invoke the click eventhandler, that is onclick(). i
tried
 it on a simple example and got the same error with click() in firefox.
 onclick() worked like a charm.

 hth,
   gerolf

 On 5/22/07, Lec [EMAIL PROTECTED] wrote:


 This portion of code works in IE

 public void onClick( AjaxRequestTarget target )
 {
 target.appendJavascript(document.getElementById
 ('paragraph').click();)
 }

 but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it
said
 ERROR: Exception evaluating javascript: TypeError:
 document.getElementById(paragraph).click is not a function

 Is this a bug?


 igor.vaynberg wrote:
 
  you do this using javascript, no roundtrip to the server is required.
 see
  some smooth scroll javascripts on the net.
 
  -igor
 
 
  On 5/21/07, Lec [EMAIL PROTECTED] wrote:
 
 
  Im trying to figure out a way to make button behave as if it's like
a
  link
  component upon clicked. I want a button to archieve the same
behaviour
 as
  link, and upon clicked, a particular html region will be focused or
  displayed, just like the same behaviour when you setAnchor in link
  component. But the thing now is that, button doesn't provide any
 method
  to
  set an anchor. How do we do that?
 
  --
  View this message in context:
 

http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10714844
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 

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

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

 --
 View this message in context:

http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10733403
 Sent from the Wicket - User mailing list archive at Nabble.com.



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



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



--
View this message in context:
http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10737393
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-22 Thread Johan Compagner

i don't think so that looks more like struts.

johan

On 5/22/07, craigdd [EMAIL PROTECTED] wrote:



Hey Ravi, just out of curiosity, is the application you provided a link
for
written in wicket?

-Craig


RW wrote:








 Go to...

http://www.celoxis.com/psa/user.do?bxn=umyhomeamp;p_auth_authenticate=trueamp;p_auth_login=markamp;p_auth_password=celoxis1

 On this page click the Pick Columns link in the top right corner of
 the My Projects table.

 Thanks
 Ravi


 Igor Vaynberg wrote:
 got a screenshot? dont really understand what you are
 describing. maybe something like our palette component in extensions?

 -igor


   On 5/21/07, Ravindra Wankar
lt; [EMAIL PROTECTED] gt;
 wrote:

 In order to allow users to pick columns they wish to see in a table, we

 open/close a div layer that has 2 selectors to move columns to/from
 Available to Selected and a submit/cancel button. We also position
 this div layer close to the Pick Columns link.


 Is there a component in Wicket I can use to create a similar effect?
 I've seen the ModalDialog but I'd like a slight variation because the
 placement of this div layer needs to be controlled + the main window

 need not be greyed out when showing the layer.

 Thanks
 Ravi.


-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take

 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list

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







-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/


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








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



--
View this message in context:
http://www.nabble.com/Component-for-opening-closing-an-arbitrary-div-layer-in-Wicket.-tf3794225.html#a10743267
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Problem with wicket's WebSession objects. Memory leakage?

2007-05-22 Thread Johan Compagner

WicketSession.invalidate triggers the httpsession.invalidate that triggers
the destroy

So the destroy shouldn't trigger wicketsession.invalidate because its the
other way around

what you can do is listen to the SessionStore.unbind() or have a special
HttpSessionUnbinding listener
that calls your close() method on the wicket session or something like that.

but SessionStore.unbind() shouldn't call WicketSession.invalidate() thats
like driving the wrong way

johan


On 5/22/07, -Vlad- [EMAIL PROTECTED] wrote:



Ok, but I need my wicket session invalidate() method to be called when
httpSession expires.
I had a look at the source (1.2.6) and what I
saw(AbstractHttpSessionStore.class, line 97) is a call
'SessionStore.unbind(String sessionId)' when HttpSession expires. This
method (in the AbstractHttpSessionStore.class) calls
Application.sessionDestroyed
than call empty 'onUnbind(sessionId)' method. So there are no calls to
httpSession.invalidate() method and to
wicketSession.invalidate();
My wicket  session overrides invalidate method:
public void invalidate() {
super.invalidate();
close();
}
super is the WebSession class, and its invalidate method is:
public void invalidate()
{
sessionInvalidated = true;
}
So as far as I understand there is no extra call 'httpSession.invalidate
()'.
What do you think about this?
--
View this message in context:
http://www.nabble.com/Problem-with-wicket%27s-WebSession-objects.-Memory-leakage--tf3796071.html#a10740481
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-22 Thread Flavius

I am trying to setVisible on a Fragment using the
AjaxFormComponentUpdatingBehavior object.
It doesn't seem to work.  I've also tried this with a Panel and that's not
working either.

However, if I use a component, like a TextField, that works.

In my java, this is the pertinent code for my Form:

DropDownChoice dropDown = new DropDownChoice(dropDown, new Model(),
choiceList);
add(dropDown);

final WebMarkupContainer container = new WebMarkupContainer(container);
container.setOutputMarkupId(true);

final Text2Fragment text2Fragment = new 
Text2Fragment(text2Fragment,
text2FragmentId);
container.add(text2Fragment);
add(container);

dropDown.add(new 
AjaxFormComponentUpdatingBehavior(onchange)
{
protected void onUpdate(AjaxRequestTarget 
target)
{

target.addComponent(container);
text2Fragment.setVisible(false);
}
}); 

My fragment:
private class Text2Fragment extends Fragment
{
public Text2Fragment(String id, String markupId)
{
super(id, markupId);
TextField text2 = new TextField(text2);
add(text2);
}
}



My HTML:
tr
tdDropDown:/td
tdselect wicket:id = 
dropDown/select/td
/tr   
tr
tdText 1/td
tdinput wicket:id=text1/td
/tr
--spaces in span are for nabble 
sp an wicket:id=container 
sp an wicket:id=text2Fragment/sp 
an
/sp an

tr
tdText 3/td
tdinput wicket:id=text3/td
/tr

My Fragment:

wicket:fragment wicket:id=text2FragmentId
tr
tdText 2/td
tdinput wicket:id=text2/td
/tr
/wicket:fragment

If I put the text2 TextField in place of the fragment, the control
successfully
disappears.  I want a fragment so I can also remove labels, et al.

I'd appreciate any feedback on what I'm doing wrong.


-- 
View this message in context: 
http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10751154
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-22 Thread Igor Vaynberg

On 5/21/07, Ravindra Wankar [EMAIL PROTECTED] wrote:



Thanks. A few things are unclear to me...

1. How do wrap the link that when clicked opens the div with the palette
in it?
2. How can I make this reusable so that the div can have something other
than the palette?
3. We have the javascript to intelligently place the div close to the
link. How and where do I call this script?



i have something similar to this in my project. basically what it is is a
border that has an anchor tag and a div inside of it. the border:body tag is
inside this div. the div has the necessary styles (position:absolute, etc).
the border component implements iheadercontributor and through that writes
out the necessary javascript to connect the anchor tag with the div.

how to use it, simple. you add the border anywhere in your markup, and to it
you add a panel/fragment which will appear in the initially hidden div. and
you are done, nothing more to it it is totally reusable anywhere. i am
leaving on vacation tomorrow, maybe when i get back i will contribute it to
wicket-minis, unless you beat me to it :)

-igor

BTW, on the previous link you can see the My Tasks section for what I'm

trying to achieve with the Multiple Item Action using an Ajax enabled
pulldown. The behavior is similar except that the div contents are a bunch
of links fetched using Ajax.

Thanks
Ravi.

Igor Vaynberg wrote:

yep, thats easy.

create a div with an absolute position and put a palette [1] component
into it

[1]
http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.PalettePage

-igor


On 5/21/07, Ravindra Wankar [EMAIL PROTECTED] wrote:


 Go to...
 
http://www.celoxis.com/psa/user.do?bxn=umyhomep_auth_authenticate=truep_auth_login=markp_auth_password=celoxis1


 On this page click the Pick Columns link in the top right corner of
 the My Projects table.

 Thanks
 Ravi


 Igor Vaynberg wrote:

 got a screenshot? dont really understand what you are describing. maybe
 something like our palette component in extensions?

 -igor


 On 5/21/07, Ravindra Wankar [EMAIL PROTECTED] wrote:
 
 
  In order to allow users to pick columns they wish to see in a table,
  we
  open/close a div layer that has 2 selectors to move columns to/from
  Available to Selected and a submit/cancel button. We also position
  this div layer close to the Pick Columns link.
 
  Is there a component in Wicket I can use to create a similar effect?
  I've seen the ModalDialog but I'd like a slight variation because the
  placement of this div layer needs to be controlled + the main window
  need not be greyed out when showing the layer.
 
  Thanks
  Ravi.
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

  --

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.

 http://sourceforge.net/powerbar/db2/

  --

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




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


--

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

--

___
Wicket-user mailing list
[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/wicket-user



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

Re: [Wicket-user] Updating item range for ajax pager

2007-05-22 Thread Tremelune

Okay, I've got the container being passed into the target onAjaxUpdate()...Is
there a method that then gets called on objects passed into the target? I'm
having trouble understanding where I would change the data from 1-3 to
4-6 (from my previous example).

By viewed range I simply mean that the panel displays the index range of
the items in the pageable list being display. I should've added numbers...

---
1 George Michael
2 Ezra Lusk
3 T-Bone

Viewing items 1-3 of 25
prev NEXT
---


[user clicks NEXT]


---
4 Invader Zim
5 Seven and a Switchblade
6 Valentino Rossi

Viewing items 1-3 of 25
PREV next
---




oh, provided the wrong link, sorry;

that one is likely to be your answer:
http://cwiki.apache.org/WICKET/how-to-use-ajax-paging-with-dataview.html

what do you mean with the viewed range ?? - maybe you didnt put all into a
spanning web-container?

-- 
View this message in context: 
http://www.nabble.com/Updating-item-range-for-ajax-pager-tf3797101.html#a10751380
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Updating item range for ajax pager

2007-05-22 Thread Tremelune

Is there an easy way to use this with an ordered list as opposed to a
DataTable? It seems roundabout to define IColumn array to a single-columned,
unlabeled list.

I'm trying to determine if a (possibly overcomplicated) DataTable with a
NavigatorLabel is a better solution than the onAjaxUpdate() target/container
dance...




igor.vaynberg wrote:
 
 see how NavigatorLabel in extensions works
 
 -igor
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Updating-item-range-for-ajax-pager-tf3797101.html#a10751422
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] How to update AjaxTabbedPanel tab with new data

2007-05-22 Thread wicket0123

We are using AjaxTabbedPanel to display data.  We don't want to pre-load all
the data at star up. We want to load the tab's content when user clicks on
the tab.  So, we decided to use AjaxTabbedPanel.  We are using AbstractTab. 
Each tab represents a category, so we hold the category id on the tab panel.

public class MyAjaxTabbedPanel extends AjaxTabbedPanel {

private String name;  // this is the ajaxtabpanel name
List tabs;  // this holds the list of tabs

public MyAjaxTabbedPanel (String id, String nameTag, List tabsList) {
super(id, tabsList);
name = nameTag;
tabs = tabsList;
}
  
protected  void onAjaxUpdate(wicket.ajax.AjaxRequestTarget target) {

  AbstractTab selectedTab = (AbstractTab)
tabs.get(getSelectedTab()); 

  // took me a while to figure out that 'panel' is hardcoded
as the panel id
  MyTabPanel tabPanel = (MyTabPanel )
selectedTab.getPanel(panel); 

  // data from service layer
  List newTabList =
MyService.getSomethingBasedOnCategoryId(tabPanel.getCategoryId());

 // remove existing components; otherwise, complain about wicket:id
already exists
 // add new one
 tabPanel.removeComponents();   
 tabPanel.addComponents(newTabList);


 // refresh the component
 target.addComponent(this); 

}

}

The above code will run w/o errors, but UI doesn't refresh.  I'm suspecting
i'm not refreshing the correct component.  As you can see, the components
are added on the MyTabPanel class.  I appreciate if someone could point me
to the right direction of show me some examples on how to dynamically update
tabs content.









-- 
View this message in context: 
http://www.nabble.com/How-to-update-AjaxTabbedPanel-tab-with-new-data-tf3800175.html#a10751584
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Updating item range for ajax pager

2007-05-22 Thread Igor Vaynberg

what i meant was see how it constructs the message. it overrides
model.getobject(), which is called everytime the component needs to render.
you should read the models page on the wiki.

-igor


On 5/22/07, Tremelune [EMAIL PROTECTED] wrote:



Is there an easy way to use this with an ordered list as opposed to a
DataTable? It seems roundabout to define IColumn array to a
single-columned,
unlabeled list.

I'm trying to determine if a (possibly overcomplicated) DataTable with a
NavigatorLabel is a better solution than the onAjaxUpdate()
target/container
dance...




igor.vaynberg wrote:

 see how NavigatorLabel in extensions works

 -igor




--
View this message in context:
http://www.nabble.com/Updating-item-range-for-ajax-pager-tf3797101.html#a10751422
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] How to update AjaxTabbedPanel tab with new data

2007-05-22 Thread Igor Vaynberg

On 5/22/07, wicket0123 [EMAIL PROTECTED] wrote:



We are using AjaxTabbedPanel to display data.  We don't want to pre-load
all
the data at star up. We want to load the tab's content when user clicks on
the tab.  So, we decided to use AjaxTabbedPanel.  We are using
AbstractTab.
Each tab represents a category, so we hold the category id on the tab
panel.



dont really understand what you are trying to do/what problem you have. even
the non-ajax tabbedpanel does not load all the data on start up. it only
loads the data once the user clicks the tab.

add(new AbstractTab(new Model(tab1) { Panel getPanel() { return new
Panel1(); }});
add(new AbstractTab(new Model(tab2) { Panel getPanel() { return new
Panel2(); }});


when the tabbed panel renders it will default to tab1, so panel1() will be
created because getpanel() will be called on the first itab. then when user
clicks on tab2 panel2 will be created because getpanel() will be called on
the second itab.

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


[Wicket-user] JRuby + Wicket?

2007-05-22 Thread Mike Pence
Hello all.

I have been doing Rails for about a year and a half now, and I am
wondering if anyone has worked through combining Wicket with JRuby?
Seems like the killer combo to me...

Best,
Mike Pence
Mike Does Tech -- http://mikepence.wordpress.com

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


[Wicket-user] [STDERR] SERIALIZING SessionPageKey

2007-05-22 Thread Herman Bovens

Hello,

I constantly get these messages in the console window:

ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,4,0,0, null,
[EMAIL PROTECTED]
ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,4,0,0, null,
[EMAIL PROTECTED] bytes: [EMAIL PROTECTED]
ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,5,0,0, null,
[EMAIL PROTECTED]
ERROR [STDERR] SERIALIZING
SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,5,0,0, null,
[EMAIL PROTECTED] bytes: [EMAIL PROTECTED]
ERROR [STDERR]
TESTMAP:SessionPageKey[11CD75D79578ECFFFD9EDDBBC5583ADE,5,0,0, null, [Page
class = herbo.mijnbroodje.pages.HistoryPage, id = 5, version = 0]]

I don't notice anything when using the application.  What do they mean?

Herman

-- 
View this message in context: 
http://www.nabble.com/-STDERR--SERIALIZING-SessionPageKey-tf3800720.html#a10753583
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] JRuby + Wicket?

2007-05-22 Thread Nick Heudecker

Last week somebody mentioned Gricket (Grails + Wicket) on the user list:
http://www.nabble.com/Gricket:-The-Love-Child-of-Grails-and-Wicket-t3772804.html

On 5/22/07, Mike Pence [EMAIL PROTECTED] wrote:


Hello all.

I have been doing Rails for about a year and a half now, and I am
wondering if anyone has worked through combining Wicket with JRuby?
Seems like the killer combo to me...

Best,
Mike Pence
Mike Does Tech -- http://mikepence.wordpress.com

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





--
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

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


Re: [Wicket-user] JRuby + Wicket?

2007-05-22 Thread Timur Mehrvarz
Since I'm on both lists, I thought, I cross post this quickly. Sounds  
interesting.

Timur
http://timur.mobi

On 23.05.2007, at 00:04, Mike Pence wrote:

 Hello all.

 I have been doing Rails for about a year and a half now, and I am
 wondering if anyone has worked through combining Wicket with JRuby?
 Seems like the killer combo to me...

 Best,
 Mike Pence
 Mike Does Tech -- http://mikepence.wordpress.com

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


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


Re: [Wicket-user] [jruby-user] Re: JRuby + Wicket?

2007-05-22 Thread Charles Oliver Nutter
Timur Mehrvarz wrote:
 I have been doing Rails for about a year and a half now, and I am
 wondering if anyone has worked through combining Wicket with JRuby?
 Seems like the killer combo to me...

It has come up in the past, but I don't know of anyone that's explored 
it yet...

- Charlie

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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread Eelco Hillenius
You can return the page you want to be displayed and have full
control. I know the API currently is non-obvious; I complained about
this in another thread.

For example, this is what I'm using for the project I'm working on:


public Page onRuntimeException(Page page, RuntimeException e) {

if (e instanceof AuthorizationException) {
return super.onRuntimeException(page, e);
} else if (e instanceof PageExpiredException) {
Ts4Session session = Ts4Session.get();
if (session.isTemporary() || session.getUserId() == 
null) {
// this was an actual session expiry
log
.info(session expired and 
request cannot be honored, cycleId: 
+ cycleId);
return super.onRuntimeException(page, e);
} else {
log.error(unable to find page for an active 
session!);
// hmmm, we have a logged in user, but the page 
could not be
// found. Fall through to display an error page 
or exception
// page
}
}

if (Application.DEPLOYMENT.equals(Application.get()
.getConfigurationType())) {
return new ErrorPage(e, page, cycleId);
} else {
return new ExceptionErrorPage(e, page);
}
}

eelco

 Overriding the onRuntimeException does not work because you don't have access
 to the page that you are directing to.  The page parameter in this method if
 the context from where the exception was thrown.

 -Craig



 RĂ¼diger_Schulz wrote:
 
  Make a subclass of WebRequestCycle, and override onRuntimeException().
  Works like a charm for me.
 
  2007/5/22, craigdd [EMAIL PROTECTED]:
 
  True the wicket session is mandatory, thanks for pointing that out.
 
  As for my question though, I'm looking for the best way to implement this
  strategy.  I could override the respond method in RequestCycle, but I'd
  have
  to rewrite the given logic, which most of it I want.  I'm wondering if
  there
  are any other hooks that I can implement that leaves the respond method
  alone but have the exception and internal page available.
 
  -Craig
 
 
 
  Mr Mean wrote:
  
   As far as i know the wicket session is mandatory in wicket but that
   does not mean you have to use it to store information. Other then that
   i see no reason why your proposed strategy should not work.
  
   Maurice
  
   On 5/22/07, craigdd [EMAIL PROTECTED] wrote:
  
   Basically what I want to do is set the internal error page to my own
   internal
   page, i.e. my login page, and add a message from the a resource
  bundle,
   .properties file, that includes an error code that is generated from
  an
   internal RuntimeException.  Another requirement is that a Session is
   optional, meaning that this should work with or without a Session.
  
   -Craig
  
  
   craigdd wrote:
   
What is the best way to implement your own exception strategy in
  wicket
1.3?  I want to add some added logic to my application when an
   unexcepted
exception occurs.  During this added logic I want a handle on the
  page
that is being redirected to, ie the internal error page.
   
Thanks
Craig
   
  
   --
   View this message in context:
  
  http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
  http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10737906
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  

[Wicket-user] TSS interview

2007-05-22 Thread Eelco Hillenius
Hey Nick,

Thanks for that interview on The Server Side[1]! Just came across it.

Eelco


[1] http://www.theserverside.com/news/thread.tss?thread_id=45507

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


Re: [Wicket-user] setVisible on Fragment with AjaxFormComponentUpdatingBehavior

2007-05-22 Thread Timo Rantalaiho
On Tue, 22 May 2007, Flavius wrote:
 I am trying to setVisible on a Fragment using the
 AjaxFormComponentUpdatingBehavior object.
 It doesn't seem to work.  I've also tried this with a Panel and that's not
 working either.

How does it not work? What does the Ajax debug console say?
What is the error message / stack trace, if any?

Looking quickly it occurs to me that maybe you should set 
outputMarkupId(true) to the Fragment. If this is the case,
it should be obvious from the error message on Ajax debug
console.

- Timo

-- 
Timo Rantalaiho   +358-45-6709709
Reaktor Innovations OyURL: http://www.ri.fi/ 

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


[Wicket-user] wicket:link - is it possible to change behavior

2007-05-22 Thread mchack

I am using a commercial css (dhtml) library for the nav bar in my portal.
When I use the wicket:link to generate my bookmarkable links thing work well
for the most part, except when one navigates to a target page. In the case
of that page the link is rewritten, anchor is removed and em tag inserted to
create markup where you can't navigate back to the current page. That's fine
but it breaks the library as they expect the anchor tag to still be present. 

Is it possible to change the behavior of of the wick:link so that it
generates alternate markup such as a blank HREF?

Thanks 
-- 
View this message in context: 
http://www.nabble.com/wicket%3Alink---is-it-possible-to-change-behavior-tf3801340.html#a10755369
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] How to update AjaxTabbedPanel tab with new data

2007-05-22 Thread wicket0123

thx, igor.  I did something similar to that.  Regarding your comment that the
data doesn't get loaded when I add the component, I did a test on it and it
calls the new panel every time i do an add:

So, every time I have this line:

add(new AbstractTab(new Model(tab1) { Panel getPanel() { return new
PanelX(); }});

PanelX() will be called,

On PanelX(), I add the components and query my service layer which gets call
too.



igor.vaynberg wrote:
 
 On 5/22/07, wicket0123 [EMAIL PROTECTED] wrote:


 We are using AjaxTabbedPanel to display data.  We don't want to pre-load
 all
 the data at star up. We want to load the tab's content when user clicks
 on
 the tab.  So, we decided to use AjaxTabbedPanel.  We are using
 AbstractTab.
 Each tab represents a category, so we hold the category id on the tab
 panel.
 
 
 dont really understand what you are trying to do/what problem you have.
 even
 the non-ajax tabbedpanel does not load all the data on start up. it only
 loads the data once the user clicks the tab.
 
 add(new AbstractTab(new Model(tab1) { Panel getPanel() { return new
 Panel1(); }});
 add(new AbstractTab(new Model(tab2) { Panel getPanel() { return new
 Panel2(); }});
 
 
 when the tabbed panel renders it will default to tab1, so panel1() will be
 created because getpanel() will be called on the first itab. then when
 user
 clicks on tab2 panel2 will be created because getpanel() will be called on
 the second itab.
 
 -igor
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-update-AjaxTabbedPanel-tab-with-new-data-tf3800175.html#a10755480
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] [jruby-user] Re: JRuby + Wicket?

2007-05-22 Thread Jason Schnitzer
What would you like to do with Ruby in the Wicket world? Do you want
the JRuby for the services/activerecord layer?

do you want to construct wicket components in ruby?

Jason

On 5/22/07, Timur Mehrvarz [EMAIL PROTECTED] wrote:
 Well, the most obvious thing may be, to start a JRuby interpreter, in
 order to gain the ability, to write certain aspects of the Wicket
 serverside in dynamic script. I guess.

 And to determine how to exchange data going back and forth.

 Timur

 On 23.05.2007, at 00:44, Mike Pence wrote:

  Are there any roadblocks, or is it just a matter of figuring out the
  type mapping from Java types to Ruby types?
 
  Mike Pence
 
  On 5/22/07, Charles Oliver Nutter [EMAIL PROTECTED] wrote:
  Timur Mehrvarz wrote:
  I have been doing Rails for about a year and a half now, and I am
  wondering if anyone has worked through combining Wicket with JRuby?
  Seems like the killer combo to me...
 
  It has come up in the past, but I don't know of anyone that's
  explored
  it yet...
 
  - Charlie
 
  -
  
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  --
  ---
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user


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


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


Re: [Wicket-user] Exception Strategy in 1.3

2007-05-22 Thread craigdd

Thanks Eelco, your example was extremely helpful and I agree that the API is
not obvious when it comes to this type of stuff.  It also doesn't help when
the javadoc for RequestCycle.onRuntimeException refers to
DefaultExceptionResponseStrategy which does not exist in 1.3.

Thanks
Craig


Eelco Hillenius wrote:
 
 You can return the page you want to be displayed and have full
 control. I know the API currently is non-obvious; I complained about
 this in another thread.
 
 For example, this is what I'm using for the project I'm working on:
 
 
   public Page onRuntimeException(Page page, RuntimeException e) {
 
   if (e instanceof AuthorizationException) {
   return super.onRuntimeException(page, e);
   } else if (e instanceof PageExpiredException) {
   Ts4Session session = Ts4Session.get();
   if (session.isTemporary() || session.getUserId() == 
 null) {
   // this was an actual session expiry
   log
   .info(session expired and 
 request cannot be honored, cycleId: 
   + cycleId);
   return super.onRuntimeException(page, e);
   } else {
   log.error(unable to find page for an active 
 session!);
   // hmmm, we have a logged in user, but the page 
 could not be
   // found. Fall through to display an error page 
 or exception
   // page
   }
   }
 
   if (Application.DEPLOYMENT.equals(Application.get()
   .getConfigurationType())) {
   return new ErrorPage(e, page, cycleId);
   } else {
   return new ExceptionErrorPage(e, page);
   }
   }
 
 eelco
 
 Overriding the onRuntimeException does not work because you don't have
 access
 to the page that you are directing to.  The page parameter in this method
 if
 the context from where the exception was thrown.

 -Craig



 RĂ¼diger_Schulz wrote:
 
  Make a subclass of WebRequestCycle, and override onRuntimeException().
  Works like a charm for me.
 
  2007/5/22, craigdd [EMAIL PROTECTED]:
 
  True the wicket session is mandatory, thanks for pointing that out.
 
  As for my question though, I'm looking for the best way to implement
 this
  strategy.  I could override the respond method in RequestCycle, but
 I'd
  have
  to rewrite the given logic, which most of it I want.  I'm wondering if
  there
  are any other hooks that I can implement that leaves the respond
 method
  alone but have the exception and internal page available.
 
  -Craig
 
 
 
  Mr Mean wrote:
  
   As far as i know the wicket session is mandatory in wicket but that
   does not mean you have to use it to store information. Other then
 that
   i see no reason why your proposed strategy should not work.
  
   Maurice
  
   On 5/22/07, craigdd [EMAIL PROTECTED] wrote:
  
   Basically what I want to do is set the internal error page to my
 own
   internal
   page, i.e. my login page, and add a message from the a resource
  bundle,
   .properties file, that includes an error code that is generated
 from
  an
   internal RuntimeException.  Another requirement is that a Session
 is
   optional, meaning that this should work with or without a Session.
  
   -Craig
  
  
   craigdd wrote:
   
What is the best way to implement your own exception strategy in
  wicket
1.3?  I want to add some added logic to my application when an
   unexcepted
exception occurs.  During this added logic I want a handle on the
  page
that is being redirected to, ie the internal error page.
   
Thanks
Craig
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   

[Wicket-user] Best way to insert inline Javascript

2007-05-22 Thread Mark van Leeuwen
Writing my first custom component...

I want to initialise the component using inline Javascript placed
immediately after the component markup.

Searching the message archive I found one solution which is to use a label
to output the script. Seems a bit of a hack.

Is there a better way?




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


Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-22 Thread Ravindra Wankar





It is currently written using a combination of Struts1, WebMacro
(templating engine like Velocity), Torque etc. Due to the lack of user
interface components in these tools we had to develop a lot of that
ourselves. We are evaluating if we can do away with our code with
Wicket or if Wicket can at least assist in simplifying our efforts.
Besides, how easy and how long will it take to move to Wicket. As our
efforts are commercial, we will be heavily penalized for making the
wrong choice.

- Ravi.

craigdd wrote:

  Hey Ravi, just out of curiosity, is the application you provided a link for
written in wicket?

-Craig
 

RW wrote:
  
  



  



Go to... 
http://www.celoxis.com/psa/user.do?bxn=umyhomeamp;p_auth_authenticate=trueamp;p_auth_login=markamp;p_auth_password=celoxis1 

On this page click the "Pick Columns" link in the top right corner of
the "My Projects" table. 

Thanks 
Ravi 


Igor Vaynberg wrote:
got a screenshot? dont really understand what you are
describing. maybe something like our palette component in extensions? 
  
-igor 
  
  
  On 5/21/07, Ravindra Wankar
   lt; [EMAIL PROTECTED] gt;
wrote:
  
In order to allow users to pick columns they wish to see in a table, we

open/close a div layer that has 2 selectors to move columns to/from 
"Available" to "Selected" and a submit/cancel button. We also position 
this div layer close to the "Pick Columns" link.


Is there a component in Wicket I can use to create a similar effect? 
I've seen the ModalDialog but I'd like a slight variation because the 
placement of this div layer needs to be controlled + the main window

need not be "greyed" out when showing the layer. 

Thanks 
Ravi. 

- 
This SF.net email is sponsored by DB2 Express 
Download DB2 Express C - the FREE version of DB2 express and take

control of your XML. No limits. Just data. Click to get it now. 
http://sourceforge.net/powerbar/db2/ 
___ 
Wicket-user mailing list

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

  
  
  
  

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/ 
  

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






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



  
  
  





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


Re: [Wicket-user] xsd or dtd

2007-05-22 Thread Timo Rantalaiho
On Tue, 22 May 2007, Martijn Dashorst wrote:
 Could you file an issue with this please? It would be nice to make the
 dtd work better.

Sure, here it is:

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

- Timo

-- 
Timo Rantalaiho   +358-45-6709709
Reaktor Innovations OyURL: http://www.ri.fi/ 

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


[Wicket-user] SVN access broken?

2007-05-22 Thread Ravindra Wankar

Both, web access and anonymous access do not work for me.

Web access points to

http://svn.apache.org/viewvc/incubator/wicket/branches/wicket

and anonymous access to

svn checkout https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket 
wicket


Thanks
Ravi.

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