Re: how to set cookie domain?

2011-02-02 Thread Pepijn de Geus
Cookie itself can handle that: Cookie#setDomain(String).

For session cookies, you can use the sun-web.xml, at least in GlassFish:
http://download.oracle.com/docs/cd/E19776-01/820-4502/6nfvbc8id/index.html


On 2 feb 2011, at 04:38, Paolo wrote:

 Hi,
 I want add a cookie, and I saw on this site, how to do this.
 
 https://cwiki.apache.org/WICKET/dealing-with-cookies.html
 
 ((WebResponse)RequestCycle.get().getResponse()).addCookie(new 
 Cookie(cookieName, cookieValue));
 
 but I need to specify also the domanin.
 
 I need something like this PHP code, but for Wicket:
 
 ini_set('session.cookie_domain', '.otherdomain.com');
 
 thank you!
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



ListChoice move up and down

2011-02-02 Thread Altuğ Bilgin Altıntaş
Hi;

Any example about how to move up and down via Javascript ListChoice items.

Thanks.

-- 
*Altuğ*
** http://www.kodcu.com


Re: ListChoice move up and down

2011-02-02 Thread Robert Dahlström

Not sure if this is what you want but maybe it can work as a starting point:

ListView.moveDownLink
ListView.moveUpLink

Regards
Robert

On 02/02/2011 10:16 AM, Altuğ Bilgin Altıntaş wrote:

Hi;

Any example about how to move up and down via Javascript ListChoice items.

Thanks.



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



Re: Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-02 Thread Kent Tong
 Hi, I currently have an application reading a cookie in my session. All
 of my unit tests where the pattern is: Create page - submit form -
 redirect to new page fails to read this cookie after the redirect to new
 page.

Have you tried http://wicketpagetest.sourceforge.net which supports
this case automatically.


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



Re: setResponsePage weirdness

2011-02-02 Thread Hans Lesmeister 2


syg6 wrote:
 
 ...
 setResponsePage(SecondPage.class) in FirstPage's constructor is called the
 url remains:
 
 http://localhost:8080/myapp/first
 
 when I am actually now on SecondPage? But when I call
 setResponsePage(ThirdPage.class) from SecondPageForm's onSubmit()
 (SecondPage contains SecondPageForm), the url is:
 
 http://localhost:8080/myapp/third
 
 I've tried sticking setRedirect(true) in a few places but that seems to
 mess up my custom session; my custom session is constantly reset, previous
 info stored in the session is wiped out.
 
 I've also tried using setResponsePage(new SecondPage()) but it doesn't
 seem to change the url and SecondPage.html breaks, it's telling me none of
 my form components are present!
 

throw a RestartResponseException or a
RestartResponseAtInterceptPageException (I always forget which is the right
one) instead of setResponsePage

Cheers
Hans

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setResponsePage-weirdness-tp3248650p3253687.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ListChoice move up and down

2011-02-02 Thread Andrea Del Bene

Hi,

it's not exactly what you are looking for, but you could take a look at 
Palette component. You can find a live example here: 
http://wicketstuff.org/wicket14/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage
This component support choices moving for 'selected' list. You can look 
in file  palette.js to see related JavaScript code.

Hi;

Any example about how to move up and down via Javascript ListChoice items.

Thanks.




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



Re: Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-02 Thread Robert Dahlström

Thanks for the tip but I'd prefer to stick with WicketTester for the moment.

Regards
Robert

On 02/02/2011 10:36 AM, Kent Tong wrote:

Hi, I currently have an application reading a cookie in my session. All
of my unit tests where the pattern is: Create page -  submit form -
redirect to new page fails to read this cookie after the redirect to new
page.


Have you tried http://wicketpagetest.sourceforge.net which supports
this case automatically.


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




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



Re: ListChoice move up and down

2011-02-02 Thread Altuğ Bilgin Altıntaş
Ok i can move up and dowm using jquery

Here is the answer link :
http://stackoverflow.com/questions/4168817/how-can-i-fix-my-jquery-methods-so-i-can-re-order-the-items-in-a-multiselect-opti

but now i need to take ordered list items, any way to do this.

For exampe

1 - original items in the ListChoice

2- user move up and down some items

3 - I need to get new ordered ListChoice from wicket --  any suggestions ??

Thanks.



2011/2/2 Andrea Del Bene adelb...@ciseonweb.it

 Hi,

 it's not exactly what you are looking for, but you could take a look at
 Palette component. You can find a live example here:
 http://wicketstuff.org/wicket14/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage
 This component support choices moving for 'selected' list. You can look in
 file  palette.js to see related JavaScript code.

  Hi;

 Any example about how to move up and down via Javascript ListChoice items.

 Thanks.



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




-- 
*Altuğ*
*www.kodcu.com* http://www.kodcu.com**


FeedbackPanel inside PropertyListView

2011-02-02 Thread Duro

Hello,
 in my FeedbackPanel, which is created inside PropertyListView I 
experience this behaviour. Each item , which is created in the 
PropertyListView contains a form and some data, which u can edit and a 
FeedbackPanel.  When there is a new message in the FeedbackPanel, it is 
shown in all FeedbackPanels that are created. What do i have to do, so 
that the message is shown only in the one, where it belongs?


PropertyListViewHarvestedFile propertyListView = new 
PropertyListViewHarvestedFile(

allFiles, list) {
private static final long serialVersionUID = 
612045960036358963L;


@Override
protected void populateItem(ListItemHarvestedFile item) {

form.add(new FeedbackPanel(feedback));

form.add(textField);

 }

later, i call textField.error(False input);

thx, Juraj
__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 


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



Re: FeedbackPanel inside PropertyListView

2011-02-02 Thread Pepijn de Geus
Construct the FeedbackPanel with a filter, either a 
ComponentFeedbackMessageFilter or ContainerFeedbackMessageFilter.

On 2 feb 2011, at 13:27, Duro wrote:

 Hello,
 in my FeedbackPanel, which is created inside PropertyListView I experience 
 this behaviour. Each item , which is created in the PropertyListView contains 
 a form and some data, which u can edit and a FeedbackPanel.  When there is a 
 new message in the FeedbackPanel, it is shown in all FeedbackPanels that are 
 created. What do i have to do, so that the message is shown only in the one, 
 where it belongs?
 
 PropertyListViewHarvestedFile propertyListView = new 
 PropertyListViewHarvestedFile(
allFiles, list) {
private static final long serialVersionUID = 612045960036358963L;
 
@Override
protected void populateItem(ListItemHarvestedFile item) {

form.add(new FeedbackPanel(feedback));

form.add(textField);

 }
 
 later, i call textField.error(False input);
 
 thx, Juraj
 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails. http://mail.yahoo.com 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: Set default locale when suitable locale not found

2011-02-02 Thread planime

thanks for informative answer
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Set-default-locale-when-suitable-locale-not-found-tp3252800p3254024.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Regarding AjaxIndicatorAppender and IE

2011-02-02 Thread Muro Copenhagen
Hi,

Has anyone experienced problems with IE (v. 8) and AjaxIndicatorAppender.

The problem i am experiencing in IE, not Firefox, is that the indicator is
only
shown the first time i click on submit.

If i have a feedback panel, and enter all input fields, the indicator is
shown,
and i then get the next page.

But if i don't enter anything, the indicator is shown(just for a second)
then
i get the errors on the feedback panel, and then when entering all the
input fields the indicator is not shown...

And this behavior only exist in IE...i know IE sucks...

Anyone with ideas on what the problem might be?

Best Regards
Muro


ListMultipleChoice getting all rows in user order

2011-02-02 Thread Altuğ Bilgin Altıntaş
Hi

In my page user can move up and down ListMultipleChoice content by jquery
and now I need to take all ordered ListMultipleChoice items,

For exampe

1 - original items in the ListMultipleChoice

2- user move up and down some items

3 - I need to get new ordered ListMultipleChoice from wicket

I try select all items before submit via jquery but wicket doesn't detect
all selection.

Any suggestions ?

Thanks.


Re: ListMultipleChoice getting all rows in user order

2011-02-02 Thread Altuğ Bilgin Altıntaş
I can get all ListMultipleChoice  rows after jquery selection if i select
non-ajax way.

 Button btnSave = new Button(btnSave) {

@Override
public void onSubmit() {

for (String s : MODEL) {
System.out.println(--  + s);
}

}

};

But with if i use AjaxButton then jquery  selection  code doesn't work. Also
I 've tried putting jquery code in AjaxCallDecorator but no way.

Altug.

02 Şubat 2011 15:42 tarihinde Altuğ Bilgin Altıntaş alt...@gmail.comyazdı:

 Hi

 In my page user can move up and down ListMultipleChoice content by jquery
 and now I need to take all ordered ListMultipleChoice items,

 For exampe

 1 - original items in the ListMultipleChoice

 2- user move up and down some items

 3 - I need to get new ordered ListMultipleChoice from wicket

 I try select all items before submit via jquery but wicket doesn't detect
 all selection.

 Any suggestions ?

 Thanks.




--


Re: [1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-02 Thread Alexander Morozov

Done

https://issues.apache.org/jira/browse/WICKET-3413
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-4-15-FLAG-INHERITABLE-MODEL-and-default-model-change-tp3252093p3254349.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: [1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-02 Thread Alexander Morozov

Igor, I have one more question about IWrapModel :

why the Component#defaultModelComparator doesn't check and unwrap IWrapModel
before calling the IModel#getObject() ?


private static final IModelComparator defaultModelComparator = new
IModelComparator()
{
private static final long serialVersionUID = 1L;

public boolean compare(Component component, Object b)
{
//final Object a =
component.getDefaultModelObject();
// the default model can act as IWrapModel
final Object a = 
component.getInnermostModel().getObject();
if (a == null  b == null)
{
return true;
}
if (a == null || b == null)
{
return false;
}
return a.equals(b);
}
};


In the sample above  with DDC, if we use the DefaultingWrapModel,
defaultModelComparator will always return true (in case of default value
selection) and the default model object will never updated because of :
Component#setDefaultModelObject(final Object object)

// Check whether this will result in an actual change
if (!getModelComparator().compare(this, object))
{
modelChanging();
model.setObject(object);
modelChanged();
}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-4-15-FLAG-INHERITABLE-MODEL-and-default-model-change-tp3252093p3254620.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Multiple Button Problem in Wicket

2011-02-02 Thread sheadley3228

Hello All,

I have 3 buttons in my form and have read over the documentation
concerning multiple buttons but can't get the buttons to work correctly.

Here is my Form:

public UserVerifyForm(String id) {
  super(id);

  add(new Button(retrieveButton) {
@Override
public void onSubmit() {
info(retrieve was pressed!);
}
  }

  add(new Button(reportButton){
public void onSubmit() {
info(report was pressed!);
}
  });

  add(new Button(clearButton)
.setDefaultFormProcessing(false)
.add( new SimpleAttributeModifier(onclick, clearJavascript)));
  
}



My html Page looks like:
.
.
.
  div class=srchbtn
input wicket:id=retrieveButton type=submit
class=submit  value=Retrieve /
input wicket:id=clearButton type=reset
class=submit value=Clear /
input type=submit wicket:id=reportButton 
class=submit  value=Report /
/div

When I try to run with the following I get this error Message:

[2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer : 0]
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 = reportButton]]

any help would be appreciated


Thanks,


Steven H.

  
  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Checkgroup and PagingNavigator

2011-02-02 Thread Jan Ferko

Hi,

I am using PagingNavigator on my dataview. Every item in dataview has 
checkbox to delete item from persistent layer. Problem is that when i 
change page I loose information about which checkbox on previous page 
was selected. I implemented AjaxEventBehavior for every Check which 
manualy stores check' s model to checkgroup model. But when i submit 
form only items from current page are in checkgroup' s model collection. 
Is there any other way how i can implement this?


Thanks
Jan


Re: ListChoice move up and down

2011-02-02 Thread Andrea Del Bene
Maybe you should make it using ListMultipleChoice instead of ListChoice. 
If you select all options before submitting,  ListMultipleChoice will 
keep the ordered list in its model.



Ok i can move up and dowm using jquery

Here is the answer link :
http://stackoverflow.com/questions/4168817/how-can-i-fix-my-jquery-methods-so-i-can-re-order-the-items-in-a-multiselect-opti

but now i need to take ordered list items, any way to do this.

For exampe

1 - original items in the ListChoice

2- user move up and down some items

3 - I need to get new ordered ListChoice from wicket --  any suggestions ??

Thanks.



2011/2/2 Andrea Del Beneadelb...@ciseonweb.it


Hi,

it's not exactly what you are looking for, but you could take a look at
Palette component. You can find a live example here:
http://wicketstuff.org/wicket14/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage
This component support choices moving for 'selected' list. You can look in
file  palette.js to see related JavaScript code.

  Hi;

Any example about how to move up and down via Javascript ListChoice items.

Thanks.



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







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



File upload progress bar

2011-02-02 Thread Valentin Avksentyev
Hi I've been beating my head against the wall with this.

I'm overriding newWebRequest in my Application class:
@Override
protected WebRequest newWebRequest(HttpServletRequest servletRequest)
{
return new UploadWebRequest(servletRequest);
}

Here is the code in my upload panel class:
FormVoid uploadform = new FormVoid(fileUploadForm) {
@Override
protected void onSubmit() {
final FileUpload upload = 
fileUploadField.getFileUpload();
if (upload != null) {
try {
File newFile = new 
File(uploadFolder, upload.getClientFileName() );
// Save to new file
newFile.createNewFile();
upload.writeTo(newFile);
_processSelection(server, 
newFile, destFolder);
} catch (Exception e) {
throw new 
RuntimeException(Unable to write file);
}
} else {
throw new RuntimeException( file 
selected for upload is empty );
}
}
};
uploadform.setMultiPart(true);
uploadform.setMaxSize(Bytes.gigabytes(1));

uploadform.add(fileUploadField = new 
FileUploadField(fileInput));
uploadform.add(new UploadProgressBar(progress, uploadform));
uploadform.add( new UploadValidator(fileUploadField, prefix) );
add( uploadform );


This is based on the examples, the examples themselves are not working for me 
either:
I tried, http://wicketstuff.org/wicket13/upload and 
http://www.wicket-library.com/wicket-examples/upload/ (the latter URL kinda 
works, it increments the remaining time but does not track the progress)

What am I doing wrong

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



Re: File upload progress bar

2011-02-02 Thread Michael O'Cleirigh

Hello,

Have you looked at the wicket 1.4 examples here: 
http://wicketstuff.org/wicket14/upload  (this is the source into the 
github mirror: 
https://github.com/apache/wicket/tree/wicket-1.4.x/wicket-examples)


I tried both and they work to upload I'm not sure on the progress bar as 
I used a file that was too small and it blinked by.


The upload limit in the 1.4 example is 100k but yours in 1 GB which 
could be why your upload test is failing.


Regards,

Mike

Hi I've been beating my head against the wall with this.

I'm overriding newWebRequest in my Application class:
@Override
 protected WebRequest newWebRequest(HttpServletRequest servletRequest)
 {
 return new UploadWebRequest(servletRequest);
 }

Here is the code in my upload panel class:
FormVoid  uploadform = new FormVoid(fileUploadForm) {
@Override
protected void onSubmit() {
final FileUpload upload = 
fileUploadField.getFileUpload();
if (upload != null) {
try {
File newFile = new 
File(uploadFolder, upload.getClientFileName() );
// Save to new file
newFile.createNewFile();
upload.writeTo(newFile);
_processSelection(server, 
newFile, destFolder);
} catch (Exception e) {
throw new RuntimeException(Unable 
to write file);
}
} else {
throw new RuntimeException( file selected 
for upload is empty );
}
}
};
uploadform.setMultiPart(true);
uploadform.setMaxSize(Bytes.gigabytes(1));

uploadform.add(fileUploadField = new 
FileUploadField(fileInput));
uploadform.add(new UploadProgressBar(progress, uploadform));
uploadform.add( new UploadValidator(fileUploadField, prefix) );
add( uploadform );


This is based on the examples, the examples themselves are not working for me 
either:
I tried, http://wicketstuff.org/wicket13/upload and 
http://www.wicket-library.com/wicket-examples/upload/ (the latter URL kinda 
works, it increments the remaining time but does not track the progress)

What am I doing wrong

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




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



Re: File upload progress bar

2011-02-02 Thread Valentin Avksentyev
The files get uploaded just fine in my app, but no progress is tracked.

It's definitely hard to verify if the progress bar works in the example sites, 
with a limit of 100k, I haven't tried throttling my upload speed,  I guess I 
should try that next.

-Valentin

On Feb 2, 2011, at 2:20 PM, Michael O'Cleirigh wrote:

 Hello,
 
 Have you looked at the wicket 1.4 examples here: 
 http://wicketstuff.org/wicket14/upload  (this is the source into the github 
 mirror: https://github.com/apache/wicket/tree/wicket-1.4.x/wicket-examples)
 
 I tried both and they work to upload I'm not sure on the progress bar as I 
 used a file that was too small and it blinked by.
 
 The upload limit in the 1.4 example is 100k but yours in 1 GB which could be 
 why your upload test is failing.
 
 Regards,
 
 Mike
 Hi I've been beating my head against the wall with this.
 
 I'm overriding newWebRequest in my Application class:
 @Override
 protected WebRequest newWebRequest(HttpServletRequest servletRequest)
 {
 return new UploadWebRequest(servletRequest);
 }
 
 Here is the code in my upload panel class:
  FormVoid  uploadform = new FormVoid(fileUploadForm) {
  @Override
  protected void onSubmit() {
  final FileUpload upload = 
 fileUploadField.getFileUpload();
  if (upload != null) {
  try {
  File newFile = new 
 File(uploadFolder, upload.getClientFileName() );
  // Save to new file
  newFile.createNewFile();
  upload.writeTo(newFile);
  _processSelection(server, 
 newFile, destFolder);
  } catch (Exception e) {
  throw new 
 RuntimeException(Unable to write file);
  }
  } else {
  throw new RuntimeException( file 
 selected for upload is empty );
  }
  }
  };
  uploadform.setMultiPart(true);
  uploadform.setMaxSize(Bytes.gigabytes(1));
 
  uploadform.add(fileUploadField = new 
 FileUploadField(fileInput));
  uploadform.add(new UploadProgressBar(progress, uploadform));
  uploadform.add( new UploadValidator(fileUploadField, prefix) );
  add( uploadform );
 
 
 This is based on the examples, the examples themselves are not working for 
 me either:
 I tried, http://wicketstuff.org/wicket13/upload and 
 http://www.wicket-library.com/wicket-examples/upload/ (the latter URL kinda 
 works, it increments the remaining time but does not track the progress)
 
 What am I doing wrong
 
 -Valentin
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



RequestCycle.onRequestTargetSet(IRequestTarget requestTarget) equivalant in Wicket 1.5

2011-02-02 Thread Zhubin Salehi
Hi all,

I'm in process of migrating from Wicket 1.4 to Wicket 1.5. I have the following 
method in the 1.4 version of my AuthenticatedWebApplication subclass:

@Override
public RequestCycle newRequestCycle(final Request request, final 
Response response) {
return new WebRequestCycle(this, (WebRequest) request, 
(WebResponse) response) {

@Override
protected void onBeginRequest() {
/* invalidate the session if 
database session has expired */
}

@Override
protected void 
onRequestTargetSet(IRequestTarget requestTarget) {
/* set response page to change 
password page if user's password has expired */
}
};
}


As explained in the Migrating to Wicket 1.5 page I add a subclass of 
AbstractRequestCycleListener in the init() method:

getRequestCycleListeners().add(new 
AbstractRequestCycleListener() {

public void onBeginRequest(RequestCycle 
cycle) {
/* invalidate the session if 
database session has expired */
}
});

Now I'm trying to figure out what to do with onRequestTargetSe()t method. Does 
anyone know how to achieve this?

Thanks,
Zhubin

Zhubin Salehi
Senior Software Engineer
Route1 - Securing the Digital World(tm)
Phone: 416-848-8391 ext. 2262
Mobile: 416-939-6383
[cid:image001.jpg@01CBC2E9.FD70D5B0]
This electronic mail transmission contains information from Route1 Inc. that is 
for the sole use of the intended recipient and may contain confidential, 
privileged or proprietary information. If you are not the intended recipient, 
please be aware that any disclosure, copying, distribution or use of this 
message, its contents, or any attachment is prohibited. Any wrongful 
interception of this message is punishable as a federal crime. If you have 
received this message in error, please return a copy to the sender by 
electronic mail indicating the error. Then, please destroy the original message 
and any copies from your computer.



Re: RequestCycle.onRequestTargetSet(IRequestTarget requestTarget) equivalant in Wicket 1.5

2011-02-02 Thread Igor Vaynberg
dont think that hook exists yet, file a jira

-igor


On Wed, Feb 2, 2011 at 12:13 PM, Zhubin Salehi zhubin.sal...@route1.comwrote:

  Hi all,



 I’m in process of migrating from Wicket 1.4 to Wicket 1.5. I have the
 following method in the 1.4 version of my AuthenticatedWebApplicationsubclass:



 @Override

 public RequestCycle newRequestCycle(final Request request,
 final Response response) {

 return new WebRequestCycle(this, (WebRequest)
 request, (WebResponse) response) {



 @Override

 protected void onBeginRequest() {

 /* invalidate the session
 if database session has expired */

 }



 @Override

 protected void
 onRequestTargetSet(IRequestTarget requestTarget) {

 /* set response page to
 change password page if user’s password has expired */

 }

 };

 }





 As explained in the Migrating to Wicket 1.5 page I add a subclass of
 AbstractRequestCycleListener in the init() method:



 getRequestCycleListeners().add(new
 AbstractRequestCycleListener() {



 public void onBeginRequest(RequestCycle
 cycle) {

 /* invalidate the session
 if database session has expired */

 }

 });



 Now I’m trying to figure out what to do with onRequestTargetSe()t method.
 Does anyone know how to achieve this?




 Thanks,

 Zhubin



 *Zhubin Salehi
 **Senior Software Engineer
 *Route1 – Securing the Digital World™

 Phone: 416-848-8391 ext. 2262
 Mobile: 416-939-6383

 This electronic mail transmission contains information from Route1 Inc.
 that is for the sole use of the intended recipient and may contain
 confidential, privileged or proprietary information. If you are not the
 intended recipient, please be aware that any disclosure, copying,
 distribution or use of this message, its contents, or any attachment is
 prohibited. Any wrongful interception of this message is punishable as a
 federal crime. If you have received this message in error, please return a
 copy to the sender by electronic mail indicating the error. Then, please
 destroy the original message and any copies from your computer.





RE: RequestCycle.onRequestTargetSet(IRequestTarget requestTarget) equivalant in Wicket 1.5

2011-02-02 Thread Zhubin Salehi
Thanks, I just did.

Zhubin

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: February 2, 2011 3:16 PM
To: users@wicket.apache.org
Subject: Re: RequestCycle.onRequestTargetSet(IRequestTarget requestTarget) 
equivalant in Wicket 1.5

dont think that hook exists yet, file a jira

-igor

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



AjaxButton's onSubmit goes into Form Submit? Why?

2011-02-02 Thread eugenebalt

I have an Ajax Button which is NOT a submit button; it's a custom button that
does my own action.

AjaxButton reportButton = new AjaxButton(reportButton) {
 
@Override
protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) {
// TODO Auto-generated method stub
  //
};
add(reportButton);

The button is in the HTML as
input wicket:id=reportButton  type=button  value=Report /


When I click the button, the Form's OnSubmit() gets executed for some
reason. I can see that if I place debug statements in that method. Why is
that? I don't want to submit the form on clicking this AjaxButton.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxButton-s-onSubmit-goes-into-Form-Submit-Why-tp3256022p3256022.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AjaxButton's onSubmit goes into Form Submit? Why?

2011-02-02 Thread Igor Vaynberg
then make it an AjaxLink

-igor

On Wed, Feb 2, 2011 at 2:12 PM, eugenebalt eugeneb...@yahoo.com wrote:

 I have an Ajax Button which is NOT a submit button; it's a custom button that
 does my own action.

 AjaxButton reportButton = new AjaxButton(reportButton) {

        @Override
        protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) {
                // TODO Auto-generated method stub
                          //
 };
 add(reportButton);

 The button is in the HTML as
 input wicket:id=reportButton  type=button  value=Report /


 When I click the button, the Form's OnSubmit() gets executed for some
 reason. I can see that if I place debug statements in that method. Why is
 that? I don't want to submit the form on clicking this AjaxButton.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/AjaxButton-s-onSubmit-goes-into-Form-Submit-Why-tp3256022p3256022.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt

Please advise, I need to replace Choose One with a BLANK choice () in my
dropdown.

I know I can either create some kind of properties file, or override
something, but I'm not sure exactly what to do, step-by-step.

Could you give an exact, step-by-step instruction regarding what file to
create, or what I have to do. The null choice must be blank, and it's
available.

Thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256149.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread James Carman
https://cwiki.apache.org/WICKET/dropdownchoice.html
On Feb 2, 2011 5:47 PM, eugenebalt eugeneb...@yahoo.com wrote:

 Please advise, I need to replace Choose One with a BLANK choice () in
my
 dropdown.

 I know I can either create some kind of properties file, or override
 something, but I'm not sure exactly what to do, step-by-step.

 Could you give an exact, step-by-step instruction regarding what file to
 create, or what I have to do. The null choice must be blank, and it's
 available.

 Thanks
 --
 View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256149.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt

I have a Form and a DropDown on it, that's it. (There are no Panels or
anything else.)
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256195.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AjaxButton's onSubmit goes into Form Submit? Why?

2011-02-02 Thread eugenebalt

OK thanks, that did the trick.

But I have one more question: That AjaxLink is supposed to start a browser
File Download. The code that I have for that works like a charm in the Form
OnSubmit, but it doesn't work inside the Ajax Link.

File f = generateFile();
ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(
new FileResourceStream(f));
target.setFileName(report.xls);
RequestCycle.get().setRequestTarget(target);


This code works in the form's OnSubmit(), but not in the AjaxLink. Do  you
know how to start the download in the AjaxLink?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxButton-s-onSubmit-goes-into-Form-Submit-Why-tp3256022p3256219.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt

Thank you but I don't understand that instruction!

Quote: Create a .properties file for your subclass of form/panel and define
the null key for the value you want. For example:

A .properties file where?? in the same location as the Form.java? How will
it be hooked up to the actual dropdown?

And this example doesn't apply to me:

mypanel.properties
formid.dropdownid.null=Choose One

I don't have a Panel. That's what I mean, the instructions need to be CLEAR
because it's very hard to follow them. I tried creating some .properties
file and didn't get anywhere.

Thanks again
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256230.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AjaxButton's onSubmit goes into Form Submit? Why?

2011-02-02 Thread Igor Vaynberg
you dont need an ajax link to start a download. use a regular link instead.

-igor

On Wed, Feb 2, 2011 at 3:08 PM, eugenebalt eugeneb...@yahoo.com wrote:

 OK thanks, that did the trick.

 But I have one more question: That AjaxLink is supposed to start a browser
 File Download. The code that I have for that works like a charm in the Form
 OnSubmit, but it doesn't work inside the Ajax Link.

 File f = generateFile();
 ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(
        new FileResourceStream(f));
 target.setFileName(report.xls);
 RequestCycle.get().setRequestTarget(target);


 This code works in the form's OnSubmit(), but not in the AjaxLink. Do  you
 know how to start the download in the AjaxLink?
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/AjaxButton-s-onSubmit-goes-into-Form-Submit-Why-tp3256022p3256219.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



HTML files not reloading in Netbeans on save - quick hack solution

2011-02-02 Thread Joachim Rohde

Hi,
for those of you who are developing Wicket applications with Netbeans 
will have encountered the annoyance that since Netbeans version 6.8 
changes of HTML-files are not immediately visible after saving. I wrote 
a short blog entry regarding this topic which might be of interest: 
http://adelio.org/wicket-reloading-html-files-in-netbeans-english/


Joachim

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



Re: AjaxButton's onSubmit goes into Form Submit? Why?

2011-02-02 Thread eugenebalt

When you say regular link you mean a DownloadLink?

How do I construct it? I need to define either a File or a PropertyModel
(the 2nd arg). Not sure what to put in there. Thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxButton-s-onSubmit-goes-into-Form-Submit-Why-tp3256022p3256300.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread eugenebalt

anyone, please?
I don't understand where to create the properties file, how to name it, and
what to put in there.

My form name: Form1
My dropdown name: choice1

No panels. Where should the file be placed and how will it be found
automatically?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256305.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to Replace Choose One with Blank () in DropDown

2011-02-02 Thread James Carman
Well, I would urge you to look around at how to do
internationalization (no wonder folks usually just type i18n).  That
will show you how to set up properties files.  In your case, if you're
just dealing with a page and no panels, then just create a property
called MyPage.properties (assuming your page class is called MyPage)
and put it in the same package as your page class (make sure your IDE
will copy those resources into the classpath).  The key you want (I
believe) is:

Form1.choice1.null=Something Else



On Wed, Feb 2, 2011 at 6:36 PM, eugenebalt eugeneb...@yahoo.com wrote:

 anyone, please?
 I don't understand where to create the properties file, how to name it, and
 what to put in there.

 My form name: Form1
 My dropdown name: choice1

 No panels. Where should the file be placed and how will it be found
 automatically?
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-Replace-Choose-One-with-Blank-in-DropDown-tp3256149p3256305.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: How to do setResponsePage after alert message pressed ok?

2011-02-02 Thread rolandpeng

Excuse me,I have one more question.

After I press ajax onsubmit, decorateOnSuccessScript is always executed if
no exception occurred.

how do I stop and not to run decorateOnSuccessScript if the validator finds
some components validate failed?
(The onsubmit action will not be executed while validate error found,so
insert successfully alertion should not poped up.)

//how to skip this function while the validator found error?
@Override 
public CharSequence decorateOnSuccessScript(CharSequence script) { 
return script + alert('insert successfully'); 
+ window.location.href=' 
+ RequestCycle.get().urlFor(getBackPage())+ ';; 
} 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-do-setResponsePage-after-alert-message-pressed-ok-tp3225482p3256856.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Multiple Button Problem in Wicket

2011-02-02 Thread msj121

To be honest, I decided to stick this code into my own web page (it has a
form), but I put it outside of it without a form, and it works fine

Shows up just dandy. I did of course change your retrieveButton code to add
an );. So I presume it is something else in your code stopping your code
from compiling or something Perhaps something wrong with UserVerifyForm,
not sure what this extends. I assume you edited a lot of your code which was
necessary when you put it up on the boards, which you may, but everything
works for me What version of Wicket are you using?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3256935.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Mapping wicket:id to component without changing Java code

2011-02-02 Thread msj121

Not sure how to e-mail someone directly as e-mails are hidden But it's
okay, I will probably look to implement an existing open source system with
Wicket, I am just curious if anyone would want to work on building a
specific open source idea for wicket either from scratch or properly
building off a basic system

If I build an e-commerce system from scratch I certainly wouldn't want to do
it alone But I wish you luck with your system.

Matthew
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mapping-wicket-id-to-component-without-changing-Java-code-tp3250381p3256939.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: File upload progress bar

2011-02-02 Thread Valentin Avksentyev
Any suggestions?

-Valentin

On Feb 2, 2011, at 2:22 PM, Valentin Avksentyev wrote:

 The files get uploaded just fine in my app, but no progress is tracked.
 
 It's definitely hard to verify if the progress bar works in the example 
 sites, with a limit of 100k, I haven't tried throttling my upload speed,  I 
 guess I should try that next.
 
 -Valentin
 
 On Feb 2, 2011, at 2:20 PM, Michael O'Cleirigh wrote:
 
 Hello,
 
 Have you looked at the wicket 1.4 examples here: 
 http://wicketstuff.org/wicket14/upload  (this is the source into the github 
 mirror: https://github.com/apache/wicket/tree/wicket-1.4.x/wicket-examples)
 
 I tried both and they work to upload I'm not sure on the progress bar as I 
 used a file that was too small and it blinked by.
 
 The upload limit in the 1.4 example is 100k but yours in 1 GB which could be 
 why your upload test is failing.
 
 Regards,
 
 Mike
 Hi I've been beating my head against the wall with this.
 
 I'm overriding newWebRequest in my Application class:
 @Override
protected WebRequest newWebRequest(HttpServletRequest servletRequest)
{
return new UploadWebRequest(servletRequest);
}
 
 Here is the code in my upload panel class:
 FormVoid  uploadform = new FormVoid(fileUploadForm) {
 @Override
 protected void onSubmit() {
 final FileUpload upload = 
 fileUploadField.getFileUpload();
 if (upload != null) {
 try {
 File newFile = new 
 File(uploadFolder, upload.getClientFileName() );
 // Save to new file
 newFile.createNewFile();
 upload.writeTo(newFile);
 _processSelection(server, 
 newFile, destFolder);
 } catch (Exception e) {
 throw new 
 RuntimeException(Unable to write file);
 }
 } else {
 throw new RuntimeException( file 
 selected for upload is empty );
 }
 }
 };
 uploadform.setMultiPart(true);
 uploadform.setMaxSize(Bytes.gigabytes(1));
 
 uploadform.add(fileUploadField = new 
 FileUploadField(fileInput));
 uploadform.add(new UploadProgressBar(progress, uploadform));
 uploadform.add( new UploadValidator(fileUploadField, prefix) );
 add( uploadform );
 
 
 This is based on the examples, the examples themselves are not working for 
 me either:
 I tried, http://wicketstuff.org/wicket13/upload and 
 http://www.wicket-library.com/wicket-examples/upload/ (the latter URL kinda 
 works, it increments the remaining time but does not track the progress)
 
 What am I doing wrong
 
 -Valentin
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Compile Error on 1.5-RC1 java 1.6.0_22

2011-02-02 Thread Cristiano Gavião
I'm testing the 1.5-rc1, on Mac Snow Leopard with java 
1.6.0_22-b04-307-10M3261 and Maven 3.0.2.


But I'm getting a compiler error.

I used this to create the test project:

mvn archetype:generate -DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart 
-DarchetypeVersion=1.5-SNAPSHOT -DgroupId=com.teste -DartifactId=Teste15 
-DarchetypeRepository=https://repository.apache.org/content/repositories/snapshots/ 
-DinteractiveMode=false


and after it creates the project and I try mvn package I the error below.

Am I doing something wrong ?

thanks

Cristiano



[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[3,49] 
package org.apache.wicket.request.mapper.parameter does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[4,42] 
package org.apache.wicket.markup.html.basic does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[5,36] 
package org.apache.wicket.markup.html does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[7,30] 
cannot find symbol

symbol: class WebPage
public class HomePage extends WebPage {
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[10,26] 
cannot find symbol

symbol  : class PageParameters
location: class com.teste.HomePage
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[3,38] 
package org.apache.wicket.protocol.http does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[10,39] 
cannot find symbol

symbol: class WebApplication
public class WicketApplication extends WebApplication
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[11,10] 
cannot find symbol

symbol  : class Label
location: class com.teste.HomePage
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[11,27] 
cannot find symbol

symbol  : method getApplication()
location: class com.teste.HomePage
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[16,14] 
type parameter com.teste.HomePage is not within its bound
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[15,1] 
method does not override or implement a method from a supertype
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[27,2] 
cannot find symbol

symbol  : variable super
location: class com.teste.WicketApplication
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[24,1] 
method does not override or implement a method from a supertype

[INFO] 13 errors
[INFO] -
[INFO] 


[INFO] BUILD FAILURE
[INFO] 


[INFO] Total time: 2.580s
[INFO] Finished at: Thu Feb 03 01:28:09 BRT 2011
[INFO] Final Memory: 12M/265M
[INFO] 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
(default-compile) on project Teste15: Compilation failure: Compilation 
failure:
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[3,49] 
package org.apache.wicket.request.mapper.parameter does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[4,42] 
package org.apache.wicket.markup.html.basic does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[5,36] 
package org.apache.wicket.markup.html does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[7,30] 
cannot find symbol

[ERROR] symbol: class WebPage
[ERROR] public class HomePage extends WebPage {
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/HomePage.java:[10,26] 
cannot find symbol

[ERROR] symbol  : class PageParameters
[ERROR] location: class com.teste.HomePage
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[3,38] 
package org.apache.wicket.protocol.http does not exist
[ERROR] 
/Users/cvgaviao/Development/Development_Wicket/Teste15/src/main/java/com/teste/WicketApplication.java:[10,39] 
cannot find 

Re: File upload progress bar

2011-02-02 Thread Timo Schmidt
On Wed 02.02.2011 23:49, Valentin Avksentyev wrote:
 On Feb 2, 2011, at 2:22 PM, Valentin Avksentyev wrote:
 
  The files get uploaded just fine in my app, but no progress
  is tracked.
 
  It's definitely hard to verify if the progress bar works in
  the example sites, with a limit of 100k, I haven't tried
  throttling my upload speed, I guess I should try that next.

 Any suggestions?

Is your application runnning behind a proxy? If so, maybe the
entire client request will be buffered by the proxy before
being passed on to the backend proxied servers. As a result,
upload progress meters will not function correctly if they work
by measuring the data received by the backend servers.

  -Timo

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



IndicatingAjaxSubmitLink missing?

2011-02-02 Thread rolandpeng

Will any later version of wicket add IndicatingAjaxSubmitLink?
It seems this class was missed. Or any other Class similar to this
IndicatingAjaxSubmitButton, but only for link?
Thank you.

Roland.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IndicatingAjaxSubmitLink-missing-tp3257456p3257456.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to do setResponsePage after alert message pressed ok?

2011-02-02 Thread rolandpeng

reply by myself. 
I use target.appendJavascript to solve my problem.

@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {
onConfirm(target, form);
target.appendJavascript(alert(' + responseMessage_ + '););
if (redirectPage() != null) {
target.appendJavascript(window.location.href='
+ 
RequestCycle.get().urlFor(redirectPage()) + ';);
}
}

//redirectPage() is my customized method.

Roland.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-do-setResponsePage-after-alert-message-pressed-ok-tp3225482p3257458.html
Sent from the Users forum mailing list archive at Nabble.com.

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



wicket-ajax.js header contribution with script that includes a less than character

2011-02-02 Thread Randy S.
Hi all.  I have narrowed a problem down to the following scenario:

I have a panel with this:

wicket:head
script
if (someVariable  0) {
someVariable = 0;
}
/script
/wicket:head

This script fails to execute when the panel is loaded by ajax.  If I replace
the less than character  with equals ==, then it executes (but of
course, this is not what I need).

I tested this in Firefox 4.0b10 and Chrome 8.

I have searched a lot for others facing this issue, and also tried to dig
through wicket-ajax.js, but it is time to ask here in case it is a known
issue.

I 'm sure I can put the code into a separate JS file as a workaround but I
wanted to save another network hop. Another solution would be to embed the
script in wicket:panel rather than wicket:head, but that has the
disadvantage of re-sending the script with the panel content when the panel
is re-used on the same page.

Thanks for any help/info.